[03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:45]accept exits with 9 [03:48:45]New connection [03:48:45]New thread 3066510692 created [03:48:45]Thread 3066654052 joined [03:48:45]Waiting for new connection... [03:48:45] Sock 9.Parse request [03:48:45]Sock 9.Check first char [03:48:45]Sock 9.First char is OK [03:48:45]request: POST /json_proto HTTP/1.0 [03:48:45]Method: POST [03:48:45]URL: /json_proto [03:48:45]Method is POST - this is cgi request [03:48:45]url: /json_proto [03:48:45]query_string will be loaded in cgi processing [03:48:45]execute_cgi json_proto POST (null) [03:48:45]execute_cgi path=json_proto method=POST [03:48:45]POST find Content-Length [03:48:45]Host: 172.17.46.131:8080 [03:48:45]Content-Length: 682 [03:48:45]Content-Type: application/json [03:48:45] [03:48:45]POST finish read [03:48:45]Found Content-Length = 682 [03:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [03:48:45]execute_script... [03:48: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)412359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [03:48:45]POST & json_proto [03:48:45]process_json_proto [03:48:45]json parsed OK: [03:48:45]protocol is kg_v1.0 [03:48:45]action value=close_receipt [03:48:45]process_action close_receipt [03:48:45]cmd_close_receipt [03:48:45]MH_GetDate [03:48:45]Write to MH i2c: F0 00 00 72 14 75 [03:48:45]Write i2c OK [03:48:45]MH_I2C_Read... [03:48:45]Read from MH i2c: F0 [03:48:45]MH_I2C_Read... [03:48:45]Read from MH i2c: F0 09 00 [03:48:45]MH_I2C_Read... [03:48:45]Read from MH i2c: F0 09 00 72 14 00 20 A6 B6 67 7E 41 4F 65 D4 [03:48:45]GetLastDocTimeStamp 1740021582 [03:48:45]current date 1740023328 [03:48:45]FM_GetShiftState [03:48:45]SAM_PROTO_GetShiftState [03:48:45]wFMCommunicate request_size=4 [03:48:45]MH_SAM_APDU [03:48:45]CAPDU: 80 13 01 00 [03:48:45]Write to MH i2c: E2 08 00 73 14 80 13 01 00 00 00 00 00 04 [03:48:45]Write i2c OK [03:48:45]MH_I2C_Read... [03:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:45]Read from MH i2c: E2 [03:48:45]MH_I2C_Read... [03:48:45]Read from MH i2c: E2 0E 00 [03:48:45]MH_I2C_Read... [03:48:45]Read from MH i2c: E2 0E 00 73 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 56 [03:48:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [03:48:45]wFMCommunicate OK [03:48:45]SAM_PROTO_GetShiftState done [03:48:45]FM_GetShiftState done [03:48:45]opened in 1740011697 [03:48:45]opened+sec_in_day 1740098097 [03:48:45]quantity*price = 100012 [03:48:45]sum+1 = 100014 [03:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 7 20.02.2025 03:48 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187206 ФПД: 270736931936345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T034848&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187206&fm=270736931936345&tin=02508201610067®Number=0000000000091857&sum=100000 [03:48:46]StoreToDocumentArchive [03:48:46]shift 648 fd 187206 [03:48:46]save to /storage/0648/doc_00187206 [03:48:46]save last doc name /storage/0648/doc_00187206 to /storage/kkm_last_doc_name [03:48:46]save OK [03:48:46]Clear old archive folders... [03:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:48:46]tlvbuf is 01FAD000 [03:48:46]SAM_PROTO_ClearQueue [03:48:46]wFMCommunicate request_size=4 [03:48:46]MH_SAM_APDU [03:48:46]CAPDU: 80 09 00 00 [03:48:46]Write to MH i2c: E2 08 00 80 14 80 09 00 00 00 00 00 00 06 [03:48:46]Write i2c OK [03:48:46]MH_I2C_Read... [03:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:48:46]Read from MH i2c: E2 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 03 00 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 03 00 80 14 00 90 00 08 [03:48:46]RAPDU: 90 00 [03:48:46]wFMCommunicate OK [03:48:46]SAM_PROTO_ClearQueue done [03:48:46]KKMCreateOFDPacket [03:48:46]OFDProtocolAddRootSTLVToBuf [03:48:46]FM_MakeSignedData [03:48:46]FM_MakeSignedData [03:48:46]SAM_PROTO_SignData [03:48:46]wFMCommunicate request_size=4 [03:48:46]MH_SAM_APDU [03:48:46]CAPDU: 80 0D 01 02 [03:48:46]Write to MH i2c: E2 08 00 81 14 80 0D 01 02 00 00 00 00 0E [03:48:46]Write i2c OK [03:48:46]MH_I2C_Read... [03:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:48:46]Read from MH i2c: E2 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 03 00 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 03 00 81 14 00 90 00 09 [03:48:46]RAPDU: 90 00 [03:48:46]wFMCommunicate OK [03:48:46]wFMCommunicate request_size=255 [03:48:46]MH_SAM_APDU [03:48:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 20 A6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DB 02 00 35 04 06 00 F6 [03:48:46]Write to MH i2c: E2 02 01 82 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 07 00 00 00 F4 03 04 00 20 A6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DB 02 00 35 04 06 00 F6 00 00 0C [03:48:46]Write i2c OK [03:48:46]MH_I2C_Read... [03:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:47]Read from MH i2c: E2 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: E2 03 00 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: E2 03 00 82 14 00 90 00 0A [03:48:47]RAPDU: 90 00 [03:48:47]wFMCommunicate OK [03:48:47]wFMCommunicate request_size=10 [03:48:47]MH_SAM_APDU [03:48:47]CAPDU: 80 0D 02 02 05 3B DA A7 D8 59 [03:48:47]Write to MH i2c: E2 0D 00 83 14 80 0D 02 02 05 00 3B DA A7 D8 59 00 00 08 [03:48:47]Write i2c OK [03:48:47]MH_I2C_Read... [03:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:47]Read from MH i2c: E2 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: E2 03 00 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: E2 03 00 83 14 00 90 00 0B [03:48:47]RAPDU: 90 00 [03:48:47]wFMCommunicate OK [03:48:47]wFMCommunicate request_size=4 [03:48:47]MH_SAM_APDU [03:48:47]CAPDU: 80 0D 03 02 [03:48:47]Write to MH i2c: E2 08 00 84 14 80 0D 03 02 00 00 00 00 13 [03:48:47]Write i2c OK [03:48:47]MH_I2C_Read... [03:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:48:47]Read from MH i2c: E2 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: E2 0B 00 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: E2 0B 00 84 14 00 B4 ED 65 53 77 2C 99 D2 90 00 7B [03:48:47]RAPDU: B4 ED 65 53 77 2C 99 D2 90 00 [03:48:47]wFMCommunicate OK [03:48:47]SAM_PROTO_SignData done [03:48:47]FM_MakeSignedData done [03:48:47]CreateOFDProtocolMessage [03:48:47]wFMCommunicate request_size=4 [03:48:47]MH_SAM_APDU [03:48:47]CAPDU: 80 11 00 00 [03:48:47]Write to MH i2c: E2 08 00 85 14 80 11 00 00 00 00 00 00 13 [03:48:47]Write i2c OK [03:48:47]MH_I2C_Read... [03:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:47]Read from MH i2c: E2 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: E2 17 00 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: E2 17 00 85 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [03:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:48:47]wFMCommunicate OK [03:48:47]CreateOFDProtocolMessage done [03:48:47]OFDSenderStorePacket 187206 [03:48:47]StoreOFDPacket docnum=187206 [03:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4B 51 07 01 2D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 07 00 00 00 F4 03 04 00 20 A6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DB 02 00 35 04 06 00 F6 3B DA A7 D8 59 B4 ED 65 53 77 2C 99 D2 [03:48:47]CheckFolder [03:48:47]dirname=/storage/ofd_packets [03:48:47]CheckFolder done [03:48:47]ProducePacketName [03:48:47]name=ofd_packets/00187206 [03:48:47]NVStorageSaveData ofd_packets/00187206 [03:48:47]File name is /storage/ofd_packets/00187206 [03:48:47]Write 301 bytes [03:48:47]NVStorageSaveData done [03:48:47]OFDSenderStorePacket done [03:48:47]KKMCreateOFDPacket done [03:48:47]NVStorageSaveData kkm_last_timestamp [03:48:47]File name is /storage/kkm_last_timestamp [03:48:47]Write 4 bytes [03:48:47]NVStorageSaveData done [03:48:47]ExternCall_PrintAddStr [03:48:47]wPrintStart [03:48:47]Write to MH i2c: 01 00 00 86 14 9A [03:48:47]Write i2c OK [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: 01 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: 01 07 00 [03:48:47]MH_I2C_Read... [03:48:47]Read from MH i2c: 01 07 00 86 14 00 00 00 00 00 FF 0F AF [03:48:47]RasterBufferAndPrint [03:48:47]line Счет N : (1)412359 [03:48:47]line ИНН: 02508201610067 [03:48:47]line Контрольно-Кассовый Чек [03:48:47]line ПРОДАЖА [03:48:47]line ТРК (МРК, ГНК) : 33 [03:48:47]line Товар: 2710124500 [03:48:47]line Аи-95-К-5 [03:48:47]line 13.910 * 71.90 [03:48:47]line = 1000.13 [03:48:47]line НДС 12% НСП 1% [03:48:47]line > о реализуемом товаре [03:48:47]line ОКРУГЛЕНИЕ: -0.13 [03:48:47]line ИТОГО: 1000.00 [03:48:47]line Внесено: 1000.00 [03:48:47]line СДАЧА: 0.00 [03:48:47]line НСП 1% : 8.85 [03:48:47]line НДС 12% : 106.21 [03:48:47]line Наличными: 1000.00 [03:48:47]line Безнал.: 0.00 [03:48:47]line Место: АЗС № 92 "Партнер Нефть" [03:48:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [03:48:47]line СНО: Общий режим [03:48:47]line Чек 7 20.02.2025 03:48 [03:48:47]line Смена: 648 ФФД: 1.0 [03:48:47]line ЗНМ: 0300000118 [03:48:47]line РНМ: 0000000000091857 [03:48:47]line Версия ККМ: 001 [03:48:47]line ФМ: 0000000000871826 [03:48:47]line ФД: 187206 [03:48:47]line ФПД: 270736931936345 [03:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T034848&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187206&fm=270736931936345&tin=02508201610067®Number=0000000000091857&sum=100000 [03:48:47]OFD Sender: Processing packet 187206 [packets to send 49, broken 48] [03:48:47]ProducePacketName [03:48:47]name=ofd_packets/00187206 [03:48:47]OFD Sender: To server: pG, [03:48:47]CommunicateWithHost lk.salyk.kg:30040 [03:48:47]ConnectInit lk.salyk.kg [03:48:47]Connected sock=11 [03: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 31 38 32 36 0F 01 00 00 4B 51 07 01 2D 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 written 0, free lines is 4095 [03:48:47]31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 20 A6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DB 02 00 35 04 06 00 F6 3B DA A7 D8 59 B4 ED 65 53 77 2C 99 D2 [03:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 32 35 47 00 39 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 31 38 32 36 10 04 04 00 46 DB 02 00 F4 03 04 00 72 4C B6 67 B6 04 01 00 00 61 77 FB 5D 7F 14 53 67 [03:48:47]CommunicateWithHost err = 0 [03:48:47]CheckOFDResponse [03:48:47]1017 (14) - 77093643461234 [03:48:47]1041 (16) - 0000000000871826 [03:48:47]1040 (4) - 187206 [03:48:47]1012 (4) - 19.02.2025 21:26 [03:48:47]1206 (1) - 0 [03:48:47]OFD Sender: Remove packet 187206 [03:48:47]ProducePacketName [03:48:47]name=ofd_packets/00187206 [03:48:47]NVStorageDeleteData [03:48:48]Write to MH i2c: 01 00 00 B1 14 C5 [03:48:48]Write i2c OK [03:48:48]MH_I2C_Read... [03:48:48]Read from MH i2c: 01 [03:48:48]MH_I2C_Read... [03:48:48]Read from MH i2c: 01 07 00 [03:48:48]MH_I2C_Read... [03:48:48]Read from MH i2c: 01 07 00 B1 14 00 00 00 00 00 E6 0C BE [03:48:48]RasterBufferAndPrint [03:48:48]line [03:48:48]line [03:48:48]line [03:48:48]line [03:48:48]line [03:48:48]written 0, free lines is 3308 [03:48:48]MH_Cut [03:48:48]Write to MH i2c: D1 01 00 B8 14 01 9E [03:48:48]Write i2c OK [03:48:48]MH_I2C_Read... [03:48:48]Read from MH i2c: D1 [03:48:48]MH_I2C_Read... [03:48:48]Read from MH i2c: D1 01 00 [03:48:48]MH_I2C_Read... [03:48:48]Read from MH i2c: D1 01 00 B8 14 00 9D [03:48:48]Write to MH i2c: 01 00 00 B9 14 CD [03:48:48]Write i2c OK [03:48:48]MH_I2C_Read... [03:48:48]OFD Sender: No OFD packet to send [03:48:48]*** Cut start [03:48:48]*** Partial cut [03:48:48]*** CUTSNS_PIN = 1 [03:48:48]*** CUTSNS_PIN = 0 [03:48:49]*** Brake cut motor [03:48:49]Read from MH i2c: 01 [03:48:49]MH_I2C_Read... [03:48:49]*** Stop cut motor [03:48:49]*** Cut end [03:48:49]Read from MH i2c: 01 07 00 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: 01 07 00 B9 14 00 00 00 00 00 FF 0F E2 [03:48:49]process_action close_receipt done [03:48:49]requested_data is exist [03:48:49]produce_requested_data [03:48:49]requested_item fm.sn is exist - process it [03:48:49]wFMCommunicate request_size=4 [03:48:49]MH_SAM_APDU [03:48:49]CAPDU: 80 11 00 00 [03:48:49]Write to MH i2c: E2 08 00 BA 14 80 11 00 00 00 00 00 00 48 [03:48:49]Write i2c OK [03:48:49]MH_I2C_Read... [03:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:49]Read from MH i2c: E2 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: E2 17 00 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: E2 17 00 BA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [03:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:48:49]wFMCommunicate OK [03:48:49]requested_item fd.num is exist - process it [03:48:49]SAM_PROTO_GetFieldsCounters [03:48:49]wFMCommunicate request_size=4 [03:48:49]MH_SAM_APDU [03:48:49]CAPDU: 80 13 00 00 [03:48:49]Write to MH i2c: E2 08 00 BB 14 80 13 00 00 00 00 00 00 4B [03:48:49]Write i2c OK [03:48:49]MH_I2C_Read... [03:48:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:48:49]Read from MH i2c: E2 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: E2 62 00 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: E2 62 00 BB 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 46 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [03:48:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 46 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:48:49]wFMCommunicate OK [03:48:49]SAM_PROTO_GetFieldsCounters done [03:48:49]requested_item shift.num is exist - process it [03:48:49]requested_item shift.opened is exist - process it [03:48:49]req_shift_opened [03:48:49]FM_GetShiftState [03:48:49]SAM_PROTO_GetShiftState [03:48:49]wFMCommunicate request_size=4 [03:48:49]MH_SAM_APDU [03:48:49]CAPDU: 80 13 01 00 [03:48:49]Write to MH i2c: E2 08 00 BC 14 80 13 01 00 00 00 00 00 4D [03:48:49]Write i2c OK [03:48:49]MH_I2C_Read... [03:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:49]Read from MH i2c: E2 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: E2 0E 00 [03:48:49]MH_I2C_Read... [03:48:49]Read from MH i2c: E2 0E 00 BC 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9F [03:48:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [03:48:49]wFMCommunicate OK [03:48:49]SAM_PROTO_GetShiftState done [03:48:49]FM_GetShiftState done [03:48:49]req_shift_opened done [03:48:49]requested_item shift.open_date is exist - process it [03:48:49]req_shift_open_date [03:48:49]req_shift_open_date done [03:48:49]produce_requested_data done [03:48:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187206,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [03:48:49]process_action_free close_receipt [03:48:49]json_value_free [03:48:49]json_value_free done [03:48:49]process_json_proto returns [03:48:49]Send response to host [03:48:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187206,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [03:48:49]free response buf [03:48:49]execute_script done [03:48:49]execute_script returns [03:48:49]free content buf [03:48:49]Sock 9.Close socket [03:48:49]Sock 9.Thread stoped [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]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:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]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:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]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]accept exits with 7 [04:32:25]New connection [04:32:25]New thread 3066654052 created [04:32:25]Thread 3066510692 joined [04:32:25]Waiting for new connection... [04:32:25] Sock 7.Parse request [04:32:25]Sock 7.Check first char [04:32:25]Sock 7.First char is OK [04:32:25]request: POST /json_proto HTTP/1.0 [04:32:25]Method: POST [04:32:25]URL: /json_proto [04:32:25]Method is POST - this is cgi request [04:32:25]url: /json_proto [04:32:25]query_string will be loaded in cgi processing [04:32:25]execute_cgi json_proto POST (null) [04:32:25]execute_cgi path=json_proto method=POST [04:32:25]POST find Content-Length [04:32:25]Host: 172.17.46.131:8080 [04:32:25]Content-Length: 682 [04:32:25]Content-Type: application/json [04:32:25] [04:32:25]POST finish read [04:32:25]Found Content-Length = 682 [04:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 15.300, "sum" : 1100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:25]execute_script... [04:32: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)412360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 15.300, "sum" : 1100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:25]POST & json_proto [04:32:25]process_json_proto [04:32:25]json parsed OK: [04:32:25]protocol is kg_v1.0 [04:32:25]action value=close_receipt [04:32:25]process_action close_receipt [04:32:25]cmd_close_receipt [04:32:25]MH_GetDate [04:32:25]Write to MH i2c: F0 00 00 BD 14 C0 [04:32:25]Write i2c OK [04:32:25]MH_I2C_Read... [04:32:25]Read from MH i2c: F0 [04:32:25]MH_I2C_Read... [04:32:25]Read from MH i2c: F0 09 00 [04:32:25]MH_I2C_Read... [04:32:25]Read from MH i2c: F0 09 00 BD 14 00 5C B0 B6 67 7E 41 4F 65 65 [04:32:25]GetLastDocTimeStamp 1740023328 [04:32:25]current date 1740025948 [04:32:25]FM_GetShiftState [04:32:25]SAM_PROTO_GetShiftState [04:32:25]wFMCommunicate request_size=4 [04:32:25]MH_SAM_APDU [04:32:25]CAPDU: 80 13 01 00 [04:32:25]Write to MH i2c: E2 08 00 BE 14 80 13 01 00 00 00 00 00 4F [04:32:25]Write i2c OK [04:32:25]MH_I2C_Read... [04:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:25]Read from MH i2c: E2 [04:32:25]MH_I2C_Read... [04:32:25]Read from MH i2c: E2 0E 00 [04:32:25]MH_I2C_Read... [04:32:25]Read from MH i2c: E2 0E 00 BE 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A1 [04:32:25]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [04:32:25]wFMCommunicate OK [04:32:25]SAM_PROTO_GetShiftState done [04:32:25]FM_GetShiftState done [04:32:25]opened in 1740011697 [04:32:25]opened+sec_in_day 1740098097 [04:32:25]quantity*price = 110007 [04:32:25]sum+1 = 110008 [04:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 8 20.02.2025 04:32 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187207 ФПД: 159675808827535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T043228&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187207&fm=159675808827535&tin=02508201610067®Number=0000000000091857&sum=110000 [04:32:26]StoreToDocumentArchive [04:32:26]shift 648 fd 187207 [04:32:26]save to /storage/0648/doc_00187207 [04:32:26]save last doc name /storage/0648/doc_00187207 to /storage/kkm_last_doc_name [04:32:26]save OK [04:32:26]Clear old archive folders... [04:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:32:26]tlvbuf is 01F592B0 [04:32:26]SAM_PROTO_ClearQueue [04:32:26]wFMCommunicate request_size=4 [04:32:26]MH_SAM_APDU [04:32:26]CAPDU: 80 09 00 00 [04:32:26]Write to MH i2c: E2 08 00 CB 14 80 09 00 00 00 00 00 00 51 [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:32:26]Read from MH i2c: E2 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 03 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 03 00 CB 14 00 90 00 53 [04:32:26]RAPDU: 90 00 [04:32:26]wFMCommunicate OK [04:32:26]SAM_PROTO_ClearQueue done [04:32:26]KKMCreateOFDPacket [04:32:26]OFDProtocolAddRootSTLVToBuf [04:32:26]FM_MakeSignedData [04:32:26]FM_MakeSignedData [04:32:26]SAM_PROTO_SignData [04:32:26]wFMCommunicate request_size=4 [04:32:26]MH_SAM_APDU [04:32:26]CAPDU: 80 0D 01 02 [04:32:26]Write to MH i2c: E2 08 00 CC 14 80 0D 01 02 00 00 00 00 59 [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:32:26]Read from MH i2c: E2 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 03 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 03 00 CC 14 00 90 00 54 [04:32:26]RAPDU: 90 00 [04:32:26]wFMCommunicate OK [04:32:26]wFMCommunicate request_size=255 [04:32:26]MH_SAM_APDU [04:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 5C B0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DB 02 00 35 04 06 00 91 [04:32:26]Write to MH i2c: E2 02 01 CD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 5C B0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DB 02 00 35 04 06 00 91 00 00 CD [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:26]Read from MH i2c: E2 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 03 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [04:32:26]RAPDU: 90 00 [04:32:26]wFMCommunicate OK [04:32:26]wFMCommunicate request_size=10 [04:32:26]MH_SAM_APDU [04:32:26]CAPDU: 80 0D 02 02 05 39 6B DD 48 8F [04:32:26]Write to MH i2c: E2 0D 00 CE 14 80 0D 02 02 05 00 39 6B DD 48 8F 00 00 BE [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:26]Read from MH i2c: E2 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 03 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [04:32:26]RAPDU: 90 00 [04:32:26]wFMCommunicate OK [04:32:26]wFMCommunicate request_size=4 [04:32:26]MH_SAM_APDU [04:32:26]CAPDU: 80 0D 03 02 [04:32:26]Write to MH i2c: E2 08 00 CF 14 80 0D 03 02 00 00 00 00 5E [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:32:26]Read from MH i2c: E2 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 0B 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 0B 00 CF 14 00 37 E0 9F 2D 70 BB 92 99 90 00 98 [04:32:26]RAPDU: 37 E0 9F 2D 70 BB 92 99 90 00 [04:32:26]wFMCommunicate OK [04:32:26]SAM_PROTO_SignData done [04:32:26]FM_MakeSignedData done [04:32:26]CreateOFDProtocolMessage [04:32:26]wFMCommunicate request_size=4 [04:32:26]MH_SAM_APDU [04:32:26]CAPDU: 80 11 00 00 [04:32:26]Write to MH i2c: E2 08 00 D0 14 80 11 00 00 00 00 00 00 5E [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:26]Read from MH i2c: E2 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 17 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: E2 17 00 D0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [04:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:32:26]wFMCommunicate OK [04:32:26]CreateOFDProtocolMessage done [04:32:26]OFDSenderStorePacket 187207 [04:32:26]StoreOFDPacket docnum=187207 [04:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 1A 07 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 5C B0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DB 02 00 35 04 06 00 91 39 6B DD 48 8F 37 E0 9F 2D 70 BB 92 99 [04:32:26]CheckFolder [04:32:26]dirname=/storage/ofd_packets [04:32:26]CheckFolder done [04:32:26]ProducePacketName [04:32:26]name=ofd_packets/00187207 [04:32:26]NVStorageSaveData ofd_packets/00187207 [04:32:26]File name is /storage/ofd_packets/00187207 [04:32:26]Write 301 bytes [04:32:26]NVStorageSaveData done [04:32:26]OFDSenderStorePacket done [04:32:26]KKMCreateOFDPacket done [04:32:26]NVStorageSaveData kkm_last_timestamp [04:32:26]File name is /storage/kkm_last_timestamp [04:32:26]Write 4 bytes [04:32:26]NVStorageSaveData done [04:32:26]ExternCall_PrintAddStr [04:32:26]wPrintStart [04:32:26]Write to MH i2c: 01 00 00 D1 14 E5 [04:32:26]Write i2c OK [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: 01 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: 01 07 00 [04:32:26]MH_I2C_Read... [04:32:26]Read from MH i2c: 01 07 00 D1 14 00 00 00 00 00 FF 0F FA [04:32:26]RasterBufferAndPrint [04:32:26]line Счет N : (1)412360 [04:32:26]line ИНН: 02508201610067 [04:32:26]line Контрольно-Кассовый Чек [04:32:26]line ПРОДАЖА [04:32:26]line ТРК (МРК, ГНК) : 23 [04:32:26]line Товар: 2710124500 [04:32:26]line Аи-95-К-5 [04:32:26]line 15.300 * 71.90 [04:32:26]line = 1100.07 [04:32:26]line НДС 12% НСП 1% [04:32:26]line > о реализуемом товаре [04:32:26]line ОКРУГЛЕНИЕ: -0.07 [04:32:26]line ИТОГО: 1100.00 [04:32:26]line Внесено: 1100.00 [04:32:26]line СДАЧА: 0.00 [04:32:26]line НСП 1% : 9.73 [04:32:26]line НДС 12% : 116.82 [04:32:26]line Наличными: 1100.00 [04:32:26]line Безнал.: 0.00 [04:32:26]line Место: АЗС № 92 "Партнер Нефть" [04:32:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [04:32:26]line СНО: Общий режим [04:32:26]line Чек 8 20.02.2025 04:32 [04:32:26]line Смена: 648 ФФД: 1.0 [04:32:26]line ЗНМ: 0300000118 [04:32:26]line РНМ: 0000000000091857 [04:32:26]line Версия ККМ: 001 [04:32:26]line ФМ: 0000000000871826 [04:32:26]line ФД: 187207 [04:32:26]line ФПД: 159675808827535 [04:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T043228&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187207&fm=159675808827535&tin=02508201610067®Number=0000000000091857&sum=110000 [04:32:26]written 0, free lines is 4095 [04:32:27]OFD Sender: Processing packet 187207 [packets to send 49, broken 48] [04:32:27]ProducePacketName [04:32:27]name=ofd_packets/00187207 [04:32:27]OFD Sender: To server: pG, [04:32:27]CommunicateWithHost lk.salyk.kg:30040 [04:32:27]ConnectInit lk.salyk.kg [04:32:27]Connected sock=10 [04:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 1A 07 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 5C B0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DB 02 00 35 04 06 00 91 39 6B DD 48 8F 37 E0 9F 2D 70 BB 92 99 [04:32:27]Write to MH i2c: 01 00 00 FC 14 10 [04:32:27]Write i2c OK [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: 01 [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: 01 07 00 [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: 01 07 00 FC 14 00 00 00 00 00 F9 0C 1C [04:32:27]RasterBufferAndPrint [04:32:27]line [04:32:27]line [04:32:27]line [04:32:27]line [04:32:27]line [04:32:27]written 0, free lines is 3327 [04:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 B4 47 00 76 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DB 02 00 F4 03 04 00 AD 56 B6 67 B6 04 01 00 00 15 5B DD 1B 96 1B FF A2 [04:32:27]CommunicateWithHost err = 0 [04:32:27]CheckOFDResponse [04:32:27]1017 (14) - 77093643461234 [04:32:27]1041 (16) - 0000000000871826 [04:32:27]1040 (4) - 187207 [04:32:27]1012 (4) - 19.02.2025 22:09 [04:32:27]1206 (1) - 0 [04:32:27]OFD Sender: Remove packet 187207 [04:32:27]ProducePacketName [04:32:27]name=ofd_packets/00187207 [04:32:27]NVStorageDeleteData [04:32:27]MH_Cut [04:32:27]Write to MH i2c: D1 01 00 03 15 01 EA [04:32:27]Write i2c OK [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: D1 [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: D1 01 00 [04:32:27]MH_I2C_Read... [04:32:27]Read from MH i2c: D1 01 00 03 15 00 E9 [04:32:27]Write to MH i2c: 01 00 00 04 15 19 [04:32:27]Write i2c OK [04:32:27]MH_I2C_Read... [04:32:27]OFD Sender: No OFD packet to send [04:32:28]*** Cut start [04:32:28]*** Partial cut [04:32:28]*** CUTSNS_PIN = 1 [04:32:28]*** CUTSNS_PIN = 0 [04:32:28]*** Brake cut motor [04:32:28]Read from MH i2c: 01 [04:32:28]MH_I2C_Read... [04:32:28]*** Stop cut motor [04:32:28]*** Cut end [04:32:28]Read from MH i2c: 01 07 00 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [04:32:28]process_action close_receipt done [04:32:28]requested_data is exist [04:32:28]produce_requested_data [04:32:28]requested_item fm.sn is exist - process it [04:32:28]wFMCommunicate request_size=4 [04:32:28]MH_SAM_APDU [04:32:28]CAPDU: 80 11 00 00 [04:32:28]Write to MH i2c: E2 08 00 05 15 80 11 00 00 00 00 00 00 94 [04:32:28]Write i2c OK [04:32:28]MH_I2C_Read... [04:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:28]Read from MH i2c: E2 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 17 00 [04:32:28]MH_I2C_Read... [04:32:28]Read from MH i2c: E2 17 00 05 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [04:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:32:28]wFMCommunicate OK [04:32:28]requested_item fd.num is exist - process it [04:32:28]SAM_PROTO_GetFieldsCounters [04:32:28]wFMCommunicate request_size=4 [04:32:28]MH_SAM_APDU [04:32:28]CAPDU: 80 13 00 00 [04:32:28]Write to MH i2c: E2 08 00 06 15 80 13 00 00 00 00 00 00 97 [04:32:28]Write i2c OK [04:32:28]MH_I2C_Read... [04:32:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:32:29]Read from MH i2c: E2 [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: E2 62 00 [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: E2 62 00 06 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 47 DB 02 00 0E 04 04 00 88 02 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 83 [04:32:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 47 DB 02 00 0E 04 04 00 88 02 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 [04:32:29]wFMCommunicate OK [04:32:29]SAM_PROTO_GetFieldsCounters done [04:32:29]requested_item shift.num is exist - process it [04:32:29]requested_item shift.opened is exist - process it [04:32:29]req_shift_opened [04:32:29]FM_GetShiftState [04:32:29]SAM_PROTO_GetShiftState [04:32:29]wFMCommunicate request_size=4 [04:32:29]MH_SAM_APDU [04:32:29]CAPDU: 80 13 01 00 [04:32:29]Write to MH i2c: E2 08 00 07 15 80 13 01 00 00 00 00 00 99 [04:32:29]Write i2c OK [04:32:29]MH_I2C_Read... [04:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:29]Read from MH i2c: E2 [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: E2 0E 00 [04:32:29]MH_I2C_Read... [04:32:29]Read from MH i2c: E2 0E 00 07 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EB [04:32:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [04:32:29]wFMCommunicate OK [04:32:29]SAM_PROTO_GetShiftState done [04:32:29]FM_GetShiftState done [04:32:29]req_shift_opened done [04:32:29]requested_item shift.open_date is exist - process it [04:32:29]req_shift_open_date [04:32:29]req_shift_open_date done [04:32:29]produce_requested_data done [04:32:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187207,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [04:32:29]process_action_free close_receipt [04:32:29]json_value_free [04:32:29]json_value_free done [04:32:29]process_json_proto returns [04:32:29]Send response to host [04:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187207,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [04:32:29]free response buf [04:32:29]execute_script done [04:32:29]execute_script returns [04:32:29]free content buf [04:32:29]Sock 7.Close socket [04:32:29]Sock 7.Thread stoped [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:16]accept exits with 9 [04:34:16]New connection [04:34:16]New thread 3066510692 created [04:34:16]Thread 3066654052 joined [04:34:16]Waiting for new connection... [04:34:16] Sock 9.Parse request [04:34:16]Sock 9.Check first char [04:34:16]Sock 9.First char is OK [04:34:16]request: POST /json_proto HTTP/1.0 [04:34:16]Method: POST [04:34:16]URL: /json_proto [04:34:16]Method is POST - this is cgi request [04:34:16]url: /json_proto [04:34:16]query_string will be loaded in cgi processing [04:34:16]execute_cgi json_proto POST (null) [04:34:16]execute_cgi path=json_proto method=POST [04:34:16]POST find Content-Length [04:34:16]Host: 172.17.46.131:8080 [04:34:16]Content-Length: 677 [04:34:16]Content-Type: application/json [04:34:16] [04:34:16]POST finish read [04:34:16]Found Content-Length = 677 [04:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 1.870, "sum" : 120.05, "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" ] } } [04:34:16]execute_script... [04:34: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)412361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 1.870, "sum" : 120.05, "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" ] } } [04:34:16]POST & json_proto [04:34:16]process_json_proto [04:34:16]json parsed OK: [04:34:16]protocol is kg_v1.0 [04:34:16]action value=close_receipt [04:34:16]process_action close_receipt [04:34:16]cmd_close_receipt [04:34:16]MH_GetDate [04:34:16]Write to MH i2c: F0 00 00 08 15 0C [04:34:16]Write i2c OK [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: F0 [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: F0 09 00 [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: F0 09 00 08 15 00 CB B0 B6 67 7E 41 4F 65 20 [04:34:16]GetLastDocTimeStamp 1740025948 [04:34:16]current date 1740026059 [04:34:16]FM_GetShiftState [04:34:16]SAM_PROTO_GetShiftState [04:34:16]wFMCommunicate request_size=4 [04:34:16]MH_SAM_APDU [04:34:16]CAPDU: 80 13 01 00 [04:34:16]Write to MH i2c: E2 08 00 09 15 80 13 01 00 00 00 00 00 9B [04:34:16]Write i2c OK [04:34:16]MH_I2C_Read... [04:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:16]Read from MH i2c: E2 [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: E2 0E 00 [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: E2 0E 00 09 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 ED [04:34:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [04:34:16]wFMCommunicate OK [04:34:16]SAM_PROTO_GetShiftState done [04:34:16]FM_GetShiftState done [04:34:16]opened in 1740011697 [04:34:16]opened+sec_in_day 1740098097 [04:34:16]quantity*price = 12005 [04:34:16]sum+1 = 12006 [04:34:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.75 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 9 20.02.2025 04:34 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187208 ФПД: 131915776678913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T043419&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187208&fm=131915776678913&tin=02508201610067®Number=0000000000091857&sum=12000 [04:34:17]StoreToDocumentArchive [04:34:17]shift 648 fd 187208 [04:34:17]save to /storage/0648/doc_00187208 [04:34:17]save last doc name /storage/0648/doc_00187208 to /storage/kkm_last_doc_name [04:34:17]save OK [04:34:17]Clear old archive folders... [04:34:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:34:17]tlvbuf is 01F3DFE0 [04:34:17]SAM_PROTO_ClearQueue [04:34:17]wFMCommunicate request_size=4 [04:34:17]MH_SAM_APDU [04:34:17]CAPDU: 80 09 00 00 [04:34:17]Write to MH i2c: E2 08 00 16 15 80 09 00 00 00 00 00 00 9D [04:34:17]Write i2c OK [04:34:17]MH_I2C_Read... [04:34:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:17]Read from MH i2c: E2 [04:34:17]MH_I2C_Read... [04:34:17]Read from MH i2c: E2 03 00 [04:34:17]MH_I2C_Read... [04:34:17]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [04:34:17]RAPDU: 90 00 [04:34:17]wFMCommunicate OK [04:34:17]SAM_PROTO_ClearQueue done [04:34:17]KKMCreateOFDPacket [04:34:17]OFDProtocolAddRootSTLVToBuf [04:34:17]FM_MakeSignedData [04:34:17]FM_MakeSignedData [04:34:17]SAM_PROTO_SignData [04:34:17]wFMCommunicate request_size=4 [04:34:17]MH_SAM_APDU [04:34:17]CAPDU: 80 0D 01 02 [04:34:17]Write to MH i2c: E2 08 00 17 15 80 0D 01 02 00 00 00 00 A5 [04:34:17]Write i2c OK [04:34:17]MH_I2C_Read... [04:34:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:17]Read from MH i2c: E2 [04:34:17]MH_I2C_Read... [04:34:17]Read from MH i2c: E2 03 00 [04:34:17]MH_I2C_Read... [04:34:17]Read from MH i2c: E2 03 00 17 15 00 90 00 A0 [04:34:17]RAPDU: 90 00 [04:34:17]wFMCommunicate OK [04:34:17]wFMCommunicate request_size=255 [04:34:17]MH_SAM_APDU [04:34: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 32 FF 03 08 00 03 4E 07 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E5 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 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 09 00 00 00 F4 03 04 00 CB B0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DB 02 00 35 04 06 00 77 [04:34:18]Write to MH i2c: E2 02 01 18 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 32 FF 03 08 00 03 4E 07 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E5 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 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 09 00 00 00 F4 03 04 00 CB B0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DB 02 00 35 04 06 00 77 00 00 92 [04:34:18]Write i2c OK [04:34:18]MH_I2C_Read... [04:34:18]OFD Sender: No OFD packet to send [04:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:18]Read from MH i2c: E2 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 18 15 00 90 00 A1 [04:34:18]RAPDU: 90 00 [04:34:18]wFMCommunicate OK [04:34:18]wFMCommunicate request_size=10 [04:34:18]MH_SAM_APDU [04:34:18]CAPDU: 80 0D 02 02 05 FA 09 02 5C 01 [04:34:18]Write to MH i2c: E2 0D 00 19 15 80 0D 02 02 05 00 FA 09 02 5C 01 00 00 14 [04:34:18]Write i2c OK [04:34:18]MH_I2C_Read... [04:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:18]Read from MH i2c: E2 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 19 15 00 90 00 A2 [04:34:18]RAPDU: 90 00 [04:34:18]wFMCommunicate OK [04:34:18]wFMCommunicate request_size=4 [04:34:18]MH_SAM_APDU [04:34:18]CAPDU: 80 0D 03 02 [04:34:18]Write to MH i2c: E2 08 00 1A 15 80 0D 03 02 00 00 00 00 AA [04:34:18]Write i2c OK [04:34:18]MH_I2C_Read... [04:34:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:18]Read from MH i2c: E2 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 0B 00 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 0B 00 1A 15 00 6E 8E 25 DC BE 7B 70 C3 90 00 14 [04:34:18]RAPDU: 6E 8E 25 DC BE 7B 70 C3 90 00 [04:34:18]wFMCommunicate OK [04:34:18]SAM_PROTO_SignData done [04:34:18]FM_MakeSignedData done [04:34:18]CreateOFDProtocolMessage [04:34:18]wFMCommunicate request_size=4 [04:34:18]MH_SAM_APDU [04:34:18]CAPDU: 80 11 00 00 [04:34:18]Write to MH i2c: E2 08 00 1B 15 80 11 00 00 00 00 00 00 AA [04:34:18]Write i2c OK [04:34:18]MH_I2C_Read... [04:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:18]Read from MH i2c: E2 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 17 00 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 17 00 1B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [04:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:34:18]wFMCommunicate OK [04:34:18]CreateOFDProtocolMessage done [04:34:18]OFDSenderStorePacket 187208 [04:34:18]StoreOFDPacket docnum=187208 [04:34:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FF A2 07 01 03 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4E 07 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E5 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 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 09 00 00 00 F4 03 04 00 CB B0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DB 02 00 35 04 06 00 77 FA 09 02 5C 01 6E 8E 25 DC BE 7B 70 C3 [04:34:18]CheckFolder [04:34:18]dirname=/storage/ofd_packets [04:34:18]CheckFolder done [04:34:18]ProducePacketName [04:34:18]name=ofd_packets/00187208 [04:34:18]NVStorageSaveData ofd_packets/00187208 [04:34:18]File name is /storage/ofd_packets/00187208 [04:34:18]Write 301 bytes [04:34:18]NVStorageSaveData done [04:34:18]OFDSenderStorePacket done [04:34:18]KKMCreateOFDPacket done [04:34:18]NVStorageSaveData kkm_last_timestamp [04:34:18]File name is /storage/kkm_last_timestamp [04:34:18]Write 4 bytes [04:34:18]NVStorageSaveData done [04:34:18]ExternCall_PrintAddStr [04:34:18]wPrintStart [04:34:18]Write to MH i2c: 01 00 00 1C 15 31 [04:34:18]Write i2c OK [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: 01 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: 01 07 00 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: 01 07 00 1C 15 00 00 00 00 00 FF 0F 46 [04:34:18]RasterBufferAndPrint [04:34:18]line Счет N : (1)412361 [04:34:18]line ИНН: 02508201610067 [04:34:18]line Контрольно-Кассовый Чек [04:34:18]line ПРОДАЖА [04:34:18]line ТРК (МРК, ГНК) : 42 [04:34:18]line Товар: 2710124130 [04:34:18]line Аи-92-К-2 [04:34:18]line 1.870 * 64.20 [04:34:18]line = 120.05 [04:34:18]line НДС 12% НСП 1% [04:34:18]line > о реализуемом товаре [04:34:18]line ОКРУГЛЕНИЕ: -0.05 [04:34:18]line ИТОГО: 120.00 [04:34:18]line Внесено: 120.00 [04:34:18]line СДАЧА: 0.00 [04:34:18]line НСП 1% : 1.06 [04:34:18]line НДС 12% : 12.75 [04:34:18]line Наличными: 120.00 [04:34:18]line Безнал.: 0.00 [04:34:18]line Место: АЗС № 92 "Партнер Нефть" [04:34:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [04:34:18]line СНО: Общий режим [04:34:18]line Чек 9 20.02.2025 04:34 [04:34:18]line Смена: 648 ФФД: 1.0 [04:34:18]line ЗНМ: 0300000118 [04:34:18]line РНМ: 0000000000091857 [04:34:18]line Версия ККМ: 001 [04:34:18]line ФМ: 0000000000871826 [04:34:18]line ФД: 187208 [04:34:18]line ФПД: 131915776678913 [04:34:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T043419&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187208&fm=131915776678913&tin=02508201610067®Number=0000000000091857&sum=12000 [04:34:18]OFD Sender: Processing packet 187208 [packets to send 49, broken 48] [04:34:18]ProducePacketName [04:34:18]name=ofd_packets/00187208 [04:34:18]OFD Sender: To server: pG, [04:34:18]CommunicateWithHost lk.salyk.kg:30040 [04:34:18]ConnectInit lk.salyk.kg [04:34:18]written 0, free lines is 4095 [04:34:18]Connected sock=7 [04:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FF A2 07 01 03 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4E 07 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E5 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 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 09 00 00 00 F4 03 04 00 CB B0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DB 02 00 35 04 06 00 77 FA 09 02 5C 01 6E 8E 25 DC BE 7B 70 C3 [04:34:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 46 1D 47 00 A6 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DB 02 00 F4 03 04 00 1D 57 B6 67 B6 04 01 00 00 98 2B 8F 3D A2 79 15 FC [04:34:19]CommunicateWithHost err = 0 [04:34:19]CheckOFDResponse [04:34:19]1017 (14) - 77093643461234 [04:34:19]1041 (16) - 0000000000871826 [04:34:19]1040 (4) - 187208 [04:34:19]1012 (4) - 19.02.2025 22:11 [04:34:19]1206 (1) - 0 [04:34:19]OFD Sender: Remove packet 187208 [04:34:19]ProducePacketName [04:34:19]name=ofd_packets/00187208 [04:34:19]NVStorageDeleteData [04:34:19]Write to MH i2c: 01 00 00 47 15 5C [04:34:19]Write i2c OK [04:34:19]MH_I2C_Read... [04:34:19]Read from MH i2c: 01 [04:34:19]MH_I2C_Read... [04:34:19]Read from MH i2c: 01 07 00 [04:34:19]MH_I2C_Read... [04:34:19]Read from MH i2c: 01 07 00 47 15 00 00 00 00 00 04 0D 74 [04:34:19]RasterBufferAndPrint [04:34:19]line [04:34:19]line [04:34:19]line [04:34:19]line [04:34:19]line [04:34:19]written 0, free lines is 3342 [04:34:19]MH_Cut [04:34:19]Write to MH i2c: D1 01 00 4E 15 01 35 [04:34:19]Write i2c OK [04:34:19]MH_I2C_Read... [04:34:19]Read from MH i2c: D1 [04:34:19]MH_I2C_Read... [04:34:19]Read from MH i2c: D1 01 00 [04:34:19]MH_I2C_Read... [04:34:19]Read from MH i2c: D1 01 00 4E 15 00 34 [04:34:19]Write to MH i2c: 01 00 00 4F 15 64 [04:34:19]Write i2c OK [04:34:19]MH_I2C_Read... [04:34:19]OFD Sender: No OFD packet to send [04:34:19]*** Cut start [04:34:19]*** Partial cut [04:34:19]*** CUTSNS_PIN = 1 [04:34:19]*** CUTSNS_PIN = 0 [04:34:20]*** Brake cut motor [04:34:20]Read from MH i2c: 01 [04:34:20]MH_I2C_Read... [04:34:20]*** Stop cut motor [04:34:20]*** Cut end [04:34:20]Read from MH i2c: 01 07 00 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: 01 07 00 4F 15 00 00 00 00 00 FF 0F 79 [04:34:20]process_action close_receipt done [04:34:20]requested_data is exist [04:34:20]produce_requested_data [04:34:20]requested_item fm.sn is exist - process it [04:34:20]wFMCommunicate request_size=4 [04:34:20]MH_SAM_APDU [04:34:20]CAPDU: 80 11 00 00 [04:34:20]Write to MH i2c: E2 08 00 50 15 80 11 00 00 00 00 00 00 DF [04:34:20]Write i2c OK [04:34:20]MH_I2C_Read... [04:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:20]Read from MH i2c: E2 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: E2 17 00 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: E2 17 00 50 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [04:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:34:20]wFMCommunicate OK [04:34:20]requested_item fd.num is exist - process it [04:34:20]SAM_PROTO_GetFieldsCounters [04:34:20]wFMCommunicate request_size=4 [04:34:20]MH_SAM_APDU [04:34:20]CAPDU: 80 13 00 00 [04:34:20]Write to MH i2c: E2 08 00 51 15 80 13 00 00 00 00 00 00 E2 [04:34:20]Write i2c OK [04:34:20]MH_I2C_Read... [04:34:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:20]Read from MH i2c: E2 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: E2 62 00 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: E2 62 00 51 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 48 DB 02 00 0E 04 04 00 88 02 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 D2 [04:34:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 48 DB 02 00 0E 04 04 00 88 02 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 [04:34:20]wFMCommunicate OK [04:34:20]SAM_PROTO_GetFieldsCounters done [04:34:20]requested_item shift.num is exist - process it [04:34:20]requested_item shift.opened is exist - process it [04:34:20]req_shift_opened [04:34:20]FM_GetShiftState [04:34:20]SAM_PROTO_GetShiftState [04:34:20]wFMCommunicate request_size=4 [04:34:20]MH_SAM_APDU [04:34:20]CAPDU: 80 13 01 00 [04:34:20]Write to MH i2c: E2 08 00 52 15 80 13 01 00 00 00 00 00 E4 [04:34:20]Write i2c OK [04:34:20]MH_I2C_Read... [04:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:20]Read from MH i2c: E2 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: E2 0E 00 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: E2 0E 00 52 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 36 [04:34:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [04:34:20]wFMCommunicate OK [04:34:20]SAM_PROTO_GetShiftState done [04:34:20]FM_GetShiftState done [04:34:20]req_shift_opened done [04:34:20]requested_item shift.open_date is exist - process it [04:34:20]req_shift_open_date [04:34:20]req_shift_open_date done [04:34:20]produce_requested_data done [04:34:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187208,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [04:34:20]process_action_free close_receipt [04:34:20]json_value_free [04:34:20]json_value_free done [04:34:20]process_json_proto returns [04:34:20]Send response to host [04:34:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187208,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [04:34:20]free response buf [04:34:20]execute_script done [04:34:20]execute_script returns [04:34:20]free content buf [04:34:20]Sock 9.Close socket [04:34:20]Sock 9.Thread stoped [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39: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:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:39]accept exits with 10 [04:49:39]New connection [04:49:39]New thread 3066654052 created [04:49:39]Thread 3066510692 joined [04:49:39]Waiting for new connection... [04:49:39] Sock 10.Parse request [04:49:39]Sock 10.Check first char [04:49:39]Sock 10.First char is OK [04:49:39]request: POST /json_proto HTTP/1.0 [04:49:39]Method: POST [04:49:39]URL: /json_proto [04:49:39]Method is POST - this is cgi request [04:49:39]url: /json_proto [04:49:39]query_string will be loaded in cgi processing [04:49:39]execute_cgi json_proto POST (null) [04:49:39]execute_cgi path=json_proto method=POST [04:49:39]POST find Content-Length [04:49:39]Host: 172.17.46.131:8080 [04:49:39]Content-Length: 677 [04:49:39]Content-Type: application/json [04:49:39] [04:49:39]POST finish read [04:49:39]Found Content-Length = 677 [04:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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" ] } } [04:49:39]execute_script... [04:49: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)412362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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" ] } } [04:49:39]POST & json_proto [04:49:39]process_json_proto [04:49:39]json parsed OK: [04:49:39]protocol is kg_v1.0 [04:49:39]action value=close_receipt [04:49:39]process_action close_receipt [04:49:39]cmd_close_receipt [04:49:39]MH_GetDate [04:49:39]Write to MH i2c: F0 00 00 53 15 57 [04:49:39]Write i2c OK [04:49:39]MH_I2C_Read... [04:49:39]Read from MH i2c: F0 [04:49:39]MH_I2C_Read... [04:49:39]Read from MH i2c: F0 09 00 [04:49:39]MH_I2C_Read... [04:49:39]Read from MH i2c: F0 09 00 53 15 00 66 B4 B6 67 7E 41 4F 65 0A [04:49:39]GetLastDocTimeStamp 1740026059 [04:49:39]current date 1740026982 [04:49:39]FM_GetShiftState [04:49:39]SAM_PROTO_GetShiftState [04:49:39]wFMCommunicate request_size=4 [04:49:39]MH_SAM_APDU [04:49:39]CAPDU: 80 13 01 00 [04:49:39]Write to MH i2c: E2 08 00 54 15 80 13 01 00 00 00 00 00 E6 [04:49:39]Write i2c OK [04:49:39]MH_I2C_Read... [04:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:39]Read from MH i2c: E2 [04:49:39]MH_I2C_Read... [04:49:39]Read from MH i2c: E2 0E 00 [04:49:39]MH_I2C_Read... [04:49:39]Read from MH i2c: E2 0E 00 54 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 38 [04:49:39]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [04:49:39]wFMCommunicate OK [04:49:39]SAM_PROTO_GetShiftState done [04:49:39]FM_GetShiftState done [04:49:39]opened in 1740011697 [04:49:39]opened+sec_in_day 1740098097 [04:49:39]quantity*price = 50011 [04:49:39]sum+1 = 50013 [04:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 10 20.02.2025 04:49 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187209 ФПД: 138995300707178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T044942&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187209&fm=138995300707178&tin=02508201610067®Number=0000000000091857&sum=50000 [04:49:40]StoreToDocumentArchive [04:49:40]shift 648 fd 187209 [04:49:40]save to /storage/0648/doc_00187209 [04:49:40]save last doc name /storage/0648/doc_00187209 to /storage/kkm_last_doc_name [04:49:40]save OK [04:49:40]Clear old archive folders... [04:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:49:40]tlvbuf is 01F59500 [04:49:40]SAM_PROTO_ClearQueue [04:49:40]wFMCommunicate request_size=4 [04:49:40]MH_SAM_APDU [04:49:40]CAPDU: 80 09 00 00 [04:49:40]Write to MH i2c: E2 08 00 61 15 80 09 00 00 00 00 00 00 E8 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:49:40]Read from MH i2c: E2 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 61 15 00 90 00 EA [04:49:40]RAPDU: 90 00 [04:49:40]wFMCommunicate OK [04:49:40]SAM_PROTO_ClearQueue done [04:49:40]KKMCreateOFDPacket [04:49:40]OFDProtocolAddRootSTLVToBuf [04:49:40]FM_MakeSignedData [04:49:40]FM_MakeSignedData [04:49:40]SAM_PROTO_SignData [04:49:40]wFMCommunicate request_size=4 [04:49:40]MH_SAM_APDU [04:49:40]CAPDU: 80 0D 01 02 [04:49:40]Write to MH i2c: E2 08 00 62 15 80 0D 01 02 00 00 00 00 F0 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:49:40]Read from MH i2c: E2 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 [04:49:40]MH_I2C_Read... [04:49:40]Read from MH i2c: E2 03 00 62 15 00 90 00 EB [04:49:40]RAPDU: 90 00 [04:49:40]wFMCommunicate OK [04:49:40]wFMCommunicate request_size=255 [04:49:40]MH_SAM_APDU [04:49: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 66 B4 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DB 02 00 35 04 06 00 7E [04:49:40]Write to MH i2c: E2 02 01 63 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 66 B4 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DB 02 00 35 04 06 00 7E 00 00 F8 [04:49:40]Write i2c OK [04:49:40]MH_I2C_Read... [04:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:41]Read from MH i2c: E2 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: E2 03 00 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: E2 03 00 63 15 00 90 00 EC [04:49:41]RAPDU: 90 00 [04:49:41]wFMCommunicate OK [04:49:41]wFMCommunicate request_size=10 [04:49:41]MH_SAM_APDU [04:49:41]CAPDU: 80 0D 02 02 05 6A 5D 86 2B 6A [04:49:41]Write to MH i2c: E2 0D 00 64 15 80 0D 02 02 05 00 6A 5D 86 2B 6A 00 00 DF [04:49:41]Write i2c OK [04:49:41]MH_I2C_Read... [04:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:41]Read from MH i2c: E2 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: E2 03 00 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: E2 03 00 64 15 00 90 00 ED [04:49:41]RAPDU: 90 00 [04:49:41]wFMCommunicate OK [04:49:41]wFMCommunicate request_size=4 [04:49:41]MH_SAM_APDU [04:49:41]CAPDU: 80 0D 03 02 [04:49:41]Write to MH i2c: E2 08 00 65 15 80 0D 03 02 00 00 00 00 F5 [04:49:41]Write i2c OK [04:49:41]MH_I2C_Read... [04:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:49:41]Read from MH i2c: E2 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: E2 0B 00 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: E2 0B 00 65 15 00 80 89 29 31 3E 7B DC 76 90 00 64 [04:49:41]RAPDU: 80 89 29 31 3E 7B DC 76 90 00 [04:49:41]wFMCommunicate OK [04:49:41]SAM_PROTO_SignData done [04:49:41]FM_MakeSignedData done [04:49:41]CreateOFDProtocolMessage [04:49:41]wFMCommunicate request_size=4 [04:49:41]MH_SAM_APDU [04:49:41]CAPDU: 80 11 00 00 [04:49:41]Write to MH i2c: E2 08 00 66 15 80 11 00 00 00 00 00 00 F5 [04:49:41]Write i2c OK [04:49:41]MH_I2C_Read... [04:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:41]Read from MH i2c: E2 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: E2 17 00 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: E2 17 00 66 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [04:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:49:41]wFMCommunicate OK [04:49:41]CreateOFDProtocolMessage done [04:49:41]OFDSenderStorePacket 187209 [04:49:41]StoreOFDPacket docnum=187209 [04:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6E 4E 07 01 49 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 66 B4 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DB 02 00 35 04 06 00 7E 6A 5D 86 2B 6A 80 89 29 31 3E 7B DC 76 [04:49:41]CheckFolder [04:49:41]dirname=/storage/ofd_packets [04:49:41]CheckFolder done [04:49:41]ProducePacketName [04:49:41]name=ofd_packets/00187209 [04:49:41]NVStorageSaveData ofd_packets/00187209 [04:49:41]File name is /storage/ofd_packets/00187209 [04:49:41]Write 301 bytes [04:49:41]NVStorageSaveData done [04:49:41]OFDSenderStorePacket done [04:49:41]KKMCreateOFDPacket done [04:49:41]NVStorageSaveData kkm_last_timestamp [04:49:41]File name is /storage/kkm_last_timestamp [04:49:41]Write 4 bytes [04:49:41]NVStorageSaveData done [04:49:41]ExternCall_PrintAddStr [04:49:41]wPrintStart [04:49:41]Write to MH i2c: 01 00 00 67 15 7C [04:49:41]Write i2c OK [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: 01 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: 01 07 00 [04:49:41]MH_I2C_Read... [04:49:41]Read from MH i2c: 01 07 00 67 15 00 00 00 00 00 FF 0F 91 [04:49:41]RasterBufferAndPrint [04:49:41]line Счет N : (1)412362 [04:49:41]line ИНН: 02508201610067 [04:49:41]line Контрольно-Кассовый Чек [04:49:41]line ПРОДАЖА [04:49:41]line ТРК (МРК, ГНК) : 32 [04:49:41]line Товар: 2710124130 [04:49:41]line Аи-92-К-2 [04:49:41]line 7.790 * 64.20 [04:49:41]line = 500.12 [04:49:41]line НДС 12% НСП 1% [04:49:41]line > о реализуемом товаре [04:49:41]line ОКРУГЛЕНИЕ: -0.12 [04:49:41]line ИТОГО: 500.00 [04:49:41]line Внесено: 500.00 [04:49:41]line СДАЧА: 0.00 [04:49:41]line НСП 1% : 4.43 [04:49:41]line НДС 12% : 53.11 [04:49:41]line Наличными: 500.00 [04:49:41]line Безнал.: 0.00 [04:49:41]line Место: АЗС № 92 "Партнер Нефть" [04:49:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [04:49:41]line СНО: Общий режим [04:49:41]line Чек 10 20.02.2025 04:49 [04:49:41]line Смена: 648 ФФД: 1.0 [04:49:41]line ЗНМ: 0300000118 [04:49:41]line РНМ: 0000000000091857 [04:49:41]line Версия ККМ: 001 [04:49:41]line ФМ: 0000000000871826 [04:49:41]line ФД: 187209 [04:49:41]line ФПД: 138995300707178 [04:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T044942&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187209&fm=138995300707178&tin=02508201610067®Number=0000000000091857&sum=50000 [04:49:41]OFD Sender: Processing packet 187209 [packets to send 49, broken 48] [04:49:41]ProducePacketName [04:49:41]name=ofd_packets/00187209 [04:49:41]OFD Sender: To server: pG, [04:49:41]CommunicateWithHost lk.salyk.kg:30040 [04:49:41]ConnectInit lk.salyk.kg [04:49:41]written 0, free lines is 4095 [04:49:41]Connected sock=9 [04:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6E 4E 07 01 49 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 66 B4 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DB 02 00 35 04 06 00 7E 6A 5D 86 2B 6A 80 89 29 31 3E 7B DC 76 [04:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6A D6 47 00 8E 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 31 38 32 36 10 04 04 00 49 DB 02 00 F4 03 04 00 B8 5A B6 67 B6 04 01 00 00 00 68 8E ED CD 1B C5 2D [04:49:42]CommunicateWithHost err = 0 [04:49:42]CheckOFDResponse [04:49:42]1017 (14) - 77093643461234 [04:49:42]1041 (16) - 0000000000871826 [04:49:42]1040 (4) - 187209 [04:49:42]1012 (4) - 19.02.2025 22:27 [04:49:42]1206 (1) - 0 [04:49:42]OFD Sender: Remove packet 187209 [04:49:42]ProducePacketName [04:49:42]name=ofd_packets/00187209 [04:49:42]NVStorageDeleteData [04:49:42]Write to MH i2c: 01 00 00 92 15 A7 [04:49:42]Write i2c OK [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: 01 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: 01 07 00 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: 01 07 00 92 15 00 00 00 00 00 EE 0C A8 [04:49:42]RasterBufferAndPrint [04:49:42]line [04:49:42]line [04:49:42]line [04:49:42]line [04:49:42]line [04:49:42]written 0, free lines is 3316 [04:49:42]MH_Cut [04:49:42]Write to MH i2c: D1 01 00 99 15 01 80 [04:49:42]Write i2c OK [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: D1 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: D1 01 00 [04:49:42]MH_I2C_Read... [04:49:42]Read from MH i2c: D1 01 00 99 15 00 7F [04:49:42]Write to MH i2c: 01 00 00 9A 15 AF [04:49:42]Write i2c OK [04:49:42]MH_I2C_Read... [04:49:42]OFD Sender: No OFD packet to send [04:49:42]*** Cut start [04:49:42]*** Partial cut [04:49:42]*** CUTSNS_PIN = 1 [04:49:42]*** CUTSNS_PIN = 0 [04:49:43]*** Brake cut motor [04:49:43]Read from MH i2c: 01 [04:49:43]MH_I2C_Read... [04:49:43]*** Stop cut motor [04:49:43]*** Cut end [04:49:43]Read from MH i2c: 01 07 00 [04:49:43]MH_I2C_Read... [04:49:43]Read from MH i2c: 01 07 00 9A 15 00 00 00 00 00 FF 0F C4 [04:49:43]process_action close_receipt done [04:49:43]requested_data is exist [04:49:43]produce_requested_data [04:49:43]requested_item fm.sn is exist - process it [04:49:43]wFMCommunicate request_size=4 [04:49:43]MH_SAM_APDU [04:49:43]CAPDU: 80 11 00 00 [04:49:43]Write to MH i2c: E2 08 00 9B 15 80 11 00 00 00 00 00 00 2A [04:49:43]Write i2c OK [04:49:43]MH_I2C_Read... [04:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:43]Read from MH i2c: E2 [04:49:43]MH_I2C_Read... [04:49:43]Read from MH i2c: E2 17 00 [04:49:43]MH_I2C_Read... [04:49:43]Read from MH i2c: E2 17 00 9B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [04:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:49:43]wFMCommunicate OK [04:49:43]requested_item fd.num is exist - process it [04:49:43]SAM_PROTO_GetFieldsCounters [04:49:43]wFMCommunicate request_size=4 [04:49:43]MH_SAM_APDU [04:49:43]CAPDU: 80 13 00 00 [04:49:43]Write to MH i2c: E2 08 00 9C 15 80 13 00 00 00 00 00 00 2D [04:49:43]Write i2c OK [04:49:43]MH_I2C_Read... [04:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:49:43]Read from MH i2c: E2 [04:49:43]MH_I2C_Read... [04:49:43]Read from MH i2c: E2 62 00 [04:49:43]MH_I2C_Read... [04:49:43]Read from MH i2c: E2 62 00 9C 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 49 DB 02 00 0E 04 04 00 88 02 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 21 [04:49:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 49 DB 02 00 0E 04 04 00 88 02 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 [04:49:43]wFMCommunicate OK [04:49:43]SAM_PROTO_GetFieldsCounters done [04:49:43]requested_item shift.num is exist - process it [04:49:43]requested_item shift.opened is exist - process it [04:49:43]req_shift_opened [04:49:43]FM_GetShiftState [04:49:43]SAM_PROTO_GetShiftState [04:49:43]wFMCommunicate request_size=4 [04:49:43]MH_SAM_APDU [04:49:43]CAPDU: 80 13 01 00 [04:49:43]Write to MH i2c: E2 08 00 9D 15 80 13 01 00 00 00 00 00 2F [04:49:43]Write i2c OK [04:49:43]MH_I2C_Read... [04:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:43]Read from MH i2c: E2 [04:49:43]MH_I2C_Read... [04:49:43]Read from MH i2c: E2 0E 00 [04:49:43]MH_I2C_Read... [04:49:43]Read from MH i2c: E2 0E 00 9D 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 81 [04:49:43]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [04:49:43]wFMCommunicate OK [04:49:43]SAM_PROTO_GetShiftState done [04:49:43]FM_GetShiftState done [04:49:43]req_shift_opened done [04:49:43]requested_item shift.open_date is exist - process it [04:49:43]req_shift_open_date [04:49:43]req_shift_open_date done [04:49:43]produce_requested_data done [04:49:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187209,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [04:49:43]process_action_free close_receipt [04:49:43]json_value_free [04:49:43]json_value_free done [04:49:43]process_json_proto returns [04:49:43]Send response to host [04:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187209,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [04:49:43]free response buf [04:49:43]execute_script done [04:49:43]execute_script returns [04:49:43]free content buf [04:49:43]Sock 10.Close socket [04:49:43]Sock 10.Thread stoped [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08: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:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30: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:43]accept exits with 7 [05:31:43]New connection [05:31:43]New thread 3066510692 created [05:31:43]Thread 3066654052 joined [05:31:43]Waiting for new connection... [05:31:43] Sock 7.Parse request [05:31:43]Sock 7.Check first char [05:31:43]Sock 7.First char is OK [05:31:43]request: POST /json_proto HTTP/1.0 [05:31:43]Method: POST [05:31:43]URL: /json_proto [05:31:43]Method is POST - this is cgi request [05:31:43]url: /json_proto [05:31:43]query_string will be loaded in cgi processing [05:31:43]execute_cgi json_proto POST (null) [05:31:43]execute_cgi path=json_proto method=POST [05:31:43]POST find Content-Length [05:31:43]Host: 172.17.46.131:8080 [05:31:43]Content-Length: 677 [05:31:43]Content-Type: application/json [05:31:43] [05:31:43]POST finish read [05:31:43]Found Content-Length = 677 [05:31:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "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" ] } } [05:31:43]execute_script... [05:31: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)412363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "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" ] } } [05:31:43]POST & json_proto [05:31:43]process_json_proto [05:31:43]json parsed OK: [05:31:43]protocol is kg_v1.0 [05:31:43]action value=close_receipt [05:31:43]process_action close_receipt [05:31:43]cmd_close_receipt [05:31:43]MH_GetDate [05:31:43]Write to MH i2c: F0 00 00 9E 15 A2 [05:31:43]Write i2c OK [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: F0 [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: F0 09 00 [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: F0 09 00 9E 15 00 42 BE B6 67 7E 41 4F 65 3B [05:31:43]GetLastDocTimeStamp 1740026982 [05:31:43]current date 1740029506 [05:31:43]FM_GetShiftState [05:31:43]SAM_PROTO_GetShiftState [05:31:43]wFMCommunicate request_size=4 [05:31:43]MH_SAM_APDU [05:31:43]CAPDU: 80 13 01 00 [05:31:43]Write to MH i2c: E2 08 00 9F 15 80 13 01 00 00 00 00 00 31 [05:31:43]Write i2c OK [05:31:43]MH_I2C_Read... [05:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:43]Read from MH i2c: E2 [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: E2 0E 00 [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: E2 0E 00 9F 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 83 [05:31:43]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [05:31:43]wFMCommunicate OK [05:31:43]SAM_PROTO_GetShiftState done [05:31:43]FM_GetShiftState done [05:31:43]opened in 1740011697 [05:31:43]opened+sec_in_day 1740098097 [05:31:43]quantity*price = 60027 [05:31:43]sum+1 = 60028 [05:31:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 11 20.02.2025 05:31 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187210 ФПД: 204607253392878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T053146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187210&fm=204607253392878&tin=02508201610067®Number=0000000000091857&sum=60000 [05:31:44]StoreToDocumentArchive [05:31:44]shift 648 fd 187210 [05:31:44]save to /storage/0648/doc_00187210 [05:31:44]save last doc name /storage/0648/doc_00187210 to /storage/kkm_last_doc_name [05:31:44]save OK [05:31:44]Clear old archive folders... [05:31:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:31:44]tlvbuf is 01F7F4C0 [05:31:44]SAM_PROTO_ClearQueue [05:31:44]wFMCommunicate request_size=4 [05:31:44]MH_SAM_APDU [05:31:44]CAPDU: 80 09 00 00 [05:31:44]Write to MH i2c: E2 08 00 AC 15 80 09 00 00 00 00 00 00 33 [05:31:44]Write i2c OK [05:31:44]MH_I2C_Read... [05:31:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:31:44]Read from MH i2c: E2 [05:31:44]MH_I2C_Read... [05:31:44]Read from MH i2c: E2 03 00 [05:31:44]MH_I2C_Read... [05:31:44]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [05:31:44]RAPDU: 90 00 [05:31:44]wFMCommunicate OK [05:31:44]SAM_PROTO_ClearQueue done [05:31:44]KKMCreateOFDPacket [05:31:44]OFDProtocolAddRootSTLVToBuf [05:31:44]FM_MakeSignedData [05:31:44]FM_MakeSignedData [05:31:44]SAM_PROTO_SignData [05:31:44]wFMCommunicate request_size=4 [05:31:44]MH_SAM_APDU [05:31:44]CAPDU: 80 0D 01 02 [05:31:44]Write to MH i2c: E2 08 00 AD 15 80 0D 01 02 00 00 00 00 3B [05:31:44]Write i2c OK [05:31:44]MH_I2C_Read... [05:31:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:31:44]Read from MH i2c: E2 [05:31:44]MH_I2C_Read... [05:31:44]Read from MH i2c: E2 03 00 [05:31:44]MH_I2C_Read... [05:31:44]Read from MH i2c: E2 03 00 AD 15 00 90 00 36 [05:31:44]RAPDU: 90 00 [05:31:44]wFMCommunicate OK [05:31:44]wFMCommunicate request_size=255 [05:31:44]MH_SAM_APDU [05:31: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 42 BE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DB 02 00 35 04 06 00 BA [05:31:44]Write to MH i2c: E2 02 01 AE 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 42 BE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DB 02 00 35 04 06 00 BA 00 00 BD [05:31:44]Write i2c OK [05:31:44]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 AE 15 00 90 00 37 [05:31:45]RAPDU: 90 00 [05:31:45]wFMCommunicate OK [05:31:45]wFMCommunicate request_size=10 [05:31:45]MH_SAM_APDU [05:31:45]CAPDU: 80 0D 02 02 05 16 D6 A8 2D EE [05:31:45]Write to MH i2c: E2 0D 00 AF 15 80 0D 02 02 05 00 16 D6 A8 2D EE 00 00 F7 [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 AF 15 00 90 00 38 [05:31:45]RAPDU: 90 00 [05:31:45]wFMCommunicate OK [05:31:45]wFMCommunicate request_size=4 [05:31:45]MH_SAM_APDU [05:31:45]CAPDU: 80 0D 03 02 [05:31:45]Write to MH i2c: E2 08 00 B0 15 80 0D 03 02 00 00 00 00 40 [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 0B 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 0B 00 B0 15 00 5A A1 9F EE FF 92 A6 63 90 00 63 [05:31:45]RAPDU: 5A A1 9F EE FF 92 A6 63 90 00 [05:31:45]wFMCommunicate OK [05:31:45]SAM_PROTO_SignData done [05:31:45]FM_MakeSignedData done [05:31:45]CreateOFDProtocolMessage [05:31:45]wFMCommunicate request_size=4 [05:31:45]MH_SAM_APDU [05:31:45]CAPDU: 80 11 00 00 [05:31:45]Write to MH i2c: E2 08 00 B1 15 80 11 00 00 00 00 00 00 40 [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 17 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 17 00 B1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [05:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:31:45]wFMCommunicate OK [05:31:45]CreateOFDProtocolMessage done [05:31:45]OFDSenderStorePacket 187210 [05:31:45]StoreOFDPacket docnum=187210 [05:31:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B1 5B 07 01 D7 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 42 BE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DB 02 00 35 04 06 00 BA 16 D6 A8 2D EE 5A A1 9F EE FF 92 A6 63 [05:31:45]CheckFolder [05:31:45]dirname=/storage/ofd_packets [05:31:45]CheckFolder done [05:31:45]ProducePacketName [05:31:45]name=ofd_packets/00187210 [05:31:45]NVStorageSaveData ofd_packets/00187210 [05:31:45]File name is /storage/ofd_packets/00187210 [05:31:45]Write 301 bytes [05:31:45]NVStorageSaveData done [05:31:45]OFDSenderStorePacket done [05:31:45]KKMCreateOFDPacket done [05:31:45]NVStorageSaveData kkm_last_timestamp [05:31:45]File name is /storage/kkm_last_timestamp [05:31:45]Write 4 bytes [05:31:45]NVStorageSaveData done [05:31:45]ExternCall_PrintAddStr [05:31:45]wPrintStart [05:31:45]Write to MH i2c: 01 00 00 B2 15 C7 [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: 01 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: 01 07 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: 01 07 00 B2 15 00 00 00 00 00 FF 0F DC [05:31:45]RasterBufferAndPrint [05:31:45]line Счет N : (1)412363 [05:31:45]line ИНН: 02508201610067 [05:31:45]line Контрольно-Кассовый Чек [05:31:45]line ПРОДАЖА [05:31:45]line ТРК (МРК, ГНК) : 22 [05:31:45]line Товар: 2710124130 [05:31:45]line Аи-92-К-2 [05:31:45]line 9.350 * 64.20 [05:31:45]line = 600.27 [05:31:45]line НДС 12% НСП 1% [05:31:45]line > о реализуемом товаре [05:31:45]line ОКРУГЛЕНИЕ: -0.27 [05:31:45]line ИТОГО: 600.00 [05:31:45]line Внесено: 600.00 [05:31:45]line СДАЧА: 0.00 [05:31:45]line НСП 1% : 5.31 [05:31:45]line НДС 12% : 63.74 [05:31:45]line Наличными: 600.00 [05:31:45]line Безнал.: 0.00 [05:31:45]line Место: АЗС № 92 "Партнер Нефть" [05:31:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:31:45]line СНО: Общий режим [05:31:45]line Чек 11 20.02.2025 05:31 [05:31:45]line Смена: 648 ФФД: 1.0 [05:31:45]line ЗНМ: 0300000118 [05:31:45]line РНМ: 0000000000091857 [05:31:45]line Версия ККМ: 001 [05:31:45]line ФМ: 0000000000871826 [05:31:45]line ФД: 187210 [05:31:45]line ФПД: 204607253392878 [05:31:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T053146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187210&fm=204607253392878&tin=02508201610067®Number=0000000000091857&sum=60000 [05:31:45]OFD Sender: Processing packet 187210 [packets to send 49, broken 48] [05:31:45]ProducePacketName [05:31:45]name=ofd_packets/00187210 [05:31:45]OFD Sender: To server: pG, [05:31:45]CommunicateWithHost lk.salyk.kg:30040 [05:31:45]ConnectInit lk.salyk.kg [05:31:45]written 0, free lines is 4095 [05:31:45]Connected sock=10 [05:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B1 5B 07 01 D7 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 42 BE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DB 02 00 35 04 06 00 BA 16 D6 A8 2D EE 5A A1 9F EE FF 92 A6 63 [05:31:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9A 8C 47 00 AA 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DB 02 00 F4 03 04 00 94 64 B6 67 B6 04 01 00 00 DC 04 9B B7 65 DA 51 A0 [05:31:46]CommunicateWithHost err = 0 [05:31:46]CheckOFDResponse [05:31:46]1017 (14) - 77093643461234 [05:31:46]1041 (16) - 0000000000871826 [05:31:46]1040 (4) - 187210 [05:31:46]1012 (4) - 19.02.2025 23:09 [05:31:46]1206 (1) - 0 [05:31:46]OFD Sender: Remove packet 187210 [05:31:46]ProducePacketName [05:31:46]name=ofd_packets/00187210 [05:31:46]NVStorageDeleteData [05:31:46]Write to MH i2c: 01 00 00 DD 15 F2 [05:31:46]Write i2c OK [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: 01 [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: 01 07 00 [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: 01 07 00 DD 15 00 00 00 00 00 FD 0C 02 [05:31:46]RasterBufferAndPrint [05:31:46]line [05:31:46]line [05:31:46]line [05:31:46]line [05:31:46]line [05:31:46]written 0, free lines is 3334 [05:31:46]MH_Cut [05:31:46]Write to MH i2c: D1 01 00 E4 15 01 CB [05:31:46]Write i2c OK [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: D1 [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: D1 01 00 [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: D1 01 00 E4 15 00 CA [05:31:46]Write to MH i2c: 01 00 00 E5 15 FA [05:31:46]Write i2c OK [05:31:46]MH_I2C_Read... [05:31:46]OFD Sender: No OFD packet to send [05:31:46]*** Cut start [05:31:46]*** Partial cut [05:31:46]*** CUTSNS_PIN = 1 [05:31:46]*** CUTSNS_PIN = 0 [05:31:47]*** Brake cut motor [05:31:47]Read from MH i2c: 01 [05:31:47]MH_I2C_Read... [05:31:47]*** Stop cut motor [05:31:47]*** Cut end [05:31:47]Read from MH i2c: 01 07 00 [05:31:47]MH_I2C_Read... [05:31:47]Read from MH i2c: 01 07 00 E5 15 00 00 00 00 00 FF 0F 0F [05:31:47]process_action close_receipt done [05:31:47]requested_data is exist [05:31:47]produce_requested_data [05:31:47]requested_item fm.sn is exist - process it [05:31:47]wFMCommunicate request_size=4 [05:31:47]MH_SAM_APDU [05:31:47]CAPDU: 80 11 00 00 [05:31:47]Write to MH i2c: E2 08 00 E6 15 80 11 00 00 00 00 00 00 75 [05:31:47]Write i2c OK [05:31:47]MH_I2C_Read... [05:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:47]Read from MH i2c: E2 [05:31:47]MH_I2C_Read... [05:31:47]Read from MH i2c: E2 17 00 [05:31:47]MH_I2C_Read... [05:31:47]Read from MH i2c: E2 17 00 E6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [05:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:31:47]wFMCommunicate OK [05:31:47]requested_item fd.num is exist - process it [05:31:47]SAM_PROTO_GetFieldsCounters [05:31:47]wFMCommunicate request_size=4 [05:31:47]MH_SAM_APDU [05:31:47]CAPDU: 80 13 00 00 [05:31:47]Write to MH i2c: E2 08 00 E7 15 80 13 00 00 00 00 00 00 78 [05:31:47]Write i2c OK [05:31:47]MH_I2C_Read... [05:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:31:47]Read from MH i2c: E2 [05:31:47]MH_I2C_Read... [05:31:47]Read from MH i2c: E2 62 00 [05:31:47]MH_I2C_Read... [05:31:47]Read from MH i2c: E2 62 00 E7 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4A DB 02 00 0E 04 04 00 88 02 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 70 [05:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4A DB 02 00 0E 04 04 00 88 02 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:31:47]wFMCommunicate OK [05:31:47]SAM_PROTO_GetFieldsCounters done [05:31:47]requested_item shift.num is exist - process it [05:31:47]requested_item shift.opened is exist - process it [05:31:47]req_shift_opened [05:31:47]FM_GetShiftState [05:31:47]SAM_PROTO_GetShiftState [05:31:47]wFMCommunicate request_size=4 [05:31:47]MH_SAM_APDU [05:31:47]CAPDU: 80 13 01 00 [05:31:47]Write to MH i2c: E2 08 00 E8 15 80 13 01 00 00 00 00 00 7A [05:31:47]Write i2c OK [05:31:47]MH_I2C_Read... [05:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:47]Read from MH i2c: E2 [05:31:47]MH_I2C_Read... [05:31:47]Read from MH i2c: E2 0E 00 [05:31:47]MH_I2C_Read... [05:31:47]Read from MH i2c: E2 0E 00 E8 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CC [05:31:47]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [05:31:47]wFMCommunicate OK [05:31:47]SAM_PROTO_GetShiftState done [05:31:47]FM_GetShiftState done [05:31:47]req_shift_opened done [05:31:47]requested_item shift.open_date is exist - process it [05:31:47]req_shift_open_date [05:31:47]req_shift_open_date done [05:31:47]produce_requested_data done [05:31:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187210,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [05:31:47]process_action_free close_receipt [05:31:47]json_value_free [05:31:47]json_value_free done [05:31:47]process_json_proto returns [05:31:47]Send response to host [05:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187210,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [05:31:47]free response buf [05:31:47]execute_script done [05:31:47]execute_script returns [05:31:47]free content buf [05:31:47]Sock 7.Close socket [05:31:47]Sock 7.Thread stoped [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:23]accept exits with 9 [05:50:23]New connection [05:50:23]New thread 3066654052 created [05:50:23]Thread 3066510692 joined [05:50:23]Waiting for new connection... [05:50:23] Sock 9.Parse request [05:50:23]Sock 9.Check first char [05:50:23]Sock 9.First char is OK [05:50:23]request: POST /json_proto HTTP/1.0 [05:50:23]Method: POST [05:50:23]URL: /json_proto [05:50:23]Method is POST - this is cgi request [05:50:23]url: /json_proto [05:50:23]query_string will be loaded in cgi processing [05:50:23]execute_cgi json_proto POST (null) [05:50:23]execute_cgi path=json_proto method=POST [05:50:23]POST find Content-Length [05:50:23]Host: 172.17.46.131:8080 [05:50:23]Content-Length: 678 [05:50:23]Content-Type: application/json [05:50:23] [05:50:23]POST finish read [05:50:23]Found Content-Length = 678 [05:50:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:23]execute_script... [05:50: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)412364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:23]POST & json_proto [05:50:23]process_json_proto [05:50:23]json parsed OK: [05:50:23]protocol is kg_v1.0 [05:50:23]action value=close_receipt [05:50:23]process_action close_receipt [05:50:23]cmd_close_receipt [05:50:23]MH_GetDate [05:50:23]Write to MH i2c: F0 00 00 E9 15 ED [05:50:23]Write i2c OK [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: F0 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: F0 09 00 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: F0 09 00 E9 15 00 A2 C2 B6 67 7E 41 4F 65 EA [05:50:23]GetLastDocTimeStamp 1740029506 [05:50:23]current date 1740030626 [05:50:23]FM_GetShiftState [05:50:23]SAM_PROTO_GetShiftState [05:50:23]wFMCommunicate request_size=4 [05:50:23]MH_SAM_APDU [05:50:23]CAPDU: 80 13 01 00 [05:50:23]Write to MH i2c: E2 08 00 EA 15 80 13 01 00 00 00 00 00 7C [05:50:23]Write i2c OK [05:50:23]MH_I2C_Read... [05:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:23]Read from MH i2c: E2 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: E2 0E 00 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: E2 0E 00 EA 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CE [05:50:23]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [05:50:23]wFMCommunicate OK [05:50:23]SAM_PROTO_GetShiftState done [05:50:23]FM_GetShiftState done [05:50:23]opened in 1740011697 [05:50:23]opened+sec_in_day 1740098097 [05:50:23]quantity*price = 70042 [05:50:23]sum+1 = 70043 [05:50:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 12 20.02.2025 05:50 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187211 ФПД: 92564793872984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T055026&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187211&fm=92564793872984&tin=02508201610067®Number=0000000000091857&sum=70000 [05:50:24]StoreToDocumentArchive [05:50:24]shift 648 fd 187211 [05:50:24]save to /storage/0648/doc_00187211 [05:50:24]save last doc name /storage/0648/doc_00187211 to /storage/kkm_last_doc_name [05:50:24]save OK [05:50:24]Clear old archive folders... [05:50:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:50:24]tlvbuf is 01F99490 [05:50:24]SAM_PROTO_ClearQueue [05:50:24]wFMCommunicate request_size=4 [05:50:24]MH_SAM_APDU [05:50:24]CAPDU: 80 09 00 00 [05:50:24]Write to MH i2c: E2 08 00 F7 15 80 09 00 00 00 00 00 00 7E [05:50:24]Write i2c OK [05:50:24]MH_I2C_Read... [05:50:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:50:24]Read from MH i2c: E2 [05:50:24]MH_I2C_Read... [05:50:24]Read from MH i2c: E2 03 00 [05:50:24]MH_I2C_Read... [05:50:24]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [05:50:24]RAPDU: 90 00 [05:50:24]wFMCommunicate OK [05:50:24]SAM_PROTO_ClearQueue done [05:50:24]KKMCreateOFDPacket [05:50:24]OFDProtocolAddRootSTLVToBuf [05:50:24]FM_MakeSignedData [05:50:24]FM_MakeSignedData [05:50:24]SAM_PROTO_SignData [05:50:24]wFMCommunicate request_size=4 [05:50:24]MH_SAM_APDU [05:50:24]CAPDU: 80 0D 01 02 [05:50:24]Write to MH i2c: E2 08 00 F8 15 80 0D 01 02 00 00 00 00 86 [05:50:24]Write i2c OK [05:50:24]MH_I2C_Read... [05:50:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:50:24]Read from MH i2c: E2 [05:50:24]MH_I2C_Read... [05:50:24]Read from MH i2c: E2 03 00 [05:50:24]MH_I2C_Read... [05:50:24]Read from MH i2c: E2 03 00 F8 15 00 90 00 81 [05:50:24]RAPDU: 90 00 [05:50:24]wFMCommunicate OK [05:50:24]wFMCommunicate request_size=255 [05:50:24]MH_SAM_APDU [05:50: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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 A2 C2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DB 02 00 35 04 06 00 54 [05:50:24]Write to MH i2c: E2 02 01 F9 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 A2 C2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DB 02 00 35 04 06 00 54 00 00 63 [05:50:24]Write i2c OK [05:50:24]MH_I2C_Read... [05:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:25]Read from MH i2c: E2 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 03 00 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 03 00 F9 15 00 90 00 82 [05:50:25]RAPDU: 90 00 [05:50:25]wFMCommunicate OK [05:50:25]wFMCommunicate request_size=10 [05:50:25]MH_SAM_APDU [05:50:25]CAPDU: 80 0D 02 02 05 2F EB A8 52 58 [05:50:25]Write to MH i2c: E2 0D 00 FA 15 80 0D 02 02 05 00 2F EB A8 52 58 00 00 FF [05:50:25]Write i2c OK [05:50:25]MH_I2C_Read... [05:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:25]Read from MH i2c: E2 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 03 00 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [05:50:25]RAPDU: 90 00 [05:50:25]wFMCommunicate OK [05:50:25]wFMCommunicate request_size=4 [05:50:25]MH_SAM_APDU [05:50:25]CAPDU: 80 0D 03 02 [05:50:25]Write to MH i2c: E2 08 00 FB 15 80 0D 03 02 00 00 00 00 8B [05:50:25]Write i2c OK [05:50:25]MH_I2C_Read... [05:50:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:50:25]Read from MH i2c: E2 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 0B 00 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 0B 00 FB 15 00 46 B9 EE 67 12 AA 2A CA 90 00 90 [05:50:25]RAPDU: 46 B9 EE 67 12 AA 2A CA 90 00 [05:50:25]wFMCommunicate OK [05:50:25]SAM_PROTO_SignData done [05:50:25]FM_MakeSignedData done [05:50:25]CreateOFDProtocolMessage [05:50:25]wFMCommunicate request_size=4 [05:50:25]MH_SAM_APDU [05:50:25]CAPDU: 80 11 00 00 [05:50:25]Write to MH i2c: E2 08 00 FC 15 80 11 00 00 00 00 00 00 8B [05:50:25]Write i2c OK [05:50:25]MH_I2C_Read... [05:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:25]Read from MH i2c: E2 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 17 00 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 17 00 FC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [05:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:50:25]wFMCommunicate OK [05:50:25]CreateOFDProtocolMessage done [05:50:25]OFDSenderStorePacket 187211 [05:50:25]StoreOFDPacket docnum=187211 [05:50:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 51 41 07 01 47 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 A2 C2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DB 02 00 35 04 06 00 54 2F EB A8 52 58 46 B9 EE 67 12 AA 2A CA [05:50:25]CheckFolder [05:50:25]dirname=/storage/ofd_packets [05:50:25]CheckFolder done [05:50:25]ProducePacketName [05:50:25]name=ofd_packets/00187211 [05:50:25]NVStorageSaveData ofd_packets/00187211 [05:50:25]File name is /storage/ofd_packets/00187211 [05:50:25]Write 301 bytes [05:50:25]NVStorageSaveData done [05:50:25]OFDSenderStorePacket done [05:50:25]KKMCreateOFDPacket done [05:50:25]NVStorageSaveData kkm_last_timestamp [05:50:25]File name is /storage/kkm_last_timestamp [05:50:25]Write 4 bytes [05:50:25]NVStorageSaveData done [05:50:25]ExternCall_PrintAddStr [05:50:25]wPrintStart [05:50:25]Write to MH i2c: 01 00 00 FD 15 12 [05:50:25]Write i2c OK [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: 01 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: 01 07 00 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: 01 07 00 FD 15 00 00 00 00 00 FF 0F 27 [05:50:25]RasterBufferAndPrint [05:50:25]line Счет N : (1)412364 [05:50:25]line ИНН: 02508201610067 [05:50:25]line Контрольно-Кассовый Чек [05:50:25]line ПРОДАЖА [05:50:25]line ТРК (МРК, ГНК) : 42 [05:50:25]line Товар: 2710124130 [05:50:25]line Аи-92-К-2 [05:50:25]line 10.910 * 64.20 [05:50:25]line = 700.42 [05:50:25]line НДС 12% НСП 1% [05:50:25]line > о реализуемом товаре [05:50:25]line ОКРУГЛЕНИЕ: -0.42 [05:50:25]line ИТОГО: 700.00 [05:50:25]line Внесено: 700.00 [05:50:25]line СДАЧА: 0.00 [05:50:25]line НСП 1% : 6.20 [05:50:25]line НДС 12% : 74.38 [05:50:25]line Наличными: 700.00 [05:50:25]line Безнал.: 0.00 [05:50:25]line Место: АЗС № 92 "Партнер Нефть" [05:50:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:50:25]line СНО: Общий режим [05:50:25]line Чек 12 20.02.2025 05:50 [05:50:25]line Смена: 648 ФФД: 1.0 [05:50:25]line ЗНМ: 0300000118 [05:50:25]line РНМ: 0000000000091857 [05:50:25]line Версия ККМ: 001 [05:50:25]line ФМ: 0000000000871826 [05:50:25]line ФД: 187211 [05:50:25]line ФПД: 92564793872984 [05:50:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T055026&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187211&fm=92564793872984&tin=02508201610067®Number=0000000000091857&sum=70000 [05:50:25]OFD Sender: Processing packet 187211 [packets to send 49, broken 48] [05:50:25]ProducePacketName [05:50:25]name=ofd_packets/00187211 [05:50:25]OFD Sender: To server: pG, [05:50:25]CommunicateWithHost lk.salyk.kg:30040 [05:50:25]ConnectInit lk.salyk.kg [05:50:25]written 0, free lines is 4095 [05:50:25]Connected sock=10 [05:50:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 51 41 07 01 47 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 A2 C2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DB 02 00 35 04 06 00 54 2F EB A8 52 58 46 B9 EE 67 12 AA 2A CA [05:50:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EE A8 47 00 4B 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 31 38 32 36 10 04 04 00 4B DB 02 00 F4 03 04 00 F4 68 B6 67 B6 04 01 00 00 B1 5A 5F F8 91 7F 98 10 [05:50:25]CommunicateWithHost err = 0 [05:50:25]CheckOFDResponse [05:50:25]1017 (14) - 77093643461234 [05:50:25]1041 (16) - 0000000000871826 [05:50:25]1040 (4) - 187211 [05:50:25]1012 (4) - 19.02.2025 23:27 [05:50:25]1206 (1) - 0 [05:50:25]OFD Sender: Remove packet 187211 [05:50:25]ProducePacketName [05:50:25]name=ofd_packets/00187211 [05:50:25]NVStorageDeleteData [05:50:26]Write to MH i2c: 01 00 00 28 16 3E [05:50:26]Write i2c OK [05:50:26]MH_I2C_Read... [05:50:26]Read from MH i2c: 01 [05:50:26]MH_I2C_Read... [05:50:26]Read from MH i2c: 01 07 00 [05:50:26]MH_I2C_Read... [05:50:26]Read from MH i2c: 01 07 00 28 16 00 00 00 00 00 EC 0C 3D [05:50:26]RasterBufferAndPrint [05:50:26]line [05:50:26]line [05:50:26]line [05:50:26]line [05:50:26]line [05:50:26]written 0, free lines is 3317 [05:50:26]MH_Cut [05:50:26]Write to MH i2c: D1 01 00 2F 16 01 17 [05:50:26]Write i2c OK [05:50:26]MH_I2C_Read... [05:50:26]Read from MH i2c: D1 [05:50:26]MH_I2C_Read... [05:50:26]Read from MH i2c: D1 01 00 [05:50:26]MH_I2C_Read... [05:50:26]Read from MH i2c: D1 01 00 2F 16 00 16 [05:50:26]Write to MH i2c: 01 00 00 30 16 46 [05:50:26]Write i2c OK [05:50:26]MH_I2C_Read... [05:50:26]OFD Sender: No OFD packet to send [05:50:26]*** Cut start [05:50:26]*** Partial cut [05:50:26]*** CUTSNS_PIN = 1 [05:50:26]*** CUTSNS_PIN = 0 [05:50:27]*** Brake cut motor [05:50:27]Read from MH i2c: 01 [05:50:27]MH_I2C_Read... [05:50:27]*** Stop cut motor [05:50:27]*** Cut end [05:50:27]Read from MH i2c: 01 07 00 [05:50:27]MH_I2C_Read... [05:50:27]Read from MH i2c: 01 07 00 30 16 00 00 00 00 00 FF 0F 5B [05:50:27]process_action close_receipt done [05:50:27]requested_data is exist [05:50:27]produce_requested_data [05:50:27]requested_item fm.sn is exist - process it [05:50:27]wFMCommunicate request_size=4 [05:50:27]MH_SAM_APDU [05:50:27]CAPDU: 80 11 00 00 [05:50:27]Write to MH i2c: E2 08 00 31 16 80 11 00 00 00 00 00 00 C1 [05:50:27]Write i2c OK [05:50:27]MH_I2C_Read... [05:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:27]Read from MH i2c: E2 [05:50:27]MH_I2C_Read... [05:50:27]Read from MH i2c: E2 17 00 [05:50:27]MH_I2C_Read... [05:50:27]Read from MH i2c: E2 17 00 31 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [05:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:50:27]wFMCommunicate OK [05:50:27]requested_item fd.num is exist - process it [05:50:27]SAM_PROTO_GetFieldsCounters [05:50:27]wFMCommunicate request_size=4 [05:50:27]MH_SAM_APDU [05:50:27]CAPDU: 80 13 00 00 [05:50:27]Write to MH i2c: E2 08 00 32 16 80 13 00 00 00 00 00 00 C4 [05:50:27]Write i2c OK [05:50:27]MH_I2C_Read... [05:50:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:50:27]Read from MH i2c: E2 [05:50:27]MH_I2C_Read... [05:50:27]Read from MH i2c: E2 62 00 [05:50:27]MH_I2C_Read... [05:50:27]Read from MH i2c: E2 62 00 32 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4B DB 02 00 0E 04 04 00 88 02 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 C0 [05:50:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4B DB 02 00 0E 04 04 00 88 02 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:50:27]wFMCommunicate OK [05:50:27]SAM_PROTO_GetFieldsCounters done [05:50:27]requested_item shift.num is exist - process it [05:50:27]requested_item shift.opened is exist - process it [05:50:27]req_shift_opened [05:50:27]FM_GetShiftState [05:50:27]SAM_PROTO_GetShiftState [05:50:27]wFMCommunicate request_size=4 [05:50:27]MH_SAM_APDU [05:50:27]CAPDU: 80 13 01 00 [05:50:27]Write to MH i2c: E2 08 00 33 16 80 13 01 00 00 00 00 00 C6 [05:50:27]Write i2c OK [05:50:27]MH_I2C_Read... [05:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:27]Read from MH i2c: E2 [05:50:27]MH_I2C_Read... [05:50:27]Read from MH i2c: E2 0E 00 [05:50:27]MH_I2C_Read... [05:50:27]Read from MH i2c: E2 0E 00 33 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 18 [05:50:27]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [05:50:27]wFMCommunicate OK [05:50:27]SAM_PROTO_GetShiftState done [05:50:27]FM_GetShiftState done [05:50:27]req_shift_opened done [05:50:27]requested_item shift.open_date is exist - process it [05:50:27]req_shift_open_date [05:50:27]req_shift_open_date done [05:50:27]produce_requested_data done [05:50:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187211,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [05:50:27]process_action_free close_receipt [05:50:27]json_value_free [05:50:27]json_value_free done [05:50:27]process_json_proto returns [05:50:27]Send response to host [05:50:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187211,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [05:50:27]free response buf [05:50:27]execute_script done [05:50:27]execute_script returns [05:50:27]free content buf [05:50:27]Sock 9.Close socket [05:50:27]Sock 9.Thread stoped [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]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: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:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:06]accept exits with 7 [06:02:06]New connection [06:02:06]New thread 3066510692 created [06:02:06]Thread 3066654052 joined [06:02:06]Waiting for new connection... [06:02:06] Sock 7.Parse request [06:02:06]Sock 7.Check first char [06:02:06]Sock 7.First char is OK [06:02:06]request: POST /json_proto HTTP/1.0 [06:02:06]Method: POST [06:02:06]URL: /json_proto [06:02:06]Method is POST - this is cgi request [06:02:06]url: /json_proto [06:02:06]query_string will be loaded in cgi processing [06:02:06]execute_cgi json_proto POST (null) [06:02:06]execute_cgi path=json_proto method=POST [06:02:06]POST find Content-Length [06:02:06]Host: 172.17.46.131:8080 [06:02:06]Content-Length: 678 [06:02:06]Content-Type: application/json [06:02:06] [06:02:06]POST finish read [06:02:06]Found Content-Length = 678 [06:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:02:06]execute_script... [06:02: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)412365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:02:06]POST & json_proto [06:02:06]process_json_proto [06:02:06]json parsed OK: [06:02:06]protocol is kg_v1.0 [06:02:06]action value=close_receipt [06:02:06]process_action close_receipt [06:02:06]cmd_close_receipt [06:02:06]MH_GetDate [06:02:06]Write to MH i2c: F0 00 00 34 16 39 [06:02:06]Write i2c OK [06:02:06]MH_I2C_Read... [06:02:06]Read from MH i2c: F0 [06:02:06]MH_I2C_Read... [06:02:06]Read from MH i2c: F0 09 00 [06:02:06]MH_I2C_Read... [06:02:06]Read from MH i2c: F0 09 00 34 16 00 61 C5 B6 67 7E 41 4F 65 F8 [06:02:06]GetLastDocTimeStamp 1740030626 [06:02:06]current date 1740031329 [06:02:06]FM_GetShiftState [06:02:06]SAM_PROTO_GetShiftState [06:02:06]wFMCommunicate request_size=4 [06:02:06]MH_SAM_APDU [06:02:06]CAPDU: 80 13 01 00 [06:02:06]Write to MH i2c: E2 08 00 35 16 80 13 01 00 00 00 00 00 C8 [06:02:06]Write i2c OK [06:02:06]MH_I2C_Read... [06:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:06]Read from MH i2c: E2 [06:02:06]MH_I2C_Read... [06:02:06]Read from MH i2c: E2 0E 00 [06:02:06]MH_I2C_Read... [06:02:06]Read from MH i2c: E2 0E 00 35 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1A [06:02:06]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [06:02:06]wFMCommunicate OK [06:02:06]SAM_PROTO_GetShiftState done [06:02:06]FM_GetShiftState done [06:02:06]opened in 1740011697 [06:02:06]opened+sec_in_day 1740098097 [06:02:06]quantity*price = 200013 [06:02:06]sum+1 = 200014 [06:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 13 20.02.2025 06:02 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187212 ФПД: 116753764396576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T060209&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187212&fm=116753764396576&tin=02508201610067®Number=0000000000091857&sum=200000 [06:02:07]StoreToDocumentArchive [06:02:07]shift 648 fd 187212 [06:02:07]save to /storage/0648/doc_00187212 [06:02:07]save last doc name /storage/0648/doc_00187212 to /storage/kkm_last_doc_name [06:02:07]save OK [06:02:07]Clear old archive folders... [06:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:02:07]tlvbuf is 01F6CF70 [06:02:07]SAM_PROTO_ClearQueue [06:02:07]wFMCommunicate request_size=4 [06:02:07]MH_SAM_APDU [06:02:07]CAPDU: 80 09 00 00 [06:02:07]Write to MH i2c: E2 08 00 42 16 80 09 00 00 00 00 00 00 CA [06:02:07]Write i2c OK [06:02:07]MH_I2C_Read... [06:02:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:02:07]Read from MH i2c: E2 [06:02:07]MH_I2C_Read... [06:02:07]Read from MH i2c: E2 03 00 [06:02:07]MH_I2C_Read... [06:02:07]Read from MH i2c: E2 03 00 42 16 00 90 00 CC [06:02:07]RAPDU: 90 00 [06:02:07]wFMCommunicate OK [06:02:07]SAM_PROTO_ClearQueue done [06:02:07]KKMCreateOFDPacket [06:02:07]OFDProtocolAddRootSTLVToBuf [06:02:07]FM_MakeSignedData [06:02:07]FM_MakeSignedData [06:02:07]SAM_PROTO_SignData [06:02:07]wFMCommunicate request_size=4 [06:02:07]MH_SAM_APDU [06:02:07]CAPDU: 80 0D 01 02 [06:02:07]Write to MH i2c: E2 08 00 43 16 80 0D 01 02 00 00 00 00 D2 [06:02:07]Write i2c OK [06:02:07]MH_I2C_Read... [06:02:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:02:07]Read from MH i2c: E2 [06:02:07]MH_I2C_Read... [06:02:07]Read from MH i2c: E2 03 00 [06:02:07]MH_I2C_Read... [06:02:07]Read from MH i2c: E2 03 00 43 16 00 90 00 CD [06:02:07]RAPDU: 90 00 [06:02:07]wFMCommunicate OK [06:02:07]wFMCommunicate request_size=255 [06:02:07]MH_SAM_APDU [06:02:07]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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 C5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DB 02 00 35 04 06 00 6A 2F DA A7 [06:02:07]Write to MH i2c: E2 02 01 44 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 C5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DB 02 00 35 04 06 00 6A 2F DA A7 00 00 09 [06:02:07]Write i2c OK [06:02:07]MH_I2C_Read... [06:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:08]Read from MH i2c: E2 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: E2 03 00 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [06:02:08]RAPDU: 90 00 [06:02:08]wFMCommunicate OK [06:02:08]wFMCommunicate request_size=7 [06:02:08]MH_SAM_APDU [06:02:08]CAPDU: 80 0D 02 02 02 2E 20 [06:02:08]Write to MH i2c: E2 0A 00 45 16 80 0D 02 02 02 00 2E 20 00 00 27 [06:02:08]Write i2c OK [06:02:08]MH_I2C_Read... [06:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:08]Read from MH i2c: E2 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: E2 03 00 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [06:02:08]RAPDU: 90 00 [06:02:08]wFMCommunicate OK [06:02:08]wFMCommunicate request_size=4 [06:02:08]MH_SAM_APDU [06:02:08]CAPDU: 80 0D 03 02 [06:02:08]Write to MH i2c: E2 08 00 46 16 80 0D 03 02 00 00 00 00 D7 [06:02:08]Write i2c OK [06:02:08]MH_I2C_Read... [06:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:02:08]Read from MH i2c: E2 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: E2 0B 00 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: E2 0B 00 46 16 00 99 46 2C CF 11 CA AE 3D 90 00 78 [06:02:08]RAPDU: 99 46 2C CF 11 CA AE 3D 90 00 [06:02:08]wFMCommunicate OK [06:02:08]SAM_PROTO_SignData done [06:02:08]FM_MakeSignedData done [06:02:08]CreateOFDProtocolMessage [06:02:08]wFMCommunicate request_size=4 [06:02:08]MH_SAM_APDU [06:02:08]CAPDU: 80 11 00 00 [06:02:08]Write to MH i2c: E2 08 00 47 16 80 11 00 00 00 00 00 00 D7 [06:02:08]Write i2c OK [06:02:08]MH_I2C_Read... [06:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:08]Read from MH i2c: E2 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: E2 17 00 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: E2 17 00 47 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [06:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:02:08]wFMCommunicate OK [06:02:08]CreateOFDProtocolMessage done [06:02:08]OFDSenderStorePacket 187212 [06:02:08]StoreOFDPacket docnum=187212 [06:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 85 C3 04 01 6D 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 C5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DB 02 00 35 04 06 00 6A 2F DA A7 2E 20 99 46 2C CF 11 CA AE 3D [06:02:08]CheckFolder [06:02:08]dirname=/storage/ofd_packets [06:02:08]CheckFolder done [06:02:08]ProducePacketName [06:02:08]name=ofd_packets/00187212 [06:02:08]NVStorageSaveData ofd_packets/00187212 [06:02:08]File name is /storage/ofd_packets/00187212 [06:02:08]Write 298 bytes [06:02:08]NVStorageSaveData done [06:02:08]OFDSenderStorePacket done [06:02:08]KKMCreateOFDPacket done [06:02:08]NVStorageSaveData kkm_last_timestamp [06:02:08]File name is /storage/kkm_last_timestamp [06:02:08]Write 4 bytes [06:02:08]NVStorageSaveData done [06:02:08]ExternCall_PrintAddStr [06:02:08]wPrintStart [06:02:08]Write to MH i2c: 01 00 00 48 16 5E [06:02:08]Write i2c OK [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: 01 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: 01 07 00 [06:02:08]MH_I2C_Read... [06:02:08]Read from MH i2c: 01 07 00 48 16 00 00 00 00 00 FF 0F 73 [06:02:08]RasterBufferAndPrint [06:02:08]line Счет N : (1)412365 [06:02:08]line ИНН: 02508201610067 [06:02:08]line Контрольно-Кассовый Чек [06:02:08]line ПРОДАЖА [06:02:08]line ТРК (МРК, ГНК) : 6 [06:02:08]line Товар: 2710194210 [06:02:08]line ДТ-К-5 [06:02:08]line 27.550 * 72.60 [06:02:08]line = 2000.13 [06:02:08]line НДС 12% НСП 1% [06:02:08]line > о реализуемом товаре [06:02:08]line ОКРУГЛЕНИЕ: -0.13 [06:02:08]line ИТОГО: 2000.00 [06:02:08]line Внесено: 2000.00 [06:02:08]line СДАЧА: 0.00 [06:02:08]line НСП 1% : 17.70 [06:02:08]line НДС 12% : 212.40 [06:02:08]line Наличными: 2000.00 [06:02:08]line Безнал.: 0.00 [06:02:08]line Место: АЗС № 92 "Партнер Нефть" [06:02:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:02:08]line СНО: Общий режим [06:02:08]line Чек 13 20.02.2025 06:02 [06:02:08]line Смена: 648 ФФД: 1.0 [06:02:08]line ЗНМ: 0300000118 [06:02:08]line РНМ: 0000000000091857 [06:02:08]line Версия ККМ: 001 [06:02:08]line ФМ: 0000000000871826 [06:02:08]line ФД: 187212 [06:02:08]line ФПД: 116753764396576 [06:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T060209&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187212&fm=116753764396576&tin=02508201610067®Number=0000000000091857&sum=200000 [06:02:08]written 0, free lines is 4095 [06:02:08]OFD Sender: Processing packet 187212 [packets to send 49, broken 48] [06:02:08]ProducePacketName [06:02:08]name=ofd_packets/00187212 [06:02:08]OFD Sender: To server: pG, [06:02:08]CommunicateWithHost lk.salyk.kg:30040 [06:02:08]ConnectInit lk.salyk.kg [06:02:09]Write to MH i2c: 01 00 00 73 16 89 [06:02:09]Write i2c OK [06:02:09]MH_I2C_Read... [06:02:09]Read from MH i2c: 01 [06:02:09]MH_I2C_Read... [06:02:09]Read from MH i2c: 01 07 00 [06:02:09]MH_I2C_Read... [06:02:09]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 E6 0C 82 [06:02:09]RasterBufferAndPrint [06:02:09]line [06:02:09]line [06:02:09]line [06:02:09]line [06:02:09]line [06:02:09]written 0, free lines is 3308 [06:02:09]MH_Cut [06:02:09]Write to MH i2c: D1 01 00 7A 16 01 62 [06:02:09]Write i2c OK [06:02:09]MH_I2C_Read... [06:02:09]Read from MH i2c: D1 [06:02:09]MH_I2C_Read... [06:02:09]Read from MH i2c: D1 01 00 [06:02:09]MH_I2C_Read... [06:02:09]Read from MH i2c: D1 01 00 7A 16 00 61 [06:02:09]Write to MH i2c: 01 00 00 7B 16 91 [06:02:09]Write i2c OK [06:02:09]MH_I2C_Read... [06:02:09]*** Cut start [06:02:09]*** Partial cut [06:02:09]*** CUTSNS_PIN = 1 [06:02:09]*** CUTSNS_PIN = 0 [06:02:10]*** Brake cut motor [06:02:10]Read from MH i2c: 01 [06:02:10]MH_I2C_Read... [06:02:10]*** Stop cut motor [06:02:10]*** Cut end [06:02:10]Read from MH i2c: 01 07 00 [06:02:10]MH_I2C_Read... [06:02:10]Read from MH i2c: 01 07 00 7B 16 00 00 00 00 00 FF 0F A6 [06:02:10]process_action close_receipt done [06:02:10]requested_data is exist [06:02:10]produce_requested_data [06:02:10]requested_item fm.sn is exist - process it [06:02:10]wFMCommunicate request_size=4 [06:02:10]MH_SAM_APDU [06:02:10]CAPDU: 80 11 00 00 [06:02:10]Write to MH i2c: E2 08 00 7C 16 80 11 00 00 00 00 00 00 0C [06:02:10]Write i2c OK [06:02:10]MH_I2C_Read... [06:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:10]Read from MH i2c: E2 [06:02:10]MH_I2C_Read... [06:02:10]Read from MH i2c: E2 17 00 [06:02:10]MH_I2C_Read... [06:02:10]Read from MH i2c: E2 17 00 7C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5F [06:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:02:10]wFMCommunicate OK [06:02:10]requested_item fd.num is exist - process it [06:02:10]SAM_PROTO_GetFieldsCounters [06:02:10]wFMCommunicate request_size=4 [06:02:10]MH_SAM_APDU [06:02:10]CAPDU: 80 13 00 00 [06:02:10]Write to MH i2c: E2 08 00 7D 16 80 13 00 00 00 00 00 00 0F [06:02:10]Write i2c OK [06:02:10]MH_I2C_Read... [06:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:02:10]Read from MH i2c: E2 [06:02:10]MH_I2C_Read... [06:02:10]Read from MH i2c: E2 62 00 [06:02:10]MH_I2C_Read... [06:02:10]Read from MH i2c: E2 62 00 7D 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4C DB 02 00 0E 04 04 00 88 02 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 0F [06:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4C DB 02 00 0E 04 04 00 88 02 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 [06:02:10]wFMCommunicate OK [06:02:10]SAM_PROTO_GetFieldsCounters done [06:02:10]requested_item shift.num is exist - process it [06:02:10]requested_item shift.opened is exist - process it [06:02:10]req_shift_opened [06:02:10]FM_GetShiftState [06:02:10]SAM_PROTO_GetShiftState [06:02:10]wFMCommunicate request_size=4 [06:02:10]MH_SAM_APDU [06:02:10]CAPDU: 80 13 01 00 [06:02:10]Write to MH i2c: E2 08 00 7E 16 80 13 01 00 00 00 00 00 11 [06:02:10]Write i2c OK [06:02:10]MH_I2C_Read... [06:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:10]Read from MH i2c: E2 [06:02:10]MH_I2C_Read... [06:02:10]Read from MH i2c: E2 0E 00 [06:02:10]MH_I2C_Read... [06:02:10]Read from MH i2c: E2 0E 00 7E 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 63 [06:02:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [06:02:10]wFMCommunicate OK [06:02:10]SAM_PROTO_GetShiftState done [06:02:10]FM_GetShiftState done [06:02:10]req_shift_opened done [06:02:10]requested_item shift.open_date is exist - process it [06:02:10]req_shift_open_date [06:02:10]req_shift_open_date done [06:02:10]produce_requested_data done [06:02:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187212,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [06:02:10]process_action_free close_receipt [06:02:10]json_value_free [06:02:10]json_value_free done [06:02:10]process_json_proto returns [06:02:10]Send response to host [06:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187212,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [06:02:10]free response buf [06:02:10]execute_script done [06:02:10]execute_script returns [06:02:10]free content buf [06:02:10]Sock 7.Close socket [06:02:10]Sock 7.Thread stoped [06:04:19]ConnectInit Can't connect to host [06:04:19]CommunicateWithHost connect error [06:04:19]CommunicateWithHost err = -1 [06:04:19]OFD Sender: Server communicate error [06:04:24]OFD Sender: Processing packet 187212 [packets to send 49, broken 48] [06:04:24]ProducePacketName [06:04:24]name=ofd_packets/00187212 [06:04:24]OFD Sender: To server: pG, [06:04:24]CommunicateWithHost lk.salyk.kg:30040 [06:04:24]ConnectInit lk.salyk.kg [06:04:24]Connected sock=7 [06:04:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 85 C3 04 01 6D 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 C5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DB 02 00 35 04 06 00 6A 2F DA A7 2E 20 99 46 2C CF 11 CA AE 3D [06:04:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 19 E1 47 00 F1 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DB 02 00 F4 03 04 00 3B 6C B6 67 B6 04 01 00 00 93 B7 6E 13 5E 5B EE 2F [06:04:24]CommunicateWithHost err = 0 [06:04:24]CheckOFDResponse [06:04:24]1017 (14) - 77093643461234 [06:04:24]1041 (16) - 0000000000871826 [06:04:24]1040 (4) - 187212 [06:04:24]1012 (4) - 19.02.2025 23:41 [06:04:24]1206 (1) - 0 [06:04:24]OFD Sender: Remove packet 187212 [06:04:24]ProducePacketName [06:04:24]name=ofd_packets/00187212 [06:04:24]NVStorageDeleteData [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:35]accept exits with 9 [06:24:35]New connection [06:24:35]New thread 3066654052 created [06:24:35]Thread 3066510692 joined [06:24:35]Waiting for new connection... [06:24:35] Sock 9.Parse request [06:24:35]Sock 9.Check first char [06:24:35]Sock 9.First char is OK [06:24:35]request: POST /json_proto HTTP/1.0 [06:24:35]Method: POST [06:24:35]URL: /json_proto [06:24:35]Method is POST - this is cgi request [06:24:35]url: /json_proto [06:24:35]query_string will be loaded in cgi processing [06:24:35]execute_cgi json_proto POST (null) [06:24:35]execute_cgi path=json_proto method=POST [06:24:35]POST find Content-Length [06:24:35]Host: 172.17.46.131:8080 [06:24:35]Content-Length: 678 [06:24:35]Content-Type: application/json [06:24:35] [06:24:35]POST finish read [06:24:35]Found Content-Length = 678 [06:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 17.910, "sum" : 1300.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:35]execute_script... [06:24: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)412366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 17.910, "sum" : 1300.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:35]POST & json_proto [06:24:35]process_json_proto [06:24:35]json parsed OK: [06:24:35]protocol is kg_v1.0 [06:24:35]action value=close_receipt [06:24:35]process_action close_receipt [06:24:35]cmd_close_receipt [06:24:35]MH_GetDate [06:24:35]Write to MH i2c: F0 00 00 7F 16 84 [06:24:35]Write i2c OK [06:24:35]MH_I2C_Read... [06:24:35]Read from MH i2c: F0 [06:24:35]MH_I2C_Read... [06:24:35]Read from MH i2c: F0 09 00 [06:24:35]MH_I2C_Read... [06:24:35]Read from MH i2c: F0 09 00 7F 16 00 A6 CA B6 67 7E 41 4F 65 8D [06:24:35]GetLastDocTimeStamp 1740031329 [06:24:35]current date 1740032678 [06:24:35]FM_GetShiftState [06:24:35]SAM_PROTO_GetShiftState [06:24:35]wFMCommunicate request_size=4 [06:24:35]MH_SAM_APDU [06:24:35]CAPDU: 80 13 01 00 [06:24:35]Write to MH i2c: E2 08 00 80 16 80 13 01 00 00 00 00 00 13 [06:24:35]Write i2c OK [06:24:35]MH_I2C_Read... [06:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:35]Read from MH i2c: E2 [06:24:35]MH_I2C_Read... [06:24:35]Read from MH i2c: E2 0E 00 [06:24:35]MH_I2C_Read... [06:24:35]Read from MH i2c: E2 0E 00 80 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 65 [06:24:35]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [06:24:35]wFMCommunicate OK [06:24:35]SAM_PROTO_GetShiftState done [06:24:35]FM_GetShiftState done [06:24:35]opened in 1740011697 [06:24:35]opened+sec_in_day 1740098097 [06:24:35]quantity*price = 130026 [06:24:35]sum+1 = 130028 [06:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.08 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 14 20.02.2025 06:24 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187213 ФПД: 44132095032477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T062438&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187213&fm=44132095032477&tin=02508201610067®Number=0000000000091857&sum=130000 [06:24:36]StoreToDocumentArchive [06:24:36]shift 648 fd 187213 [06:24:36]save to /storage/0648/doc_00187213 [06:24:36]save last doc name /storage/0648/doc_00187213 to /storage/kkm_last_doc_name [06:24:36]save OK [06:24:36]Clear old archive folders... [06:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:24:36]tlvbuf is B6E783D0 [06:24:36]SAM_PROTO_ClearQueue [06:24:36]wFMCommunicate request_size=4 [06:24:36]MH_SAM_APDU [06:24:36]CAPDU: 80 09 00 00 [06:24:36]Write to MH i2c: E2 08 00 8D 16 80 09 00 00 00 00 00 00 15 [06:24:36]Write i2c OK [06:24:36]MH_I2C_Read... [06:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:36]Read from MH i2c: E2 [06:24:36]MH_I2C_Read... [06:24:36]Read from MH i2c: E2 03 00 [06:24:36]MH_I2C_Read... [06:24:36]Read from MH i2c: E2 03 00 8D 16 00 90 00 17 [06:24:36]RAPDU: 90 00 [06:24:36]wFMCommunicate OK [06:24:36]SAM_PROTO_ClearQueue done [06:24:36]KKMCreateOFDPacket [06:24:36]OFDProtocolAddRootSTLVToBuf [06:24:36]FM_MakeSignedData [06:24:36]FM_MakeSignedData [06:24:36]SAM_PROTO_SignData [06:24:36]wFMCommunicate request_size=4 [06:24:36]MH_SAM_APDU [06:24:36]CAPDU: 80 0D 01 02 [06:24:36]Write to MH i2c: E2 08 00 8E 16 80 0D 01 02 00 00 00 00 1D [06:24:36]Write i2c OK [06:24:36]MH_I2C_Read... [06:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:36]Read from MH i2c: E2 [06:24:36]MH_I2C_Read... [06:24:36]Read from MH i2c: E2 03 00 [06:24:36]MH_I2C_Read... [06:24:36]Read from MH i2c: E2 03 00 8E 16 00 90 00 18 [06:24:36]RAPDU: 90 00 [06:24:36]wFMCommunicate OK [06:24:36]wFMCommunicate request_size=255 [06:24:36]MH_SAM_APDU [06:24: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 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A6 CA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DB 02 00 35 04 06 00 28 23 4D D8 [06:24:36]Write to MH i2c: E2 02 01 8F 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A6 CA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DB 02 00 35 04 06 00 28 23 4D D8 00 00 18 [06:24:36]Write i2c OK [06:24:36]MH_I2C_Read... [06:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:37]Read from MH i2c: E2 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: E2 03 00 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: E2 03 00 8F 16 00 90 00 19 [06:24:37]RAPDU: 90 00 [06:24:37]wFMCommunicate OK [06:24:37]wFMCommunicate request_size=7 [06:24:37]MH_SAM_APDU [06:24:37]CAPDU: 80 0D 02 02 02 FC 9D [06:24:37]Write to MH i2c: E2 0A 00 90 16 80 0D 02 02 02 00 FC 9D 00 00 BD [06:24:37]Write i2c OK [06:24:37]MH_I2C_Read... [06:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:37]Read from MH i2c: E2 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: E2 03 00 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [06:24:37]RAPDU: 90 00 [06:24:37]wFMCommunicate OK [06:24:37]wFMCommunicate request_size=4 [06:24:37]MH_SAM_APDU [06:24:37]CAPDU: 80 0D 03 02 [06:24:37]Write to MH i2c: E2 08 00 91 16 80 0D 03 02 00 00 00 00 22 [06:24:37]Write i2c OK [06:24:37]MH_I2C_Read... [06:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:37]Read from MH i2c: E2 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: E2 0B 00 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: E2 0B 00 91 16 00 BF 5C A8 FA 76 45 59 9C 90 00 90 [06:24:37]RAPDU: BF 5C A8 FA 76 45 59 9C 90 00 [06:24:37]wFMCommunicate OK [06:24:37]SAM_PROTO_SignData done [06:24:37]FM_MakeSignedData done [06:24:37]CreateOFDProtocolMessage [06:24:37]wFMCommunicate request_size=4 [06:24:37]MH_SAM_APDU [06:24:37]CAPDU: 80 11 00 00 [06:24:37]Write to MH i2c: E2 08 00 92 16 80 11 00 00 00 00 00 00 22 [06:24:37]Write i2c OK [06:24:37]MH_I2C_Read... [06:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:37]Read from MH i2c: E2 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: E2 17 00 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: E2 17 00 92 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 75 [06:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:24:37]wFMCommunicate OK [06:24:37]CreateOFDProtocolMessage done [06:24:37]OFDSenderStorePacket 187213 [06:24:37]StoreOFDPacket docnum=187213 [06:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 CF 15 04 01 7A A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A6 CA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DB 02 00 35 04 06 00 28 23 4D D8 FC 9D BF 5C A8 FA 76 45 59 9C [06:24:37]CheckFolder [06:24:37]dirname=/storage/ofd_packets [06:24:37]CheckFolder done [06:24:37]ProducePacketName [06:24:37]name=ofd_packets/00187213 [06:24:37]NVStorageSaveData ofd_packets/00187213 [06:24:37]File name is /storage/ofd_packets/00187213 [06:24:37]Write 298 bytes [06:24:37]NVStorageSaveData done [06:24:37]OFDSenderStorePacket done [06:24:37]KKMCreateOFDPacket done [06:24:37]NVStorageSaveData kkm_last_timestamp [06:24:37]File name is /storage/kkm_last_timestamp [06:24:37]Write 4 bytes [06:24:37]NVStorageSaveData done [06:24:37]ExternCall_PrintAddStr [06:24:37]wPrintStart [06:24:37]Write to MH i2c: 01 00 00 93 16 A9 [06:24:37]Write i2c OK [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: 01 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: 01 07 00 [06:24:37]MH_I2C_Read... [06:24:37]Read from MH i2c: 01 07 00 93 16 00 00 00 00 00 FF 0F BE [06:24:37]RasterBufferAndPrint [06:24:37]line Счет N : (1)412366 [06:24:37]line ИНН: 02508201610067 [06:24:37]line Контрольно-Кассовый Чек [06:24:37]line ПРОДАЖА [06:24:37]line ТРК (МРК, ГНК) : 5 [06:24:37]line Товар: 2710194210 [06:24:37]line ДТ-К-5 [06:24:37]line 17.910 * 72.60 [06:24:37]line = 1300.27 [06:24:37]line НДС 12% НСП 1% [06:24:37]line > о реализуемом товаре [06:24:37]line ОКРУГЛЕНИЕ: -0.27 [06:24:37]line ИТОГО: 1300.00 [06:24:37]line Внесено: 1300.00 [06:24:37]line СДАЧА: 0.00 [06:24:37]line НСП 1% : 11.51 [06:24:37]line НДС 12% : 138.08 [06:24:37]line Наличными: 1300.00 [06:24:37]line Безнал.: 0.00 [06:24:37]line Место: АЗС № 92 "Партнер Нефть" [06:24:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:24:37]line СНО: Общий режим [06:24:37]line Чек 14 20.02.2025 06:24 [06:24:37]line Смена: 648 ФФД: 1.0 [06:24:37]line ЗНМ: 0300000118 [06:24:37]line РНМ: 0000000000091857 [06:24:37]line Версия ККМ: 001 [06:24:37]line ФМ: 0000000000871826 [06:24:37]line ФД: 187213 [06:24:37]line ФПД: 44132095032477 [06:24:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T062438&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187213&fm=44132095032477&tin=02508201610067®Number=0000000000091857&sum=130000 [06:24:37]OFD Sender: Processing packet 187213 [packets to send 49, broken 48] [06:24:37]ProducePacketName [06:24:37]name=ofd_packets/00187213 [06:24:37]OFD Sender: To server: pG, [06:24:37]CommunicateWithHost lk.salyk.kg:30040 [06:24:37]ConnectInit lk.salyk.kg [06:24:37]written 0, free lines is 4095 [06:24:37]Connected sock=10 [06:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 CF 15 04 01 7A A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A6 CA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DB 02 00 35 04 06 00 28 23 4D D8 FC 9D BF 5C A8 FA 76 45 59 9C [06:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D0 C5 47 00 F0 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DB 02 00 F4 03 04 00 F8 70 B6 67 B6 04 01 00 00 C2 73 22 5E F5 53 ED 76 [06:24:38]CommunicateWithHost err = 0 [06:24:38]CheckOFDResponse [06:24:38]1017 (14) - 77093643461234 [06:24:38]1041 (16) - 0000000000871826 [06:24:38]1040 (4) - 187213 [06:24:38]1012 (4) - 20.02.2025 00:02 [06:24:38]1206 (1) - 0 [06:24:38]OFD Sender: Remove packet 187213 [06:24:38]ProducePacketName [06:24:38]name=ofd_packets/00187213 [06:24:38]NVStorageDeleteData [06:24:38]Write to MH i2c: 01 00 00 BE 16 D4 [06:24:38]Write i2c OK [06:24:38]MH_I2C_Read... [06:24:38]Read from MH i2c: 01 [06:24:38]MH_I2C_Read... [06:24:38]Read from MH i2c: 01 07 00 [06:24:38]MH_I2C_Read... [06:24:38]Read from MH i2c: 01 07 00 BE 16 00 00 00 00 00 F6 0C DD [06:24:38]RasterBufferAndPrint [06:24:38]line [06:24:38]line [06:24:38]line [06:24:38]line [06:24:38]line [06:24:38]written 0, free lines is 3324 [06:24:38]MH_Cut [06:24:38]Write to MH i2c: D1 01 00 C5 16 01 AD [06:24:38]Write i2c OK [06:24:38]MH_I2C_Read... [06:24:38]Read from MH i2c: D1 [06:24:38]MH_I2C_Read... [06:24:38]Read from MH i2c: D1 01 00 [06:24:38]MH_I2C_Read... [06:24:38]Read from MH i2c: D1 01 00 C5 16 00 AC [06:24:38]Write to MH i2c: 01 00 00 C6 16 DC [06:24:38]Write i2c OK [06:24:38]MH_I2C_Read... [06:24:38]OFD Sender: No OFD packet to send [06:24:38]*** Cut start [06:24:38]*** Partial cut [06:24:38]*** CUTSNS_PIN = 1 [06:24:38]*** CUTSNS_PIN = 0 [06:24:39]*** Brake cut motor [06:24:39]Read from MH i2c: 01 [06:24:39]MH_I2C_Read... [06:24:39]*** Stop cut motor [06:24:39]*** Cut end [06:24:39]Read from MH i2c: 01 07 00 [06:24:39]MH_I2C_Read... [06:24:39]Read from MH i2c: 01 07 00 C6 16 00 00 00 00 00 FF 0F F1 [06:24:39]process_action close_receipt done [06:24:39]requested_data is exist [06:24:39]produce_requested_data [06:24:39]requested_item fm.sn is exist - process it [06:24:39]wFMCommunicate request_size=4 [06:24:39]MH_SAM_APDU [06:24:39]CAPDU: 80 11 00 00 [06:24:39]Write to MH i2c: E2 08 00 C7 16 80 11 00 00 00 00 00 00 57 [06:24:39]Write i2c OK [06:24:39]MH_I2C_Read... [06:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:39]Read from MH i2c: E2 [06:24:39]MH_I2C_Read... [06:24:39]Read from MH i2c: E2 17 00 [06:24:39]MH_I2C_Read... [06:24:39]Read from MH i2c: E2 17 00 C7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AA [06:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:24:39]wFMCommunicate OK [06:24:39]requested_item fd.num is exist - process it [06:24:39]SAM_PROTO_GetFieldsCounters [06:24:39]wFMCommunicate request_size=4 [06:24:39]MH_SAM_APDU [06:24:39]CAPDU: 80 13 00 00 [06:24:39]Write to MH i2c: E2 08 00 C8 16 80 13 00 00 00 00 00 00 5A [06:24:39]Write i2c OK [06:24:39]MH_I2C_Read... [06:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:39]Read from MH i2c: E2 [06:24:39]MH_I2C_Read... [06:24:39]Read from MH i2c: E2 62 00 [06:24:39]MH_I2C_Read... [06:24:39]Read from MH i2c: E2 62 00 C8 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4D DB 02 00 0E 04 04 00 88 02 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 5E [06:24:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4D DB 02 00 0E 04 04 00 88 02 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 [06:24:39]wFMCommunicate OK [06:24:39]SAM_PROTO_GetFieldsCounters done [06:24:39]requested_item shift.num is exist - process it [06:24:39]requested_item shift.opened is exist - process it [06:24:39]req_shift_opened [06:24:39]FM_GetShiftState [06:24:39]SAM_PROTO_GetShiftState [06:24:39]wFMCommunicate request_size=4 [06:24:39]MH_SAM_APDU [06:24:39]CAPDU: 80 13 01 00 [06:24:39]Write to MH i2c: E2 08 00 C9 16 80 13 01 00 00 00 00 00 5C [06:24:39]Write i2c OK [06:24:39]MH_I2C_Read... [06:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:39]Read from MH i2c: E2 [06:24:39]MH_I2C_Read... [06:24:39]Read from MH i2c: E2 0E 00 [06:24:39]MH_I2C_Read... [06:24:39]Read from MH i2c: E2 0E 00 C9 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AE [06:24:39]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [06:24:39]wFMCommunicate OK [06:24:39]SAM_PROTO_GetShiftState done [06:24:39]FM_GetShiftState done [06:24:39]req_shift_opened done [06:24:39]requested_item shift.open_date is exist - process it [06:24:39]req_shift_open_date [06:24:39]req_shift_open_date done [06:24:39]produce_requested_data done [06:24:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187213,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [06:24:39]process_action_free close_receipt [06:24:39]json_value_free [06:24:39]json_value_free done [06:24:39]process_json_proto returns [06:24:39]Send response to host [06:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187213,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [06:24:39]free response buf [06:24:39]execute_script done [06:24:39]execute_script returns [06:24:39]free content buf [06:24:39]Sock 9.Close socket [06:24:39]Sock 9.Thread stoped [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]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:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48: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:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52: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:13]accept exits with 7 [07:02:13]New connection [07:02:13]New thread 3066510692 created [07:02:13]Thread 3066654052 joined [07:02:13]Waiting for new connection... [07:02:13] Sock 7.Parse request [07:02:13]Sock 7.Check first char [07:02:13]Sock 7.First char is OK [07:02:13]request: POST /json_proto HTTP/1.0 [07:02:13]Method: POST [07:02:13]URL: /json_proto [07:02:13]Method is POST - this is cgi request [07:02:13]url: /json_proto [07:02:13]query_string will be loaded in cgi processing [07:02:13]execute_cgi json_proto POST (null) [07:02:13]execute_cgi path=json_proto method=POST [07:02:13]POST find Content-Length [07:02:13]Host: 172.17.46.131:8080 [07:02:13]Content-Length: 677 [07:02:13]Content-Type: application/json [07:02:13] [07:02:13]POST finish read [07:02:13]Found Content-Length = 677 [07:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [07:02:13]execute_script... [07:02: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)412367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [07:02:13]POST & json_proto [07:02:13]process_json_proto [07:02:13]json parsed OK: [07:02:13]protocol is kg_v1.0 [07:02:13]action value=close_receipt [07:02:13]process_action close_receipt [07:02:13]cmd_close_receipt [07:02:13]MH_GetDate [07:02:13]Write to MH i2c: F0 00 00 CA 16 CF [07:02:13]Write i2c OK [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: F0 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: F0 09 00 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: F0 09 00 CA 16 00 78 D3 B6 67 7E 41 4F 65 B3 [07:02:13]GetLastDocTimeStamp 1740032678 [07:02:13]current date 1740034936 [07:02:13]FM_GetShiftState [07:02:13]SAM_PROTO_GetShiftState [07:02:13]wFMCommunicate request_size=4 [07:02:13]MH_SAM_APDU [07:02:13]CAPDU: 80 13 01 00 [07:02:13]Write to MH i2c: E2 08 00 CB 16 80 13 01 00 00 00 00 00 5E [07:02:13]Write i2c OK [07:02:13]MH_I2C_Read... [07:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:13]Read from MH i2c: E2 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: E2 0E 00 [07:02:13]MH_I2C_Read... [07:02:13]Read from MH i2c: E2 0E 00 CB 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B0 [07:02:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [07:02:13]wFMCommunicate OK [07:02:13]SAM_PROTO_GetShiftState done [07:02:13]FM_GetShiftState done [07:02:13]opened in 1740011697 [07:02:13]opened+sec_in_day 1740098097 [07:02:13]quantity*price = 50042 [07:02:13]sum+1 = 50043 [07:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 15 20.02.2025 07:02 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187214 ФПД: 156829386391217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T070216&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187214&fm=156829386391217&tin=02508201610067®Number=0000000000091857&sum=50000 [07:02:14]StoreToDocumentArchive [07:02:14]shift 648 fd 187214 [07:02:14]save to /storage/0648/doc_00187214 [07:02:14]save last doc name /storage/0648/doc_00187214 to /storage/kkm_last_doc_name [07:02:14]save OK [07:02:14]Clear old archive folders... [07:02:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:02:14]tlvbuf is 01FA9D50 [07:02:14]SAM_PROTO_ClearQueue [07:02:14]wFMCommunicate request_size=4 [07:02:14]MH_SAM_APDU [07:02:14]CAPDU: 80 09 00 00 [07:02:14]Write to MH i2c: E2 08 00 D8 16 80 09 00 00 00 00 00 00 60 [07:02:14]Write i2c OK [07:02:14]MH_I2C_Read... [07:02:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:14]Read from MH i2c: E2 [07:02:14]MH_I2C_Read... [07:02:14]Read from MH i2c: E2 03 00 [07:02:14]MH_I2C_Read... [07:02:14]Read from MH i2c: E2 03 00 D8 16 00 90 00 62 [07:02:14]RAPDU: 90 00 [07:02:14]wFMCommunicate OK [07:02:14]SAM_PROTO_ClearQueue done [07:02:14]KKMCreateOFDPacket [07:02:14]OFDProtocolAddRootSTLVToBuf [07:02:14]FM_MakeSignedData [07:02:14]FM_MakeSignedData [07:02:14]SAM_PROTO_SignData [07:02:14]wFMCommunicate request_size=4 [07:02:14]MH_SAM_APDU [07:02:14]CAPDU: 80 0D 01 02 [07:02:14]Write to MH i2c: E2 08 00 D9 16 80 0D 01 02 00 00 00 00 68 [07:02:14]Write i2c OK [07:02:14]MH_I2C_Read... [07:02:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:14]Read from MH i2c: E2 [07:02:14]MH_I2C_Read... [07:02:14]Read from MH i2c: E2 03 00 [07:02:14]MH_I2C_Read... [07:02:14]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [07:02:14]RAPDU: 90 00 [07:02:14]wFMCommunicate OK [07:02:14]wFMCommunicate request_size=255 [07:02:14]MH_SAM_APDU [07:02: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 0F 00 00 00 F4 03 04 00 78 D3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DB 02 00 35 04 06 00 8E [07:02:14]Write to MH i2c: E2 02 01 DA 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0F 00 00 00 F4 03 04 00 78 D3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DB 02 00 35 04 06 00 8E 00 00 A7 [07:02:14]Write i2c OK [07:02:14]MH_I2C_Read... [07:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:15]Read from MH i2c: E2 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 03 00 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [07:02:15]RAPDU: 90 00 [07:02:15]wFMCommunicate OK [07:02:15]wFMCommunicate request_size=10 [07:02:15]MH_SAM_APDU [07:02:15]CAPDU: 80 0D 02 02 05 A2 AF DD BE B1 [07:02:15]Write to MH i2c: E2 0D 00 DB 16 80 0D 02 02 05 00 A2 AF DD BE B1 00 00 12 [07:02:15]Write i2c OK [07:02:15]MH_I2C_Read... [07:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:15]Read from MH i2c: E2 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 03 00 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [07:02:15]RAPDU: 90 00 [07:02:15]wFMCommunicate OK [07:02:15]wFMCommunicate request_size=4 [07:02:15]MH_SAM_APDU [07:02:15]CAPDU: 80 0D 03 02 [07:02:15]Write to MH i2c: E2 08 00 DC 16 80 0D 03 02 00 00 00 00 6D [07:02:15]Write i2c OK [07:02:15]MH_I2C_Read... [07:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:15]Read from MH i2c: E2 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 0B 00 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 0B 00 DC 16 00 01 2C 33 22 A4 21 FE FE 90 00 B1 [07:02:15]RAPDU: 01 2C 33 22 A4 21 FE FE 90 00 [07:02:15]wFMCommunicate OK [07:02:15]SAM_PROTO_SignData done [07:02:15]FM_MakeSignedData done [07:02:15]CreateOFDProtocolMessage [07:02:15]wFMCommunicate request_size=4 [07:02:15]MH_SAM_APDU [07:02:15]CAPDU: 80 11 00 00 [07:02:15]Write to MH i2c: E2 08 00 DD 16 80 11 00 00 00 00 00 00 6D [07:02:15]Write i2c OK [07:02:15]MH_I2C_Read... [07:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:15]Read from MH i2c: E2 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 17 00 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: E2 17 00 DD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [07:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:02:15]wFMCommunicate OK [07:02:15]CreateOFDProtocolMessage done [07:02:15]OFDSenderStorePacket 187214 [07:02:15]StoreOFDPacket docnum=187214 [07:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 07 95 07 01 1E 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0F 00 00 00 F4 03 04 00 78 D3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DB 02 00 35 04 06 00 8E A2 AF DD BE B1 01 2C 33 22 A4 21 FE FE [07:02:15]CheckFolder [07:02:15]dirname=/storage/ofd_packets [07:02:15]CheckFolder done [07:02:15]ProducePacketName [07:02:15]name=ofd_packets/00187214 [07:02:15]NVStorageSaveData ofd_packets/00187214 [07:02:15]File name is /storage/ofd_packets/00187214 [07:02:15]Write 301 bytes [07:02:15]NVStorageSaveData done [07:02:15]OFDSenderStorePacket done [07:02:15]KKMCreateOFDPacket done [07:02:15]NVStorageSaveData kkm_last_timestamp [07:02:15]File name is /storage/kkm_last_timestamp [07:02:15]Write 4 bytes [07:02:15]NVStorageSaveData done [07:02:15]ExternCall_PrintAddStr [07:02:15]wPrintStart [07:02:15]Write to MH i2c: 01 00 00 DE 16 F4 [07:02:15]Write i2c OK [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: 01 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: 01 07 00 [07:02:15]MH_I2C_Read... [07:02:15]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 FF 0F 09 [07:02:15]RasterBufferAndPrint [07:02:15]line Счет N : (1)412367 [07:02:15]line ИНН: 02508201610067 [07:02:15]line Контрольно-Кассовый Чек [07:02:15]line ПРОДАЖА [07:02:15]line ТРК (МРК, ГНК) : 23 [07:02:15]line Товар: 2710124500 [07:02:15]line Аи-95-К-5 [07:02:15]line 6.960 * 71.90 [07:02:15]line = 500.42 [07:02:15]line НДС 12% НСП 1% [07:02:15]line > о реализуемом товаре [07:02:15]line ОКРУГЛЕНИЕ: -0.42 [07:02:15]line ИТОГО: 500.00 [07:02:15]line Внесено: 500.00 [07:02:15]line СДАЧА: 0.00 [07:02:15]line НСП 1% : 4.43 [07:02:15]line НДС 12% : 53.14 [07:02:15]line Наличными: 500.00 [07:02:15]line Безнал.: 0.00 [07:02:15]line Место: АЗС № 92 "Партнер Нефть" [07:02:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:02:15]line СНО: Общий режим [07:02:15]line Чек 15 20.02.2025 07:02 [07:02:15]line Смена: 648 ФФД: 1.0 [07:02:15]line ЗНМ: 0300000118 [07:02:15]line РНМ: 0000000000091857 [07:02:15]line Версия ККМ: 001 [07:02:15]line ФМ: 0000000000871826 [07:02:15]line ФД: 187214 [07:02:15]line ФПД: 156829386391217 [07:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T070216&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187214&fm=156829386391217&tin=02508201610067®Number=0000000000091857&sum=50000 [07:02:15]written 0, free lines is 4095 [07:02:15]OFD Sender: Processing packet 187214 [packets to send 49, broken 48] [07:02:15]ProducePacketName [07:02:15]name=ofd_packets/00187214 [07:02:15]OFD Sender: To server: pG, [07:02:15]CommunicateWithHost lk.salyk.kg:30040 [07:02:15]ConnectInit lk.salyk.kg [07:02:15]Connected sock=10 [07:02:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 07 95 07 01 1E 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0F 00 00 00 F4 03 04 00 78 D3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DB 02 00 35 04 06 00 8E A2 AF DD BE B1 01 2C 33 22 A4 21 FE FE [07:02:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 03 97 47 00 E8 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 31 38 32 36 10 04 04 00 4E DB 02 00 F4 03 04 00 CA 79 B6 67 B6 04 01 00 00 4E 75 52 81 74 D2 60 EB [07:02:15]CommunicateWithHost err = 0 [07:02:15]CheckOFDResponse [07:02:15]1017 (14) - 77093643461234 [07:02:15]1041 (16) - 0000000000871826 [07:02:15]1040 (4) - 187214 [07:02:15]1012 (4) - 20.02.2025 00:39 [07:02:15]1206 (1) - 0 [07:02:15]OFD Sender: Remove packet 187214 [07:02:15]ProducePacketName [07:02:15]name=ofd_packets/00187214 [07:02:15]NVStorageDeleteData [07:02:16]Write to MH i2c: 01 00 00 09 17 20 [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: 01 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: 01 07 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: 01 07 00 09 17 00 00 00 00 00 E5 0C 18 [07:02:16]RasterBufferAndPrint [07:02:16]line [07:02:16]line [07:02:16]line [07:02:16]line [07:02:16]line [07:02:16]written 0, free lines is 3307 [07:02:16]MH_Cut [07:02:16]Write to MH i2c: D1 01 00 10 17 01 F9 [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: D1 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: D1 01 00 [07:02:16]MH_I2C_Read... [07:02:16]Read from MH i2c: D1 01 00 10 17 00 F8 [07:02:16]Write to MH i2c: 01 00 00 11 17 28 [07:02:16]Write i2c OK [07:02:16]MH_I2C_Read... [07:02:16]OFD Sender: No OFD packet to send [07:02:16]*** Cut start [07:02:16]*** Partial cut [07:02:16]*** CUTSNS_PIN = 1 [07:02:16]*** CUTSNS_PIN = 0 [07:02:17]*** Brake cut motor [07:02:17]Read from MH i2c: 01 [07:02:17]MH_I2C_Read... [07:02:17]*** Stop cut motor [07:02:17]*** Cut end [07:02:17]Read from MH i2c: 01 07 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: 01 07 00 11 17 00 00 00 00 00 FF 0F 3D [07:02:17]process_action close_receipt done [07:02:17]requested_data is exist [07:02:17]produce_requested_data [07:02:17]requested_item fm.sn is exist - process it [07:02:17]wFMCommunicate request_size=4 [07:02:17]MH_SAM_APDU [07:02:17]CAPDU: 80 11 00 00 [07:02:17]Write to MH i2c: E2 08 00 12 17 80 11 00 00 00 00 00 00 A3 [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:17]Read from MH i2c: E2 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 17 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 17 00 12 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F6 [07:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:02:17]wFMCommunicate OK [07:02:17]requested_item fd.num is exist - process it [07:02:17]SAM_PROTO_GetFieldsCounters [07:02:17]wFMCommunicate request_size=4 [07:02:17]MH_SAM_APDU [07:02:17]CAPDU: 80 13 00 00 [07:02:17]Write to MH i2c: E2 08 00 13 17 80 13 00 00 00 00 00 00 A6 [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:17]Read from MH i2c: E2 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 62 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 62 00 13 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4E DB 02 00 0E 04 04 00 88 02 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 AE [07:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4E DB 02 00 0E 04 04 00 88 02 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 [07:02:17]wFMCommunicate OK [07:02:17]SAM_PROTO_GetFieldsCounters done [07:02:17]requested_item shift.num is exist - process it [07:02:17]requested_item shift.opened is exist - process it [07:02:17]req_shift_opened [07:02:17]FM_GetShiftState [07:02:17]SAM_PROTO_GetShiftState [07:02:17]wFMCommunicate request_size=4 [07:02:17]MH_SAM_APDU [07:02:17]CAPDU: 80 13 01 00 [07:02:17]Write to MH i2c: E2 08 00 14 17 80 13 01 00 00 00 00 00 A8 [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:17]Read from MH i2c: E2 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 0E 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 0E 00 14 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FA [07:02:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [07:02:17]wFMCommunicate OK [07:02:17]SAM_PROTO_GetShiftState done [07:02:17]FM_GetShiftState done [07:02:17]req_shift_opened done [07:02:17]requested_item shift.open_date is exist - process it [07:02:17]req_shift_open_date [07:02:17]req_shift_open_date done [07:02:17]produce_requested_data done [07:02:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187214,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [07:02:17]process_action_free close_receipt [07:02:17]json_value_free [07:02:17]json_value_free done [07:02:17]process_json_proto returns [07:02:17]Send response to host [07:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187214,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [07:02:17]free response buf [07:02:17]execute_script done [07:02:17]execute_script returns [07:02:17]free content buf [07:02:17]Sock 7.Close socket [07:02:17]Sock 7.Thread stoped [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]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:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07: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:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:25]accept exits with 9 [07:57:25]New connection [07:57:25]New thread 3066654052 created [07:57:25]Thread 3066510692 joined [07:57:25]Waiting for new connection... [07:57:25] Sock 9.Parse request [07:57:25]Sock 9.Check first char [07:57:25]Sock 9.First char is OK [07:57:25]request: POST /json_proto HTTP/1.0 [07:57:25]Method: POST [07:57:25]URL: /json_proto [07:57:25]Method is POST - this is cgi request [07:57:25]url: /json_proto [07:57:25]query_string will be loaded in cgi processing [07:57:25]execute_cgi json_proto POST (null) [07:57:25]execute_cgi path=json_proto method=POST [07:57:25]POST find Content-Length [07:57:25]Host: 172.17.46.131:8080 [07:57:25]Content-Length: 799 [07:57:25]Content-Type: application/json [07:57:25] [07:57:25]POST finish read [07:57:25]Found Content-Length = 799 [07:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A417592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:25]execute_script... [07:57:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A417592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:25]POST & json_proto [07:57:25]process_json_proto [07:57:25]json parsed OK: [07:57:25]protocol is kg_v1.0 [07:57:25]action value=close_receipt [07:57:25]process_action close_receipt [07:57:25]cmd_close_receipt [07:57:25]MH_GetDate [07:57:25]Write to MH i2c: F0 00 00 15 17 1B [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: F0 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: F0 09 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: F0 09 00 15 17 00 68 E0 B6 67 7E 41 4F 65 FC [07:57:25]GetLastDocTimeStamp 1740034936 [07:57:25]current date 1740038248 [07:57:25]FM_GetShiftState [07:57:25]SAM_PROTO_GetShiftState [07:57:25]wFMCommunicate request_size=4 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 13 01 00 [07:57:25]Write to MH i2c: E2 08 00 16 17 80 13 01 00 00 00 00 00 AA [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 0E 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 0E 00 16 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FC [07:57:25]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [07:57:25]wFMCommunicate OK [07:57:25]SAM_PROTO_GetShiftState done [07:57:25]FM_GetShiftState done [07:57:25]opened in 1740011697 [07:57:25]opened+sec_in_day 1740098097 [07:57:25]quantity*price = 0 [07:57:25]sum+1 = 1 [07:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 16 20.02.2025 07:57 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 417592 ФМ: 0000000000871826 ФД: 187215 ФПД: 21975576488410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T075728&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187215&fm=21975576488410&tin=02508201610067®Number=0000000000091857&sum=0 [07:57:26]StoreToDocumentArchive [07:57:26]shift 648 fd 187215 [07:57:26]save to /storage/0648/doc_00187215 [07:57:26]save last doc name /storage/0648/doc_00187215 to /storage/kkm_last_doc_name [07:57:26]save OK [07:57:26]Clear old archive folders... [07:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:26]tlvbuf is 01FA9C30 [07:57:26]SAM_PROTO_ClearQueue [07:57:26]wFMCommunicate request_size=4 [07:57:26]MH_SAM_APDU [07:57:26]CAPDU: 80 09 00 00 [07:57:26]Write to MH i2c: E2 08 00 23 17 80 09 00 00 00 00 00 00 AC [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 23 17 00 90 00 AE [07:57:26]RAPDU: 90 00 [07:57:26]wFMCommunicate OK [07:57:26]SAM_PROTO_ClearQueue done [07:57:26]KKMCreateOFDPacket [07:57:26]OFDProtocolAddRootSTLVToBuf [07:57:26]FM_MakeSignedData [07:57:26]FM_MakeSignedData [07:57:26]SAM_PROTO_SignData [07:57:26]wFMCommunicate request_size=4 [07:57:26]MH_SAM_APDU [07:57:26]CAPDU: 80 0D 01 02 [07:57:26]Write to MH i2c: E2 08 00 24 17 80 0D 01 02 00 00 00 00 B4 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 24 17 00 90 00 AF [07:57:26]RAPDU: 90 00 [07:57:26]wFMCommunicate OK [07:57:26]wFMCommunicate request_size=255 [07:57:26]MH_SAM_APDU [07:57: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 68 E0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DB 02 00 35 04 06 00 13 [07:57:26]Write to MH i2c: E2 02 01 25 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 68 E0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DB 02 00 35 04 06 00 13 00 00 6C [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 25 17 00 90 00 B0 [07:57:26]RAPDU: 90 00 [07:57:26]wFMCommunicate OK [07:57:26]wFMCommunicate request_size=10 [07:57:26]MH_SAM_APDU [07:57:26]CAPDU: 80 0D 02 02 05 FC 96 6E 29 DA [07:57:26]Write to MH i2c: E2 0D 00 26 17 80 0D 02 02 05 00 FC 96 6E 29 DA 00 00 C4 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 26 17 00 90 00 B1 [07:57:26]RAPDU: 90 00 [07:57:26]wFMCommunicate OK [07:57:26]wFMCommunicate request_size=4 [07:57:26]MH_SAM_APDU [07:57:26]CAPDU: 80 0D 03 02 [07:57:26]Write to MH i2c: E2 08 00 27 17 80 0D 03 02 00 00 00 00 B9 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 0B 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 0B 00 27 17 00 C9 BC 45 18 6C 78 B2 28 90 00 5A [07:57:26]RAPDU: C9 BC 45 18 6C 78 B2 28 90 00 [07:57:26]wFMCommunicate OK [07:57:26]SAM_PROTO_SignData done [07:57:26]FM_MakeSignedData done [07:57:26]CreateOFDProtocolMessage [07:57:26]wFMCommunicate request_size=4 [07:57:26]MH_SAM_APDU [07:57:26]CAPDU: 80 11 00 00 [07:57:26]Write to MH i2c: E2 08 00 28 17 80 11 00 00 00 00 00 00 B9 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 17 00 [07:57:26]MH_I2C_Read... [07:57:26]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 31 38 32 36 90 00 0C [07:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:57:26]wFMCommunicate OK [07:57:26]CreateOFDProtocolMessage done [07:57:26]OFDSenderStorePacket 187215 [07:57:26]StoreOFDPacket docnum=187215 [07:57:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D2 E0 07 01 C9 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 68 E0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DB 02 00 35 04 06 00 13 FC 96 6E 29 DA C9 BC 45 18 6C 78 B2 28 [07:57:26]CheckFolder [07:57:26]dirname=/storage/ofd_packets [07:57:26]CheckFolder done [07:57:26]ProducePacketName [07:57:26]name=ofd_packets/00187215 [07:57:26]NVStorageSaveData ofd_packets/00187215 [07:57:26]File name is /storage/ofd_packets/00187215 [07:57:26]Write 301 bytes [07:57:26]NVStorageSaveData done [07:57:26]OFDSenderStorePacket done [07:57:26]KKMCreateOFDPacket done [07:57:26]NVStorageSaveData kkm_last_timestamp [07:57:26]File name is /storage/kkm_last_timestamp [07:57:26]Write 4 bytes [07:57:26]NVStorageSaveData done [07:57:26]ExternCall_PrintAddStr [07:57:26]wPrintStart [07:57:26]Write to MH i2c: 01 00 00 29 17 40 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 07 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 07 00 29 17 00 00 00 00 00 FF 0F 55 [07:57:26]RasterBufferAndPrint [07:57:26]line Счет N : (1)412368 [07:57:26]line ИНН: 02508201610067 [07:57:26]line Контрольно-Кассовый Чек [07:57:26]line ПРОДАЖА [07:57:26]line ТРК (МРК, ГНК) : 42 [07:57:26]line Товар: 2710124130 [07:57:26]line Аи-92-К-2 [07:57:26]line 20.000 * 0.00 [07:57:26]line = 0.00 [07:57:26]line НДС 12% НСП 1% [07:57:26]line > о реализуемом товаре [07:57:26]line ИТОГО: 0.00 [07:57:26]line НСП 1% : 0.00 [07:57:26]line НДС 12% : 0.00 [07:57:26]line Наличными: 0.00 [07:57:26]line Безнал.: 0.00 [07:57:26]line Место: АЗС № 92 "Партнер Нефть" [07:57:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:57:26]line СНО: Общий режим [07:57:26]line Чек 16 20.02.2025 07:57 [07:57:26]line Смена: 648 ФФД: 1.0 [07:57:26]line ЗНМ: 0300000118 [07:57:26]line РНМ: 0000000000091857 [07:57:26]line Версия ККМ: 001 [07:57:27]line Талоны: Топливные Талоны [07:57:27]line 417592 [07:57:27]line ФМ: 0000000000871826 [07:57:27]line ФД: 187215 [07:57:27]line ФПД: 21975576488410 [07:57:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T075728&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187215&fm=21975576488410&tin=02508201610067®Number=0000000000091857&sum=0 [07:57:27]written 0, free lines is 4095 [07:57:27]OFD Sender: Processing packet 187215 [packets to send 49, broken 48] [07:57:27]ProducePacketName [07:57:27]name=ofd_packets/00187215 [07:57:27]OFD Sender: To server: pG, [07:57:27]CommunicateWithHost lk.salyk.kg:30040 [07:57:27]ConnectInit lk.salyk.kg [07:57:27]Connected sock=10 [07:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D2 E0 07 01 C9 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 68 E0 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DB 02 00 35 04 06 00 13 FC 96 6E 29 DA C9 BC 45 18 6C 78 B2 28 [07:57:27]Write to MH i2c: 01 00 00 53 17 6A [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: 01 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: 01 07 00 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: 01 07 00 53 17 00 00 00 00 00 04 0D 82 [07:57:27]RasterBufferAndPrint [07:57:27]line [07:57:27]line [07:57:27]line [07:57:27]line [07:57:27]line [07:57:27]written 0, free lines is 3342 [07:57:27]MH_Cut [07:57:27]Write to MH i2c: D1 01 00 5A 17 01 43 [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: D1 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: D1 01 00 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: D1 01 00 5A 17 00 42 [07:57:27]Write to MH i2c: 01 00 00 5B 17 72 [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 95 C1 47 00 22 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 31 38 32 36 10 04 04 00 4F DB 02 00 F4 03 04 00 BA 86 B6 67 B6 04 01 00 00 BB 7E 28 A2 FD 14 E1 BF [07:57:27]CommunicateWithHost err = 0 [07:57:27]CheckOFDResponse [07:57:27]1017 (14) - 77093643461234 [07:57:27]1041 (16) - 0000000000871826 [07:57:27]1040 (4) - 187215 [07:57:27]1012 (4) - 20.02.2025 01:34 [07:57:27]1206 (1) - 0 [07:57:27]OFD Sender: Remove packet 187215 [07:57:27]ProducePacketName [07:57:27]name=ofd_packets/00187215 [07:57:27]NVStorageDeleteData [07:57:28]OFD Sender: No OFD packet to send [07:57:28]*** Cut start [07:57:28]*** Partial cut [07:57:28]*** CUTSNS_PIN = 1 [07:57:28]*** CUTSNS_PIN = 0 [07:57:28]*** Brake cut motor [07:57:28]Read from MH i2c: 01 [07:57:28]MH_I2C_Read... [07:57:28]*** Stop cut motor [07:57:28]*** Cut end [07:57:28]Read from MH i2c: 01 07 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: 01 07 00 5B 17 00 00 00 00 00 FF 0F 87 [07:57:28]process_action close_receipt done [07:57:28]requested_data is exist [07:57:28]produce_requested_data [07:57:28]requested_item fm.sn is exist - process it [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 11 00 00 [07:57:28]Write to MH i2c: E2 08 00 5C 17 80 11 00 00 00 00 00 00 ED [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 17 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 17 00 5C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [07:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:57:28]wFMCommunicate OK [07:57:28]requested_item fd.num is exist - process it [07:57:28]SAM_PROTO_GetFieldsCounters [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 13 00 00 [07:57:28]Write to MH i2c: E2 08 00 5D 17 80 13 00 00 00 00 00 00 F0 [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 62 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 62 00 5D 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4F DB 02 00 0E 04 04 00 88 02 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 FC [07:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4F DB 02 00 0E 04 04 00 88 02 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 [07:57:29]wFMCommunicate OK [07:57:29]SAM_PROTO_GetFieldsCounters done [07:57:29]requested_item shift.num is exist - process it [07:57:29]requested_item shift.opened is exist - process it [07:57:29]req_shift_opened [07:57:29]FM_GetShiftState [07:57:29]SAM_PROTO_GetShiftState [07:57:29]wFMCommunicate request_size=4 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 13 01 00 [07:57:29]Write to MH i2c: E2 08 00 5E 17 80 13 01 00 00 00 00 00 F2 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 0E 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 0E 00 5E 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 44 [07:57:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [07:57:29]wFMCommunicate OK [07:57:29]SAM_PROTO_GetShiftState done [07:57:29]FM_GetShiftState done [07:57:29]req_shift_opened done [07:57:29]requested_item shift.open_date is exist - process it [07:57:29]req_shift_open_date [07:57:29]req_shift_open_date done [07:57:29]produce_requested_data done [07:57:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187215,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [07:57:29]process_action_free close_receipt [07:57:29]json_value_free [07:57:29]json_value_free done [07:57:29]process_json_proto returns [07:57:29]Send response to host [07:57:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187215,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [07:57:29]free response buf [07:57:29]execute_script done [07:57:29]execute_script returns [07:57:29]free content buf [07:57:29]Sock 9.Close socket [07:57:29]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:27]accept exits with 7 [08:08:27]New connection [08:08:27]New thread 3066510692 created [08:08:27]Thread 3066654052 joined [08:08:27]Waiting for new connection... [08:08:27] Sock 7.Parse request [08:08:27]Sock 7.Check first char [08:08:27]Sock 7.First char is OK [08:08:27]request: POST /json_proto HTTP/1.0 [08:08:27]Method: POST [08:08:27]URL: /json_proto [08:08:27]Method is POST - this is cgi request [08:08:27]url: /json_proto [08:08:27]query_string will be loaded in cgi processing [08:08:27]execute_cgi json_proto POST (null) [08:08:27]execute_cgi path=json_proto method=POST [08:08:27]POST find Content-Length [08:08:27]Host: 172.17.46.131:8080 [08:08:27]Content-Length: 682 [08:08:27]Content-Type: application/json [08:08:27] [08:08:27]POST finish read [08:08:27]Found Content-Length = 682 [08:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "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:08:27]execute_script... [08:08: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)412369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "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:08:27]POST & json_proto [08:08:27]process_json_proto [08:08:27]json parsed OK: [08:08:27]protocol is kg_v1.0 [08:08:27]action value=close_receipt [08:08:27]process_action close_receipt [08:08:27]cmd_close_receipt [08:08:27]MH_GetDate [08:08:27]Write to MH i2c: F0 00 00 5F 17 65 [08:08:27]Write i2c OK [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: F0 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: F0 09 00 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: F0 09 00 5F 17 00 FF E2 B6 67 7E 41 4F 65 DF [08:08:27]GetLastDocTimeStamp 1740038248 [08:08:27]current date 1740038911 [08:08:27]FM_GetShiftState [08:08:27]SAM_PROTO_GetShiftState [08:08:27]wFMCommunicate request_size=4 [08:08:27]MH_SAM_APDU [08:08:27]CAPDU: 80 13 01 00 [08:08:27]Write to MH i2c: E2 08 00 60 17 80 13 01 00 00 00 00 00 F4 [08:08:27]Write i2c OK [08:08:27]MH_I2C_Read... [08:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:28]Read from MH i2c: E2 [08:08:28]MH_I2C_Read... [08:08:28]Read from MH i2c: E2 0E 00 [08:08:28]MH_I2C_Read... [08:08:28]Read from MH i2c: E2 0E 00 60 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 46 [08:08:28]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:08:28]wFMCommunicate OK [08:08:28]SAM_PROTO_GetShiftState done [08:08:28]FM_GetShiftState done [08:08:28]opened in 1740011697 [08:08:28]opened+sec_in_day 1740098097 [08:08:28]quantity*price = 150035 [08:08:28]sum+1 = 150036 [08:08:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 17 20.02.2025 08:08 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187216 ФПД: 257282563161744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T080831&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187216&fm=257282563161744&tin=02508201610067®Number=0000000000091857&sum=150000 [08:08:29]StoreToDocumentArchive [08:08:29]shift 648 fd 187216 [08:08:29]save to /storage/0648/doc_00187216 [08:08:29]save last doc name /storage/0648/doc_00187216 to /storage/kkm_last_doc_name [08:08:29]save OK [08:08:29]Clear old archive folders... [08:08:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:29]tlvbuf is B6E783F0 [08:08:29]SAM_PROTO_ClearQueue [08:08:29]wFMCommunicate request_size=4 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 09 00 00 [08:08:29]Write to MH i2c: E2 08 00 6D 17 80 09 00 00 00 00 00 00 F6 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 6D 17 00 90 00 F8 [08:08:29]RAPDU: 90 00 [08:08:29]wFMCommunicate OK [08:08:29]SAM_PROTO_ClearQueue done [08:08:29]KKMCreateOFDPacket [08:08:29]OFDProtocolAddRootSTLVToBuf [08:08:29]FM_MakeSignedData [08:08:29]FM_MakeSignedData [08:08:29]SAM_PROTO_SignData [08:08:29]wFMCommunicate request_size=4 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 0D 01 02 [08:08:29]Write to MH i2c: E2 08 00 6E 17 80 0D 01 02 00 00 00 00 FE [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 6E 17 00 90 00 F9 [08:08:29]RAPDU: 90 00 [08:08:29]wFMCommunicate OK [08:08:29]wFMCommunicate request_size=255 [08:08:29]MH_SAM_APDU [08:08: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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FF E2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DB 02 00 35 04 06 00 E9 [08:08:29]Write to MH i2c: E2 02 01 6F 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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FF E2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DB 02 00 35 04 06 00 E9 00 00 10 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 6F 17 00 90 00 FA [08:08:29]RAPDU: 90 00 [08:08:29]wFMCommunicate OK [08:08:29]wFMCommunicate request_size=10 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 0D 02 02 05 FF 43 C8 BE 90 [08:08:29]Write to MH i2c: E2 0D 00 70 17 80 0D 02 02 05 00 FF 43 C8 BE 90 00 00 63 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 70 17 00 90 00 FB [08:08:29]RAPDU: 90 00 [08:08:29]wFMCommunicate OK [08:08:29]wFMCommunicate request_size=4 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 0D 03 02 [08:08:29]Write to MH i2c: E2 08 00 71 17 80 0D 03 02 00 00 00 00 03 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 0B 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 0B 00 71 17 00 C2 F7 8D D3 7D 3A 4E 46 90 00 68 [08:08:29]RAPDU: C2 F7 8D D3 7D 3A 4E 46 90 00 [08:08:29]wFMCommunicate OK [08:08:29]SAM_PROTO_SignData done [08:08:29]FM_MakeSignedData done [08:08:29]CreateOFDProtocolMessage [08:08:29]wFMCommunicate request_size=4 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 11 00 00 [08:08:29]Write to MH i2c: E2 08 00 72 17 80 11 00 00 00 00 00 00 03 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 17 00 [08:08:29]MH_I2C_Read... [08:08:29]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 31 38 32 36 90 00 56 [08:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:08:29]wFMCommunicate OK [08:08:29]CreateOFDProtocolMessage done [08:08:29]OFDSenderStorePacket 187216 [08:08:29]StoreOFDPacket docnum=187216 [08:08:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2A DE 07 01 25 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FF E2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DB 02 00 35 04 06 00 E9 FF 43 C8 BE 90 C2 F7 8D D3 7D 3A 4E 46 [08:08:29]CheckFolder [08:08:29]dirname=/storage/ofd_packets [08:08:29]CheckFolder done [08:08:29]ProducePacketName [08:08:29]name=ofd_packets/00187216 [08:08:29]NVStorageSaveData ofd_packets/00187216 [08:08:29]File name is /storage/ofd_packets/00187216 [08:08:29]Write 301 bytes [08:08:29]NVStorageSaveData done [08:08:29]OFDSenderStorePacket done [08:08:29]KKMCreateOFDPacket done [08:08:29]NVStorageSaveData kkm_last_timestamp [08:08:29]File name is /storage/kkm_last_timestamp [08:08:29]Write 4 bytes [08:08:29]NVStorageSaveData done [08:08:29]ExternCall_PrintAddStr [08:08:29]wPrintStart [08:08:29]Write to MH i2c: 01 00 00 73 17 8A [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: 01 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: 01 07 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: 01 07 00 73 17 00 00 00 00 00 FF 0F 9F [08:08:29]RasterBufferAndPrint [08:08:29]line Счет N : (1)412369 [08:08:29]line ИНН: 02508201610067 [08:08:29]line Контрольно-Кассовый Чек [08:08:29]line ПРОДАЖА [08:08:29]line ТРК (МРК, ГНК) : 22 [08:08:29]line Товар: 2710124130 [08:08:29]line Аи-92-К-2 [08:08:29]line 23.370 * 64.20 [08:08:29]line = 1500.35 [08:08:29]line НДС 12% НСП 1% [08:08:29]line > о реализуемом товаре [08:08:29]line ОКРУГЛЕНИЕ: -0.35 [08:08:29]line ИТОГО: 1500.00 [08:08:29]line Внесено: 1500.00 [08:08:29]line СДАЧА: 0.00 [08:08:29]line НСП 1% : 13.28 [08:08:29]line НДС 12% : 159.33 [08:08:29]line Наличными: 1500.00 [08:08:29]line Безнал.: 0.00 [08:08:29]line Место: АЗС № 92 "Партнер Нефть" [08:08:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:08:29]line СНО: Общий режим [08:08:29]line Чек 17 20.02.2025 08:08 [08:08:29]line Смена: 648 ФФД: 1.0 [08:08:29]line ЗНМ: 0300000118 [08:08:29]line РНМ: 0000000000091857 [08:08:29]line Версия ККМ: 001 [08:08:29]line ФМ: 0000000000871826 [08:08:29]line ФД: 187216 [08:08:29]line ФПД: 257282563161744 [08:08:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T080831&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187216&fm=257282563161744&tin=02508201610067®Number=0000000000091857&sum=150000 [08:08:30]OFD Sender: Processing packet 187216 [packets to send 49, broken 48] [08:08:30]ProducePacketName [08:08:30]name=ofd_packets/00187216 [08:08:30]OFD Sender: To server: pG, [08:08:30]CommunicateWithHost lk.salyk.kg:30040 [08:08:30]ConnectInit lk.salyk.kg [08:08:30]written 0, free lines is 4095 [08:08:30]Connected sock=10 [08:08:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2A DE 07 01 25 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FF E2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DB 02 00 35 04 06 00 E9 FF 43 C8 BE 90 C2 F7 8D D3 7D 3A 4E 46 [08:08:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 59 EF 47 00 7A 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DB 02 00 F4 03 04 00 51 89 B6 67 B6 04 01 00 00 DC 35 73 64 D4 0D 99 DB [08:08:30]CommunicateWithHost err = 0 [08:08:30]CheckOFDResponse [08:08:30]1017 (14) - 77093643461234 [08:08:30]1041 (16) - 0000000000871826 [08:08:30]1040 (4) - 187216 [08:08:30]1012 (4) - 20.02.2025 01:45 [08:08:30]1206 (1) - 0 [08:08:30]OFD Sender: Remove packet 187216 [08:08:30]ProducePacketName [08:08:30]name=ofd_packets/00187216 [08:08:30]NVStorageDeleteData [08:08:30]Write to MH i2c: 01 00 00 9E 17 B5 [08:08:30]Write i2c OK [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: 01 [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: 01 07 00 [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: 01 07 00 9E 17 00 00 00 00 00 FF 0C C7 [08:08:30]RasterBufferAndPrint [08:08:30]line [08:08:30]line [08:08:30]line [08:08:30]line [08:08:30]line [08:08:30]written 0, free lines is 3333 [08:08:30]MH_Cut [08:08:30]Write to MH i2c: D1 01 00 A5 17 01 8E [08:08:30]Write i2c OK [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: D1 [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: D1 01 00 [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: D1 01 00 A5 17 00 8D [08:08:30]Write to MH i2c: 01 00 00 A6 17 BD [08:08:30]Write i2c OK [08:08:30]MH_I2C_Read... [08:08:30]OFD Sender: No OFD packet to send [08:08:31]*** Cut start [08:08:31]*** Partial cut [08:08:31]*** CUTSNS_PIN = 1 [08:08:31]*** CUTSNS_PIN = 0 [08:08:31]*** Brake cut motor [08:08:31]Read from MH i2c: 01 *** Stop cut motor [08:08:31]*** Cut end [08:08:31] [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: 01 07 00 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: 01 07 00 A6 17 00 00 00 00 00 FF 0F D2 [08:08:31]process_action close_receipt done [08:08:31]requested_data is exist [08:08:31]produce_requested_data [08:08:31]requested_item fm.sn is exist - process it [08:08:31]wFMCommunicate request_size=4 [08:08:31]MH_SAM_APDU [08:08:31]CAPDU: 80 11 00 00 [08:08:31]Write to MH i2c: E2 08 00 A7 17 80 11 00 00 00 00 00 00 38 [08:08:31]Write i2c OK [08:08:31]MH_I2C_Read... [08:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:31]Read from MH i2c: E2 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 17 00 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 17 00 A7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [08:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:08:31]wFMCommunicate OK [08:08:31]requested_item fd.num is exist - process it [08:08:31]SAM_PROTO_GetFieldsCounters [08:08:31]wFMCommunicate request_size=4 [08:08:31]MH_SAM_APDU [08:08:31]CAPDU: 80 13 00 00 [08:08:31]Write to MH i2c: E2 08 00 A8 17 80 13 00 00 00 00 00 00 3B [08:08:31]Write i2c OK [08:08:31]MH_I2C_Read... [08:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:32]Read from MH i2c: E2 [08:08:32]MH_I2C_Read... [08:08:32]Read from MH i2c: E2 62 00 [08:08:32]MH_I2C_Read... [08:08:32]Read from MH i2c: E2 62 00 A8 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 50 DB 02 00 0E 04 04 00 88 02 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 4B [08:08:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 50 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:32]wFMCommunicate OK [08:08:32]SAM_PROTO_GetFieldsCounters done [08:08:32]requested_item shift.num is exist - process it [08:08:32]requested_item shift.opened is exist - process it [08:08:32]req_shift_opened [08:08:32]FM_GetShiftState [08:08:32]SAM_PROTO_GetShiftState [08:08:32]wFMCommunicate request_size=4 [08:08:32]MH_SAM_APDU [08:08:32]CAPDU: 80 13 01 00 [08:08:32]Write to MH i2c: E2 08 00 A9 17 80 13 01 00 00 00 00 00 3D [08:08:32]Write i2c OK [08:08:32]MH_I2C_Read... [08:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:32]Read from MH i2c: E2 [08:08:32]MH_I2C_Read... [08:08:32]Read from MH i2c: E2 0E 00 [08:08:32]MH_I2C_Read... [08:08:32]Read from MH i2c: E2 0E 00 A9 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8F [08:08:32]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:08:32]wFMCommunicate OK [08:08:32]SAM_PROTO_GetShiftState done [08:08:32]FM_GetShiftState done [08:08:32]req_shift_opened done [08:08:32]requested_item shift.open_date is exist - process it [08:08:32]req_shift_open_date [08:08:32]req_shift_open_date done [08:08:32]produce_requested_data done [08:08:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187216,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:08:32]process_action_free close_receipt [08:08:32]json_value_free [08:08:32]json_value_free done [08:08:32]process_json_proto returns [08:08:32]Send response to host [08:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187216,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:08:32]free response buf [08:08:32]execute_script done [08:08:32]execute_script returns [08:08:32]free content buf [08:08:32]Sock 7.Close socket [08:08:32]Sock 7.Thread stoped [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09: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:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:45]accept exits with 9 [08:15:45]New connection [08:15:45]New thread 3066654052 created [08:15:45]Thread 3066510692 joined [08:15:45]Waiting for new connection... [08:15:45] Sock 9.Parse request [08:15:45]Sock 9.Check first char [08:15:45]Sock 9.First char is OK [08:15:45]request: POST /json_proto HTTP/1.0 [08:15:45]Method: POST [08:15:45]URL: /json_proto [08:15:45]Method is POST - this is cgi request [08:15:45]url: /json_proto [08:15:45]query_string will be loaded in cgi processing [08:15:45]execute_cgi json_proto POST (null) [08:15:45]execute_cgi path=json_proto method=POST [08:15:45]POST find Content-Length [08:15:45]Host: 172.17.46.131:8080 [08:15:45]Content-Length: 678 [08:15:45]Content-Type: application/json [08:15:45] [08:15:45]POST finish read [08:15:45]Found Content-Length = 678 [08:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:45]execute_script... [08:15: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)412370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:45]POST & json_proto [08:15:45]process_json_proto [08:15:45]json parsed OK: [08:15:45]protocol is kg_v1.0 [08:15:45]action value=close_receipt [08:15:45]process_action close_receipt [08:15:45]cmd_close_receipt [08:15:45]MH_GetDate [08:15:45]Write to MH i2c: F0 00 00 AA 17 B0 [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: F0 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: F0 09 00 [08:15:45]MH_I2C_Read... [08:15:45]Read from MH i2c: F0 09 00 AA 17 00 B5 E4 B6 67 7E 41 4F 65 E2 [08:15:45]GetLastDocTimeStamp 1740038911 [08:15:45]current date 1740039349 [08:15:45]FM_GetShiftState [08:15:45]SAM_PROTO_GetShiftState [08:15:45]wFMCommunicate request_size=4 [08:15:45]MH_SAM_APDU [08:15:45]CAPDU: 80 13 01 00 [08:15:45]Write to MH i2c: E2 08 00 AB 17 80 13 01 00 00 00 00 00 3F [08:15:45]Write i2c OK [08:15:45]MH_I2C_Read... [08:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:46]Read from MH i2c: E2 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: E2 0E 00 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: E2 0E 00 AB 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 91 [08:15:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:15:46]wFMCommunicate OK [08:15:46]SAM_PROTO_GetShiftState done [08:15:46]FM_GetShiftState done [08:15:46]opened in 1740011697 [08:15:46]opened+sec_in_day 1740098097 [08:15:46]quantity*price = 150064 [08:15:46]sum+1 = 150065 [08:15:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 18 20.02.2025 08:15 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187217 ФПД: 214598635595977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T081549&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187217&fm=214598635595977&tin=02508201610067®Number=0000000000091857&sum=150000 [08:15:47]StoreToDocumentArchive [08:15:47]shift 648 fd 187217 [08:15:47]save to /storage/0648/doc_00187217 [08:15:47]save last doc name /storage/0648/doc_00187217 to /storage/kkm_last_doc_name [08:15:47]save OK [08:15:47]Clear old archive folders... [08:15:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:15:47]tlvbuf is B6E78400 [08:15:47]SAM_PROTO_ClearQueue [08:15:47]wFMCommunicate request_size=4 [08:15:47]MH_SAM_APDU [08:15:47]CAPDU: 80 09 00 00 [08:15:47]Write to MH i2c: E2 08 00 B8 17 80 09 00 00 00 00 00 00 41 [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 03 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 03 00 B8 17 00 90 00 43 [08:15:47]RAPDU: 90 00 [08:15:47]wFMCommunicate OK [08:15:47]SAM_PROTO_ClearQueue done [08:15:47]KKMCreateOFDPacket [08:15:47]OFDProtocolAddRootSTLVToBuf [08:15:47]FM_MakeSignedData [08:15:47]FM_MakeSignedData [08:15:47]SAM_PROTO_SignData [08:15:47]wFMCommunicate request_size=4 [08:15:47]MH_SAM_APDU [08:15:47]CAPDU: 80 0D 01 02 [08:15:47]Write to MH i2c: E2 08 00 B9 17 80 0D 01 02 00 00 00 00 49 [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 03 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 03 00 B9 17 00 90 00 44 [08:15:47]RAPDU: 90 00 [08:15:47]wFMCommunicate OK [08:15:47]wFMCommunicate request_size=255 [08:15:47]MH_SAM_APDU [08:15: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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B5 E4 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DB 02 00 35 04 06 00 C3 2D 23 71 [08:15:47]Write to MH i2c: E2 02 01 BA 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B5 E4 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DB 02 00 35 04 06 00 C3 2D 23 71 00 00 DA [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 03 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [08:15:47]RAPDU: 90 00 [08:15:47]wFMCommunicate OK [08:15:47]wFMCommunicate request_size=7 [08:15:47]MH_SAM_APDU [08:15:47]CAPDU: 80 0D 02 02 02 A8 C9 [08:15:47]Write to MH i2c: E2 0A 00 BB 17 80 0D 02 02 02 00 A8 C9 00 00 C1 [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 03 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [08:15:47]RAPDU: 90 00 [08:15:47]wFMCommunicate OK [08:15:47]wFMCommunicate request_size=4 [08:15:47]MH_SAM_APDU [08:15:47]CAPDU: 80 0D 03 02 [08:15:47]Write to MH i2c: E2 08 00 BC 17 80 0D 03 02 00 00 00 00 4E [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 0B 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 0B 00 BC 17 00 0E 2F 0D CA 27 CD ED C1 90 00 05 [08:15:47]RAPDU: 0E 2F 0D CA 27 CD ED C1 90 00 [08:15:47]wFMCommunicate OK [08:15:47]SAM_PROTO_SignData done [08:15:47]FM_MakeSignedData done [08:15:47]CreateOFDProtocolMessage [08:15:47]wFMCommunicate request_size=4 [08:15:47]MH_SAM_APDU [08:15:47]CAPDU: 80 11 00 00 [08:15:47]Write to MH i2c: E2 08 00 BD 17 80 11 00 00 00 00 00 00 4E [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:47]Read from MH i2c: E2 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 17 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: E2 17 00 BD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [08:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:15:47]wFMCommunicate OK [08:15:47]CreateOFDProtocolMessage done [08:15:47]OFDSenderStorePacket 187217 [08:15:47]StoreOFDPacket docnum=187217 [08:15:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 62 8B 04 01 E2 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B5 E4 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DB 02 00 35 04 06 00 C3 2D 23 71 A8 C9 0E 2F 0D CA 27 CD ED C1 [08:15:47]CheckFolder [08:15:47]dirname=/storage/ofd_packets [08:15:47]CheckFolder done [08:15:47]ProducePacketName [08:15:47]name=ofd_packets/00187217 [08:15:47]NVStorageSaveData ofd_packets/00187217 [08:15:47]File name is /storage/ofd_packets/00187217 [08:15:47]Write 298 bytes [08:15:47]NVStorageSaveData done [08:15:47]OFDSenderStorePacket done [08:15:47]KKMCreateOFDPacket done [08:15:47]NVStorageSaveData kkm_last_timestamp [08:15:47]File name is /storage/kkm_last_timestamp [08:15:47]Write 4 bytes [08:15:47]NVStorageSaveData done [08:15:47]ExternCall_PrintAddStr [08:15:47]wPrintStart [08:15:47]Write to MH i2c: 01 00 00 BE 17 D5 [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: 01 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: 01 07 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: 01 07 00 BE 17 00 00 00 00 00 FF 0F EA [08:15:47]RasterBufferAndPrint [08:15:47]line Счет N : (1)412370 [08:15:47]line ИНН: 02508201610067 [08:15:47]line Контрольно-Кассовый Чек [08:15:47]line ПРОДАЖА [08:15:47]line ТРК (МРК, ГНК) : 5 [08:15:47]line Товар: 2710194210 [08:15:47]line ДТ-К-5 [08:15:47]line 20.670 * 72.60 [08:15:47]line = 1500.64 [08:15:47]line НДС 12% НСП 1% [08:15:47]line > о реализуемом товаре [08:15:47]line ОКРУГЛЕНИЕ: -0.64 [08:15:47]line ИТОГО: 1500.00 [08:15:47]line Внесено: 1500.00 [08:15:47]line СДАЧА: 0.00 [08:15:47]line НСП 1% : 13.28 [08:15:47]line НДС 12% : 159.36 [08:15:47]line Наличными: 1500.00 [08:15:47]line Безнал.: 0.00 [08:15:47]line Место: АЗС № 92 "Партнер Нефть" [08:15:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:15:47]line СНО: Общий режим [08:15:47]line Чек 18 20.02.2025 08:15 [08:15:47]line Смена: 648 ФФД: 1.0 [08:15:47]line ЗНМ: 0300000118 [08:15:47]line РНМ: 0000000000091857 [08:15:47]line Версия ККМ: 001 [08:15:47]line ФМ: 0000000000871826 [08:15:47]line ФД: 187217 [08:15:47]line ФПД: 214598635595977 [08:15:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T081549&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187217&fm=214598635595977&tin=02508201610067®Number=0000000000091857&sum=150000 [08:15:48]OFD Sender: Processing packet 187217 [packets to send 49, broken 48] [08:15:48]ProducePacketName [08:15:48]name=ofd_packets/00187217 [08:15:48]OFD Sender: To server: pG, [08:15:48]CommunicateWithHost lk.salyk.kg:30040 [08:15:48]ConnectInit lk.salyk.kg [08:15:48]written 0, free lines is 4095 [08:15:48]Connected sock=10 [08:15:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 62 8B 04 01 E2 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B5 E4 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DB 02 00 35 04 06 00 C3 2D 23 71 A8 C9 0E 2F 0D CA 27 CD ED C1 [08:15:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5D F0 47 00 5B 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 31 38 32 36 10 04 04 00 51 DB 02 00 F4 03 04 00 07 8B B6 67 B6 04 01 00 00 67 54 24 46 AD 0B CA 42 [08:15:48]CommunicateWithHost err = 0 [08:15:48]CheckOFDResponse [08:15:48]1017 (14) - 77093643461234 [08:15:48]1041 (16) - 0000000000871826 [08:15:48]1040 (4) - 187217 [08:15:48]1012 (4) - 20.02.2025 01:53 [08:15:48]1206 (1) - 0 [08:15:48]OFD Sender: Remove packet 187217 [08:15:48]ProducePacketName [08:15:48]name=ofd_packets/00187217 [08:15:48]NVStorageDeleteData [08:15:48]Write to MH i2c: 01 00 00 E9 17 00 [08:15:48]Write i2c OK [08:15:48]MH_I2C_Read... [08:15:48]Read from MH i2c: 01 [08:15:48]MH_I2C_Read... [08:15:48]Read from MH i2c: 01 07 00 [08:15:48]MH_I2C_Read... [08:15:48]Read from MH i2c: 01 07 00 E9 17 00 00 00 00 00 FE 0C 11 [08:15:48]RasterBufferAndPrint [08:15:48]line [08:15:48]line [08:15:48]line [08:15:48]line [08:15:48]line [08:15:48]written 0, free lines is 3332 [08:15:48]MH_Cut [08:15:48]Write to MH i2c: D1 01 00 F0 17 01 D9 [08:15:48]Write i2c OK [08:15:48]MH_I2C_Read... [08:15:48]Read from MH i2c: D1 [08:15:48]MH_I2C_Read... [08:15:48]Read from MH i2c: D1 01 00 [08:15:48]MH_I2C_Read... [08:15:48]Read from MH i2c: D1 01 00 F0 17 00 D8 [08:15:48]Write to MH i2c: 01 00 00 F1 17 08 [08:15:48]Write i2c OK [08:15:48]MH_I2C_Read... [08:15:48]OFD Sender: No OFD packet to send [08:15:49]*** Cut start [08:15:49]*** Partial cut [08:15:49]*** CUTSNS_PIN = 1 [08:15:49]*** CUTSNS_PIN = 0 [08:15:49]*** Brake cut motor [08:15:49]Read from MH i2c: 01 [08:15:49]MH_I2C_Read... [08:15:49]*** Stop cut motor [08:15:49]*** Cut end [08:15:49]Read from MH i2c: 01 07 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: 01 07 00 F1 17 00 00 00 00 00 FF 0F 1D [08:15:49]process_action close_receipt done [08:15:49]requested_data is exist [08:15:49]produce_requested_data [08:15:49]requested_item fm.sn is exist - process it [08:15:49]wFMCommunicate request_size=4 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 11 00 00 [08:15:49]Write to MH i2c: E2 08 00 F2 17 80 11 00 00 00 00 00 00 83 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:49]Read from MH i2c: E2 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 17 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 17 00 F2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [08:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:15:49]wFMCommunicate OK [08:15:49]requested_item fd.num is exist - process it [08:15:49]SAM_PROTO_GetFieldsCounters [08:15:49]wFMCommunicate request_size=4 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 13 00 00 [08:15:49]Write to MH i2c: E2 08 00 F3 17 80 13 00 00 00 00 00 00 86 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:50]Read from MH i2c: E2 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 62 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 62 00 F3 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 51 DB 02 00 0E 04 04 00 88 02 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 9A [08:15:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 51 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:50]wFMCommunicate OK [08:15:50]SAM_PROTO_GetFieldsCounters done [08:15:50]requested_item shift.num is exist - process it [08:15:50]requested_item shift.opened is exist - process it [08:15:50]req_shift_opened [08:15:50]FM_GetShiftState [08:15:50]SAM_PROTO_GetShiftState [08:15:50]wFMCommunicate request_size=4 [08:15:50]MH_SAM_APDU [08:15:50]CAPDU: 80 13 01 00 [08:15:50]Write to MH i2c: E2 08 00 F4 17 80 13 01 00 00 00 00 00 88 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:50]Read from MH i2c: E2 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 0E 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: E2 0E 00 F4 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DA [08:15:50]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:15:50]wFMCommunicate OK [08:15:50]SAM_PROTO_GetShiftState done [08:15:50]FM_GetShiftState done [08:15:50]req_shift_opened done [08:15:50]requested_item shift.open_date is exist - process it [08:15:50]req_shift_open_date [08:15:50]req_shift_open_date done [08:15:50]produce_requested_data done [08:15:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187217,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:15:50]process_action_free close_receipt [08:15:50]json_value_free [08:15:50]json_value_free done [08:15:50]process_json_proto returns [08:15:50]Send response to host [08:15:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187217,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:15:50]free response buf [08:15:50]execute_script done [08:15:50]execute_script returns [08:15:50]free content buf [08:15:50]Sock 9.Close socket [08:15:50]Sock 9.Thread stoped [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [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:50]accept exits with 7 [08:20:50]New connection [08:20:50]New thread 3066510692 created [08:20:50]Thread 3066654052 joined [08:20:50]Waiting for new connection... [08:20:50] Sock 7.Parse request [08:20:50]Sock 7.Check first char [08:20:50]Sock 7.First char is OK [08:20:50]request: POST /json_proto HTTP/1.0 [08:20:50]Method: POST [08:20:50]URL: /json_proto [08:20:50]Method is POST - this is cgi request [08:20:50]url: /json_proto [08:20:50]query_string will be loaded in cgi processing [08:20:50]execute_cgi json_proto POST (null) [08:20:50]execute_cgi path=json_proto method=POST [08:20:50]POST find Content-Length [08:20:50]Host: 172.17.46.131:8080 [08:20:50]Content-Length: 677 [08:20:50]Content-Type: application/json [08:20:50] [08:20:50]POST finish read [08:20:50]Found Content-Length = 677 [08:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:20:50]execute_script... [08: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)412371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:20:50]POST & json_proto [08:20:50]process_json_proto [08:20:50]json parsed OK: [08:20:50]protocol is kg_v1.0 [08:20:50]action value=close_receipt [08:20:50]process_action close_receipt [08:20:50]cmd_close_receipt [08:20:50]MH_GetDate [08:20:50]Write to MH i2c: F0 00 00 F5 17 FB [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: F0 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: F0 09 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: F0 09 00 F5 17 00 E6 E5 B6 67 7E 41 4F 65 5F [08:20:50]GetLastDocTimeStamp 1740039349 [08:20:50]current date 1740039654 [08:20:50]FM_GetShiftState [08:20:50]SAM_PROTO_GetShiftState [08:20:50]wFMCommunicate request_size=4 [08:20:50]MH_SAM_APDU [08:20:50]CAPDU: 80 13 01 00 [08:20:50]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 0E 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DC [08:20:50]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:20:50]wFMCommunicate OK [08:20:50]SAM_PROTO_GetShiftState done [08:20:50]FM_GetShiftState done [08:20:50]opened in 1740011697 [08:20:50]opened+sec_in_day 1740098097 [08:20:50]quantity*price = 50011 [08:20:50]sum+1 = 50013 [08:20:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 19 20.02.2025 08:20 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187218 ФПД: 229755620280396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T082054&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187218&fm=229755620280396&tin=02508201610067®Number=0000000000091857&sum=50000 [08:20:52]StoreToDocumentArchive [08:20:52]shift 648 fd 187218 [08:20:52]save to /storage/0648/doc_00187218 [08:20:52]save last doc name /storage/0648/doc_00187218 to /storage/kkm_last_doc_name [08:20:52]save OK [08:20:52]Clear old archive folders... [08:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:52]tlvbuf is B6E78240 [08:20:52]SAM_PROTO_ClearQueue [08:20:52]wFMCommunicate request_size=4 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 09 00 00 [08:20:52]Write to MH i2c: E2 08 00 03 18 80 09 00 00 00 00 00 00 8D [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [08:20:52]RAPDU: 90 00 [08:20:52]wFMCommunicate OK [08:20:52]SAM_PROTO_ClearQueue done [08:20:52]KKMCreateOFDPacket [08:20:52]OFDProtocolAddRootSTLVToBuf [08:20:52]FM_MakeSignedData [08:20:52]FM_MakeSignedData [08:20:52]SAM_PROTO_SignData [08:20:52]wFMCommunicate request_size=4 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 0D 01 02 [08:20:52]Write to MH i2c: E2 08 00 04 18 80 0D 01 02 00 00 00 00 95 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [08:20:52]RAPDU: 90 00 [08:20:52]wFMCommunicate OK [08:20:52]wFMCommunicate request_size=255 [08:20:52]MH_SAM_APDU [08:20: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E6 E5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DB 02 00 35 04 06 00 D0 [08:20:52]Write to MH i2c: E2 02 01 05 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E6 E5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DB 02 00 35 04 06 00 D0 00 00 B2 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [08:20:52]RAPDU: 90 00 [08:20:52]wFMCommunicate OK [08:20:52]wFMCommunicate request_size=10 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 0D 02 02 05 F6 26 21 C8 4C [08:20:52]Write to MH i2c: E2 0D 00 06 18 80 0D 02 02 05 00 F6 26 21 C8 4C 00 00 F3 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [08:20:52]RAPDU: 90 00 [08:20:52]wFMCommunicate OK [08:20:52]wFMCommunicate request_size=4 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 0D 03 02 [08:20:52]Write to MH i2c: E2 08 00 07 18 80 0D 03 02 00 00 00 00 9A [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 0B 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 0B 00 07 18 00 74 E8 BD 6C 36 63 54 95 90 00 A2 [08:20:52]RAPDU: 74 E8 BD 6C 36 63 54 95 90 00 [08:20:52]wFMCommunicate OK [08:20:52]SAM_PROTO_SignData done [08:20:52]FM_MakeSignedData done [08:20:52]CreateOFDProtocolMessage [08:20:52]wFMCommunicate request_size=4 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 11 00 00 [08:20:52]Write to MH i2c: E2 08 00 08 18 80 11 00 00 00 00 00 00 9A [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 17 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 17 00 08 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [08:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:20:52]wFMCommunicate OK [08:20:52]CreateOFDProtocolMessage done [08:20:52]OFDSenderStorePacket 187218 [08:20:52]StoreOFDPacket docnum=187218 [08:20:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B3 4E 07 01 6D 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E6 E5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DB 02 00 35 04 06 00 D0 F6 26 21 C8 4C 74 E8 BD 6C 36 63 54 95 [08:20:52]CheckFolder [08:20:52]dirname=/storage/ofd_packets [08:20:52]CheckFolder done [08:20:52]ProducePacketName [08:20:52]name=ofd_packets/00187218 [08:20:52]NVStorageSaveData ofd_packets/00187218 [08:20:52]File name is /storage/ofd_packets/00187218 [08:20:52]Write 301 bytes [08:20:52]NVStorageSaveData done [08:20:52]OFDSenderStorePacket done [08:20:52]KKMCreateOFDPacket done [08:20:52]NVStorageSaveData kkm_last_timestamp [08:20:52]File name is /storage/kkm_last_timestamp [08:20:52]Write 4 bytes [08:20:52]NVStorageSaveData done [08:20:52]ExternCall_PrintAddStr [08:20:52]wPrintStart [08:20:52]Write to MH i2c: 01 00 00 09 18 21 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: 01 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: 01 07 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 FF 0F 36 [08:20:52]RasterBufferAndPrint [08:20:52]line Счет N : (1)412371 [08:20:52]line ИНН: 02508201610067 [08:20:52]line Контрольно-Кассовый Чек [08:20:52]line ПРОДАЖА [08:20:52]line ТРК (МРК, ГНК) : 12 [08:20:52]line Товар: 2710124130 [08:20:52]line Аи-92-К-2 [08:20:52]line 7.790 * 64.20 [08:20:52]line = 500.12 [08:20:52]line НДС 12% НСП 1% [08:20:52]line > о реализуемом товаре [08:20:52]line ОКРУГЛЕНИЕ: -0.12 [08:20:52]line ИТОГО: 500.00 [08:20:52]line Внесено: 500.00 [08:20:52]line СДАЧА: 0.00 [08:20:52]line НСП 1% : 4.43 [08:20:52]line НДС 12% : 53.11 [08:20:52]line Наличными: 500.00 [08:20:52]line Безнал.: 0.00 [08:20:52]line Место: АЗС № 92 "Партнер Нефть" [08:20:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:20:52]line СНО: Общий режим [08:20:52]line Чек 19 20.02.2025 08:20 [08:20:52]line Смена: 648 ФФД: 1.0 [08:20:52]line ЗНМ: 0300000118 [08:20:52]line РНМ: 0000000000091857 [08:20:52]line Версия ККМ: 001 [08:20:52]line ФМ: 0000000000871826 [08:20:52]line ФД: 187218 [08:20:52]line ФПД: 229755620280396 [08:20:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T082054&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187218&fm=229755620280396&tin=02508201610067®Number=0000000000091857&sum=50000 [08:20:52]written 0, free lines is 4095 [08:20:52]OFD Sender: Processing packet 187218 [packets to send 49, broken 48] [08:20:52]ProducePacketName [08:20:52]name=ofd_packets/00187218 [08:20:52]OFD Sender: To server: pG, [08:20:52]CommunicateWithHost lk.salyk.kg:30040 [08:20:52]ConnectInit lk.salyk.kg [08:20:53]Connected sock=10 [08:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B3 4E 07 01 6D 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E6 E5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DB 02 00 35 04 06 00 D0 F6 26 21 C8 4C 74 E8 BD 6C 36 63 54 95 [08:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 40 03 47 00 30 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DB 02 00 F4 03 04 00 38 8C B6 67 B6 04 01 00 00 F7 09 DB A8 F9 6E 3A 33 [08:20:53]CommunicateWithHost err = 0 [08:20:53]CheckOFDResponse [08:20:53]1017 (14) - 77093643461234 [08:20:53]1041 (16) - 0000000000871826 [08:20:53]1040 (4) - 187218 [08:20:53]1012 (4) - 20.02.2025 01:58 [08:20:53]1206 (1) - 0 [08:20:53]OFD Sender: Remove packet 187218 [08:20:53]ProducePacketName [08:20:53]name=ofd_packets/00187218 [08:20:53]NVStorageDeleteData [08:20:53]Write to MH i2c: 01 00 00 34 18 4C [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: 01 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: 01 07 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: 01 07 00 34 18 00 00 00 00 00 F4 0C 53 [08:20:53]RasterBufferAndPrint [08:20:53]line [08:20:53]line [08:20:53]line [08:20:53]line [08:20:53]line [08:20:53]written 0, free lines is 3322 [08:20:53]MH_Cut [08:20:53]Write to MH i2c: D1 01 00 3B 18 01 25 [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: D1 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: D1 01 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: D1 01 00 3B 18 00 24 [08:20:53]Write to MH i2c: 01 00 00 3C 18 54 [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]OFD Sender: No OFD packet to send [08:20:54]*** Cut start [08:20:54]*** Partial cut [08:20:54]*** CUTSNS_PIN = 1 [08:20:54]*** CUTSNS_PIN = 0 [08:20:54]*** Brake cut motor [08:20:54]Read from MH i2c: 01 [08:20:54]MH_I2C_Read... [08:20:54]*** Stop cut motor [08:20:54]*** Cut end [08:20:54]Read from MH i2c: 01 07 00 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: 01 07 00 3C 18 00 00 00 00 00 FF 0F 69 [08:20:54]process_action close_receipt done [08:20:54]requested_data is exist [08:20:54]produce_requested_data [08:20:54]requested_item fm.sn is exist - process it [08:20:54]wFMCommunicate request_size=4 [08:20:54]MH_SAM_APDU [08:20:54]CAPDU: 80 11 00 00 [08:20:54]Write to MH i2c: E2 08 00 3D 18 80 11 00 00 00 00 00 00 CF [08:20:54]Write i2c OK [08:20:54]MH_I2C_Read... [08:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:54]Read from MH i2c: E2 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: E2 17 00 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: E2 17 00 3D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 22 [08:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:20:54]wFMCommunicate OK [08:20:54]requested_item fd.num is exist - process it [08:20:54]SAM_PROTO_GetFieldsCounters [08:20:54]wFMCommunicate request_size=4 [08:20:54]MH_SAM_APDU [08:20:54]CAPDU: 80 13 00 00 [08:20:54]Write to MH i2c: E2 08 00 3E 18 80 13 00 00 00 00 00 00 D2 [08:20:54]Write i2c OK [08:20:54]MH_I2C_Read... [08:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:54]Read from MH i2c: E2 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: E2 62 00 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: E2 62 00 3E 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 52 DB 02 00 0E 04 04 00 88 02 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 EA [08:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 52 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:55]wFMCommunicate OK [08:20:55]SAM_PROTO_GetFieldsCounters done [08:20:55]requested_item shift.num is exist - process it [08:20:55]requested_item shift.opened is exist - process it [08:20:55]req_shift_opened [08:20:55]FM_GetShiftState [08:20:55]SAM_PROTO_GetShiftState [08:20:55]wFMCommunicate request_size=4 [08:20:55]MH_SAM_APDU [08:20:55]CAPDU: 80 13 01 00 [08:20:55]Write to MH i2c: E2 08 00 3F 18 80 13 01 00 00 00 00 00 D4 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:55]Read from MH i2c: E2 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 3F 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 26 [08:20:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:20:55]wFMCommunicate OK [08:20:55]SAM_PROTO_GetShiftState done [08:20:55]FM_GetShiftState done [08:20:55]req_shift_opened done [08:20:55]requested_item shift.open_date is exist - process it [08:20:55]req_shift_open_date [08:20:55]req_shift_open_date done [08:20:55]produce_requested_data done [08:20:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187218,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:20:55]process_action_free close_receipt [08:20:55]json_value_free [08:20:55]json_value_free done [08:20:55]process_json_proto returns [08:20:55]Send response to host [08:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187218,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:20:55]free response buf [08:20:55]execute_script done [08:20:55]execute_script returns [08:20:55]free content buf [08:20:55]Sock 7.Close socket [08:20:55]Sock 7.Thread stoped [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]accept exits with 9 [08:21:13]New connection [08:21:13]New thread 3066654052 created [08:21:13]Thread 3066510692 joined [08:21:13]Waiting for new connection... [08:21:13] Sock 9.Parse request [08:21:13]Sock 9.Check first char [08:21:13]Sock 9.First char is OK [08:21:13]request: POST /json_proto HTTP/1.0 [08:21:13]Method: POST [08:21:13]URL: /json_proto [08:21:13]Method is POST - this is cgi request [08:21:13]url: /json_proto [08:21:13]query_string will be loaded in cgi processing [08:21:13]execute_cgi json_proto POST (null) [08:21:13]execute_cgi path=json_proto method=POST [08:21:13]POST find Content-Length [08:21:13]Host: 172.17.46.131:8080 [08:21:13]Content-Length: 677 [08:21:13]Content-Type: application/json [08:21:13] [08:21:13]POST finish read [08:21:13]Found Content-Length = 677 [08:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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:21:13]execute_script... [08:21: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)412372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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:21:13]POST & json_proto [08:21:13]process_json_proto [08:21:13]json parsed OK: [08:21:13]protocol is kg_v1.0 [08:21:13]action value=close_receipt [08:21:13]process_action close_receipt [08:21:13]cmd_close_receipt [08:21:13]MH_GetDate [08:21:13]Write to MH i2c: F0 00 00 40 18 47 [08:21:13]Write i2c OK [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: F0 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: F0 09 00 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: F0 09 00 40 18 00 FC E5 B6 67 7E 41 4F 65 C1 [08:21:13]GetLastDocTimeStamp 1740039654 [08:21:13]current date 1740039676 [08:21:13]FM_GetShiftState [08:21:13]SAM_PROTO_GetShiftState [08:21:13]wFMCommunicate request_size=4 [08:21:13]MH_SAM_APDU [08:21:13]CAPDU: 80 13 01 00 [08:21:13]Write to MH i2c: E2 08 00 41 18 80 13 01 00 00 00 00 00 D6 [08:21:13]Write i2c OK [08:21:13]MH_I2C_Read... [08:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:13]Read from MH i2c: E2 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 0E 00 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 0E 00 41 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 28 [08:21:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:21:13]wFMCommunicate OK [08:21:13]SAM_PROTO_GetShiftState done [08:21:13]FM_GetShiftState done [08:21:13]opened in 1740011697 [08:21:13]opened+sec_in_day 1740098097 [08:21:13]quantity*price = 50042 [08:21:13]sum+1 = 50043 [08:21:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 20 20.02.2025 08:21 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187219 ФПД: 124846284535603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T082116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187219&fm=124846284535603&tin=02508201610067®Number=0000000000091857&sum=50000 [08:21:14]StoreToDocumentArchive [08:21:14]shift 648 fd 187219 [08:21:14]save to /storage/0648/doc_00187219 [08:21:14]save last doc name /storage/0648/doc_00187219 to /storage/kkm_last_doc_name [08:21:14]save OK [08:21:14]Clear old archive folders... [08:21:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:14]tlvbuf is B6E78800 [08:21:14]SAM_PROTO_ClearQueue [08:21:14]wFMCommunicate request_size=4 [08:21:14]MH_SAM_APDU [08:21:14]CAPDU: 80 09 00 00 [08:21:14]Write to MH i2c: E2 08 00 4E 18 80 09 00 00 00 00 00 00 D8 [08:21:14]Write i2c OK [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 [08:21:14]MH_I2C_Read... [08:21:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:14]Read from MH i2c: E2 03 00 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [08:21:14]RAPDU: 90 00 [08:21:14]wFMCommunicate OK [08:21:14]SAM_PROTO_ClearQueue done [08:21:14]KKMCreateOFDPacket [08:21:14]OFDProtocolAddRootSTLVToBuf [08:21:14]FM_MakeSignedData [08:21:14]FM_MakeSignedData [08:21:14]SAM_PROTO_SignData [08:21:14]wFMCommunicate request_size=4 [08:21:14]MH_SAM_APDU [08:21:14]CAPDU: 80 0D 01 02 [08:21:14]Write to MH i2c: E2 08 00 4F 18 80 0D 01 02 00 00 00 00 E0 [08:21:14]Write i2c OK [08:21:14]MH_I2C_Read... [08:21:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:14]Read from MH i2c: E2 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 03 00 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [08:21:14]RAPDU: 90 00 [08:21:14]wFMCommunicate OK [08:21:14]wFMCommunicate request_size=255 [08:21:14]MH_SAM_APDU [08:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 14 00 00 00 F4 03 04 00 FC E5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DB 02 00 35 04 06 00 71 [08:21:14]Write to MH i2c: E2 02 01 50 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 14 00 00 00 F4 03 04 00 FC E5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DB 02 00 35 04 06 00 71 00 00 A2 [08:21:14]Write i2c OK [08:21:14]MH_I2C_Read... [08:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:14]Read from MH i2c: E2 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 03 00 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [08:21:14]RAPDU: 90 00 [08:21:14]wFMCommunicate OK [08:21:14]wFMCommunicate request_size=10 [08:21:14]MH_SAM_APDU [08:21:14]CAPDU: 80 0D 02 02 05 8C 0A 70 F7 33 [08:21:14]Write to MH i2c: E2 0D 00 51 18 80 0D 02 02 05 00 8C 0A 70 F7 33 00 00 1D [08:21:14]Write i2c OK [08:21:14]MH_I2C_Read... [08:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:14]Read from MH i2c: E2 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 03 00 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 03 00 51 18 00 90 00 DD [08:21:14]RAPDU: 90 00 [08:21:14]wFMCommunicate OK [08:21:14]wFMCommunicate request_size=4 [08:21:14]MH_SAM_APDU [08:21:14]CAPDU: 80 0D 03 02 [08:21:14]Write to MH i2c: E2 08 00 52 18 80 0D 03 02 00 00 00 00 E5 [08:21:14]Write i2c OK [08:21:14]MH_I2C_Read... [08:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:14]Read from MH i2c: E2 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 0B 00 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 0B 00 52 18 00 2D 92 51 0C D7 21 B0 CE 90 00 78 [08:21:14]RAPDU: 2D 92 51 0C D7 21 B0 CE 90 00 [08:21:14]wFMCommunicate OK [08:21:14]SAM_PROTO_SignData done [08:21:14]FM_MakeSignedData done [08:21:14]CreateOFDProtocolMessage [08:21:14]wFMCommunicate request_size=4 [08:21:14]MH_SAM_APDU [08:21:14]CAPDU: 80 11 00 00 [08:21:14]Write to MH i2c: E2 08 00 53 18 80 11 00 00 00 00 00 00 E5 [08:21:14]Write i2c OK [08:21:14]MH_I2C_Read... [08:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:14]Read from MH i2c: E2 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 17 00 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: E2 17 00 53 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [08:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:21:14]wFMCommunicate OK [08:21:14]CreateOFDProtocolMessage done [08:21:14]OFDSenderStorePacket 187219 [08:21:14]StoreOFDPacket docnum=187219 [08:21:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8B E0 07 01 DB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 14 00 00 00 F4 03 04 00 FC E5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DB 02 00 35 04 06 00 71 8C 0A 70 F7 33 2D 92 51 0C D7 21 B0 CE [08:21:14]CheckFolder [08:21:14]dirname=/storage/ofd_packets [08:21:14]CheckFolder done [08:21:14]ProducePacketName [08:21:14]name=ofd_packets/00187219 [08:21:14]NVStorageSaveData ofd_packets/00187219 [08:21:14]File name is /storage/ofd_packets/00187219 [08:21:14]Write 301 bytes [08:21:14]NVStorageSaveData done [08:21:14]OFDSenderStorePacket done [08:21:14]KKMCreateOFDPacket done [08:21:14]NVStorageSaveData kkm_last_timestamp [08:21:14]File name is /storage/kkm_last_timestamp [08:21:14]Write 4 bytes [08:21:14]NVStorageSaveData done [08:21:14]ExternCall_PrintAddStr [08:21:14]wPrintStart [08:21:14]Write to MH i2c: 01 00 00 54 18 6C [08:21:14]Write i2c OK [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: 01 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: 01 07 00 [08:21:14]MH_I2C_Read... [08:21:14]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 FF 0F 81 [08:21:14]RasterBufferAndPrint [08:21:14]line Счет N : (1)412372 [08:21:14]line ИНН: 02508201610067 [08:21:14]line Контрольно-Кассовый Чек [08:21:14]line ПРОДАЖА [08:21:14]line ТРК (МРК, ГНК) : 23 [08:21:14]line Товар: 2710124500 [08:21:14]line Аи-95-К-5 [08:21:14]line 6.960 * 71.90 [08:21:14]line = 500.42 [08:21:14]line НДС 12% НСП 1% [08:21:14]line > о реализуемом товаре [08:21:14]line ОКРУГЛЕНИЕ: -0.42 [08:21:14]line ИТОГО: 500.00 [08:21:14]line Внесено: 500.00 [08:21:14]line СДАЧА: 0.00 [08:21:14]line НСП 1% : 4.43 [08:21:14]line НДС 12% : 53.14 [08:21:14]line Наличными: 500.00 [08:21:14]line Безнал.: 0.00 [08:21:14]line Место: АЗС № 92 "Партнер Нефть" [08:21:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:21:14]line СНО: Общий режим [08:21:14]line Чек 20 20.02.2025 08:21 [08:21:14]line Смена: 648 ФФД: 1.0 [08:21:14]line ЗНМ: 0300000118 [08:21:14]line РНМ: 0000000000091857 [08:21:14]line Версия ККМ: 001 [08:21:14]line ФМ: 0000000000871826 [08:21:14]line ФД: 187219 [08:21:14]line ФПД: 124846284535603 [08:21:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T082116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187219&fm=124846284535603&tin=02508201610067®Number=0000000000091857&sum=50000 [08:21:15]OFD Sender: Processing packet 187219 [packets to send 49, broken 48] [08:21:15]ProducePacketName [08:21:15]name=ofd_packets/00187219 [08:21:15]OFD Sender: To server: pG, [08:21:15]CommunicateWithHost lk.salyk.kg:30040 [08:21:15]ConnectInit lk.salyk.kg [08:21:15]written 0, free lines is 4095 [08:21:15]Connected sock=10 [08:21:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8B E0 07 01 DB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 14 00 00 00 F4 03 04 00 FC E5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DB 02 00 35 04 06 00 71 8C 0A 70 F7 33 2D 92 51 0C D7 21 B0 CE [08:21:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E2 3B 47 00 4F A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DB 02 00 F4 03 04 00 4E 8C B6 67 B6 04 01 00 00 94 9F 2A E7 63 6A E2 85 [08:21:15]CommunicateWithHost err = 0 [08:21:15]CheckOFDResponse [08:21:15]1017 (14) - 77093643461234 [08:21:15]1041 (16) - 0000000000871826 [08:21:15]1040 (4) - 187219 [08:21:15]1012 (4) - 20.02.2025 01:58 [08:21:15]1206 (1) - 0 [08:21:15]OFD Sender: Remove packet 187219 [08:21:15]ProducePacketName [08:21:15]name=ofd_packets/00187219 [08:21:15]NVStorageDeleteData [08:21:15]Write to MH i2c: 01 00 00 7F 18 97 [08:21:15]Write i2c OK [08:21:15]MH_I2C_Read... [08:21:15]Read from MH i2c: 01 [08:21:15]MH_I2C_Read... [08:21:15]Read from MH i2c: 01 07 00 [08:21:15]MH_I2C_Read... [08:21:15]Read from MH i2c: 01 07 00 7F 18 00 00 00 00 00 00 0D AB [08:21:15]RasterBufferAndPrint [08:21:15]line [08:21:15]line [08:21:15]line [08:21:15]line [08:21:15]line [08:21:15]written 0, free lines is 3334 [08:21:15]MH_Cut [08:21:15]Write to MH i2c: D1 01 00 86 18 01 70 [08:21:15]Write i2c OK [08:21:15]MH_I2C_Read... [08:21:15]Read from MH i2c: D1 [08:21:15]MH_I2C_Read... [08:21:15]Read from MH i2c: D1 01 00 [08:21:15]MH_I2C_Read... [08:21:15]Read from MH i2c: D1 01 00 86 18 00 6F [08:21:15]Write to MH i2c: 01 00 00 87 18 9F [08:21:15]Write i2c OK [08:21:15]MH_I2C_Read... [08:21:16]OFD Sender: No OFD packet to send [08:21:16]*** Cut start [08:21:16]*** Partial cut [08:21:16]*** CUTSNS_PIN = 1 [08:21:16]*** CUTSNS_PIN = 0 [08:21:16]*** Brake cut motor [08:21:17]Read from MH i2c: 01 [08:21:17]MH_I2C_Read... [08:21:17]*** Stop cut motor [08:21:17]*** Cut end [08:21:17]Read from MH i2c: 01 07 00 [08:21:17]MH_I2C_Read... [08:21:17]Read from MH i2c: 01 07 00 87 18 00 00 00 00 00 FF 0F B4 [08:21:17]process_action close_receipt done [08:21:17]requested_data is exist [08:21:17]produce_requested_data [08:21:17]requested_item fm.sn is exist - process it [08:21:17]wFMCommunicate request_size=4 [08:21:17]MH_SAM_APDU [08:21:17]CAPDU: 80 11 00 00 [08:21:17]Write to MH i2c: E2 08 00 88 18 80 11 00 00 00 00 00 00 1A [08:21:17]Write i2c OK [08:21:17]MH_I2C_Read... [08:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:17]Read from MH i2c: E2 [08:21:17]MH_I2C_Read... [08:21:17]Read from MH i2c: E2 17 00 [08:21:17]MH_I2C_Read... [08:21:17]Read from MH i2c: E2 17 00 88 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [08:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:21:17]wFMCommunicate OK [08:21:17]requested_item fd.num is exist - process it [08:21:17]SAM_PROTO_GetFieldsCounters [08:21:17]wFMCommunicate request_size=4 [08:21:17]MH_SAM_APDU [08:21:17]CAPDU: 80 13 00 00 [08:21:17]Write to MH i2c: E2 08 00 89 18 80 13 00 00 00 00 00 00 1D [08:21:17]Write i2c OK [08:21:17]MH_I2C_Read... [08:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:17]Read from MH i2c: E2 [08:21:17]MH_I2C_Read... [08:21:17]Read from MH i2c: E2 62 00 [08:21:17]MH_I2C_Read... [08:21:17]Read from MH i2c: E2 62 00 89 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 53 DB 02 00 0E 04 04 00 88 02 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 39 [08:21:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 53 DB 02 00 0E 04 04 00 88 02 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 [08:21:17]wFMCommunicate OK [08:21:17]SAM_PROTO_GetFieldsCounters done [08:21:17]requested_item shift.num is exist - process it [08:21:17]requested_item shift.opened is exist - process it [08:21:17]req_shift_opened [08:21:17]FM_GetShiftState [08:21:17]SAM_PROTO_GetShiftState [08:21:17]wFMCommunicate request_size=4 [08:21:17]MH_SAM_APDU [08:21:17]CAPDU: 80 13 01 00 [08:21:17]Write to MH i2c: E2 08 00 8A 18 80 13 01 00 00 00 00 00 1F [08:21:17]Write i2c OK [08:21:17]MH_I2C_Read... [08:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:17]Read from MH i2c: E2 [08:21:17]MH_I2C_Read... [08:21:17]Read from MH i2c: E2 0E 00 [08:21:17]MH_I2C_Read... [08:21:17]Read from MH i2c: E2 0E 00 8A 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 71 [08:21:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:21:17]wFMCommunicate OK [08:21:17]SAM_PROTO_GetShiftState done [08:21:17]FM_GetShiftState done [08:21:17]req_shift_opened done [08:21:17]requested_item shift.open_date is exist - process it [08:21:17]req_shift_open_date [08:21:17]req_shift_open_date done [08:21:17]produce_requested_data done [08:21:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187219,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:21:17]process_action_free close_receipt [08:21:17]json_value_free [08:21:17]json_value_free done [08:21:17]process_json_proto returns [08:21:17]Send response to host [08:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187219,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:21:17]free response buf [08:21:17]execute_script done [08:21:17]execute_script returns [08:21:17]free content buf [08:21:17]Sock 9.Close socket [08:21:17]Sock 9.Thread stoped [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:17]accept exits with 7 [08:29:17]New connection [08:29:17]New thread 3066510692 created [08:29:17]Thread 3066654052 joined [08:29:17]Waiting for new connection... [08:29:17] Sock 7.Parse request [08:29:17]Sock 7.Check first char [08:29:17]Sock 7.First char is OK [08:29:17]request: POST /json_proto HTTP/1.0 [08:29:17]Method: POST [08:29:17]URL: /json_proto [08:29:17]Method is POST - this is cgi request [08:29:17]url: /json_proto [08:29:17]query_string will be loaded in cgi processing [08:29:17]execute_cgi json_proto POST (null) [08:29:17]execute_cgi path=json_proto method=POST [08:29:17]POST find Content-Length [08:29:17]Host: 172.17.46.131:8080 [08:29:17]Content-Length: 808 [08:29:17]Content-Type: application/json [08:29:17] [08:29:17]POST finish read [08:29:17]Found Content-Length = 808 [08:29:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175358.4175357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:17]execute_script... [08:29: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)412373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175358.4175357", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:17]POST & json_proto [08:29:17]process_json_proto [08:29:17]json parsed OK: [08:29:17]protocol is kg_v1.0 [08:29:17]action value=close_receipt [08:29:17]process_action close_receipt [08:29:17]cmd_close_receipt [08:29:17]MH_GetDate [08:29:17]Write to MH i2c: F0 00 00 8B 18 92 [08:29:17]Write i2c OK [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: F0 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: F0 09 00 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: F0 09 00 8B 18 00 E1 E7 B6 67 7E 41 4F 65 F3 [08:29:17]GetLastDocTimeStamp 1740039676 [08:29:17]current date 1740040161 [08:29:17]FM_GetShiftState [08:29:17]SAM_PROTO_GetShiftState [08:29:17]wFMCommunicate request_size=4 [08:29:17]MH_SAM_APDU [08:29:17]CAPDU: 80 13 01 00 [08:29:17]Write to MH i2c: E2 08 00 8C 18 80 13 01 00 00 00 00 00 21 [08:29:17]Write i2c OK [08:29:17]MH_I2C_Read... [08:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:18]Read from MH i2c: E2 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 0E 00 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 0E 00 8C 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 73 [08:29:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:29:18]wFMCommunicate OK [08:29:18]SAM_PROTO_GetShiftState done [08:29:18]FM_GetShiftState done [08:29:18]opened in 1740011697 [08:29:18]opened+sec_in_day 1740098097 [08:29:18]quantity*price = 0 [08:29:18]sum+1 = 1 [08:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 21 20.02.2025 08:29 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175358.4175357 ФМ: 0000000000871826 ФД: 187220 ФПД: 43838251215805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T082921&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187220&fm=43838251215805&tin=02508201610067®Number=0000000000091857&sum=0 [08:29:19]StoreToDocumentArchive [08:29:19]shift 648 fd 187220 [08:29:19]save to /storage/0648/doc_00187220 [08:29:19]save last doc name /storage/0648/doc_00187220 to /storage/kkm_last_doc_name [08:29:19]save OK [08:29:19]Clear old archive folders... [08:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:19]tlvbuf is 01F42B60 [08:29:19]SAM_PROTO_ClearQueue [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 09 00 00 [08:29:19]Write to MH i2c: E2 08 00 99 18 80 09 00 00 00 00 00 00 23 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]SAM_PROTO_ClearQueue done [08:29:19]KKMCreateOFDPacket [08:29:19]OFDProtocolAddRootSTLVToBuf [08:29:19]FM_MakeSignedData [08:29:19]FM_MakeSignedData [08:29:19]SAM_PROTO_SignData [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 0D 01 02 [08:29:19]Write to MH i2c: E2 08 00 9A 18 80 0D 01 02 00 00 00 00 2B [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 9A 18 00 90 00 26 [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]wFMCommunicate request_size=255 [08:29:19]MH_SAM_APDU [08:29: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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E1 E7 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DB 02 00 35 04 06 00 27 [08:29:19]Write to MH i2c: E2 02 01 9B 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E1 E7 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DB 02 00 35 04 06 00 27 00 00 EF [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]wFMCommunicate request_size=10 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 0D 02 02 05 DE E3 64 2B BD [08:29:19]Write to MH i2c: E2 0D 00 9C 18 80 0D 02 02 05 00 DE E3 64 2B BD 00 00 45 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 9C 18 00 90 00 28 [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 0D 03 02 [08:29:19]Write to MH i2c: E2 08 00 9D 18 80 0D 03 02 00 00 00 00 30 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 0B 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 0B 00 9D 18 00 F3 7E 4B 38 89 2E F8 3D 90 00 11 [08:29:19]RAPDU: F3 7E 4B 38 89 2E F8 3D 90 00 [08:29:19]wFMCommunicate OK [08:29:19]SAM_PROTO_SignData done [08:29:19]FM_MakeSignedData done [08:29:19]CreateOFDProtocolMessage [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 11 00 00 [08:29:19]Write to MH i2c: E2 08 00 9E 18 80 11 00 00 00 00 00 00 30 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 17 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 17 00 9E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 83 [08:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:29:19]wFMCommunicate OK [08:29:19]CreateOFDProtocolMessage done [08:29:19]OFDSenderStorePacket 187220 [08:29:19]StoreOFDPacket docnum=187220 [08:29:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7D E5 07 01 95 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E1 E7 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DB 02 00 35 04 06 00 27 DE E3 64 2B BD F3 7E 4B 38 89 2E F8 3D [08:29:19]CheckFolder [08:29:19]dirname=/storage/ofd_packets [08:29:19]CheckFolder done [08:29:19]ProducePacketName [08:29:19]name=ofd_packets/00187220 [08:29:19]NVStorageSaveData ofd_packets/00187220 [08:29:19]File name is /storage/ofd_packets/00187220 [08:29:19]Write 301 bytes [08:29:19]NVStorageSaveData done [08:29:19]OFDSenderStorePacket done [08:29:19]KKMCreateOFDPacket done [08:29:19]NVStorageSaveData kkm_last_timestamp [08:29:19]File name is /storage/kkm_last_timestamp [08:29:19]Write 4 bytes [08:29:19]NVStorageSaveData done [08:29:19]ExternCall_PrintAddStr [08:29:19]wPrintStart [08:29:19]Write to MH i2c: 01 00 00 9F 18 B7 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: 01 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: 01 07 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: 01 07 00 9F 18 00 00 00 00 00 FF 0F CC [08:29:19]RasterBufferAndPrint [08:29:19]line Счет N : (1)412373 [08:29:19]line ИНН: 02508201610067 [08:29:19]line Контрольно-Кассовый Чек [08:29:19]line ПРОДАЖА [08:29:19]line ТРК (МРК, ГНК) : 22 [08:29:19]line Товар: 2710124130 [08:29:19]line Аи-92-К-2 [08:29:19]line 40.000 * 0.00 [08:29:19]line = 0.00 [08:29:19]line НДС 12% НСП 1% [08:29:19]line > о реализуемом товаре [08:29:19]line ИТОГО: 0.00 [08:29:19]line НСП 1% : 0.00 [08:29:19]line НДС 12% : 0.00 [08:29:19]line Наличными: 0.00 [08:29:19]line Безнал.: 0.00 [08:29:19]line Место: АЗС № 92 "Партнер Нефть" [08:29:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:29:19]line СНО: Общий режим [08:29:19]line Чек 21 20.02.2025 08:29 [08:29:19]line Смена: 648 ФФД: 1.0 [08:29:19]line ЗНМ: 0300000118 [08:29:19]line РНМ: 0000000000091857 [08:29:19]line Версия ККМ: 001 [08:29:19]line Талоны: Топливные Талоны [08:29:19]line 4175358.4175357 [08:29:19]line ФМ: 0000000000871826 [08:29:19]line ФД: 187220 [08:29:19]line ФПД: 43838251215805 [08:29:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T082921&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187220&fm=43838251215805&tin=02508201610067®Number=0000000000091857&sum=0 [08:29:20]written 0, free lines is 4095 [08:29:20]OFD Sender: Processing packet 187220 [packets to send 49, broken 48] [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00187220 [08:29:20]OFD Sender: To server: pG, [08:29:20]CommunicateWithHost lk.salyk.kg:30040 [08:29:20]ConnectInit lk.salyk.kg [08:29:20]Connected sock=10 [08: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 31 38 32 36 0F 01 00 00 7D E5 07 01 95 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E1 E7 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DB 02 00 35 04 06 00 27 DE E3 64 2B BD F3 7E 4B 38 89 2E F8 3D [08:29:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9E AF 47 00 99 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DB 02 00 F4 03 04 00 33 8E B6 67 B6 04 01 00 00 52 AB 33 4C 11 43 74 C5 [08:29:20]CommunicateWithHost err = 0 [08:29:20]CheckOFDResponse [08:29:20]1017 (14) - 77093643461234 [08:29:20]1041 (16) - 0000000000871826 [08:29:20]1040 (4) - 187220 [08:29:20]1012 (4) - 20.02.2025 02:06 [08:29:20]1206 (1) - 0 [08:29:20]OFD Sender: Remove packet 187220 [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00187220 [08:29:20]NVStorageDeleteData [08:29:20]Write to MH i2c: 01 00 00 C9 18 E1 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 07 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 07 00 C9 18 00 00 00 00 00 18 0D 0D [08:29:20]RasterBufferAndPrint [08:29:20]line [08:29:20]line [08:29:20]line [08:29:20]line [08:29:20]line [08:29:20]written 0, free lines is 3358 [08:29:20]MH_Cut [08:29:20]Write to MH i2c: D1 01 00 D0 18 01 BA [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: D1 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: D1 01 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: D1 01 00 D0 18 00 B9 [08:29:20]Write to MH i2c: 01 00 00 D1 18 E9 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]OFD Sender: No OFD packet to send [08:29:21]*** Cut start [08:29:21]*** Partial cut [08:29:21]*** CUTSNS_PIN = 1 [08:29:21]*** CUTSNS_PIN = 0 [08:29:21]*** Brake cut motor [08:29:21]Read from MH i2c: 01 [08:29:21]MH_I2C_Read... [08:29:21]*** Stop cut motor [08:29:21]*** Cut end [08:29:21]Read from MH i2c: 01 07 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 FF 0F FE [08:29:21]process_action close_receipt done [08:29:21]requested_data is exist [08:29:21]produce_requested_data [08:29:21]requested_item fm.sn is exist - process it [08:29:21]wFMCommunicate request_size=4 [08:29:21]MH_SAM_APDU [08:29:21]CAPDU: 80 11 00 00 [08:29:21]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:21]Read from MH i2c: E2 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: E2 17 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B7 [08:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:29:21]wFMCommunicate OK [08:29:21]requested_item fd.num is exist - process it [08:29:21]SAM_PROTO_GetFieldsCounters [08:29:21]wFMCommunicate request_size=4 [08:29:21]MH_SAM_APDU [08:29:21]CAPDU: 80 13 00 00 [08:29:21]Write to MH i2c: E2 08 00 D3 18 80 13 00 00 00 00 00 00 67 [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 62 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 62 00 D3 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 54 DB 02 00 0E 04 04 00 88 02 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 87 [08: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 54 DB 02 00 0E 04 04 00 88 02 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 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_GetFieldsCounters done [08:29:22]requested_item shift.num is exist - process it [08:29:22]requested_item shift.opened is exist - process it [08:29:22]req_shift_opened [08:29:22]FM_GetShiftState [08:29:22]SAM_PROTO_GetShiftState [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 13 01 00 [08:29:22]Write to MH i2c: E2 08 00 D4 18 80 13 01 00 00 00 00 00 69 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0E 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0E 00 D4 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BB [08:29:22]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_GetShiftState done [08:29:22]FM_GetShiftState done [08:29:22]req_shift_opened done [08:29:22]requested_item shift.open_date is exist - process it [08:29:22]req_shift_open_date [08:29:22]req_shift_open_date done [08:29:22]produce_requested_data done [08:29:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187220,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:29:22]process_action_free close_receipt [08:29:22]json_value_free [08:29:22]json_value_free done [08:29:22]process_json_proto returns [08:29:22]Send response to host [08:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187220,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:29:22]free response buf [08:29:22]execute_script done [08:29:22]execute_script returns [08:29:22]free content buf [08:29:22]Sock 7.Close socket [08:29:22]Sock 7.Thread stoped [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:50]accept exits with 9 [08:30:50]New connection [08:30:50]New thread 3066654052 created [08:30:50]Thread 3066510692 joined [08:30:50]Waiting for new connection... [08:30:50] Sock 9.Parse request [08:30:50]Sock 9.Check first char [08:30:50]Sock 9.First char is OK [08:30:50]request: POST /json_proto HTTP/1.0 [08:30:50]Method: POST [08:30:50]URL: /json_proto [08:30:50]Method is POST - this is cgi request [08:30:50]url: /json_proto [08:30:50]query_string will be loaded in cgi processing [08:30:50]execute_cgi json_proto POST (null) [08:30:50]execute_cgi path=json_proto method=POST [08:30:50]POST find Content-Length [08:30:50]Host: 172.17.46.131:8080 [08:30:50]Content-Length: 673 [08:30:50]Content-Type: application/json [08:30:50] [08:30:50]POST finish read [08:30:50]Found Content-Length = 673 [08:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:30:50]execute_script... [08:30: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)412375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:30:50]POST & json_proto [08:30:50]process_json_proto [08:30:50]json parsed OK: [08:30:50]protocol is kg_v1.0 [08:30:50]action value=close_receipt [08:30:50]process_action close_receipt [08:30:50]cmd_close_receipt [08:30:50]MH_GetDate [08:30:50]Write to MH i2c: F0 00 00 D5 18 DC [08:30:50]Write i2c OK [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: F0 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: F0 09 00 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: F0 09 00 D5 18 00 3E E8 B6 67 7E 41 4F 65 9B [08:30:50]GetLastDocTimeStamp 1740040161 [08:30:50]current date 1740040254 [08:30:50]FM_GetShiftState [08:30:50]SAM_PROTO_GetShiftState [08:30:50]wFMCommunicate request_size=4 [08:30:50]MH_SAM_APDU [08:30:50]CAPDU: 80 13 01 00 [08:30:50]Write to MH i2c: E2 08 00 D6 18 80 13 01 00 00 00 00 00 6B [08:30:50]Write i2c OK [08:30:50]MH_I2C_Read... [08:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:50]Read from MH i2c: E2 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: E2 0E 00 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: E2 0E 00 D6 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BD [08:30:50]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:30:50]wFMCommunicate OK [08:30:50]SAM_PROTO_GetShiftState done [08:30:50]FM_GetShiftState done [08:30:50]opened in 1740011697 [08:30:50]opened+sec_in_day 1740098097 [08:30:50]quantity*price = 50021 [08:30:50]sum+1 = 50022 [08:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 22 20.02.2025 08:30 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187221 ФПД: 213143855358073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083054&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187221&fm=213143855358073&tin=02508201610067®Number=0000000000091857&sum=50000 [08:30:51]StoreToDocumentArchive [08:30:51]shift 648 fd 187221 [08:30:51]save to /storage/0648/doc_00187221 [08:30:51]save last doc name /storage/0648/doc_00187221 to /storage/kkm_last_doc_name [08:30:51]save OK [08:30:51]Clear old archive folders... [08:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:30:51]tlvbuf is 01FAA3B0 [08:30:51]SAM_PROTO_ClearQueue [08:30:51]wFMCommunicate request_size=4 [08:30:51]MH_SAM_APDU [08:30:51]CAPDU: 80 09 00 00 [08:30:51]Write to MH i2c: E2 08 00 E3 18 80 09 00 00 00 00 00 00 6D [08:30:51]Write i2c OK [08:30:51]MH_I2C_Read... [08:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:52]Read from MH i2c: E2 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 03 00 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 03 00 E3 18 00 90 00 6F [08:30:52]RAPDU: 90 00 [08:30:52]wFMCommunicate OK [08:30:52]SAM_PROTO_ClearQueue done [08:30:52]KKMCreateOFDPacket [08:30:52]OFDProtocolAddRootSTLVToBuf [08:30:52]FM_MakeSignedData [08:30:52]FM_MakeSignedData [08:30:52]SAM_PROTO_SignData [08:30:52]wFMCommunicate request_size=4 [08:30:52]MH_SAM_APDU [08:30:52]CAPDU: 80 0D 01 02 [08:30:52]Write to MH i2c: E2 08 00 E4 18 80 0D 01 02 00 00 00 00 75 [08:30:52]Write i2c OK [08:30:52]MH_I2C_Read... [08:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:52]Read from MH i2c: E2 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 03 00 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 03 00 E4 18 00 90 00 70 [08:30:52]RAPDU: 90 00 [08:30:52]wFMCommunicate OK [08:30:52]wFMCommunicate request_size=255 [08:30:52]MH_SAM_APDU [08:30: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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3E E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DB 02 00 35 04 06 00 C1 DA 6B C8 [08:30:52]Write to MH i2c: E2 02 01 E5 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3E E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DB 02 00 35 04 06 00 C1 DA 6B C8 00 00 14 [08:30:52]Write i2c OK [08:30:52]MH_I2C_Read... [08:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:52]Read from MH i2c: E2 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 03 00 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [08:30:52]RAPDU: 90 00 [08:30:52]wFMCommunicate OK [08:30:52]wFMCommunicate request_size=7 [08:30:52]MH_SAM_APDU [08:30:52]CAPDU: 80 0D 02 02 02 E0 79 [08:30:52]Write to MH i2c: E2 0A 00 E6 18 80 0D 02 02 02 00 E0 79 00 00 D5 [08:30:52]Write i2c OK [08:30:52]MH_I2C_Read... [08:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:52]Read from MH i2c: E2 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 03 00 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [08:30:52]RAPDU: 90 00 [08:30:52]wFMCommunicate OK [08:30:52]wFMCommunicate request_size=4 [08:30:52]MH_SAM_APDU [08:30:52]CAPDU: 80 0D 03 02 [08:30:52]Write to MH i2c: E2 08 00 E7 18 80 0D 03 02 00 00 00 00 7A [08:30:52]Write i2c OK [08:30:52]MH_I2C_Read... [08:30:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:52]Read from MH i2c: E2 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 0B 00 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 0B 00 E7 18 00 74 0E 0F B0 86 D2 71 BC 90 00 41 [08:30:52]RAPDU: 74 0E 0F B0 86 D2 71 BC 90 00 [08:30:52]wFMCommunicate OK [08:30:52]SAM_PROTO_SignData done [08:30:52]FM_MakeSignedData done [08:30:52]CreateOFDProtocolMessage [08:30:52]wFMCommunicate request_size=4 [08:30:52]MH_SAM_APDU [08:30:52]CAPDU: 80 11 00 00 [08:30:52]Write to MH i2c: E2 08 00 E8 18 80 11 00 00 00 00 00 00 7A [08:30:52]Write i2c OK [08:30:52]MH_I2C_Read... [08:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:52]Read from MH i2c: E2 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 17 00 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: E2 17 00 E8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [08:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:30:52]wFMCommunicate OK [08:30:52]CreateOFDProtocolMessage done [08:30:52]OFDSenderStorePacket 187221 [08:30:52]StoreOFDPacket docnum=187221 [08:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 54 14 04 01 5F 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3E E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DB 02 00 35 04 06 00 C1 DA 6B C8 E0 79 74 0E 0F B0 86 D2 71 BC [08:30:52]CheckFolder [08:30:52]dirname=/storage/ofd_packets [08:30:52]CheckFolder done [08:30:52]ProducePacketName [08:30:52]name=ofd_packets/00187221 [08:30:52]NVStorageSaveData ofd_packets/00187221 [08:30:52]File name is /storage/ofd_packets/00187221 [08:30:52]Write 298 bytes [08:30:52]NVStorageSaveData done [08:30:52]OFDSenderStorePacket done [08:30:52]KKMCreateOFDPacket done [08:30:52]NVStorageSaveData kkm_last_timestamp [08:30:52]File name is /storage/kkm_last_timestamp [08:30:52]Write 4 bytes [08:30:52]NVStorageSaveData done [08:30:52]ExternCall_PrintAddStr [08:30:52]wPrintStart [08:30:52]Write to MH i2c: 01 00 00 E9 18 01 [08:30:52]Write i2c OK [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: 01 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: 01 07 00 [08:30:52]MH_I2C_Read... [08:30:52]Read from MH i2c: 01 07 00 E9 18 00 00 00 00 00 FF 0F 16 [08:30:52]RasterBufferAndPrint [08:30:52]line Счет N : (1)412375 [08:30:52]line ИНН: 02508201610067 [08:30:52]line Контрольно-Кассовый Чек [08:30:52]line ПРОДАЖА [08:30:52]line ТРК (МРК, ГНК) : 6 [08:30:52]line Товар: 2710194210 [08:30:52]line ДТ-К-5 [08:30:52]line 6.890 * 72.60 [08:30:52]line = 500.21 [08:30:52]line НДС 12% НСП 1% [08:30:52]line > о реализуемом товаре [08:30:52]line ОКРУГЛЕНИЕ: -0.21 [08:30:52]line ИТОГО: 500.00 [08:30:52]line Внесено: 500.00 [08:30:52]line СДАЧА: 0.00 [08:30:52]line НСП 1% : 4.43 [08:30:52]line НДС 12% : 53.12 [08:30:52]line Наличными: 500.00 [08:30:52]line Безнал.: 0.00 [08:30:52]line Место: АЗС № 92 "Партнер Нефть" [08:30:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:30:52]line СНО: Общий режим [08:30:52]line Чек 22 20.02.2025 08:30 [08:30:52]line Смена: 648 ФФД: 1.0 [08:30:52]line ЗНМ: 0300000118 [08:30:52]line РНМ: 0000000000091857 [08:30:52]line Версия ККМ: 001 [08:30:52]line ФМ: 0000000000871826 [08:30:52]line ФД: 187221 [08:30:52]line ФПД: 213143855358073 [08:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083054&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187221&fm=213143855358073&tin=02508201610067®Number=0000000000091857&sum=50000 [08:30:52]OFD Sender: Processing packet 187221 [packets to send 49, broken 48] [08:30:52]ProducePacketName [08:30:52]name=ofd_packets/00187221 [08:30:52]OFD Sender: To server: pG, [08:30:52]CommunicateWithHost lk.salyk.kg:30040 [08:30:52]ConnectInit lk.salyk.kg [08:30:52]written 0, free lines is 4095 [08:30:52]Connected sock=10 [08:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 54 14 04 01 5F 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 3E E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DB 02 00 35 04 06 00 C1 DA 6B C8 E0 79 74 0E 0F B0 86 D2 71 BC [08:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 28 2C 47 00 17 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DB 02 00 F4 03 04 00 8F 8E B6 67 B6 04 01 00 00 D9 32 3F 9C EF 85 C3 92 [08:30:53]CommunicateWithHost err = 0 [08:30:53]CheckOFDResponse [08:30:53]1017 (14) - 77093643461234 [08:30:53]1041 (16) - 0000000000871826 [08:30:53]1040 (4) - 187221 [08:30:53]1012 (4) - 20.02.2025 02:08 [08:30:53]1206 (1) - 0 [08:30:53]OFD Sender: Remove packet 187221 [08:30:53]ProducePacketName [08:30:53]name=ofd_packets/00187221 [08:30:53]NVStorageDeleteData [08:30:53]Write to MH i2c: 01 00 00 14 19 2D [08:30:53]Write i2c OK [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: 01 [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: 01 07 00 [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: 01 07 00 14 19 00 00 00 00 00 FD 0C 3D [08:30:53]RasterBufferAndPrint [08:30:53]line [08:30:53]line [08:30:53]line [08:30:53]line [08:30:53]line [08:30:53]written 0, free lines is 3331 [08:30:53]MH_Cut [08:30:53]Write to MH i2c: D1 01 00 1B 19 01 06 [08:30:53]Write i2c OK [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: D1 [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: D1 01 00 [08:30:53]MH_I2C_Read... [08:30:53]Read from MH i2c: D1 01 00 1B 19 00 05 [08:30:53]Write to MH i2c: 01 00 00 1C 19 35 [08:30:53]Write i2c OK [08:30:53]MH_I2C_Read... [08:30:53]OFD Sender: No OFD packet to send [08:30:53]*** Cut start [08:30:53]*** Partial cut [08:30:53]*** CUTSNS_PIN = 1 [08:30:54]*** CUTSNS_PIN = 0 [08:30:54]*** Brake cut motor [08:30:54]Read from MH i2c: 01 [08:30:54]MH_I2C_Read... [08:30:54]*** Stop cut motor [08:30:54]*** Cut end [08:30:54]Read from MH i2c: 01 07 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 FF 0F 4A [08:30:54]process_action close_receipt done [08:30:54]requested_data is exist [08:30:54]produce_requested_data [08:30:54]requested_item fm.sn is exist - process it [08:30:54]wFMCommunicate request_size=4 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 11 00 00 [08:30:54]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 17 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 17 00 1D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [08:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:30:54]wFMCommunicate OK [08:30:54]requested_item fd.num is exist - process it [08:30:54]SAM_PROTO_GetFieldsCounters [08:30:54]wFMCommunicate request_size=4 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 13 00 00 [08:30:54]Write to MH i2c: E2 08 00 1E 19 80 13 00 00 00 00 00 00 B3 [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 62 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 62 00 1E 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 55 DB 02 00 0E 04 04 00 88 02 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 D7 [08:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 55 DB 02 00 0E 04 04 00 88 02 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 [08:30:54]wFMCommunicate OK [08:30:54]SAM_PROTO_GetFieldsCounters done [08:30:54]requested_item shift.num is exist - process it [08:30:54]requested_item shift.opened is exist - process it [08:30:54]req_shift_opened [08:30:54]FM_GetShiftState [08:30:54]SAM_PROTO_GetShiftState [08:30:54]wFMCommunicate request_size=4 [08:30:54]MH_SAM_APDU [08:30:54]CAPDU: 80 13 01 00 [08:30:54]Write to MH i2c: E2 08 00 1F 19 80 13 01 00 00 00 00 00 B5 [08:30:54]Write i2c OK [08:30:54]MH_I2C_Read... [08:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:54]Read from MH i2c: E2 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 0E 00 [08:30:54]MH_I2C_Read... [08:30:54]Read from MH i2c: E2 0E 00 1F 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 07 [08:30:54]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:30:54]wFMCommunicate OK [08:30:54]SAM_PROTO_GetShiftState done [08:30:54]FM_GetShiftState done [08:30:54]req_shift_opened done [08:30:54]requested_item shift.open_date is exist - process it [08:30:54]req_shift_open_date [08:30:54]req_shift_open_date done [08:30:54]produce_requested_data done [08:30:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187221,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:30:54]process_action_free close_receipt [08:30:54]json_value_free [08:30:54]json_value_free done [08:30:54]process_json_proto returns [08:30:54]Send response to host [08:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187221,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:30:54]free response buf [08:30:54]execute_script done [08:30:54]execute_script returns [08:30:54]free content buf [08:30:54]Sock 9.Close socket [08:30:54]Sock 9.Thread stoped [08:30:55]accept exits with 7 [08:30:55]New connection [08:30:55]New thread 3066510692 created [08:30:55]Thread 3066654052 joined [08:30:55]Waiting for new connection... [08:30:55] Sock 7.Parse request [08:30:55]Sock 7.Check first char [08:30:55]Sock 7.First char is OK [08:30:55]request: POST /json_proto HTTP/1.0 [08:30:55]Method: POST [08:30:55]URL: /json_proto [08:30:55]Method is POST - this is cgi request [08:30:55]url: /json_proto [08:30:55]query_string will be loaded in cgi processing [08:30:55]execute_cgi json_proto POST (null) [08:30:55]execute_cgi path=json_proto method=POST [08:30:55]POST find Content-Length [08:30:55]Host: 172.17.46.131:8080 [08:30:55]Content-Length: 800 [08:30:55]Content-Type: application/json [08:30:55] [08:30:55]POST finish read [08:30:55]Found Content-Length = 800 [08:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:55]execute_script... [08:30: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)412376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:55]POST & json_proto [08:30:55]process_json_proto [08:30:55]json parsed OK: [08:30:55]protocol is kg_v1.0 [08:30:55]action value=close_receipt [08:30:55]process_action close_receipt [08:30:55]cmd_close_receipt [08:30:55]MH_GetDate [08:30:55]Write to MH i2c: F0 00 00 20 19 28 [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 09 00 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 09 00 20 19 00 42 E8 B6 67 7E 41 4F 65 EB [08:30:55]GetLastDocTimeStamp 1740040254 [08:30:55]current date 1740040258 [08:30:55]FM_GetShiftState [08:30:55]SAM_PROTO_GetShiftState [08:30:55]wFMCommunicate request_size=4 [08:30:55]MH_SAM_APDU [08:30:55]CAPDU: 80 13 01 00 [08:30:55]Write to MH i2c: E2 08 00 21 19 80 13 01 00 00 00 00 00 B7 [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:55]Read from MH i2c: E2 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: E2 0E 00 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: E2 0E 00 21 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 09 [08:30:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:30:55]wFMCommunicate OK [08:30:55]SAM_PROTO_GetShiftState done [08:30:55]FM_GetShiftState done [08:30:55]opened in 1740011697 [08:30:55]opened+sec_in_day 1740098097 [08:30:55]quantity*price = 60027 [08:30:55]sum+1 = 60028 [08:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.27 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.27 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 23 20.02.2025 08:30 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187222 ФПД: 231643709933530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083058&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187222&fm=231643709933530&tin=02508201610067®Number=0000000000091857&sum=60027 [08:30:56]StoreToDocumentArchive [08:30:56]shift 648 fd 187222 [08:30:56]save to /storage/0648/doc_00187222 [08:30:56]save last doc name /storage/0648/doc_00187222 to /storage/kkm_last_doc_name [08:30:56]save OK [08:30:56]Clear old archive folders... [08:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:56]tlvbuf is 01F83D60 [08:30:56]SAM_PROTO_ClearQueue [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 09 00 00 [08:30:56]Write to MH i2c: E2 08 00 2E 19 80 09 00 00 00 00 00 00 B9 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [08:30:56]RAPDU: 90 00 [08:30:56]wFMCommunicate OK [08:30:56]SAM_PROTO_ClearQueue done [08:30:56]KKMCreateOFDPacket [08:30:56]OFDProtocolAddRootSTLVToBuf [08:30:56]FM_MakeSignedData [08:30:56]FM_MakeSignedData [08:30:56]SAM_PROTO_SignData [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 0D 01 02 [08:30:56]Write to MH i2c: E2 08 00 2F 19 80 0D 01 02 00 00 00 00 C1 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [08:30:56]RAPDU: 90 00 [08:30:56]wFMCommunicate OK [08:30:56]wFMCommunicate request_size=255 [08:30:56]MH_SAM_APDU [08:30: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DB 02 00 35 04 06 00 D2 [08:30:56]Write to MH i2c: E2 02 01 30 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DB 02 00 35 04 06 00 D2 00 00 D3 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [08:30:57]RAPDU: 90 00 [08:30:57]wFMCommunicate OK [08:30:57]wFMCommunicate request_size=10 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 0D 02 02 05 AD C1 0B 87 DA [08:30:57]Write to MH i2c: E2 0D 00 31 19 80 0D 02 02 05 00 AD C1 0B 87 DA 00 00 A8 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [08:30:57]RAPDU: 90 00 [08:30:57]wFMCommunicate OK [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 0D 03 02 [08:30:57]Write to MH i2c: E2 08 00 32 19 80 0D 03 02 00 00 00 00 C6 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 0B 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 0B 00 32 19 00 98 45 C4 E1 26 E8 52 05 90 00 AE [08:30:57]RAPDU: 98 45 C4 E1 26 E8 52 05 90 00 [08:30:57]wFMCommunicate OK [08:30:57]SAM_PROTO_SignData done [08:30:57]FM_MakeSignedData done [08:30:57]CreateOFDProtocolMessage [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 11 00 00 [08:30:57]Write to MH i2c: E2 08 00 33 19 80 11 00 00 00 00 00 00 C6 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 17 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 17 00 33 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [08:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:30:57]wFMCommunicate OK [08:30:57]CreateOFDProtocolMessage done [08:30:57]OFDSenderStorePacket 187222 [08:30:57]StoreOFDPacket docnum=187222 [08:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 E6 07 01 8D 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DB 02 00 35 04 06 00 D2 AD C1 0B 87 DA 98 45 C4 E1 26 E8 52 05 [08:30:57]CheckFolder [08:30:57]dirname=/storage/ofd_packets [08:30:57]CheckFolder done [08:30:57]ProducePacketName [08:30:57]name=ofd_packets/00187222 [08:30:57]NVStorageSaveData ofd_packets/00187222 [08:30:57]File name is /storage/ofd_packets/00187222 [08:30:57]Write 301 bytes [08:30:57]NVStorageSaveData done [08:30:57]OFDSenderStorePacket done [08:30:57]KKMCreateOFDPacket done [08:30:57]NVStorageSaveData kkm_last_timestamp [08:30:57]File name is /storage/kkm_last_timestamp [08:30:57]Write 4 bytes [08:30:57]NVStorageSaveData done [08:30:57]ExternCall_PrintAddStr [08:30:57]wPrintStart [08:30:57]Write to MH i2c: 01 00 00 34 19 4D [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 07 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 FF 0F 62 [08:30:57]RasterBufferAndPrint [08:30:57]line Счет N : (1)412376 [08:30:57]line ИНН: 02508201610067 [08:30:57]line Контрольно-Кассовый Чек [08:30:57]line ПРОДАЖА [08:30:57]line ТРК (МРК, ГНК) : 22 [08:30:57]line Товар: 2710124130 [08:30:57]line Аи-92-К-2 [08:30:57]line 9.350 * 64.20 [08:30:57]line = 600.27 [08:30:57]line НДС 12% НСП 1% [08:30:57]line > о реализуемом товаре [08:30:57]line ИТОГО: 600.27 [08:30:57]line НСП 1% : 5.31 [08:30:57]line НДС 12% : 63.74 [08:30:57]line Наличными: 0.00 [08:30:57]line Безнал.: 600.27 [08:30:57]line Место: АЗС № 92 "Партнер Нефть" [08:30:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:30:57]line СНО: Общий режим [08:30:57]line Чек 23 20.02.2025 08:30 [08:30:57]line Смена: 648 ФФД: 1.0 [08:30:57]line ЗНМ: 0300000118 [08:30:57]line РНМ: 0000000000091857 [08:30:57]line Версия ККМ: 001 [08:30:57]line Платежная система: O! деньги [08:30:57]line ФМ: 0000000000871826 [08:30:57]line ФД: 187222 [08:30:57]line ФПД: 231643709933530 [08:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083058&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187222&fm=231643709933530&tin=02508201610067®Number=0000000000091857&sum=60027 [08:30:57]written 0, free lines is 4095 [08:30:57]OFD Sender: Processing packet 187222 [packets to send 49, broken 48] [08:30:57]ProducePacketName [08:30:57]name=ofd_packets/00187222 [08:30:57]OFD Sender: To server: pG, [08:30:57]CommunicateWithHost lk.salyk.kg:30040 [08:30:57]ConnectInit lk.salyk.kg [08:30:57]Connected sock=10 [08:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 E6 07 01 8D 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DB 02 00 35 04 06 00 D2 AD C1 0B 87 DA 98 45 C4 E1 26 E8 52 05 [08:30:58]Write to MH i2c: 01 00 00 5E 19 77 [08:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2D 2A 47 00 55 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DB 02 00 F4 03 04 00 94 8E B6 67 B6 04 01 00 00 A0 98 8B EA 93 B1 51 DE [08:30:58]CommunicateWithHost err = 0 [08:30:58]CheckOFDResponse [08:30:58]1017 (14) - 77093643461234 [08:30:58]1041 (16) - 0000000000871826 [08:30:58]1040 (4) - 187222 [08:30:58]1012 (4) - 20.02.2025 02:08 [08:30:58]1206 (1) - 0 [08:30:58]OFD Sender: Remove packet 187222 [08:30:58]ProducePacketName [08:30:58]name=ofd_packets/00187222 [08:30:58]NVStorageDeleteData [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 5E 19 00 00 00 00 00 19 0D A4 [08:30:58]RasterBufferAndPrint [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]written 0, free lines is 3429 [08:30:58]MH_Cut [08:30:58]Write to MH i2c: D1 01 00 65 19 01 50 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 01 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 01 00 65 19 00 4F [08:30:58]Write to MH i2c: 01 00 00 66 19 7F [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]OFD Sender: No OFD packet to send [08:30:58]*** Cut start [08:30:58]*** Partial cut [08:30:58]*** CUTSNS_PIN = 1 [08:30:58]*** CUTSNS_PIN = 0 [08:30:59]*** Brake cut motor [08:30:59]Read from MH i2c: 01 [08:30:59]MH_I2C_Read... [08:30:59]*** Stop cut motor [08:30:59]*** Cut end [08:30:59]Read from MH i2c: 01 07 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 07 00 66 19 00 00 00 00 00 FF 0F 94 [08:30:59]process_action close_receipt done [08:30:59]requested_data is exist [08:30:59]produce_requested_data [08:30:59]requested_item fm.sn is exist - process it [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 11 00 00 [08:30:59]Write to MH i2c: E2 08 00 67 19 80 11 00 00 00 00 00 00 FA [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:59]Read from MH i2c: E2 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 17 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 17 00 67 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [08:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:30:59]wFMCommunicate OK [08:30:59]requested_item fd.num is exist - process it [08:30:59]SAM_PROTO_GetFieldsCounters [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 13 00 00 [08:30:59]Write to MH i2c: E2 08 00 68 19 80 13 00 00 00 00 00 00 FD [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 [08:30:59]MH_I2C_Read... [08:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:59]Read from MH i2c: E2 62 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 62 00 68 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 56 DB 02 00 0E 04 04 00 88 02 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 25 [08:30:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 56 DB 02 00 0E 04 04 00 88 02 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 [08:30:59]wFMCommunicate OK [08:30:59]SAM_PROTO_GetFieldsCounters done [08:30:59]requested_item shift.num is exist - process it [08:30:59]requested_item shift.opened is exist - process it [08:30:59]req_shift_opened [08:30:59]FM_GetShiftState [08:30:59]SAM_PROTO_GetShiftState [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 13 01 00 [08:30:59]Write to MH i2c: E2 08 00 69 19 80 13 01 00 00 00 00 00 FF [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:59]Read from MH i2c: E2 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 0E 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 0E 00 69 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 51 [08:30:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:30:59]wFMCommunicate OK [08:30:59]SAM_PROTO_GetShiftState done [08:30:59]FM_GetShiftState done [08:30:59]req_shift_opened done [08:30:59]requested_item shift.open_date is exist - process it [08:30:59]req_shift_open_date [08:30:59]req_shift_open_date done [08:30:59]produce_requested_data done [08:30:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187222,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:30:59]process_action_free close_receipt [08:30:59]json_value_free [08:30:59]json_value_free done [08:30:59]process_json_proto returns [08:30:59]Send response to host [08:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187222,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:30:59]free response buf [08:30:59]execute_script done [08:30:59]execute_script returns [08:30:59]free content buf [08:30:59]Sock 7.Close socket [08:30:59]Sock 7.Thread stoped [08:31:03]OFD Sender: No OFD packet to send [08:31:05]accept exits with 9 [08:31:05]New connection [08:31:05]New thread 3066654052 created [08:31:05]Thread 3066510692 joined [08:31:05]Waiting for new connection... [08:31:05] Sock 9.Parse request [08:31:05]Sock 9.Check first char [08:31:05]Sock 9.First char is OK [08:31:05]request: POST /json_proto HTTP/1.0 [08:31:05]Method: POST [08:31:05]URL: /json_proto [08:31:05]Method is POST - this is cgi request [08:31:05]url: /json_proto [08:31:05]query_string will be loaded in cgi processing [08:31:05]execute_cgi json_proto POST (null) [08:31:05]execute_cgi path=json_proto method=POST [08:31:05]POST find Content-Length [08:31:05]Host: 172.17.46.131:8080 [08:31:05]Content-Length: 682 [08:31:05]Content-Type: application/json [08:31:05] [08:31:05]POST finish read [08:31:05]Found Content-Length = 682 [08:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 19.760, "sum" : 1420.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1420.00, "payments": [ { "type": 0, "sum" : 1420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:05]execute_script... [08:31:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 19.760, "sum" : 1420.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1420.00, "payments": [ { "type": 0, "sum" : 1420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:05]POST & json_proto [08:31:05]process_json_proto [08:31:05]json parsed OK: [08:31:05]protocol is kg_v1.0 [08:31:05]action value=close_receipt [08:31:05]process_action close_receipt [08:31:05]cmd_close_receipt [08:31:05]MH_GetDate [08:31:05]Write to MH i2c: F0 00 00 6A 19 72 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: F0 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: F0 09 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: F0 09 00 6A 19 00 4C E8 B6 67 7E 41 4F 65 3F [08:31:05]GetLastDocTimeStamp 1740040258 [08:31:05]current date 1740040268 [08:31:05]FM_GetShiftState [08:31:05]SAM_PROTO_GetShiftState [08:31:05]wFMCommunicate request_size=4 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 13 01 00 [08:31:05]Write to MH i2c: E2 08 00 6B 19 80 13 01 00 00 00 00 00 01 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 0E 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 0E 00 6B 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 53 [08:31:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:31:05]wFMCommunicate OK [08:31:05]SAM_PROTO_GetShiftState done [08:31:05]FM_GetShiftState done [08:31:05]opened in 1740011697 [08:31:05]opened+sec_in_day 1740098097 [08:31:05]quantity*price = 142074 [08:31:05]sum+1 = 142075 [08:31:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 1420.00 Внесено: 1700.00 СДАЧА: 280.00 НСП 1% : 12.57 НДС 12% : 150.87 Наличными: 1420.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 24 20.02.2025 08:31 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187223 ФПД: 74646861582763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083109&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187223&fm=74646861582763&tin=02508201610067®Number=0000000000091857&sum=142000 [08:31:06]StoreToDocumentArchive [08:31:06]shift 648 fd 187223 [08:31:06]save to /storage/0648/doc_00187223 [08:31:06]save last doc name /storage/0648/doc_00187223 to /storage/kkm_last_doc_name [08:31:06]save OK [08:31:06]Clear old archive folders... [08:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:06]tlvbuf is 01F43030 [08:31:06]SAM_PROTO_ClearQueue [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 09 00 00 [08:31:06]Write to MH i2c: E2 08 00 78 19 80 09 00 00 00 00 00 00 03 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_ClearQueue done [08:31:06]KKMCreateOFDPacket [08:31:06]OFDProtocolAddRootSTLVToBuf [08:31:06]FM_MakeSignedData [08:31:06]FM_MakeSignedData [08:31:06]SAM_PROTO_SignData [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 01 02 [08:31:06]Write to MH i2c: E2 08 00 79 19 80 0D 01 02 00 00 00 00 0B [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 79 19 00 90 00 06 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=255 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 4D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 FA 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 3A 00 00 00 00 07 04 06 00 B0 2A 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 4D E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DB 02 00 35 04 06 00 43 [08:31:06]Write to MH i2c: E2 02 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 4D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 FA 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 3A 00 00 00 00 07 04 06 00 B0 2A 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 4D E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DB 02 00 35 04 06 00 43 00 00 2C [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 7A 19 00 90 00 07 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=10 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 02 02 05 E4 13 AB 11 AB [08:31:06]Write to MH i2c: E2 0D 00 7B 19 80 0D 02 02 05 00 E4 13 AB 11 AB 00 00 76 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 03 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 03 00 7B 19 00 90 00 08 [08:31:07]RAPDU: 90 00 [08:31:07]wFMCommunicate OK [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 0D 03 02 [08:31:07]Write to MH i2c: E2 08 00 7C 19 80 0D 03 02 00 00 00 00 10 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 0B 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 0B 00 7C 19 00 25 05 35 8F DE 2A 64 79 90 00 E4 [08:31:07]RAPDU: 25 05 35 8F DE 2A 64 79 90 00 [08:31:07]wFMCommunicate OK [08:31:07]SAM_PROTO_SignData done [08:31:07]FM_MakeSignedData done [08:31:07]CreateOFDProtocolMessage [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 11 00 00 [08:31:07]Write to MH i2c: E2 08 00 7D 19 80 11 00 00 00 00 00 00 10 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 17 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 17 00 7D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 63 [08:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:31:07]wFMCommunicate OK [08:31:07]CreateOFDProtocolMessage done [08:31:07]OFDSenderStorePacket 187223 [08:31:07]StoreOFDPacket docnum=187223 [08:31:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8F D2 07 01 8E 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 4D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 FA 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 3A 00 00 00 00 07 04 06 00 B0 2A 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 4D E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DB 02 00 35 04 06 00 43 E4 13 AB 11 AB 25 05 35 8F DE 2A 64 79 [08:31:07]CheckFolder [08:31:07]dirname=/storage/ofd_packets [08:31:07]CheckFolder done [08:31:07]ProducePacketName [08:31:07]name=ofd_packets/00187223 [08:31:07]NVStorageSaveData ofd_packets/00187223 [08:31:07]File name is /storage/ofd_packets/00187223 [08:31:07]Write 301 bytes [08:31:07]NVStorageSaveData done [08:31:07]OFDSenderStorePacket done [08:31:07]KKMCreateOFDPacket done [08:31:07]NVStorageSaveData kkm_last_timestamp [08:31:07]File name is /storage/kkm_last_timestamp [08:31:07]Write 4 bytes [08:31:07]NVStorageSaveData done [08:31:07]ExternCall_PrintAddStr [08:31:07]wPrintStart [08:31:07]Write to MH i2c: 01 00 00 7E 19 97 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 7E 19 00 00 00 00 00 FF 0F AC [08:31:07]RasterBufferAndPrint [08:31:07]line Счет N : (1)412374 [08:31:07]line ИНН: 02508201610067 [08:31:07]line Контрольно-Кассовый Чек [08:31:07]line ПРОДАЖА [08:31:07]line ТРК (МРК, ГНК) : 43 [08:31:07]line Товар: 2710124500 [08:31:07]line Аи-95-К-5 [08:31:07]line 19.760 * 71.90 [08:31:07]line = 1420.74 [08:31:07]line НДС 12% НСП 1% [08:31:07]line > о реализуемом товаре [08:31:07]line ОКРУГЛЕНИЕ: -0.74 [08:31:07]line ИТОГО: 1420.00 [08:31:07]line Внесено: 1700.00 [08:31:07]line СДАЧА: 280.00 [08:31:07]line НСП 1% : 12.57 [08:31:07]line НДС 12% : 150.87 [08:31:07]line Наличными: 1420.00 [08:31:07]line Безнал.: 0.00 [08:31:07]line Место: АЗС № 92 "Партнер Нефть" [08:31:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:31:07]line СНО: Общий режим [08:31:07]line Чек 24 20.02.2025 08:31 [08:31:07]line Смена: 648 ФФД: 1.0 [08:31:07]line ЗНМ: 0300000118 [08:31:07]line РНМ: 0000000000091857 [08:31:07]line Версия ККМ: 001 [08:31:07]line ФМ: 0000000000871826 [08:31:07]line ФД: 187223 [08:31:07]line ФПД: 74646861582763 [08:31:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083109&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187223&fm=74646861582763&tin=02508201610067®Number=0000000000091857&sum=142000 [08:31:07]written 0, free lines is 4095 [08:31:07]OFD Sender: Processing packet 187223 [packets to send 49, broken 48] [08:31:07]ProducePacketName [08:31:07]name=ofd_packets/00187223 [08:31:07]OFD Sender: To server: pG, [08:31:07]CommunicateWithHost lk.salyk.kg:30040 [08:31:07]ConnectInit lk.salyk.kg [08:31:07]Connected sock=10 [08:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8F D2 07 01 8E 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 4D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 FA 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 3A 00 00 00 00 07 04 06 00 B0 2A 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 4D E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DB 02 00 35 04 06 00 43 E4 13 AB 11 AB 25 05 35 8F DE 2A 64 79 [08:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AF 62 47 00 39 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 31 38 32 36 10 04 04 00 57 DB 02 00 F4 03 04 00 9E 8E B6 67 B6 04 01 00 00 90 12 9F 7E F1 1A 35 C8 [08:31:07]CommunicateWithHost err = 0 [08:31:07]CheckOFDResponse [08:31:07]1017 (14) - 77093643461234 [08:31:07]1041 (16) - 0000000000871826 [08:31:07]1040 (4) - 187223 [08:31:07]1012 (4) - 20.02.2025 02:08 [08:31:07]1206 (1) - 0 [08:31:07]OFD Sender: Remove packet 187223 [08:31:07]ProducePacketName [08:31:07]name=ofd_packets/00187223 [08:31:07]NVStorageDeleteData [08:31:07]Write to MH i2c: 01 00 00 A9 19 C2 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 A9 19 00 00 00 00 00 4A 0D 20 [08:31:07]RasterBufferAndPrint [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]written 0, free lines is 3418 [08:31:07]MH_Cut [08:31:07]Write to MH i2c: D1 01 00 B0 19 01 9B [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 01 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 01 00 B0 19 00 9A [08:31:07]Write to MH i2c: 01 00 00 B1 19 CA [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:08]OFD Sender: No OFD packet to send [08:31:08]*** Cut start [08:31:08]*** Partial cut [08:31:08]*** CUTSNS_PIN = 1 [08:31:08]*** CUTSNS_PIN = 0 [08:31:08]*** Brake cut motor [08:31:09]Read from MH i2c: 01 [08:31:09]MH_I2C_Read... [08:31:09]*** Stop cut motor [08:31:09]*** Cut end [08:31:09]Read from MH i2c: 01 07 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: 01 07 00 B1 19 00 00 00 00 00 FF 0F DF [08:31:09]process_action close_receipt done [08:31:09]requested_data is exist [08:31:09]produce_requested_data [08:31:09]requested_item fm.sn is exist - process it [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 11 00 00 [08:31:09]Write to MH i2c: E2 08 00 B2 19 80 11 00 00 00 00 00 00 45 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 17 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 17 00 B2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [08:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:31:09]wFMCommunicate OK [08:31:09]requested_item fd.num is exist - process it [08:31:09]SAM_PROTO_GetFieldsCounters [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 13 00 00 [08:31:09]Write to MH i2c: E2 08 00 B3 19 80 13 00 00 00 00 00 00 48 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 62 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 62 00 B3 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 57 DB 02 00 0E 04 04 00 88 02 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 74 [08:31:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 57 DB 02 00 0E 04 04 00 88 02 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 [08:31:09]wFMCommunicate OK [08:31:09]SAM_PROTO_GetFieldsCounters done [08:31:09]requested_item shift.num is exist - process it [08:31:09]requested_item shift.opened is exist - process it [08:31:09]req_shift_opened [08:31:09]FM_GetShiftState [08:31:09]SAM_PROTO_GetShiftState [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 13 01 00 [08:31:09]Write to MH i2c: E2 08 00 B4 19 80 13 01 00 00 00 00 00 4A [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 0E 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 0E 00 B4 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9C [08:31:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:31:09]wFMCommunicate OK [08:31:09]SAM_PROTO_GetShiftState done [08:31:09]FM_GetShiftState done [08:31:09]req_shift_opened done [08:31:09]requested_item shift.open_date is exist - process it [08:31:09]req_shift_open_date [08:31:09]req_shift_open_date done [08:31:09]produce_requested_data done [08:31:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187223,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:31:09]process_action_free close_receipt [08:31:09]json_value_free [08:31:09]json_value_free done [08:31:09]process_json_proto returns [08:31:09]Send response to host [08:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187223,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:31:09]free response buf [08:31:09]execute_script done [08:31:09]execute_script returns [08:31:09]free content buf [08:31:09]Sock 9.Close socket [08:31:09]Sock 9.Thread stoped [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:37]accept exits with 7 [08:31:37]New connection [08:31:37]New thread 3066510692 created [08:31:37]Thread 3066654052 joined [08:31:37]Waiting for new connection... [08:31:37] Sock 7.Parse request [08:31:37]Sock 7.Check first char [08:31:37]Sock 7.First char is OK [08:31:37]request: POST /json_proto HTTP/1.0 [08:31:37]Method: POST [08:31:37]URL: /json_proto [08:31:37]Method is POST - this is cgi request [08:31:37]url: /json_proto [08:31:37]query_string will be loaded in cgi processing [08:31:37]execute_cgi json_proto POST (null) [08:31:37]execute_cgi path=json_proto method=POST [08:31:37]POST find Content-Length [08:31:37]Host: 172.17.46.131:8080 [08:31:37]Content-Length: 677 [08:31:37]Content-Type: application/json [08:31:37] [08:31:37]POST finish read [08:31:37]Found Content-Length = 677 [08:31:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:31:37]execute_script... [08:31: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)412377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:31:37]POST & json_proto [08:31:37]process_json_proto [08:31:37]json parsed OK: [08:31:37]protocol is kg_v1.0 [08:31:37]action value=close_receipt [08:31:37]process_action close_receipt [08:31:37]cmd_close_receipt [08:31:37]MH_GetDate [08:31:37]Write to MH i2c: F0 00 00 B5 19 BD [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: F0 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: F0 09 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: F0 09 00 B5 19 00 6D E8 B6 67 7E 41 4F 65 AB [08:31:37]GetLastDocTimeStamp 1740040269 [08:31:37]current date 1740040301 [08:31:37]FM_GetShiftState [08:31:37]SAM_PROTO_GetShiftState [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 13 01 00 [08:31:37]Write to MH i2c: E2 08 00 B6 19 80 13 01 00 00 00 00 00 4C [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0E 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0E 00 B6 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9E [08:31:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:31:37]wFMCommunicate OK [08:31:37]SAM_PROTO_GetShiftState done [08:31:37]FM_GetShiftState done [08:31:37]opened in 1740011697 [08:31:37]opened+sec_in_day 1740098097 [08:31:37]quantity*price = 50011 [08:31:37]sum+1 = 50013 [08:31:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 25 20.02.2025 08:31 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187224 ФПД: 18866451357220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083141&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187224&fm=18866451357220&tin=02508201610067®Number=0000000000091857&sum=50000 [08:31:38]StoreToDocumentArchive [08:31:38]shift 648 fd 187224 [08:31:38]save to /storage/0648/doc_00187224 [08:31:38]save last doc name /storage/0648/doc_00187224 to /storage/kkm_last_doc_name [08:31:38]save OK [08:31:38]Clear old archive folders... [08:31:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:38]tlvbuf is B6E786E0 [08:31:38]SAM_PROTO_ClearQueue [08:31:38]wFMCommunicate request_size=4 [08:31:38]MH_SAM_APDU [08:31:38]CAPDU: 80 09 00 00 [08:31:38]Write to MH i2c: E2 08 00 C3 19 80 09 00 00 00 00 00 00 4E [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [08:31:38]RAPDU: 90 00 [08:31:38]wFMCommunicate OK [08:31:38]SAM_PROTO_ClearQueue done [08:31:38]KKMCreateOFDPacket [08:31:38]OFDProtocolAddRootSTLVToBuf [08:31:38]FM_MakeSignedData [08:31:38]FM_MakeSignedData [08:31:38]SAM_PROTO_SignData [08:31:38]wFMCommunicate request_size=4 [08:31:38]MH_SAM_APDU [08:31:38]CAPDU: 80 0D 01 02 [08:31:38]Write to MH i2c: E2 08 00 C4 19 80 0D 01 02 00 00 00 00 56 [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [08:31:38]RAPDU: 90 00 [08:31:38]wFMCommunicate OK [08:31:38]wFMCommunicate request_size=255 [08:31:38]MH_SAM_APDU [08:31: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 6D E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 DB 02 00 35 04 06 00 11 [08:31:38]Write to MH i2c: E2 02 01 C5 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 6D E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 DB 02 00 35 04 06 00 11 00 00 4A [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [08:31:38]RAPDU: 90 00 [08:31:38]wFMCommunicate OK [08:31:38]wFMCommunicate request_size=10 [08:31:38]MH_SAM_APDU [08:31:38]CAPDU: 80 0D 02 02 05 28 B0 21 9E 24 [08:31:38]Write to MH i2c: E2 0D 00 C6 19 80 0D 02 02 05 00 28 B0 21 9E 24 00 00 1E [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 03 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [08:31:39]RAPDU: 90 00 [08:31:39]wFMCommunicate OK [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 0D 03 02 [08:31:39]Write to MH i2c: E2 08 00 C7 19 80 0D 03 02 00 00 00 00 5B [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0B 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0B 00 C7 19 00 C1 E3 66 31 46 81 6F 9F 90 00 6C [08:31:39]RAPDU: C1 E3 66 31 46 81 6F 9F 90 00 [08:31:39]wFMCommunicate OK [08:31:39]SAM_PROTO_SignData done [08:31:39]FM_MakeSignedData done [08:31:39]CreateOFDProtocolMessage [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 11 00 00 [08:31:39]Write to MH i2c: E2 08 00 C8 19 80 11 00 00 00 00 00 00 5B [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 17 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 17 00 C8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AE [08:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:31:39]wFMCommunicate OK [08:31:39]CreateOFDProtocolMessage done [08:31:39]OFDSenderStorePacket 187224 [08:31:39]StoreOFDPacket docnum=187224 [08:31:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B6 18 07 01 E8 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 6D E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 DB 02 00 35 04 06 00 11 28 B0 21 9E 24 C1 E3 66 31 46 81 6F 9F [08:31:39]CheckFolder [08:31:39]dirname=/storage/ofd_packets [08:31:39]CheckFolder done [08:31:39]ProducePacketName [08:31:39]name=ofd_packets/00187224 [08:31:39]NVStorageSaveData ofd_packets/00187224 [08:31:39]File name is /storage/ofd_packets/00187224 [08:31:39]Write 301 bytes [08:31:39]NVStorageSaveData done [08:31:39]OFDSenderStorePacket done [08:31:39]KKMCreateOFDPacket done [08:31:39]NVStorageSaveData kkm_last_timestamp [08:31:39]File name is /storage/kkm_last_timestamp [08:31:39]Write 4 bytes [08:31:39]NVStorageSaveData done [08:31:39]ExternCall_PrintAddStr [08:31:39]wPrintStart [08:31:39]Write to MH i2c: 01 00 00 C9 19 E2 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 07 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 07 00 C9 19 00 00 00 00 00 FF 0F F7 [08:31:39]RasterBufferAndPrint [08:31:39]line Счет N : (1)412377 [08:31:39]line ИНН: 02508201610067 [08:31:39]line Контрольно-Кассовый Чек [08:31:39]line ПРОДАЖА [08:31:39]line ТРК (МРК, ГНК) : 32 [08:31:39]line Товар: 2710124130 [08:31:39]line Аи-92-К-2 [08:31:39]line 7.790 * 64.20 [08:31:39]line = 500.12 [08:31:39]line НДС 12% НСП 1% [08:31:39]line > о реализуемом товаре [08:31:39]line ОКРУГЛЕНИЕ: -0.12 [08:31:39]line ИТОГО: 500.00 [08:31:39]line Внесено: 500.00 [08:31:39]line СДАЧА: 0.00 [08:31:39]line НСП 1% : 4.43 [08:31:39]line НДС 12% : 53.11 [08:31:39]line Наличными: 500.00 [08:31:39]line Безнал.: 0.00 [08:31:39]line Место: АЗС № 92 "Партнер Нефть" [08:31:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:31:39]line СНО: Общий режим [08:31:39]line Чек 25 20.02.2025 08:31 [08:31:39]line Смена: 648 ФФД: 1.0 [08:31:39]line ЗНМ: 0300000118 [08:31:39]line РНМ: 0000000000091857 [08:31:39]line Версия ККМ: 001 [08:31:39]line ФМ: 0000000000871826 [08:31:39]line ФД: 187224 [08:31:39]line ФПД: 18866451357220 [08:31:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083141&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187224&fm=18866451357220&tin=02508201610067®Number=0000000000091857&sum=50000 [08:31:39]written 0, free lines is 4095 [08:31:39]OFD Sender: Processing packet 187224 [packets to send 49, broken 48] [08:31:39]ProducePacketName [08:31:39]name=ofd_packets/00187224 [08:31:39]OFD Sender: To server: pG, [08:31:39]CommunicateWithHost lk.salyk.kg:30040 [08:31:39]ConnectInit lk.salyk.kg [08:31:39]Connected sock=10 [08:31:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B6 18 07 01 E8 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 6D E8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 DB 02 00 35 04 06 00 11 28 B0 21 9E 24 C1 E3 66 31 46 81 6F 9F [08:31:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A0 86 47 00 BB 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 31 38 32 36 10 04 04 00 58 DB 02 00 F4 03 04 00 BE 8E B6 67 B6 04 01 00 00 E0 FB 89 87 21 52 CA 70 [08:31:39]CommunicateWithHost err = 0 [08:31:39]CheckOFDResponse [08:31:39]1017 (14) - 77093643461234 [08:31:39]1041 (16) - 0000000000871826 [08:31:39]1040 (4) - 187224 [08:31:39]1012 (4) - 20.02.2025 02:09 [08:31:39]1206 (1) - 0 [08:31:39]OFD Sender: Remove packet 187224 [08:31:39]ProducePacketName [08:31:39]name=ofd_packets/00187224 [08:31:39]NVStorageDeleteData [08:31:39]Write to MH i2c: 01 00 00 F4 19 0D [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 07 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 EC 0C 0C [08:31:39]RasterBufferAndPrint [08:31:39]line [08:31:39]line [08:31:39]line [08:31:39]line [08:31:39]line [08:31:39]written 0, free lines is 3314 [08:31:39]MH_Cut [08:31:39]Write to MH i2c: D1 01 00 FB 19 01 E6 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: D1 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: D1 01 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: D1 01 00 FB 19 00 E5 [08:31:39]Write to MH i2c: 01 00 00 FC 19 15 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:40]OFD Sender: No OFD packet to send [08:31:40]*** Cut start [08:31:40]*** Partial cut [08:31:40]*** CUTSNS_PIN = 1 [08:31:40]*** CUTSNS_PIN = 0 [08:31:40]*** Brake cut motor [08:31:41]Read from MH i2c: 01 [08:31:41]MH_I2C_Read... [08:31:41]*** Stop cut motor [08:31:41]*** Cut end [08:31:41]Read from MH i2c: 01 07 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 FF 0F 2A [08:31:41]process_action close_receipt done [08:31:41]requested_data is exist [08:31:41]produce_requested_data [08:31:41]requested_item fm.sn is exist - process it [08:31:41]wFMCommunicate request_size=4 [08:31:41]MH_SAM_APDU [08:31:41]CAPDU: 80 11 00 00 [08:31:41]Write to MH i2c: E2 08 00 FD 19 80 11 00 00 00 00 00 00 90 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 17 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 17 00 FD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [08:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:31:41]wFMCommunicate OK [08:31:41]requested_item fd.num is exist - process it [08:31:41]SAM_PROTO_GetFieldsCounters [08:31:41]wFMCommunicate request_size=4 [08:31:41]MH_SAM_APDU [08:31:41]CAPDU: 80 13 00 00 [08:31:41]Write to MH i2c: E2 08 00 FE 19 80 13 00 00 00 00 00 00 93 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 62 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 62 00 FE 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 58 DB 02 00 0E 04 04 00 88 02 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 C3 [08:31:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 58 DB 02 00 0E 04 04 00 88 02 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 [08:31:41]wFMCommunicate OK [08:31:41]SAM_PROTO_GetFieldsCounters done [08:31:41]requested_item shift.num is exist - process it [08:31:41]requested_item shift.opened is exist - process it [08:31:41]req_shift_opened [08:31:41]FM_GetShiftState [08:31:41]SAM_PROTO_GetShiftState [08:31:41]wFMCommunicate request_size=4 [08:31:41]MH_SAM_APDU [08:31:41]CAPDU: 80 13 01 00 [08:31:41]Write to MH i2c: E2 08 00 FF 19 80 13 01 00 00 00 00 00 95 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 0E 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 0E 00 FF 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E7 [08:31:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:31:41]wFMCommunicate OK [08:31:41]SAM_PROTO_GetShiftState done [08:31:41]FM_GetShiftState done [08:31:41]req_shift_opened done [08:31:41]requested_item shift.open_date is exist - process it [08:31:41]req_shift_open_date [08:31:41]req_shift_open_date done [08:31:41]produce_requested_data done [08:31:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187224,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:31:41]process_action_free close_receipt [08:31:41]json_value_free [08:31:41]json_value_free done [08:31:41]process_json_proto returns [08:31:41]Send response to host [08:31:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187224,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:31:41]free response buf [08:31:41]execute_script done [08:31:41]execute_script returns [08:31:41]free content buf [08:31:41]Sock 7.Close socket [08:31:41]Sock 7.Thread stoped [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:18]accept exits with 9 [08:34:18]New connection [08:34:18]New thread 3066654052 created [08:34:18]Thread 3066510692 joined [08:34:18]Waiting for new connection... [08:34:18] Sock 9.Parse request [08:34:18]Sock 9.Check first char [08:34:18]Sock 9.First char is OK [08:34:18]request: POST /json_proto HTTP/1.0 [08:34:18]Method: POST [08:34:18]URL: /json_proto [08:34:18]Method is POST - this is cgi request [08:34:18]url: /json_proto [08:34:18]query_string will be loaded in cgi processing [08:34:18]execute_cgi json_proto POST (null) [08:34:18]execute_cgi path=json_proto method=POST [08:34:18]POST find Content-Length [08:34:18]Host: 172.17.46.131:8080 [08:34:18]Content-Length: 682 [08:34:18]Content-Type: application/json [08:34:18] [08:34:18]POST finish read [08:34:18]Found Content-Length = 682 [08:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [08:34:18]execute_script... [08:34: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)412378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [08:34:18]POST & json_proto [08:34:18]process_json_proto [08:34:18]json parsed OK: [08:34:18]protocol is kg_v1.0 [08:34:18]action value=close_receipt [08:34:18]process_action close_receipt [08:34:18]cmd_close_receipt [08:34:18]MH_GetDate [08:34:18]Write to MH i2c: F0 00 00 00 1A 09 [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: F0 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: F0 09 00 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: F0 09 00 00 1A 00 0E E9 B6 67 7E 41 4F 65 99 [08:34:18]GetLastDocTimeStamp 1740040301 [08:34:18]current date 1740040462 [08:34:18]FM_GetShiftState [08:34:18]SAM_PROTO_GetShiftState [08:34:18]wFMCommunicate request_size=4 [08:34:18]MH_SAM_APDU [08:34:18]CAPDU: 80 13 01 00 [08:34:18]Write to MH i2c: E2 08 00 01 1A 80 13 01 00 00 00 00 00 98 [08:34:18]Write i2c OK [08:34:18]MH_I2C_Read... [08:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:18]Read from MH i2c: E2 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 0E 00 [08:34:18]MH_I2C_Read... [08:34:18]Read from MH i2c: E2 0E 00 01 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EA [08:34:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:34:18]wFMCommunicate OK [08:34:18]SAM_PROTO_GetShiftState done [08:34:18]FM_GetShiftState done [08:34:18]opened in 1740011697 [08:34:18]opened+sec_in_day 1740098097 [08:34:18]quantity*price = 200025 [08:34:18]sum+1 = 200027 [08:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 26 20.02.2025 08:34 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187225 ФПД: 69904210961934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083422&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187225&fm=69904210961934&tin=02508201610067®Number=0000000000091857&sum=200000 [08:34:19]StoreToDocumentArchive [08:34:19]shift 648 fd 187225 [08:34:19]save to /storage/0648/doc_00187225 [08:34:19]save last doc name /storage/0648/doc_00187225 to /storage/kkm_last_doc_name [08:34:19]save OK [08:34:19]Clear old archive folders... [08:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:19]tlvbuf is B6E787D0 [08:34:19]SAM_PROTO_ClearQueue [08:34:19]wFMCommunicate request_size=4 [08:34:19]MH_SAM_APDU [08:34:19]CAPDU: 80 09 00 00 [08:34:19]Write to MH i2c: E2 08 00 0E 1A 80 09 00 00 00 00 00 00 9A [08:34:19]Write i2c OK [08:34:19]MH_I2C_Read... [08:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:19]Read from MH i2c: E2 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [08:34:19]RAPDU: 90 00 [08:34:19]wFMCommunicate OK [08:34:19]SAM_PROTO_ClearQueue done [08:34:19]KKMCreateOFDPacket [08:34:19]OFDProtocolAddRootSTLVToBuf [08:34:19]FM_MakeSignedData [08:34:19]FM_MakeSignedData [08:34:19]SAM_PROTO_SignData [08:34:19]wFMCommunicate request_size=4 [08:34:19]MH_SAM_APDU [08:34:19]CAPDU: 80 0D 01 02 [08:34:19]Write to MH i2c: E2 08 00 0F 1A 80 0D 01 02 00 00 00 00 A2 [08:34:19]Write i2c OK [08:34:19]MH_I2C_Read... [08:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:19]Read from MH i2c: E2 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 [08:34:19]MH_I2C_Read... [08:34:19]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [08:34:19]RAPDU: 90 00 [08:34:19]wFMCommunicate OK [08:34:19]wFMCommunicate request_size=255 [08:34:19]MH_SAM_APDU [08:34: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 1A 00 00 00 F4 03 04 00 0E E9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 DB 02 00 35 04 06 00 3F [08:34:19]Write to MH i2c: E2 02 01 10 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 1A 00 00 00 F4 03 04 00 0E E9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 DB 02 00 35 04 06 00 3F 00 00 72 [08:34:19]Write i2c OK [08:34:19]MH_I2C_Read... [08:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:20]Read from MH i2c: E2 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: E2 03 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [08:34:20]RAPDU: 90 00 [08:34:20]wFMCommunicate OK [08:34:20]wFMCommunicate request_size=10 [08:34:20]MH_SAM_APDU [08:34:20]CAPDU: 80 0D 02 02 05 93 D7 A9 A6 0E [08:34:20]Write to MH i2c: E2 0D 00 11 1A 80 0D 02 02 05 00 93 D7 A9 A6 0E 00 00 76 [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:20]Read from MH i2c: E2 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: E2 03 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [08:34:20]RAPDU: 90 00 [08:34:20]wFMCommunicate OK [08:34:20]wFMCommunicate request_size=4 [08:34:20]MH_SAM_APDU [08:34:20]CAPDU: 80 0D 03 02 [08:34:20]Write to MH i2c: E2 08 00 12 1A 80 0D 03 02 00 00 00 00 A7 [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:20]Read from MH i2c: E2 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: E2 0B 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: E2 0B 00 12 1A 00 1C FA CA 81 18 FE 87 0D 90 00 B3 [08:34:20]RAPDU: 1C FA CA 81 18 FE 87 0D 90 00 [08:34:20]wFMCommunicate OK [08:34:20]SAM_PROTO_SignData done [08:34:20]FM_MakeSignedData done [08:34:20]CreateOFDProtocolMessage [08:34:20]wFMCommunicate request_size=4 [08:34:20]MH_SAM_APDU [08:34:20]CAPDU: 80 11 00 00 [08:34:20]Write to MH i2c: E2 08 00 13 1A 80 11 00 00 00 00 00 00 A7 [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:20]Read from MH i2c: E2 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: E2 17 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: E2 17 00 13 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [08:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:34:20]wFMCommunicate OK [08:34:20]CreateOFDProtocolMessage done [08:34:20]OFDSenderStorePacket 187225 [08:34:20]StoreOFDPacket docnum=187225 [08:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2B CD 07 01 58 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 1A 00 00 00 F4 03 04 00 0E E9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 DB 02 00 35 04 06 00 3F 93 D7 A9 A6 0E 1C FA CA 81 18 FE 87 0D [08:34:20]CheckFolder [08:34:20]dirname=/storage/ofd_packets [08:34:20]CheckFolder done [08:34:20]ProducePacketName [08:34:20]name=ofd_packets/00187225 [08:34:20]NVStorageSaveData ofd_packets/00187225 [08:34:20]File name is /storage/ofd_packets/00187225 [08:34:20]Write 301 bytes [08:34:20]NVStorageSaveData done [08:34:20]OFDSenderStorePacket done [08:34:20]KKMCreateOFDPacket done [08:34:20]NVStorageSaveData kkm_last_timestamp [08:34:20]File name is /storage/kkm_last_timestamp [08:34:20]Write 4 bytes [08:34:20]NVStorageSaveData done [08:34:20]ExternCall_PrintAddStr [08:34:20]wPrintStart [08:34:20]Write to MH i2c: 01 00 00 14 1A 2E [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 07 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 07 00 14 1A 00 00 00 00 00 FF 0F 43 [08:34:20]RasterBufferAndPrint [08:34:20]line Счет N : (1)412378 [08:34:20]line ИНН: 02508201610067 [08:34:20]line Контрольно-Кассовый Чек [08:34:20]line ПРОДАЖА [08:34:20]line ТРК (МРК, ГНК) : 13 [08:34:20]line Товар: 2710124500 [08:34:20]line Аи-95-К-5 [08:34:20]line 27.820 * 71.90 [08:34:20]line = 2000.26 [08:34:20]line НДС 12% НСП 1% [08:34:20]line > о реализуемом товаре [08:34:20]line ОКРУГЛЕНИЕ: -0.26 [08:34:20]line ИТОГО: 2000.00 [08:34:20]line Внесено: 2000.00 [08:34:20]line СДАЧА: 0.00 [08:34:20]line НСП 1% : 17.70 [08:34:20]line НДС 12% : 212.42 [08:34:20]line Наличными: 2000.00 [08:34:20]line Безнал.: 0.00 [08:34:20]line Место: АЗС № 92 "Партнер Нефть" [08:34:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:34:20]line СНО: Общий режим [08:34:20]line Чек 26 20.02.2025 08:34 [08:34:20]line Смена: 648 ФФД: 1.0 [08:34:20]line ЗНМ: 0300000118 [08:34:20]line РНМ: 0000000000091857 [08:34:20]line Версия ККМ: 001 [08:34:20]line ФМ: 0000000000871826 [08:34:20]line ФД: 187225 [08:34:20]line ФПД: 69904210961934 [08:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T083422&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187225&fm=69904210961934&tin=02508201610067®Number=0000000000091857&sum=200000 [08:34:20]written 0, free lines is 4095 [08:34:20]OFD Sender: Processing packet 187225 [packets to send 49, broken 48] [08:34:20]ProducePacketName [08:34:20]name=ofd_packets/00187225 [08:34:20]OFD Sender: To server: pG, [08:34:20]CommunicateWithHost lk.salyk.kg:30040 [08:34:20]ConnectInit lk.salyk.kg [08:34:20]Connected sock=7 [08:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2B CD 07 01 58 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 1A 00 00 00 F4 03 04 00 0E E9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 DB 02 00 35 04 06 00 3F 93 D7 A9 A6 0E 1C FA CA 81 18 FE 87 0D [08:34:20]Write to MH i2c: 01 00 00 3F 1A 59 [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 07 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: 01 07 00 3F 1A 00 00 00 00 00 F9 0C 65 [08:34:20]RasterBufferAndPrint [08:34:20]line [08:34:20]line [08:34:20]line [08:34:20]line [08:34:20]line [08:34:20]written 0, free lines is 3327 [08:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2A 35 47 00 B5 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 31 38 32 36 10 04 04 00 59 DB 02 00 F4 03 04 00 5F 8F B6 67 B6 04 01 00 00 A8 BA C8 AE 0E 9A F9 6C [08:34:20]CommunicateWithHost err = 0 [08:34:20]CheckOFDResponse [08:34:20]1017 (14) - 77093643461234 [08:34:20]1041 (16) - 0000000000871826 [08:34:20]1040 (4) - 187225 [08:34:20]1012 (4) - 20.02.2025 02:11 [08:34:20]1206 (1) - 0 [08:34:20]OFD Sender: Remove packet 187225 [08:34:20]ProducePacketName [08:34:20]name=ofd_packets/00187225 [08:34:20]NVStorageDeleteData [08:34:20]MH_Cut [08:34:20]Write to MH i2c: D1 01 00 46 1A 01 32 [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: D1 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: D1 01 00 [08:34:20]MH_I2C_Read... [08:34:20]Read from MH i2c: D1 01 00 46 1A 00 31 [08:34:20]Write to MH i2c: 01 00 00 47 1A 61 [08:34:20]Write i2c OK [08:34:20]MH_I2C_Read... [08:34:21]OFD Sender: No OFD packet to send [08:34:21]*** Cut start [08:34:21]*** Partial cut [08:34:21]*** CUTSNS_PIN = 1 [08:34:21]*** CUTSNS_PIN = 0 [08:34:21]*** Brake cut motor [08:34:22]Read from MH i2c: 01 [08:34:22]MH_I2C_Read... [08:34:22]*** Stop cut motor [08:34:22]*** Cut end [08:34:22]Read from MH i2c: 01 07 00 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: 01 07 00 47 1A 00 00 00 00 00 FF 0F 76 [08:34:22]process_action close_receipt done [08:34:22]requested_data is exist [08:34:22]produce_requested_data [08:34:22]requested_item fm.sn is exist - process it [08:34:22]wFMCommunicate request_size=4 [08:34:22]MH_SAM_APDU [08:34:22]CAPDU: 80 11 00 00 [08:34:22]Write to MH i2c: E2 08 00 48 1A 80 11 00 00 00 00 00 00 DC [08:34:22]Write i2c OK [08:34:22]MH_I2C_Read... [08:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:22]Read from MH i2c: E2 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 17 00 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 17 00 48 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [08:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:34:22]wFMCommunicate OK [08:34:22]requested_item fd.num is exist - process it [08:34:22]SAM_PROTO_GetFieldsCounters [08:34:22]wFMCommunicate request_size=4 [08:34:22]MH_SAM_APDU [08:34:22]CAPDU: 80 13 00 00 [08:34:22]Write to MH i2c: E2 08 00 49 1A 80 13 00 00 00 00 00 00 DF [08:34:22]Write i2c OK [08:34:22]MH_I2C_Read... [08:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:22]Read from MH i2c: E2 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 62 00 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 62 00 49 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 59 DB 02 00 0E 04 04 00 88 02 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 13 [08:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 59 DB 02 00 0E 04 04 00 88 02 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 [08:34:22]wFMCommunicate OK [08:34:22]SAM_PROTO_GetFieldsCounters done [08:34:22]requested_item shift.num is exist - process it [08:34:22]requested_item shift.opened is exist - process it [08:34:22]req_shift_opened [08:34:22]FM_GetShiftState [08:34:22]SAM_PROTO_GetShiftState [08:34:22]wFMCommunicate request_size=4 [08:34:22]MH_SAM_APDU [08:34:22]CAPDU: 80 13 01 00 [08:34:22]Write to MH i2c: E2 08 00 4A 1A 80 13 01 00 00 00 00 00 E1 [08:34:22]Write i2c OK [08:34:22]MH_I2C_Read... [08:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:22]Read from MH i2c: E2 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 0E 00 [08:34:22]MH_I2C_Read... [08:34:22]Read from MH i2c: E2 0E 00 4A 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 33 [08:34:22]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:34:22]wFMCommunicate OK [08:34:22]SAM_PROTO_GetShiftState done [08:34:22]FM_GetShiftState done [08:34:22]req_shift_opened done [08:34:22]requested_item shift.open_date is exist - process it [08:34:22]req_shift_open_date [08:34:22]req_shift_open_date done [08:34:22]produce_requested_data done [08:34:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187225,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:34:22]process_action_free close_receipt [08:34:22]json_value_free [08:34:22]json_value_free done [08:34:22]process_json_proto returns [08:34:22]Send response to host [08:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187225,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:34:22]free response buf [08:34:22]execute_script done [08:34:22]execute_script returns [08:34:22]free content buf [08:34:22]Sock 9.Close socket [08:34:22]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]accept exits with 10 [08:40:51]New connection [08:40:51]New thread 3066510692 created [08:40:51]Thread 3066654052 joined [08:40:51]Waiting for new connection... [08:40:51] Sock 10.Parse request [08:40:51]Sock 10.Check first char [08:40:51]Sock 10.First char is OK [08:40:51]request: POST /json_proto HTTP/1.0 [08:40:51]Method: POST [08:40:51]URL: /json_proto [08:40:51]Method is POST - this is cgi request [08:40:51]url: /json_proto [08:40:51]query_string will be loaded in cgi processing [08:40:51]execute_cgi json_proto POST (null) [08:40:51]execute_cgi path=json_proto method=POST [08:40:51]POST find Content-Length [08:40:51]Host: 172.17.46.131:8080 [08:40:51]Content-Length: 677 [08:40:51]Content-Type: application/json [08:40:51] [08:40:51]POST finish read [08:40:51]Found Content-Length = 677 [08:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:40:51]execute_script... [08: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)412379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:40:51]POST & json_proto [08:40:51]process_json_proto [08:40:51]json parsed OK: [08:40:51]protocol is kg_v1.0 [08:40:51]action value=close_receipt [08:40:51]process_action close_receipt [08:40:51]cmd_close_receipt [08:40:51]MH_GetDate [08:40:51]Write to MH i2c: F0 00 00 4B 1A 54 [08:40:51]Write i2c OK [08:40:51]MH_I2C_Read... [08:40:51]Read from MH i2c: F0 [08:40:51]MH_I2C_Read... [08:40:51]Read from MH i2c: F0 09 00 [08:40:51]MH_I2C_Read... [08:40:51]Read from MH i2c: F0 09 00 4B 1A 00 97 EA B6 67 7E 41 4F 65 6E [08:40:51]GetLastDocTimeStamp 1740040462 [08:40:51]current date 1740040855 [08:40:51]FM_GetShiftState [08:40:51]SAM_PROTO_GetShiftState [08:40:51]wFMCommunicate request_size=4 [08:40:51]MH_SAM_APDU [08:40:51]CAPDU: 80 13 01 00 [08:40:51]Write to MH i2c: E2 08 00 4C 1A 80 13 01 00 00 00 00 00 E3 [08:40:51]Write i2c OK [08:40:51]MH_I2C_Read... [08:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:51]Read from MH i2c: E2 [08:40:51]MH_I2C_Read... [08:40:51]Read from MH i2c: E2 0E 00 [08:40:51]MH_I2C_Read... [08:40:51]Read from MH i2c: E2 0E 00 4C 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 35 [08:40:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:40:51]wFMCommunicate OK [08:40:51]SAM_PROTO_GetShiftState done [08:40:51]FM_GetShiftState done [08:40:51]opened in 1740011697 [08:40:51]opened+sec_in_day 1740098097 [08:40:51]quantity*price = 50011 [08:40:51]sum+1 = 50013 [08:40:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 27 20.02.2025 08:40 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187226 ФПД: 112238688147203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T084055&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187226&fm=112238688147203&tin=02508201610067®Number=0000000000091857&sum=50000 [08:40:52]StoreToDocumentArchive [08:40:52]shift 648 fd 187226 [08:40:52]save to /storage/0648/doc_00187226 [08:40:52]save last doc name /storage/0648/doc_00187226 to /storage/kkm_last_doc_name [08:40:52]save OK [08:40:52]Clear old archive folders... [08:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:52]tlvbuf is B6E78910 [08:40:52]SAM_PROTO_ClearQueue [08:40:52]wFMCommunicate request_size=4 [08:40:52]MH_SAM_APDU [08:40:52]CAPDU: 80 09 00 00 [08:40:52]Write to MH i2c: E2 08 00 59 1A 80 09 00 00 00 00 00 00 E5 [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:52]Read from MH i2c: E2 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 03 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [08:40:52]RAPDU: 90 00 [08:40:52]wFMCommunicate OK [08:40:52]SAM_PROTO_ClearQueue done [08:40:52]KKMCreateOFDPacket [08:40:52]OFDProtocolAddRootSTLVToBuf [08:40:52]FM_MakeSignedData [08:40:52]FM_MakeSignedData [08:40:52]SAM_PROTO_SignData [08:40:52]wFMCommunicate request_size=4 [08:40:52]MH_SAM_APDU [08:40:52]CAPDU: 80 0D 01 02 [08:40:52]Write to MH i2c: E2 08 00 5A 1A 80 0D 01 02 00 00 00 00 ED [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:52]Read from MH i2c: E2 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 03 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [08:40:52]RAPDU: 90 00 [08:40:52]wFMCommunicate OK [08:40:52]wFMCommunicate request_size=255 [08:40:52]MH_SAM_APDU [08: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 97 EA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DB 02 00 35 04 06 00 66 [08:40:52]Write to MH i2c: E2 02 01 5B 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 97 EA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DB 02 00 35 04 06 00 66 00 00 66 [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 03 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [08:40:53]RAPDU: 90 00 [08:40:53]wFMCommunicate OK [08:40:53]wFMCommunicate request_size=10 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 0D 02 02 05 14 9B 23 17 03 [08:40:53]Write to MH i2c: E2 0D 00 5C 1A 80 0D 02 02 05 00 14 9B 23 17 03 00 00 E6 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 03 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [08:40:53]RAPDU: 90 00 [08:40:53]wFMCommunicate OK [08:40:53]wFMCommunicate request_size=4 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 0D 03 02 [08:40:53]Write to MH i2c: E2 08 00 5D 1A 80 0D 03 02 00 00 00 00 F2 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 0B 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 0B 00 5D 1A 00 38 22 2A 96 50 4A AF 89 90 00 DF [08:40:53]RAPDU: 38 22 2A 96 50 4A AF 89 90 00 [08:40:53]wFMCommunicate OK [08:40:53]SAM_PROTO_SignData done [08:40:53]FM_MakeSignedData done [08:40:53]CreateOFDProtocolMessage [08:40:53]wFMCommunicate request_size=4 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 11 00 00 [08:40:53]Write to MH i2c: E2 08 00 5E 1A 80 11 00 00 00 00 00 00 F2 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 17 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 17 00 5E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [08:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:40:53]wFMCommunicate OK [08:40:53]CreateOFDProtocolMessage done [08:40:53]OFDSenderStorePacket 187226 [08:40:53]StoreOFDPacket docnum=187226 [08:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D1 46 07 01 F3 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 97 EA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DB 02 00 35 04 06 00 66 14 9B 23 17 03 38 22 2A 96 50 4A AF 89 [08:40:53]CheckFolder [08:40:53]dirname=/storage/ofd_packets [08:40:53]CheckFolder done [08:40:53]ProducePacketName [08:40:53]name=ofd_packets/00187226 [08:40:53]NVStorageSaveData ofd_packets/00187226 [08:40:53]File name is /storage/ofd_packets/00187226 [08:40:53]Write 301 bytes [08:40:53]NVStorageSaveData done [08:40:53]OFDSenderStorePacket done [08:40:53]KKMCreateOFDPacket done [08:40:53]NVStorageSaveData kkm_last_timestamp [08:40:53]File name is /storage/kkm_last_timestamp [08:40:53]Write 4 bytes [08:40:53]NVStorageSaveData done [08:40:53]ExternCall_PrintAddStr [08:40:53]wPrintStart [08:40:53]Write to MH i2c: 01 00 00 5F 1A 79 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: 01 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: 01 07 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 FF 0F 8E [08:40:53]RasterBufferAndPrint [08:40:53]line Счет N : (1)412379 [08:40:53]line ИНН: 02508201610067 [08:40:53]line Контрольно-Кассовый Чек [08:40:53]line ПРОДАЖА [08:40:53]line ТРК (МРК, ГНК) : 22 [08:40:53]line Товар: 2710124130 [08:40:53]line Аи-92-К-2 [08:40:53]line 7.790 * 64.20 [08:40:53]line = 500.12 [08:40:53]line НДС 12% НСП 1% [08:40:53]line > о реализуемом товаре [08:40:53]line ОКРУГЛЕНИЕ: -0.12 [08:40:53]line ИТОГО: 500.00 [08:40:53]line Внесено: 500.00 [08:40:53]line СДАЧА: 0.00 [08:40:53]line НСП 1% : 4.43 [08:40:53]line НДС 12% : 53.11 [08:40:53]line Наличными: 500.00 [08:40:53]line Безнал.: 0.00 [08:40:53]line Место: АЗС № 92 "Партнер Нефть" [08:40:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:40:53]line СНО: Общий режим [08:40:53]line Чек 27 20.02.2025 08:40 [08:40:53]line Смена: 648 ФФД: 1.0 [08:40:53]line ЗНМ: 0300000118 [08:40:53]line РНМ: 0000000000091857 [08:40:53]line Версия ККМ: 001 [08:40:53]line ФМ: 0000000000871826 [08:40:53]line ФД: 187226 [08:40:53]line ФПД: 112238688147203 [08:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T084055&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187226&fm=112238688147203&tin=02508201610067®Number=0000000000091857&sum=50000 [08:40:53]written 0, free lines is 4095 [08:40:53]OFD Sender: Processing packet 187226 [packets to send 49, broken 48] [08:40:53]ProducePacketName [08:40:53]name=ofd_packets/00187226 [08:40:53]OFD Sender: To server: pG, [08:40:53]CommunicateWithHost lk.salyk.kg:30040 [08:40:53]ConnectInit lk.salyk.kg [08:40:53]Connected sock=9 [08: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 31 38 32 36 0F 01 00 00 D1 46 07 01 F3 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 97 EA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DB 02 00 35 04 06 00 66 14 9B 23 17 03 38 22 2A 96 50 4A AF 89 [08:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5F 34 47 00 25 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 31 38 32 36 10 04 04 00 5A DB 02 00 F4 03 04 00 E8 90 B6 67 B6 04 01 00 00 0E 7A 3C 9E 55 C6 C5 EA [08:40:53]CommunicateWithHost err = 0 [08:40:53]CheckOFDResponse [08:40:53]1017 (14) - 77093643461234 [08:40:54]1041 (16) - 0000000000871826 [08:40:54]1040 (4) - 187226 [08:40:54]1012 (4) - 20.02.2025 02:18 [08:40:54]1206 (1) - 0 [08:40:54]OFD Sender: Remove packet 187226 [08:40:54]ProducePacketName [08:40:54]name=ofd_packets/00187226 [08:40:54]NVStorageDeleteData [08:40:54]Write to MH i2c: 01 00 00 8A 1A A4 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: 01 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: 01 07 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: 01 07 00 8A 1A 00 00 00 00 00 F3 0C AA [08:40:54]RasterBufferAndPrint [08:40:54]line [08:40:54]line [08:40:54]line [08:40:54]line [08:40:54]line [08:40:54]written 0, free lines is 3321 [08:40:54]MH_Cut [08:40:54]Write to MH i2c: D1 01 00 91 1A 01 7D [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: D1 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: D1 01 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: D1 01 00 91 1A 00 7C [08:40:54]Write to MH i2c: 01 00 00 92 1A AC [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]OFD Sender: No OFD packet to send [08:40:54]*** Cut start [08:40:54]*** Partial cut [08:40:54]*** CUTSNS_PIN = 1 [08:40:54]*** CUTSNS_PIN = 0 [08:40:55]*** Brake cut motor [08:40:55]Read from MH i2c: 01 [08:40:55]MH_I2C_Read... [08:40:55]*** Stop cut motor [08:40:55]*** Cut end [08:40:55]Read from MH i2c: 01 07 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 FF 0F C1 [08:40:55]process_action close_receipt done [08:40:55]requested_data is exist [08:40:55]produce_requested_data [08:40:55]requested_item fm.sn is exist - process it [08:40:55]wFMCommunicate request_size=4 [08:40:55]MH_SAM_APDU [08:40:55]CAPDU: 80 11 00 00 [08:40:55]Write to MH i2c: E2 08 00 93 1A 80 11 00 00 00 00 00 00 27 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:55]Read from MH i2c: E2 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 17 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 17 00 93 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [08:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:40:55]wFMCommunicate OK [08:40:55]requested_item fd.num is exist - process it [08:40:55]SAM_PROTO_GetFieldsCounters [08:40:55]wFMCommunicate request_size=4 [08:40:55]MH_SAM_APDU [08:40:55]CAPDU: 80 13 00 00 [08:40:55]Write to MH i2c: E2 08 00 94 1A 80 13 00 00 00 00 00 00 2A [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:55]Read from MH i2c: E2 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 62 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 62 00 94 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5A DB 02 00 0E 04 04 00 88 02 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 62 [08: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5A DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:55]wFMCommunicate OK [08:40:55]SAM_PROTO_GetFieldsCounters done [08:40:55]requested_item shift.num is exist - process it [08:40:55]requested_item shift.opened is exist - process it [08:40:55]req_shift_opened [08:40:55]FM_GetShiftState [08:40:55]SAM_PROTO_GetShiftState [08:40:55]wFMCommunicate request_size=4 [08:40:55]MH_SAM_APDU [08:40:55]CAPDU: 80 13 01 00 [08:40:55]Write to MH i2c: E2 08 00 95 1A 80 13 01 00 00 00 00 00 2C [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:55]Read from MH i2c: E2 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 0E 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: E2 0E 00 95 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7E [08:40:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:40:55]wFMCommunicate OK [08:40:55]SAM_PROTO_GetShiftState done [08:40:55]FM_GetShiftState done [08:40:55]req_shift_opened done [08:40:55]requested_item shift.open_date is exist - process it [08:40:55]req_shift_open_date [08:40:55]req_shift_open_date done [08:40:55]produce_requested_data done [08:40:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187226,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:40:55]process_action_free close_receipt [08:40:55]json_value_free [08:40:55]json_value_free done [08:40:55]process_json_proto returns [08:40:55]Send response to host [08:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187226,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:40:55]free response buf [08:40:55]execute_script done [08:40:55]execute_script returns [08:40:55]free content buf [08:40:55]Sock 10.Close socket [08:40:55]Sock 10.Thread stoped [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:05]accept exits with 7 [08:42:05]New connection [08:42:05]New thread 3066654052 created [08:42:05]Thread 3066510692 joined [08:42:05]Waiting for new connection... [08:42:05] Sock 7.Parse request [08:42:05]Sock 7.Check first char [08:42:05]Sock 7.First char is OK [08:42:05]request: POST /json_proto HTTP/1.0 [08:42:05]Method: POST [08:42:05]URL: /json_proto [08:42:05]Method is POST - this is cgi request [08:42:05]url: /json_proto [08:42:05]query_string will be loaded in cgi processing [08:42:05]execute_cgi json_proto POST (null) [08:42:05]execute_cgi path=json_proto method=POST [08:42:05]POST find Content-Length [08:42:05]Host: 172.17.46.131:8080 [08:42:05]Content-Length: 800 [08:42:05]Content-Type: application/json [08:42:05] [08:42:05]POST finish read [08:42:05]Found Content-Length = 800 [08:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 1.560, "sum" : 100.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:05]execute_script... [08:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 1.560, "sum" : 100.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:05]POST & json_proto [08:42:05]process_json_proto [08:42:05]json parsed OK: [08:42:05]protocol is kg_v1.0 [08:42:05]action value=close_receipt [08:42:05]process_action close_receipt [08:42:05]cmd_close_receipt [08:42:05]MH_GetDate [08:42:05]Write to MH i2c: F0 00 00 96 1A 9F [08:42:05]Write i2c OK [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: F0 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: F0 09 00 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: F0 09 00 96 1A 00 E0 EA B6 67 7E 41 4F 65 02 [08:42:05]GetLastDocTimeStamp 1740040855 [08:42:05]current date 1740040928 [08:42:05]FM_GetShiftState [08:42:05]SAM_PROTO_GetShiftState [08:42:05]wFMCommunicate request_size=4 [08:42:05]MH_SAM_APDU [08:42:05]CAPDU: 80 13 01 00 [08:42:05]Write to MH i2c: E2 08 00 97 1A 80 13 01 00 00 00 00 00 2E [08:42:05]Write i2c OK [08:42:05]MH_I2C_Read... [08:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:05]Read from MH i2c: E2 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: E2 0E 00 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: E2 0E 00 97 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 80 [08:42:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:42:05]wFMCommunicate OK [08:42:05]SAM_PROTO_GetShiftState done [08:42:05]FM_GetShiftState done [08:42:05]opened in 1740011697 [08:42:05]opened+sec_in_day 1740098097 [08:42:05]quantity*price = 10015 [08:42:05]sum+1 = 10016 [08:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.15 НСП 1% : 0.89 НДС 12% : 10.63 Наличными: 0.00 Безнал.: 100.15 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 28 20.02.2025 08:42 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187227 ФПД: 263708229679783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T084209&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187227&fm=263708229679783&tin=02508201610067®Number=0000000000091857&sum=10015 [08:42:06]StoreToDocumentArchive [08:42:06]shift 648 fd 187227 [08:42:06]save to /storage/0648/doc_00187227 [08:42:06]save last doc name /storage/0648/doc_00187227 to /storage/kkm_last_doc_name [08:42:06]save OK [08:42:06]Clear old archive folders... [08:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:06]tlvbuf is 01F83D20 [08:42:06]SAM_PROTO_ClearQueue [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 09 00 00 [08:42:06]Write to MH i2c: E2 08 00 A4 1A 80 09 00 00 00 00 00 00 30 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 A4 1A 00 90 00 32 [08:42:06]RAPDU: 90 00 [08:42:06]wFMCommunicate OK [08:42:06]SAM_PROTO_ClearQueue done [08:42:06]KKMCreateOFDPacket [08:42:06]OFDProtocolAddRootSTLVToBuf [08:42:06]FM_MakeSignedData [08:42:06]FM_MakeSignedData [08:42:06]SAM_PROTO_SignData [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 0D 01 02 [08:42:06]Write to MH i2c: E2 08 00 A5 1A 80 0D 01 02 00 00 00 00 38 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 A5 1A 00 90 00 33 [08:42:06]RAPDU: 90 00 [08:42:06]wFMCommunicate OK [08:42:06]wFMCommunicate request_size=255 [08:42:06]MH_SAM_APDU [08:42: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 32 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 1F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E1 EA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B DB 02 00 35 04 06 00 EF [08:42:06]Write to MH i2c: E2 02 01 A6 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 32 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 1F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E1 EA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B DB 02 00 35 04 06 00 EF 00 00 9A [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [08:42:06]RAPDU: 90 00 [08:42:06]wFMCommunicate OK [08:42:06]wFMCommunicate request_size=10 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 0D 02 02 05 D7 5B 5A BA A7 [08:42:06]Write to MH i2c: E2 0D 00 A7 1A 80 0D 02 02 05 00 D7 5B 5A BA A7 00 00 32 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 A7 1A 00 90 00 35 [08:42:06]RAPDU: 90 00 [08:42:06]wFMCommunicate OK [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 0D 03 02 [08:42:06]Write to MH i2c: E2 08 00 A8 1A 80 0D 03 02 00 00 00 00 3D [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 0B 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 0B 00 A8 1A 00 A5 B8 B8 7B 80 2A AA 1E 90 00 40 [08:42:06]RAPDU: A5 B8 B8 7B 80 2A AA 1E 90 00 [08:42:06]wFMCommunicate OK [08:42:06]SAM_PROTO_SignData done [08:42:06]FM_MakeSignedData done [08:42:06]CreateOFDProtocolMessage [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 11 00 00 [08:42:06]Write to MH i2c: E2 08 00 A9 1A 80 11 00 00 00 00 00 00 3D [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 17 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 17 00 A9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [08:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:42:06]wFMCommunicate OK [08:42:06]CreateOFDProtocolMessage done [08:42:06]OFDSenderStorePacket 187227 [08:42:06]StoreOFDPacket docnum=187227 [08:42:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 19 C5 07 01 29 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 1F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E1 EA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B DB 02 00 35 04 06 00 EF D7 5B 5A BA A7 A5 B8 B8 7B 80 2A AA 1E [08:42:06]CheckFolder [08:42:06]dirname=/storage/ofd_packets [08:42:06]CheckFolder done [08:42:06]ProducePacketName [08:42:06]name=ofd_packets/00187227 [08:42:06]NVStorageSaveData ofd_packets/00187227 [08:42:06]File name is /storage/ofd_packets/00187227 [08:42:06]Write 301 bytes [08:42:06]NVStorageSaveData done [08:42:06]OFDSenderStorePacket done [08:42:06]KKMCreateOFDPacket done [08:42:06]NVStorageSaveData kkm_last_timestamp [08:42:06]File name is /storage/kkm_last_timestamp [08:42:06]Write 4 bytes [08:42:06]NVStorageSaveData done [08:42:06]ExternCall_PrintAddStr [08:42:06]wPrintStart [08:42:06]Write to MH i2c: 01 00 00 AA 1A C4 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: 01 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: 01 07 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: 01 07 00 AA 1A 00 00 00 00 00 FF 0F D9 [08:42:06]RasterBufferAndPrint [08:42:06]line Счет N : (1)412380 [08:42:06]line ИНН: 02508201610067 [08:42:06]line Контрольно-Кассовый Чек [08:42:06]line ПРОДАЖА [08:42:06]line ТРК (МРК, ГНК) : 42 [08:42:06]line Товар: 2710124130 [08:42:06]line Аи-92-К-2 [08:42:06]line 1.560 * 64.20 [08:42:06]line = 100.15 [08:42:06]line НДС 12% НСП 1% [08:42:06]line > о реализуемом товаре [08:42:06]line ИТОГО: 100.15 [08:42:06]line НСП 1% : 0.89 [08:42:06]line НДС 12% : 10.63 [08:42:06]line Наличными: 0.00 [08:42:06]line Безнал.: 100.15 [08:42:06]line Место: АЗС № 92 "Партнер Нефть" [08:42:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:42:06]line СНО: Общий режим [08:42:06]line Чек 28 20.02.2025 08:42 [08:42:06]line Смена: 648 ФФД: 1.0 [08:42:06]line ЗНМ: 0300000118 [08:42:06]line РНМ: 0000000000091857 [08:42:06]line Версия ККМ: 001 [08:42:06]line Платежная система: O! деньги [08:42:06]line ФМ: 0000000000871826 [08:42:06]line ФД: 187227 [08:42:06]line ФПД: 263708229679783 [08:42:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T084209&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187227&fm=263708229679783&tin=02508201610067®Number=0000000000091857&sum=10015 [08:42:06]written 0, free lines is 4095 [08:42:07]OFD Sender: Processing packet 187227 [packets to send 49, broken 48] [08:42:07]ProducePacketName [08:42:07]name=ofd_packets/00187227 [08:42:07]OFD Sender: To server: pG, [08:42:07]CommunicateWithHost lk.salyk.kg:30040 [08:42:07]ConnectInit lk.salyk.kg [08:42:07]Connected sock=10 [08:42:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 19 C5 07 01 29 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 1F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E1 EA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B DB 02 00 35 04 06 00 EF D7 5B 5A BA A7 A5 B8 B8 7B 80 2A AA 1E [08:42:07]Write to MH i2c: 01 00 00 D4 1A EE [08:42:07]Write i2c OK [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 07 00 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 07 00 D4 1A 00 00 00 00 00 05 0D 07 [08:42:07]RasterBufferAndPrint [08:42:07]line [08:42:07]line [08:42:07]line [08:42:07]line [08:42:07]line [08:42:07]written 0, free lines is 3339 [08:42:07]MH_Cut [08:42:07]Write to MH i2c: D1 01 00 DB 1A 01 C7 [08:42:07]Write i2c OK [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: D1 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: D1 01 00 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: D1 01 00 DB 1A 00 C6 [08:42:07]Write to MH i2c: 01 00 00 DC 1A F6 [08:42:07]Write i2c OK [08:42:07]MH_I2C_Read... [08:42:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0D 42 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 31 38 32 36 10 04 04 00 5B DB 02 00 F4 03 04 00 32 91 B6 67 B6 04 01 00 00 1E 38 26 09 A7 D9 72 72 [08:42:07]CommunicateWithHost err = 0 [08:42:07]CheckOFDResponse [08:42:07]1017 (14) - 77093643461234 [08:42:07]1041 (16) - 0000000000871826 [08:42:07]1040 (4) - 187227 [08:42:07]1012 (4) - 20.02.2025 02:19 [08:42:07]1206 (1) - 0 [08:42:07]OFD Sender: Remove packet 187227 [08:42:07]ProducePacketName [08:42:07]name=ofd_packets/00187227 [08:42:07]NVStorageDeleteData [08:42:07]OFD Sender: No OFD packet to send [08:42:08]*** Cut start [08:42:08]*** Partial cut [08:42:08]*** CUTSNS_PIN = 1 [08:42:08]*** CUTSNS_PIN = 0 [08:42:08]*** Brake cut motor [08:42:08]Read from MH i2c: 01 [08:42:08]MH_I2C_Read... [08:42:08]*** Stop cut motor [08:42:08]*** Cut end [08:42:08]Read from MH i2c: 01 07 00 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: 01 07 00 DC 1A 00 00 00 00 00 FF 0F 0B [08:42:08]process_action close_receipt done [08:42:08]requested_data is exist [08:42:08]produce_requested_data [08:42:08]requested_item fm.sn is exist - process it [08:42:08]wFMCommunicate request_size=4 [08:42:08]MH_SAM_APDU [08:42:08]CAPDU: 80 11 00 00 [08:42:08]Write to MH i2c: E2 08 00 DD 1A 80 11 00 00 00 00 00 00 71 [08:42:08]Write i2c OK [08:42:08]MH_I2C_Read... [08:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:08]Read from MH i2c: E2 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: E2 17 00 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: E2 17 00 DD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [08:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:42:08]wFMCommunicate OK [08:42:08]requested_item fd.num is exist - process it [08:42:08]SAM_PROTO_GetFieldsCounters [08:42:08]wFMCommunicate request_size=4 [08:42:08]MH_SAM_APDU [08:42:08]CAPDU: 80 13 00 00 [08:42:08]Write to MH i2c: E2 08 00 DE 1A 80 13 00 00 00 00 00 00 74 [08:42:08]Write i2c OK [08:42:08]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 62 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 62 00 DE 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5B DB 02 00 0E 04 04 00 88 02 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 B0 [08:42:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5B DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:09]wFMCommunicate OK [08:42:09]SAM_PROTO_GetFieldsCounters done [08:42:09]requested_item shift.num is exist - process it [08:42:09]requested_item shift.opened is exist - process it [08:42:09]req_shift_opened [08:42:09]FM_GetShiftState [08:42:09]SAM_PROTO_GetShiftState [08:42:09]wFMCommunicate request_size=4 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 13 01 00 [08:42:09]Write to MH i2c: E2 08 00 DF 1A 80 13 01 00 00 00 00 00 76 [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 0E 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 0E 00 DF 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C8 [08:42:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:42:09]wFMCommunicate OK [08:42:09]SAM_PROTO_GetShiftState done [08:42:09]FM_GetShiftState done [08:42:09]req_shift_opened done [08:42:09]requested_item shift.open_date is exist - process it [08:42:09]req_shift_open_date [08:42:09]req_shift_open_date done [08:42:09]produce_requested_data done [08:42:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187227,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:42:09]process_action_free close_receipt [08:42:09]json_value_free [08:42:09]json_value_free done [08:42:09]process_json_proto returns [08:42:09]Send response to host [08:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187227,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:42:09]free response buf [08:42:09]execute_script done [08:42:09]execute_script returns [08:42:09]free content buf [08:42:09]Sock 7.Close socket [08:42:09]Sock 7.Thread stoped [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:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:37]accept exits with 9 [08:48:37]New connection [08:48:37]New thread 3066510692 created [08:48:37]Thread 3066654052 joined [08:48:37]Waiting for new connection... [08:48:37] Sock 9.Parse request [08:48:37]Sock 9.Check first char [08:48:37]Sock 9.First char is OK [08:48:37]request: POST /json_proto HTTP/1.0 [08:48:37]Method: POST [08:48:37]URL: /json_proto [08:48:37]Method is POST - this is cgi request [08:48:37]url: /json_proto [08:48:37]query_string will be loaded in cgi processing [08:48:37]execute_cgi json_proto POST (null) [08:48:37]execute_cgi path=json_proto method=POST [08:48:37]POST find Content-Length [08:48:37]Host: 172.17.46.131:8080 [08:48:37]Content-Length: 799 [08:48:37]Content-Type: application/json [08:48:37] [08:48:37]POST finish read [08:48:37]Found Content-Length = 799 [08:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:37]execute_script... [08: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)412381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:37]POST & json_proto [08:48:37]process_json_proto [08:48:37]json parsed OK: [08:48:37]protocol is kg_v1.0 [08:48:37]action value=close_receipt [08:48:37]process_action close_receipt [08:48:37]cmd_close_receipt [08:48:37]MH_GetDate [08:48:37]Write to MH i2c: F0 00 00 E0 1A E9 [08:48:37]Write i2c OK [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: F0 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: F0 09 00 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: F0 09 00 E0 1A 00 69 EC B6 67 7E 41 4F 65 D7 [08:48:37]GetLastDocTimeStamp 1740040929 [08:48:37]current date 1740041321 [08:48:37]FM_GetShiftState [08:48:37]SAM_PROTO_GetShiftState [08:48:37]wFMCommunicate request_size=4 [08:48:37]MH_SAM_APDU [08:48:37]CAPDU: 80 13 01 00 [08:48:37]Write to MH i2c: E2 08 00 E1 1A 80 13 01 00 00 00 00 00 78 [08:48:37]Write i2c OK [08:48:37]MH_I2C_Read... [08:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:37]Read from MH i2c: E2 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 0E 00 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 0E 00 E1 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CA [08:48:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:48:37]wFMCommunicate OK [08:48:37]SAM_PROTO_GetShiftState done [08:48:37]FM_GetShiftState done [08:48:37]opened in 1740011697 [08:48:37]opened+sec_in_day 1740098097 [08:48:37]quantity*price = 200013 [08:48:37]sum+1 = 200014 [08:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 29 20.02.2025 08:48 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187228 ФПД: 219717092576519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T084841&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187228&fm=219717092576519&tin=02508201610067®Number=0000000000091857&sum=200013 [08:48:38]StoreToDocumentArchive [08:48:38]shift 648 fd 187228 [08:48:38]save to /storage/0648/doc_00187228 [08:48:38]save last doc name /storage/0648/doc_00187228 to /storage/kkm_last_doc_name [08:48:38]save OK [08:48:38]Clear old archive folders... [08:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:38]tlvbuf is 01FA9C20 [08:48:38]SAM_PROTO_ClearQueue [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 09 00 00 [08:48:38]Write to MH i2c: E2 08 00 EE 1A 80 09 00 00 00 00 00 00 7A [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 EE 1A 00 90 00 7C [08:48:38]RAPDU: 90 00 [08:48:38]wFMCommunicate OK [08:48:38]SAM_PROTO_ClearQueue done [08:48:38]KKMCreateOFDPacket [08:48:38]OFDProtocolAddRootSTLVToBuf [08:48:38]FM_MakeSignedData [08:48:38]FM_MakeSignedData [08:48:38]SAM_PROTO_SignData [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 0D 01 02 [08:48:38]Write to MH i2c: E2 08 00 EF 1A 80 0D 01 02 00 00 00 00 82 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 EF 1A 00 90 00 7D [08:48:38]RAPDU: 90 00 [08:48:38]wFMCommunicate OK [08:48:38]wFMCommunicate request_size=255 [08:48:38]MH_SAM_APDU [08: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 69 EC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DB 02 00 35 04 06 00 C7 D4 DF 41 [08:48:38]Write to MH i2c: E2 02 01 F0 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 69 EC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DB 02 00 35 04 06 00 C7 D4 DF 41 00 00 C3 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 F0 1A 00 90 00 7E [08:48:39]RAPDU: 90 00 [08:48:39]wFMCommunicate OK [08:48:39]wFMCommunicate request_size=7 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 0D 02 02 02 0D 07 [08:48:39]Write to MH i2c: E2 0A 00 F1 1A 80 0D 02 02 02 00 0D 07 00 00 9D [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 F1 1A 00 90 00 7F [08:48:39]RAPDU: 90 00 [08:48:39]wFMCommunicate OK [08:48:39]wFMCommunicate request_size=4 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 0D 03 02 [08:48:39]Write to MH i2c: E2 08 00 F2 1A 80 0D 03 02 00 00 00 00 87 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 0B 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 0B 00 F2 1A 00 CD E2 21 2C B7 C0 D3 46 90 00 14 [08:48:39]RAPDU: CD E2 21 2C B7 C0 D3 46 90 00 [08:48:39]wFMCommunicate OK [08:48:39]SAM_PROTO_SignData done [08:48:39]FM_MakeSignedData done [08:48:39]CreateOFDProtocolMessage [08:48:39]wFMCommunicate request_size=4 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 11 00 00 [08:48:39]Write to MH i2c: E2 08 00 F3 1A 80 11 00 00 00 00 00 00 87 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 17 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 17 00 F3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DA [08:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:48:39]wFMCommunicate OK [08:48:39]CreateOFDProtocolMessage done [08:48:39]OFDSenderStorePacket 187228 [08:48:39]StoreOFDPacket docnum=187228 [08:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F3 DA 04 01 8F 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 69 EC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DB 02 00 35 04 06 00 C7 D4 DF 41 0D 07 CD E2 21 2C B7 C0 D3 46 [08:48:39]CheckFolder [08:48:39]dirname=/storage/ofd_packets [08:48:39]CheckFolder done [08:48:39]ProducePacketName [08:48:39]name=ofd_packets/00187228 [08:48:39]NVStorageSaveData ofd_packets/00187228 [08:48:39]File name is /storage/ofd_packets/00187228 [08:48:39]Write 298 bytes [08:48:39]NVStorageSaveData done [08:48:39]OFDSenderStorePacket done [08:48:39]KKMCreateOFDPacket done [08:48:39]NVStorageSaveData kkm_last_timestamp [08:48:39]File name is /storage/kkm_last_timestamp [08:48:39]Write 4 bytes [08:48:39]NVStorageSaveData done [08:48:39]ExternCall_PrintAddStr [08:48:39]wPrintStart [08:48:39]Write to MH i2c: 01 00 00 F4 1A 0E [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 07 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 07 00 F4 1A 00 00 00 00 00 FF 0F 23 [08:48:39]RasterBufferAndPrint [08:48:39]line Счет N : (1)412381 [08:48:39]line ИНН: 02508201610067 [08:48:39]line Контрольно-Кассовый Чек [08:48:39]line ПРОДАЖА [08:48:39]line ТРК (МРК, ГНК) : 5 [08:48:39]line Товар: 2710194210 [08:48:39]line ДТ-К-5 [08:48:39]line 27.550 * 72.60 [08:48:39]line = 2000.13 [08:48:39]line НДС 12% НСП 1% [08:48:39]line > о реализуемом товаре [08:48:39]line ИТОГО: 2000.13 [08:48:39]line НСП 1% : 17.70 [08:48:39]line НДС 12% : 212.40 [08:48:39]line Наличными: 0.00 [08:48:39]line Безнал.: 2000.13 [08:48:39]line Место: АЗС № 92 "Партнер Нефть" [08:48:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:48:39]line СНО: Общий режим [08:48:39]line Чек 29 20.02.2025 08:48 [08:48:39]line Смена: 648 ФФД: 1.0 [08:48:39]line ЗНМ: 0300000118 [08:48:39]line РНМ: 0000000000091857 [08:48:39]line Версия ККМ: 001 [08:48:39]line Платежная система: O! деньги [08:48:39]line ФМ: 0000000000871826 [08:48:39]line ФД: 187228 [08:48:39]line ФПД: 219717092576519 [08:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T084841&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187228&fm=219717092576519&tin=02508201610067®Number=0000000000091857&sum=200013 [08:48:39]OFD Sender: Processing packet 187228 [packets to send 49, broken 48] [08:48:39]ProducePacketName [08:48:39]name=ofd_packets/00187228 [08:48:39]OFD Sender: To server: pG, [08:48:39]CommunicateWithHost lk.salyk.kg:30040 [08:48:39]ConnectInit lk.salyk.kg [08:48:39]written 0, free lines is 4095 [08:48:39]Connected sock=10 [08: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 31 38 32 36 0C 01 00 00 F3 DA 04 01 8F 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 69 EC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DB 02 00 35 04 06 00 C7 D4 DF 41 0D 07 CD E2 21 2C B7 C0 D3 46 [08:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 27 6D 47 00 E1 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 31 38 32 36 10 04 04 00 5C DB 02 00 F4 03 04 00 BA 92 B6 67 B6 04 01 00 00 8B 26 AF 2C 23 09 2E E7 [08:48:40]CommunicateWithHost err = 0 [08:48:40]CheckOFDResponse [08:48:40]1017 (14) - 77093643461234 [08:48:40]1041 (16) - 0000000000871826 [08:48:40]1040 (4) - 187228 [08:48:40]1012 (4) - 20.02.2025 02:26 [08:48:40]1206 (1) - 0 [08:48:40]OFD Sender: Remove packet 187228 [08:48:40]ProducePacketName [08:48:40]name=ofd_packets/00187228 [08:48:40]NVStorageDeleteData [08:48:40]Write to MH i2c: 01 00 00 1E 1B 39 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 1E 1B 00 00 00 00 00 0F 0D 5C [08:48:40]RasterBufferAndPrint [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]written 0, free lines is 3354 [08:48:40]MH_Cut [08:48:40]Write to MH i2c: D1 01 00 25 1B 01 12 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 01 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 01 00 25 1B 00 11 [08:48:40]Write to MH i2c: 01 00 00 26 1B 41 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]OFD Sender: No OFD packet to send [08:48:40]*** Cut start [08:48:40]*** Partial cut [08:48:40]*** CUTSNS_PIN = 1 [08:48:40]*** CUTSNS_PIN = 0 [08:48:41]*** Brake cut motor [08:48:41]Read from MH i2c: 01 [08:48:41]MH_I2C_Read... [08:48:41]*** Stop cut motor [08:48:41]*** Cut end [08:48:41]Read from MH i2c: 01 07 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: 01 07 00 26 1B 00 00 00 00 00 FF 0F 56 [08:48:41]process_action close_receipt done [08:48:41]requested_data is exist [08:48:41]produce_requested_data [08:48:41]requested_item fm.sn is exist - process it [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 11 00 00 [08:48:41]Write to MH i2c: E2 08 00 27 1B 80 11 00 00 00 00 00 00 BC [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:41]Read from MH i2c: E2 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 17 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 17 00 27 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [08:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:48:41]wFMCommunicate OK [08:48:41]requested_item fd.num is exist - process it [08:48:41]SAM_PROTO_GetFieldsCounters [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 13 00 00 [08:48:41]Write to MH i2c: E2 08 00 28 1B 80 13 00 00 00 00 00 00 BF [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:41]Read from MH i2c: E2 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 62 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 62 00 28 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5C DB 02 00 0E 04 04 00 88 02 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 FF [08: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5C DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:41]wFMCommunicate OK [08:48:41]SAM_PROTO_GetFieldsCounters done [08:48:41]requested_item shift.num is exist - process it [08:48:41]requested_item shift.opened is exist - process it [08:48:41]req_shift_opened [08:48:41]FM_GetShiftState [08:48:41]SAM_PROTO_GetShiftState [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 13 01 00 [08:48:41]Write to MH i2c: E2 08 00 29 1B 80 13 01 00 00 00 00 00 C1 [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:41]Read from MH i2c: E2 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 0E 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 0E 00 29 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 13 [08:48:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:48:41]wFMCommunicate OK [08:48:41]SAM_PROTO_GetShiftState done [08:48:41]FM_GetShiftState done [08:48:41]req_shift_opened done [08:48:41]requested_item shift.open_date is exist - process it [08:48:41]req_shift_open_date [08:48:41]req_shift_open_date done [08:48:41]produce_requested_data done [08:48:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187228,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:48:41]process_action_free close_receipt [08:48:41]json_value_free [08:48:41]json_value_free done [08:48:41]process_json_proto returns [08:48:41]Send response to host [08:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187228,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:48:41]free response buf [08:48:41]execute_script done [08:48:41]execute_script returns [08:48:41]free content buf [08:48:41]Sock 9.Close socket [08:48:41]Sock 9.Thread stoped [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:34]accept exits with 7 [08:49:34]New connection [08:49:34]New thread 3066654052 created [08:49:34]Thread 3066510692 joined [08:49:34]Waiting for new connection... [08:49:34] Sock 7.Parse request [08:49:34]Sock 7.Check first char [08:49:34]Sock 7.First char is OK [08:49:34]request: POST /json_proto HTTP/1.0 [08:49:34]Method: POST [08:49:34]URL: /json_proto [08:49:34]Method is POST - this is cgi request [08:49:34]url: /json_proto [08:49:34]query_string will be loaded in cgi processing [08:49:34]execute_cgi json_proto POST (null) [08:49:34]execute_cgi path=json_proto method=POST [08:49:34]POST find Content-Length [08:49:34]Host: 172.17.46.131:8080 [08:49:34]Content-Length: 677 [08:49:34]Content-Type: application/json [08:49:34] [08:49:34]POST finish read [08:49:34]Found Content-Length = 677 [08:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.510, "sum" : 610.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:34]execute_script... [08:49: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)412382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.510, "sum" : 610.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:34]POST & json_proto [08:49:34]process_json_proto [08:49:34]json parsed OK: [08:49:34]protocol is kg_v1.0 [08:49:34]action value=close_receipt [08:49:34]process_action close_receipt [08:49:34]cmd_close_receipt [08:49:34]MH_GetDate [08:49:34]Write to MH i2c: F0 00 00 2A 1B 34 [08:49:34]Write i2c OK [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: F0 [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: F0 09 00 [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: F0 09 00 2A 1B 00 A2 EC B6 67 7E 41 4F 65 5B [08:49:34]GetLastDocTimeStamp 1740041321 [08:49:34]current date 1740041378 [08:49:34]FM_GetShiftState [08:49:34]SAM_PROTO_GetShiftState [08:49:34]wFMCommunicate request_size=4 [08:49:34]MH_SAM_APDU [08:49:34]CAPDU: 80 13 01 00 [08:49:34]Write to MH i2c: E2 08 00 2B 1B 80 13 01 00 00 00 00 00 C3 [08:49:34]Write i2c OK [08:49:34]MH_I2C_Read... [08:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:34]Read from MH i2c: E2 [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: E2 0E 00 [08:49:34]MH_I2C_Read... [08:49:34]Read from MH i2c: E2 0E 00 2B 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 15 [08:49:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:49:34]wFMCommunicate OK [08:49:34]SAM_PROTO_GetShiftState done [08:49:34]FM_GetShiftState done [08:49:34]opened in 1740011697 [08:49:34]opened+sec_in_day 1740098097 [08:49:34]quantity*price = 61054 [08:49:34]sum+1 = 61055 [08:49:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.84 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 30 20.02.2025 08:49 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187229 ФПД: 199050163304365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T084938&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187229&fm=199050163304365&tin=02508201610067®Number=0000000000091857&sum=61000 [08:49:35]StoreToDocumentArchive [08:49:35]shift 648 fd 187229 [08:49:35]save to /storage/0648/doc_00187229 [08:49:35]save last doc name /storage/0648/doc_00187229 to /storage/kkm_last_doc_name [08:49:35]save OK [08:49:35]Clear old archive folders... [08:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:35]tlvbuf is B6E5F0B0 [08:49:35]SAM_PROTO_ClearQueue [08:49:35]wFMCommunicate request_size=4 [08:49:35]MH_SAM_APDU [08:49:35]CAPDU: 80 09 00 00 [08:49:35]Write to MH i2c: E2 08 00 38 1B 80 09 00 00 00 00 00 00 C5 [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:35]Read from MH i2c: E2 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 38 1B 00 90 00 C7 [08:49:35]RAPDU: 90 00 [08:49:35]wFMCommunicate OK [08:49:35]SAM_PROTO_ClearQueue done [08:49:35]KKMCreateOFDPacket [08:49:35]OFDProtocolAddRootSTLVToBuf [08:49:35]FM_MakeSignedData [08:49:35]FM_MakeSignedData [08:49:35]SAM_PROTO_SignData [08:49:35]wFMCommunicate request_size=4 [08:49:35]MH_SAM_APDU [08:49:35]CAPDU: 80 0D 01 02 [08:49:35]Write to MH i2c: E2 08 00 39 1B 80 0D 01 02 00 00 00 00 CD [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:35]Read from MH i2c: E2 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 03 00 39 1B 00 90 00 C8 [08:49:35]RAPDU: 90 00 [08:49:35]wFMCommunicate OK [08:49:35]wFMCommunicate request_size=255 [08:49:35]MH_SAM_APDU [08:49: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 32 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7E EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A2 EC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DB 02 00 35 04 06 00 B5 [08:49:35]Write to MH i2c: E2 02 01 3A 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 32 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7E EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A2 EC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DB 02 00 35 04 06 00 B5 00 00 F6 [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 3A 1B 00 90 00 C9 [08:49:36]RAPDU: 90 00 [08:49:36]wFMCommunicate OK [08:49:36]wFMCommunicate request_size=10 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 0D 02 02 05 08 FA 46 B7 AD [08:49:36]Write to MH i2c: E2 0D 00 3B 1B 80 0D 02 02 05 00 08 FA 46 B7 AD 00 00 86 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 3B 1B 00 90 00 CA [08:49:36]RAPDU: 90 00 [08:49:36]wFMCommunicate OK [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 0D 03 02 [08:49:36]Write to MH i2c: E2 08 00 3C 1B 80 0D 03 02 00 00 00 00 D2 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 0B 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 0B 00 3C 1B 00 22 FB BF 38 F3 15 71 69 90 00 C9 [08:49:36]RAPDU: 22 FB BF 38 F3 15 71 69 90 00 [08:49:36]wFMCommunicate OK [08:49:36]SAM_PROTO_SignData done [08:49:36]FM_MakeSignedData done [08:49:36]CreateOFDProtocolMessage [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 11 00 00 [08:49:36]Write to MH i2c: E2 08 00 3D 1B 80 11 00 00 00 00 00 00 D2 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 17 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 17 00 3D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [08:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:49:36]wFMCommunicate OK [08:49:36]CreateOFDProtocolMessage done [08:49:36]OFDSenderStorePacket 187229 [08:49:36]StoreOFDPacket docnum=187229 [08:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 40 C9 07 01 6F 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 32 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7E EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A2 EC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DB 02 00 35 04 06 00 B5 08 FA 46 B7 AD 22 FB BF 38 F3 15 71 69 [08:49:36]CheckFolder [08:49:36]dirname=/storage/ofd_packets [08:49:36]CheckFolder done [08:49:36]ProducePacketName [08:49:36]name=ofd_packets/00187229 [08:49:36]NVStorageSaveData ofd_packets/00187229 [08:49:36]File name is /storage/ofd_packets/00187229 [08:49:36]Write 301 bytes [08:49:36]NVStorageSaveData done [08:49:36]OFDSenderStorePacket done [08:49:36]KKMCreateOFDPacket done [08:49:36]NVStorageSaveData kkm_last_timestamp [08:49:36]File name is /storage/kkm_last_timestamp [08:49:36]Write 4 bytes [08:49:36]NVStorageSaveData done [08:49:36]ExternCall_PrintAddStr [08:49:36]wPrintStart [08:49:36]Write to MH i2c: 01 00 00 3E 1B 59 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 07 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 FF 0F 6E [08:49:36]RasterBufferAndPrint [08:49:36]line Счет N : (1)412382 [08:49:36]line ИНН: 02508201610067 [08:49:36]line Контрольно-Кассовый Чек [08:49:36]line ПРОДАЖА [08:49:36]line ТРК (МРК, ГНК) : 12 [08:49:36]line Товар: 2710124130 [08:49:36]line Аи-92-К-2 [08:49:36]line 9.510 * 64.20 [08:49:36]line = 610.54 [08:49:36]line НДС 12% НСП 1% [08:49:36]line > о реализуемом товаре [08:49:36]line ОКРУГЛЕНИЕ: -0.54 [08:49:36]line ИТОГО: 610.00 [08:49:36]line Внесено: 610.00 [08:49:36]line СДАЧА: 0.00 [08:49:36]line НСП 1% : 5.40 [08:49:36]line НДС 12% : 64.84 [08:49:36]line Наличными: 610.00 [08:49:36]line Безнал.: 0.00 [08:49:36]line Место: АЗС № 92 "Партнер Нефть" [08:49:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:49:36]line СНО: Общий режим [08:49:36]line Чек 30 20.02.2025 08:49 [08:49:36]line Смена: 648 ФФД: 1.0 [08:49:36]line ЗНМ: 0300000118 [08:49:36]line РНМ: 0000000000091857 [08:49:36]line Версия ККМ: 001 [08:49:36]line ФМ: 0000000000871826 [08:49:36]line ФД: 187229 [08:49:36]line ФПД: 199050163304365 [08:49:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T084938&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187229&fm=199050163304365&tin=02508201610067®Number=0000000000091857&sum=61000 [08:49:36]OFD Sender: Processing packet 187229 [packets to send 49, broken 48] [08:49:36]ProducePacketName [08:49:36]name=ofd_packets/00187229 [08:49:36]OFD Sender: To server: pG, [08:49:36]CommunicateWithHost lk.salyk.kg:30040 [08:49:36]ConnectInit lk.salyk.kg [08:49:36]written 0, free lines is 4095 [08:49:36]Connected sock=11 [08:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 40 C9 07 01 6F 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 32 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7E EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A2 EC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DB 02 00 35 04 06 00 B5 08 FA 46 B7 AD 22 FB BF 38 F3 15 71 69 [08:49:37]Write to MH i2c: 01 00 00 69 1B 84 [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: 01 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: 01 07 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: 01 07 00 69 1B 00 00 00 00 00 F7 0C 8E [08:49:37]RasterBufferAndPrint [08:49:37]line [08:49:37]line [08:49:37]line [08:49:37]line [08:49:37]line [08:49:37]written 0, free lines is 3327 [08:49:37]MH_Cut [08:49:37]Write to MH i2c: D1 01 00 70 1B 01 5D [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: D1 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: D1 01 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: D1 01 00 70 1B 00 5C [08:49:37]Write to MH i2c: 01 00 00 71 1B 8C [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A0 A1 47 00 0E 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 31 38 32 36 10 04 04 00 5D DB 02 00 F4 03 04 00 F3 92 B6 67 B6 04 01 00 00 B8 0A B0 D8 03 8A 62 20 [08:49:37]CommunicateWithHost err = 0 [08:49:37]CheckOFDResponse [08:49:37]1017 (14) - 77093643461234 [08:49:37]1041 (16) - 0000000000871826 [08:49:37]1040 (4) - 187229 [08:49:37]1012 (4) - 20.02.2025 02:26 [08:49:37]1206 (1) - 0 [08:49:37]OFD Sender: Remove packet 187229 [08:49:37]ProducePacketName [08:49:37]name=ofd_packets/00187229 [08:49:37]NVStorageDeleteData [08:49:37]OFD Sender: No OFD packet to send [08:49:37]*** Cut start [08:49:37]*** Partial cut [08:49:37]*** CUTSNS_PIN = 1 [08:49:37]*** CUTSNS_PIN = 0 [08:49:38]*** Brake cut motor [08:49:38]Read from MH i2c: 01 [08:49:38]MH_I2C_Read... [08:49:38]*** Stop cut motor [08:49:38]*** Cut end [08:49:38]Read from MH i2c: 01 07 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: 01 07 00 71 1B 00 00 00 00 00 FF 0F A1 [08:49:38]process_action close_receipt done [08:49:38]requested_data is exist [08:49:38]produce_requested_data [08:49:38]requested_item fm.sn is exist - process it [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 11 00 00 [08:49:38]Write to MH i2c: E2 08 00 72 1B 80 11 00 00 00 00 00 00 07 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 17 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 17 00 72 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [08:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:49:38]wFMCommunicate OK [08:49:38]requested_item fd.num is exist - process it [08:49:38]SAM_PROTO_GetFieldsCounters [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 13 00 00 [08:49:38]Write to MH i2c: E2 08 00 73 1B 80 13 00 00 00 00 00 00 0A [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 62 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 62 00 73 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5D DB 02 00 0E 04 04 00 88 02 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 4E [08:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5D DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_GetFieldsCounters done [08:49:38]requested_item shift.num is exist - process it [08:49:38]requested_item shift.opened is exist - process it [08:49:38]req_shift_opened [08:49:38]FM_GetShiftState [08:49:38]SAM_PROTO_GetShiftState [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 13 01 00 [08:49:38]Write to MH i2c: E2 08 00 74 1B 80 13 01 00 00 00 00 00 0C [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0E 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0E 00 74 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5E [08:49:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_GetShiftState done [08:49:38]FM_GetShiftState done [08:49:38]req_shift_opened done [08:49:38]requested_item shift.open_date is exist - process it [08:49:38]req_shift_open_date [08:49:38]req_shift_open_date done [08:49:38]produce_requested_data done [08:49:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187229,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:49:38]process_action_free close_receipt [08:49:38]json_value_free [08:49:38]json_value_free done [08:49:38]process_json_proto returns [08:49:38]Send response to host [08:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187229,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:49:38]free response buf [08:49:38]execute_script done [08:49:38]execute_script returns [08:49:38]free content buf [08:49:38]Sock 7.Close socket [08:49:38]Sock 7.Thread stoped [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:11]accept exits with 9 [08:52:11]New connection [08:52:11]New thread 3066510692 created [08:52:11]Thread 3066654052 joined [08:52:11]Waiting for new connection... [08:52:11] Sock 9.Parse request [08:52:11]Sock 9.Check first char [08:52:11]Sock 9.First char is OK [08:52:11]request: POST /json_proto HTTP/1.0 [08:52:11]Method: POST [08:52:11]URL: /json_proto [08:52:11]Method is POST - this is cgi request [08:52:11]url: /json_proto [08:52:11]query_string will be loaded in cgi processing [08:52:11]execute_cgi json_proto POST (null) [08:52:11]execute_cgi path=json_proto method=POST [08:52:11]POST find Content-Length [08:52:11]Host: 172.17.46.131:8080 [08:52:11]Content-Length: 792 [08:52:11]Content-Type: application/json [08:52:11] [08:52:11]POST finish read [08:52:11]Found Content-Length = 792 [08:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03533", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:11]execute_script... [08:52: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)412383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03533", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:11]POST & json_proto [08:52:11]process_json_proto [08:52:11]json parsed OK: [08:52:11]protocol is kg_v1.0 [08:52:11]action value=close_receipt [08:52:11]process_action close_receipt [08:52:11]cmd_close_receipt [08:52:11]MH_GetDate [08:52:11]Write to MH i2c: F0 00 00 75 1B 7F [08:52:11]Write i2c OK [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: F0 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: F0 09 00 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: F0 09 00 75 1B 00 3F ED B6 67 7E 41 4F 65 44 [08:52:11]GetLastDocTimeStamp 1740041378 [08:52:11]current date 1740041535 [08:52:11]FM_GetShiftState [08:52:11]SAM_PROTO_GetShiftState [08:52:11]wFMCommunicate request_size=4 [08:52:11]MH_SAM_APDU [08:52:11]CAPDU: 80 13 01 00 [08:52:11]Write to MH i2c: E2 08 00 76 1B 80 13 01 00 00 00 00 00 0E [08:52:11]Write i2c OK [08:52:11]MH_I2C_Read... [08:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:11]Read from MH i2c: E2 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 0E 00 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 0E 00 76 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 60 [08:52:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:52:11]wFMCommunicate OK [08:52:11]SAM_PROTO_GetShiftState done [08:52:11]FM_GetShiftState done [08:52:11]opened in 1740011697 [08:52:11]opened+sec_in_day 1740098097 [08:52:11]quantity*price = 0 [08:52:11]sum+1 = 1 [08:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 31 20.02.2025 08:52 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03533 ФМ: 0000000000871826 ФД: 187230 ФПД: 65333129533598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085215&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187230&fm=65333129533598&tin=02508201610067®Number=0000000000091857&sum=0 [08:52:13]StoreToDocumentArchive [08:52:13]shift 648 fd 187230 [08:52:13]save to /storage/0648/doc_00187230 [08:52:13]save last doc name /storage/0648/doc_00187230 to /storage/kkm_last_doc_name [08:52:13]save OK [08:52:13]Clear old archive folders... [08:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:13]tlvbuf is 01FDCD10 [08:52:13]SAM_PROTO_ClearQueue [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 09 00 00 [08:52:13]Write to MH i2c: E2 08 00 83 1B 80 09 00 00 00 00 00 00 10 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 83 1B 00 90 00 12 [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]SAM_PROTO_ClearQueue done [08:52:13]KKMCreateOFDPacket [08:52:13]OFDProtocolAddRootSTLVToBuf [08:52:13]FM_MakeSignedData [08:52:13]FM_MakeSignedData [08:52:13]SAM_PROTO_SignData [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 01 02 [08:52:13]Write to MH i2c: E2 08 00 84 1B 80 0D 01 02 00 00 00 00 18 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 84 1B 00 90 00 13 [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]wFMCommunicate request_size=255 [08:52:13]MH_SAM_APDU [08:52: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 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3F ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DB 02 00 35 04 06 00 3B [08:52:13]Write to MH i2c: E2 02 01 85 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 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3F ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DB 02 00 35 04 06 00 3B 00 00 9F [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 85 1B 00 90 00 14 [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]wFMCommunicate request_size=10 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 02 02 05 6B 8D FA 58 9E [08:52:13]Write to MH i2c: E2 0D 00 86 1B 80 0D 02 02 05 00 6B 8D FA 58 9E 00 00 0D [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 86 1B 00 90 00 15 [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 03 02 [08:52:13]Write to MH i2c: E2 08 00 87 1B 80 0D 03 02 00 00 00 00 1D [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 0B 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 0B 00 87 1B 00 5C B6 EB 79 C0 18 A0 3F 90 00 4B [08:52:13]RAPDU: 5C B6 EB 79 C0 18 A0 3F 90 00 [08:52:13]wFMCommunicate OK [08:52:13]SAM_PROTO_SignData done [08:52:13]FM_MakeSignedData done [08:52:13]CreateOFDProtocolMessage [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 11 00 00 [08:52:13]Write to MH i2c: E2 08 00 88 1B 80 11 00 00 00 00 00 00 1D [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 17 00 [08:52:13]MH_I2C_Read... [08:52:13]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 31 38 32 36 90 00 70 [08:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:52:13]wFMCommunicate OK [08:52:13]CreateOFDProtocolMessage done [08:52:13]OFDSenderStorePacket 187230 [08:52:13]StoreOFDPacket docnum=187230 [08:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 59 E5 07 01 5F 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 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3F ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DB 02 00 35 04 06 00 3B 6B 8D FA 58 9E 5C B6 EB 79 C0 18 A0 3F [08:52:13]CheckFolder [08:52:13]dirname=/storage/ofd_packets [08:52:13]CheckFolder done [08:52:13]ProducePacketName [08:52:13]name=ofd_packets/00187230 [08:52:13]NVStorageSaveData ofd_packets/00187230 [08:52:13]File name is /storage/ofd_packets/00187230 [08:52:13]Write 301 bytes [08:52:13]NVStorageSaveData done [08:52:13]OFDSenderStorePacket done [08:52:13]KKMCreateOFDPacket done [08:52:13]NVStorageSaveData kkm_last_timestamp [08:52:13]File name is /storage/kkm_last_timestamp [08:52:13]Write 4 bytes [08:52:13]NVStorageSaveData done [08:52:13]ExternCall_PrintAddStr [08:52:13]wPrintStart [08:52:13]Write to MH i2c: 01 00 00 89 1B A4 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 07 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 07 00 89 1B 00 00 00 00 00 FF 0F B9 [08:52:13]RasterBufferAndPrint [08:52:13]line Счет N : (1)412383 [08:52:13]line ИНН: 02508201610067 [08:52:13]line Контрольно-Кассовый Чек [08:52:13]line ПРОДАЖА [08:52:13]line ТРК (МРК, ГНК) : 22 [08:52:13]line Товар: 2710124130 [08:52:13]line Аи-92-К-2 [08:52:13]line 50.000 * 0.00 [08:52:13]line = 0.00 [08:52:13]line НДС 12% НСП 1% [08:52:13]line > о реализуемом товаре [08:52:13]line ИТОГО: 0.00 [08:52:13]line НСП 1% : 0.00 [08:52:13]line НДС 12% : 0.00 [08:52:13]line Наличными: 0.00 [08:52:13]line Безнал.: 0.00 [08:52:13]line Место: АЗС № 92 "Партнер Нефть" [08:52:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:52:13]line СНО: Общий режим [08:52:13]line Чек 31 20.02.2025 08:52 [08:52:13]line Смена: 648 ФФД: 1.0 [08:52:13]line ЗНМ: 0300000118 [08:52:13]line РНМ: 0000000000091857 [08:52:13]line Версия ККМ: 001 [08:52:13]line Талоны: Топливная Карта [08:52:13]line 03533 [08:52:13]line ФМ: 0000000000871826 [08:52:13]line ФД: 187230 [08:52:13]line ФПД: 65333129533598 [08:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085215&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187230&fm=65333129533598&tin=02508201610067®Number=0000000000091857&sum=0 [08:52:13]OFD Sender: Processing packet 187230 [packets to send 49, broken 48] [08:52:13]ProducePacketName [08:52:13]name=ofd_packets/00187230 [08:52:13]OFD Sender: To server: pG, [08:52:13]CommunicateWithHost lk.salyk.kg:30040 [08:52:13]ConnectInit lk.salyk.kg [08:52:13]written 0, free lines is 4095 [08:52:14]Connected sock=10 [08:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 59 E5 07 01 5F 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 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3F ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DB 02 00 35 04 06 00 3B 6B 8D FA 58 9E 5C B6 EB 79 C0 18 A0 3F [08:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1D 92 47 00 13 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DB 02 00 F4 03 04 00 91 93 B6 67 B6 04 01 00 00 4D 13 F4 CD 9F 2F 97 80 [08:52:14]CommunicateWithHost err = 0 [08:52:14]CheckOFDResponse [08:52:14]1017 (14) - 77093643461234 [08:52:14]1041 (16) - 0000000000871826 [08:52:14]1040 (4) - 187230 [08:52:14]1012 (4) - 20.02.2025 02:29 [08:52:14]1206 (1) - 0 [08:52:14]OFD Sender: Remove packet 187230 [08:52:14]ProducePacketName [08:52:14]name=ofd_packets/00187230 [08:52:14]NVStorageDeleteData [08:52:14]Write to MH i2c: 01 00 00 B3 1B CE [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 07 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 07 00 B3 1B 00 00 00 00 00 F9 0C DA [08:52:14]RasterBufferAndPrint [08:52:14]line [08:52:14]line [08:52:14]line [08:52:14]line [08:52:14]line [08:52:14]written 0, free lines is 3327 [08:52:14]MH_Cut [08:52:14]Write to MH i2c: D1 01 00 BA 1B 01 A7 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: D1 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: D1 01 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: D1 01 00 BA 1B 00 A6 [08:52:14]Write to MH i2c: 01 00 00 BB 1B D6 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]OFD Sender: No OFD packet to send [08:52:14]*** Cut start [08:52:14]*** Partial cut [08:52:14]*** CUTSNS_PIN = 1 [08:52:15]*** CUTSNS_PIN = 0 [08:52:15]*** Brake cut motor [08:52:15]Read from MH i2c: 01 [08:52:15]MH_I2C_Read... [08:52:15]*** Stop cut motor [08:52:15]*** Cut end [08:52:15]Read from MH i2c: 01 07 00 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: 01 07 00 BB 1B 00 00 00 00 00 FF 0F EB [08:52:15]process_action close_receipt done [08:52:15]requested_data is exist [08:52:15]produce_requested_data [08:52:15]requested_item fm.sn is exist - process it [08:52:15]wFMCommunicate request_size=4 [08:52:15]MH_SAM_APDU [08:52:15]CAPDU: 80 11 00 00 [08:52:15]Write to MH i2c: E2 08 00 BC 1B 80 11 00 00 00 00 00 00 51 [08:52:15]Write i2c OK [08:52:15]MH_I2C_Read... [08:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:15]Read from MH i2c: E2 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 17 00 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 17 00 BC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A4 [08:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:52:15]wFMCommunicate OK [08:52:15]requested_item fd.num is exist - process it [08:52:15]SAM_PROTO_GetFieldsCounters [08:52:15]wFMCommunicate request_size=4 [08:52:15]MH_SAM_APDU [08:52:15]CAPDU: 80 13 00 00 [08:52:15]Write to MH i2c: E2 08 00 BD 1B 80 13 00 00 00 00 00 00 54 [08:52:15]Write i2c OK [08:52:15]MH_I2C_Read... [08:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:15]Read from MH i2c: E2 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 62 00 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 62 00 BD 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5E DB 02 00 0E 04 04 00 88 02 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 9C [08:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5E DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:15]wFMCommunicate OK [08:52:15]SAM_PROTO_GetFieldsCounters done [08:52:15]requested_item shift.num is exist - process it [08:52:15]requested_item shift.opened is exist - process it [08:52:15]req_shift_opened [08:52:15]FM_GetShiftState [08:52:15]SAM_PROTO_GetShiftState [08:52:15]wFMCommunicate request_size=4 [08:52:15]MH_SAM_APDU [08:52:15]CAPDU: 80 13 01 00 [08:52:15]Write to MH i2c: E2 08 00 BE 1B 80 13 01 00 00 00 00 00 56 [08:52:15]Write i2c OK [08:52:15]MH_I2C_Read... [08:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:15]Read from MH i2c: E2 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 0E 00 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 0E 00 BE 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A8 [08:52:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:52:15]wFMCommunicate OK [08:52:15]SAM_PROTO_GetShiftState done [08:52:15]FM_GetShiftState done [08:52:15]req_shift_opened done [08:52:15]requested_item shift.open_date is exist - process it [08:52:15]req_shift_open_date [08:52:15]req_shift_open_date done [08:52:15]produce_requested_data done [08:52:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187230,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:52:15]process_action_free close_receipt [08:52:15]json_value_free [08:52:15]json_value_free done [08:52:15]process_json_proto returns [08:52:15]Send response to host [08:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187230,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:52:15]free response buf [08:52:15]execute_script done [08:52:15]execute_script returns [08:52:15]free content buf [08:52:15]Sock 9.Close socket [08:52:15]Sock 9.Thread stoped [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:06]accept exits with 7 [08:53:06]New connection [08:53:06]New thread 3066654052 created [08:53:06]Thread 3066510692 joined [08:53:06]Waiting for new connection... [08:53:06] Sock 7.Parse request [08:53:06]Sock 7.Check first char [08:53:06]Sock 7.First char is OK [08:53:06]request: POST /json_proto HTTP/1.0 [08:53:06]Method: POST [08:53:06]URL: /json_proto [08:53:06]Method is POST - this is cgi request [08:53:06]url: /json_proto [08:53:06]query_string will be loaded in cgi processing [08:53:06]execute_cgi json_proto POST (null) [08:53:06]execute_cgi path=json_proto method=POST [08:53:06]POST find Content-Length [08:53:06]Host: 172.17.46.131:8080 [08:53:06]Content-Length: 677 [08:53:06]Content-Type: application/json [08:53:06] [08:53:06]POST finish read [08:53:06]Found Content-Length = 677 [08:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:53:06]execute_script... [08:53:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:53:06]POST & json_proto [08:53:06]process_json_proto [08:53:06]json parsed OK: [08:53:06]protocol is kg_v1.0 [08:53:06]action value=close_receipt [08:53:06]process_action close_receipt [08:53:06]cmd_close_receipt [08:53:06]MH_GetDate [08:53:06]Write to MH i2c: F0 00 00 BF 1B C9 [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: F0 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: F0 09 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: F0 09 00 BF 1B 00 76 ED B6 67 7E 41 4F 65 C5 [08:53:06]GetLastDocTimeStamp 1740041535 [08:53:06]current date 1740041590 [08:53:06]FM_GetShiftState [08:53:06]SAM_PROTO_GetShiftState [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 13 01 00 [08:53:06]Write to MH i2c: E2 08 00 C0 1B 80 13 01 00 00 00 00 00 58 [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0E 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0E 00 C0 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AA [08:53:06]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:53:06]wFMCommunicate OK [08:53:06]SAM_PROTO_GetShiftState done [08:53:06]FM_GetShiftState done [08:53:06]opened in 1740011697 [08:53:06]opened+sec_in_day 1740098097 [08:53:06]quantity*price = 50011 [08:53:06]sum+1 = 50013 [08:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 32 20.02.2025 08:53 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187231 ФПД: 56293778225950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085310&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187231&fm=56293778225950&tin=02508201610067®Number=0000000000091857&sum=50000 [08:53:07]StoreToDocumentArchive [08:53:07]shift 648 fd 187231 [08:53:07]save to /storage/0648/doc_00187231 [08:53:07]save last doc name /storage/0648/doc_00187231 to /storage/kkm_last_doc_name [08:53:07]save OK [08:53:07]Clear old archive folders... [08:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:07]tlvbuf is 01F58E00 [08:53:07]SAM_PROTO_ClearQueue [08:53:07]wFMCommunicate request_size=4 [08:53:07]MH_SAM_APDU [08:53:07]CAPDU: 80 09 00 00 [08:53:07]Write to MH i2c: E2 08 00 CD 1B 80 09 00 00 00 00 00 00 5A [08:53:07]Write i2c OK [08:53:07]MH_I2C_Read... [08:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:07]Read from MH i2c: E2 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 03 00 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 03 00 CD 1B 00 90 00 5C [08:53:07]RAPDU: 90 00 [08:53:07]wFMCommunicate OK [08:53:07]SAM_PROTO_ClearQueue done [08:53:07]KKMCreateOFDPacket [08:53:07]OFDProtocolAddRootSTLVToBuf [08:53:07]FM_MakeSignedData [08:53:07]FM_MakeSignedData [08:53:07]SAM_PROTO_SignData [08:53:07]wFMCommunicate request_size=4 [08:53:07]MH_SAM_APDU [08:53:07]CAPDU: 80 0D 01 02 [08:53:07]Write to MH i2c: E2 08 00 CE 1B 80 0D 01 02 00 00 00 00 62 [08:53:07]Write i2c OK [08:53:07]MH_I2C_Read... [08:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:07]Read from MH i2c: E2 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 03 00 [08:53:07]MH_I2C_Read... [08:53:07]Read from MH i2c: E2 03 00 CE 1B 00 90 00 5D [08:53:07]RAPDU: 90 00 [08:53:07]wFMCommunicate OK [08:53:07]wFMCommunicate request_size=255 [08:53:07]MH_SAM_APDU [08:53: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 76 ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DB 02 00 35 04 06 00 33 [08:53:07]Write to MH i2c: E2 02 01 CF 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 76 ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DB 02 00 35 04 06 00 33 00 00 94 [08:53:07]Write i2c OK [08:53:07]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 CF 1B 00 90 00 5E [08:53:08]RAPDU: 90 00 [08:53:08]wFMCommunicate OK [08:53:08]wFMCommunicate request_size=10 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 0D 02 02 05 32 EA A7 7B 1E [08:53:08]Write to MH i2c: E2 0D 00 D0 1B 80 0D 02 02 05 00 32 EA A7 7B 1E 00 00 CB [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 D0 1B 00 90 00 5F [08:53:08]RAPDU: 90 00 [08:53:08]wFMCommunicate OK [08:53:08]wFMCommunicate request_size=4 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 0D 03 02 [08:53:08]Write to MH i2c: E2 08 00 D1 1B 80 0D 03 02 00 00 00 00 67 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 0B 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 0B 00 D1 1B 00 EF 36 9A B1 B8 85 46 59 90 00 B4 [08:53:08]RAPDU: EF 36 9A B1 B8 85 46 59 90 00 [08:53:08]wFMCommunicate OK [08:53:08]SAM_PROTO_SignData done [08:53:08]FM_MakeSignedData done [08:53:08]CreateOFDProtocolMessage [08:53:08]wFMCommunicate request_size=4 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 11 00 00 [08:53:08]Write to MH i2c: E2 08 00 D2 1B 80 11 00 00 00 00 00 00 67 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 17 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 17 00 D2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [08:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:53:08]wFMCommunicate OK [08:53:08]CreateOFDProtocolMessage done [08:53:08]OFDSenderStorePacket 187231 [08:53:08]StoreOFDPacket docnum=187231 [08:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 13 8B 07 01 86 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 76 ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DB 02 00 35 04 06 00 33 32 EA A7 7B 1E EF 36 9A B1 B8 85 46 59 [08:53:08]CheckFolder [08:53:08]dirname=/storage/ofd_packets [08:53:08]CheckFolder done [08:53:08]ProducePacketName [08:53:08]name=ofd_packets/00187231 [08:53:08]NVStorageSaveData ofd_packets/00187231 [08:53:08]File name is /storage/ofd_packets/00187231 [08:53:08]Write 301 bytes [08:53:08]NVStorageSaveData done [08:53:08]OFDSenderStorePacket done [08:53:08]KKMCreateOFDPacket done [08:53:08]NVStorageSaveData kkm_last_timestamp [08:53:08]File name is /storage/kkm_last_timestamp [08:53:08]Write 4 bytes [08:53:08]NVStorageSaveData done [08:53:08]OFD Sender: Processing packet 187231 [packets to send 49, broken 48] [08:53:08]ProducePacketName [08:53:08]name=ofd_packets/00187231 [08:53:08]OFD Sender: To server: pG, [08:53:08]CommunicateWithHost lk.salyk.kg:30040 [08:53:08]ConnectInit lk.salyk.kg [08:53:08]ExternCall_PrintAddStr [08:53:08]wPrintStart [08:53:08]Write to MH i2c: 01 00 00 D3 1B EE [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 07 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 07 00 D3 1B 00 00 00 00 00 FF 0F 03 [08:53:08]RasterBufferAndPrint [08:53:08]line Счет N : (1)412384 [08:53:08]line ИНН: 02508201610067 [08:53:08]line Контрольно-Кассовый Чек [08:53:08]line ПРОДАЖА [08:53:08]line ТРК (МРК, ГНК) : 42 [08:53:08]line Товар: 2710124130 [08:53:08]line Аи-92-К-2 [08:53:08]line 7.790 * 64.20 [08:53:08]line = 500.12 [08:53:08]line НДС 12% НСП 1% [08:53:08]line > о реализуемом товаре [08:53:08]line ОКРУГЛЕНИЕ: -0.12 [08:53:08]line ИТОГО: 500.00 [08:53:08]line Внесено: 500.00 [08:53:08]line СДАЧА: 0.00 [08:53:08]line НСП 1% : 4.43 [08:53:08]line НДС 12% : 53.11 [08:53:08]line Наличными: 500.00 [08:53:08]line Безнал.: 0.00 [08:53:08]line Место: АЗС № 92 "Партнер Нефть" [08:53:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:53:08]line СНО: Общий режим [08:53:08]line Чек 32 20.02.2025 08:53 [08:53:08]line Смена: 648 ФФД: 1.0 [08:53:08]line ЗНМ: 0300000118 [08:53:08]line РНМ: 0000000000091857 [08:53:08]line Версия ККМ: 001 [08:53:08]line ФМ: 0000000000871826 [08:53:08]line ФД: 187231 [08:53:08]line ФПД: 56293778225950 [08:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085310&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187231&fm=56293778225950&tin=02508201610067®Number=0000000000091857&sum=50000 [08:53:08]Connected sock=11 [08:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 13 8B 07 01 86 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 76 ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DB 02 00 35 04 06 00 33 32 EA A7 7B 1E EF 36 9A B1 B8 85 46 59 [08:53:08]written 0, free lines is 4095 [08:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 35 EC 47 00 A2 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DB 02 00 F4 03 04 00 C7 93 B6 67 B6 04 01 00 00 FB 6C 88 C4 8E FD C0 DB [08:53:08]CommunicateWithHost err = 0 [08:53:08]CheckOFDResponse [08:53:08]1017 (14) - 77093643461234 [08:53:08]1041 (16) - 0000000000871826 [08:53:08]1040 (4) - 187231 [08:53:08]1012 (4) - 20.02.2025 02:30 [08:53:08]1206 (1) - 0 [08:53:08]OFD Sender: Remove packet 187231 [08:53:08]ProducePacketName [08:53:08]name=ofd_packets/00187231 [08:53:08]NVStorageDeleteData [08:53:09]Write to MH i2c: 01 00 00 FE 1B 19 [08:53:09]Write i2c OK [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: 01 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: 01 07 00 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: 01 07 00 FE 1B 00 00 00 00 00 E4 0C 10 [08:53:09]RasterBufferAndPrint [08:53:09]line [08:53:09]line [08:53:09]line [08:53:09]line [08:53:09]line [08:53:09]written 0, free lines is 3306 [08:53:09]MH_Cut [08:53:09]Write to MH i2c: D1 01 00 05 1C 01 F3 [08:53:09]Write i2c OK [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: D1 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: D1 01 00 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: D1 01 00 05 1C 00 F2 [08:53:09]Write to MH i2c: 01 00 00 06 1C 22 [08:53:09]Write i2c OK [08:53:09]MH_I2C_Read... [08:53:09]OFD Sender: No OFD packet to send [08:53:09]*** Cut start [08:53:09]*** Partial cut [08:53:09]*** CUTSNS_PIN = 1 [08:53:09]*** CUTSNS_PIN = 0 [08:53:10]*** Brake cut motor [08:53:10]Read from MH i2c: 01 [08:53:10]MH_I2C_Read... [08:53:10]*** Stop cut motor [08:53:10]*** Cut end [08:53:10]Read from MH i2c: 01 07 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: 01 07 00 06 1C 00 00 00 00 00 FF 0F 37 [08:53:10]process_action close_receipt done [08:53:10]requested_data is exist [08:53:10]produce_requested_data [08:53:10]requested_item fm.sn is exist - process it [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 11 00 00 [08:53:10]Write to MH i2c: E2 08 00 07 1C 80 11 00 00 00 00 00 00 9D [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 17 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 17 00 07 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [08:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:53:10]wFMCommunicate OK [08:53:10]requested_item fd.num is exist - process it [08:53:10]SAM_PROTO_GetFieldsCounters [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 13 00 00 [08:53:10]Write to MH i2c: E2 08 00 08 1C 80 13 00 00 00 00 00 00 A0 [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 62 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 62 00 08 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5F DB 02 00 0E 04 04 00 88 02 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 EC [08:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5F DB 02 00 0E 04 04 00 88 02 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:53:10]wFMCommunicate OK [08:53:10]SAM_PROTO_GetFieldsCounters done [08:53:10]requested_item shift.num is exist - process it [08:53:10]requested_item shift.opened is exist - process it [08:53:10]req_shift_opened [08:53:10]FM_GetShiftState [08:53:10]SAM_PROTO_GetShiftState [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 13 01 00 [08:53:10]Write to MH i2c: E2 08 00 09 1C 80 13 01 00 00 00 00 00 A2 [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 0E 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 0E 00 09 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F4 [08:53:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:53:10]wFMCommunicate OK [08:53:10]SAM_PROTO_GetShiftState done [08:53:10]FM_GetShiftState done [08:53:10]req_shift_opened done [08:53:10]requested_item shift.open_date is exist - process it [08:53:10]req_shift_open_date [08:53:10]req_shift_open_date done [08:53:10]produce_requested_data done [08:53:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187231,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:53:10]process_action_free close_receipt [08:53:10]json_value_free [08:53:10]json_value_free done [08:53:10]process_json_proto returns [08:53:10]Send response to host [08:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187231,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:53:10]free response buf [08:53:10]execute_script done [08:53:10]execute_script returns [08:53:10]free content buf [08:53:10]Sock 7.Close socket [08:53:10]Sock 7.Thread stoped [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:07]accept exits with 9 [08:54:07]New connection [08:54:07]New thread 3066510692 created [08:54:07]Thread 3066654052 joined [08:54:07]Waiting for new connection... [08:54:07] Sock 9.Parse request [08:54:07]Sock 9.Check first char [08:54:07]Sock 9.First char is OK [08:54:07]request: POST /json_proto HTTP/1.0 [08:54:07]Method: POST [08:54:07]URL: /json_proto [08:54:07]Method is POST - this is cgi request [08:54:07]url: /json_proto [08:54:07]query_string will be loaded in cgi processing [08:54:07]execute_cgi json_proto POST (null) [08:54:07]execute_cgi path=json_proto method=POST [08:54:07]POST find Content-Length [08:54:07]Host: 172.17.46.131:8080 [08:54:07]Content-Length: 678 [08:54:07]Content-Type: application/json [08:54:07] [08:54:07]POST finish read [08:54:07]Found Content-Length = 678 [08:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:07]execute_script... [08:54: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)412385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:07]POST & json_proto [08:54:07]process_json_proto [08:54:07]json parsed OK: [08:54:07]protocol is kg_v1.0 [08:54:07]action value=close_receipt [08:54:07]process_action close_receipt [08:54:07]cmd_close_receipt [08:54:07]MH_GetDate [08:54:07]Write to MH i2c: F0 00 00 0A 1C 15 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: F0 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: F0 09 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: F0 09 00 0A 1C 00 B3 ED B6 67 7E 41 4F 65 4E [08:54:07]GetLastDocTimeStamp 1740041590 [08:54:07]current date 1740041651 [08:54:07]FM_GetShiftState [08:54:07]SAM_PROTO_GetShiftState [08:54:07]wFMCommunicate request_size=4 [08:54:07]MH_SAM_APDU [08:54:07]CAPDU: 80 13 01 00 [08:54:07]Write to MH i2c: E2 08 00 0B 1C 80 13 01 00 00 00 00 00 A4 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:07]Read from MH i2c: E2 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 0E 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 0E 00 0B 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F6 [08:54:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:54:07]wFMCommunicate OK [08:54:07]SAM_PROTO_GetShiftState done [08:54:07]FM_GetShiftState done [08:54:07]opened in 1740011697 [08:54:07]opened+sec_in_day 1740098097 [08:54:07]quantity*price = 300055 [08:54:07]sum+1 = 300057 [08:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 33 20.02.2025 08:54 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187232 ФПД: 259593828325211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085411&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187232&fm=259593828325211&tin=02508201610067®Number=0000000000091857&sum=300000 [08:54:08]StoreToDocumentArchive [08:54:08]shift 648 fd 187232 [08:54:08]save to /storage/0648/doc_00187232 [08:54:08]save last doc name /storage/0648/doc_00187232 to /storage/kkm_last_doc_name [08:54:08]save OK [08:54:08]Clear old archive folders... [08:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:54:08]tlvbuf is 01FA9F60 [08:54:08]SAM_PROTO_ClearQueue [08:54:08]wFMCommunicate request_size=4 [08:54:08]MH_SAM_APDU [08:54:08]CAPDU: 80 09 00 00 [08:54:08]Write to MH i2c: E2 08 00 18 1C 80 09 00 00 00 00 00 00 A6 [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:08]Read from MH i2c: E2 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: E2 03 00 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: E2 03 00 18 1C 00 90 00 A8 [08:54:08]RAPDU: 90 00 [08:54:08]wFMCommunicate OK [08:54:08]SAM_PROTO_ClearQueue done [08:54:08]KKMCreateOFDPacket [08:54:08]OFDProtocolAddRootSTLVToBuf [08:54:08]FM_MakeSignedData [08:54:08]FM_MakeSignedData [08:54:08]SAM_PROTO_SignData [08:54:08]wFMCommunicate request_size=4 [08:54:08]MH_SAM_APDU [08:54:08]CAPDU: 80 0D 01 02 [08:54:08]Write to MH i2c: E2 08 00 19 1C 80 0D 01 02 00 00 00 00 AE [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:08]Read from MH i2c: E2 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: E2 03 00 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: E2 03 00 19 1C 00 90 00 A9 [08:54:08]RAPDU: 90 00 [08:54:08]wFMCommunicate OK [08:54:08]wFMCommunicate request_size=255 [08:54:08]MH_SAM_APDU [08:54: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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B3 ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DB 02 00 35 04 06 00 EC 19 65 EC [08:54:08]Write to MH i2c: E2 02 01 1A 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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B3 ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DB 02 00 35 04 06 00 EC 19 65 EC 00 00 91 [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 1A 1C 00 90 00 AA [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]wFMCommunicate request_size=7 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 02 02 02 57 5B [08:54:09]Write to MH i2c: E2 0A 00 1B 1C 80 0D 02 02 02 00 57 5B 00 00 67 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 1B 1C 00 90 00 AB [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 03 02 [08:54:09]Write to MH i2c: E2 08 00 1C 1C 80 0D 03 02 00 00 00 00 B3 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 0B 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 0B 00 1C 1C 00 F0 B4 81 C7 34 C5 F1 26 90 00 B0 [08:54:09]RAPDU: F0 B4 81 C7 34 C5 F1 26 90 00 [08:54:09]wFMCommunicate OK [08:54:09]SAM_PROTO_SignData done [08:54:09]FM_MakeSignedData done [08:54:09]CreateOFDProtocolMessage [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 11 00 00 [08:54:09]Write to MH i2c: E2 08 00 1D 1C 80 11 00 00 00 00 00 00 B3 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 17 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 17 00 1D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [08:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:54:09]wFMCommunicate OK [08:54:09]CreateOFDProtocolMessage done [08:54:09]OFDSenderStorePacket 187232 [08:54:09]StoreOFDPacket docnum=187232 [08:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3F A2 04 01 07 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B3 ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DB 02 00 35 04 06 00 EC 19 65 EC 57 5B F0 B4 81 C7 34 C5 F1 26 [08:54:09]CheckFolder [08:54:09]dirname=/storage/ofd_packets [08:54:09]CheckFolder done [08:54:09]ProducePacketName [08:54:09]name=ofd_packets/00187232 [08:54:09]NVStorageSaveData ofd_packets/00187232 [08:54:09]File name is /storage/ofd_packets/00187232 [08:54:09]Write 298 bytes [08:54:09]NVStorageSaveData done [08:54:09]OFDSenderStorePacket done [08:54:09]KKMCreateOFDPacket done [08:54:09]NVStorageSaveData kkm_last_timestamp [08:54:09]File name is /storage/kkm_last_timestamp [08:54:09]Write 4 bytes [08:54:09]NVStorageSaveData done [08:54:09]ExternCall_PrintAddStr [08:54:09]wPrintStart [08:54:09]Write to MH i2c: 01 00 00 1E 1C 3A [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 07 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 07 00 1E 1C 00 00 00 00 00 FF 0F 4F [08:54:09]RasterBufferAndPrint [08:54:09]line Счет N : (1)412385 [08:54:09]line ИНН: 02508201610067 [08:54:09]line Контрольно-Кассовый Чек [08:54:09]line ПРОДАЖА [08:54:09]line ТРК (МРК, ГНК) : 5 [08:54:09]line Товар: 2710194210 [08:54:09]line ДТ-К-5 [08:54:09]line 41.330 * 72.60 [08:54:09]line = 3000.56 [08:54:09]line НДС 12% НСП 1% [08:54:09]line > о реализуемом товаре [08:54:09]line ОКРУГЛЕНИЕ: -0.56 [08:54:09]line ИТОГО: 3000.00 [08:54:09]line Внесено: 3000.00 [08:54:09]line СДАЧА: 0.00 [08:54:09]line НСП 1% : 26.55 [08:54:09]line НДС 12% : 318.64 [08:54:09]line Наличными: 3000.00 [08:54:09]line Безнал.: 0.00 [08:54:09]line Место: АЗС № 92 "Партнер Нефть" [08:54:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:54:09]line СНО: Общий режим [08:54:09]line Чек 33 20.02.2025 08:54 [08:54:09]line Смена: 648 ФФД: 1.0 [08:54:09]line ЗНМ: 0300000118 [08:54:09]line РНМ: 0000000000091857 [08:54:09]line Версия ККМ: 001 [08:54:09]line ФМ: 0000000000871826 [08:54:09]line ФД: 187232 [08:54:09]line ФПД: 259593828325211 [08:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085411&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187232&fm=259593828325211&tin=02508201610067®Number=0000000000091857&sum=300000 [08:54:09]OFD Sender: Processing packet 187232 [packets to send 49, broken 48] [08:54:09]ProducePacketName [08:54:09]name=ofd_packets/00187232 [08:54:09]OFD Sender: To server: pG, [08:54:09]CommunicateWithHost lk.salyk.kg:30040 [08:54:09]ConnectInit lk.salyk.kg [08:54:09]written 0, free lines is 4095 [08:54:09]Connected sock=10 [08:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3F A2 04 01 07 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B3 ED B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DB 02 00 35 04 06 00 EC 19 65 EC 57 5B F0 B4 81 C7 34 C5 F1 26 [08:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 80 6F 47 00 AB 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DB 02 00 F4 03 04 00 04 94 B6 67 B6 04 01 00 00 2D 1A BF 7E 1E 05 A3 6D [08:54:10]CommunicateWithHost err = 0 [08:54:10]CheckOFDResponse [08:54:10]1017 (14) - 77093643461234 [08:54:10]1041 (16) - 0000000000871826 [08:54:10]1040 (4) - 187232 [08:54:10]1012 (4) - 20.02.2025 02:31 [08:54:10]1206 (1) - 0 [08:54:10]OFD Sender: Remove packet 187232 [08:54:10]ProducePacketName [08:54:10]name=ofd_packets/00187232 [08:54:10]NVStorageDeleteData [08:54:10]Write to MH i2c: 01 00 00 49 1C 65 [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 07 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 07 00 49 1C 00 00 00 00 00 F8 0C 70 [08:54:10]RasterBufferAndPrint [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]written 0, free lines is 3326 [08:54:10]MH_Cut [08:54:10]Write to MH i2c: D1 01 00 50 1C 01 3E [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: D1 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: D1 01 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: D1 01 00 50 1C 00 3D [08:54:10]Write to MH i2c: 01 00 00 51 1C 6D [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]OFD Sender: No OFD packet to send [08:54:10]*** Cut start [08:54:10]*** Partial cut [08:54:10]*** CUTSNS_PIN = 1 [08:54:10]*** CUTSNS_PIN = 0 [08:54:11]*** Brake cut motor [08:54:11]Read from MH i2c: 01 [08:54:11]MH_I2C_Read... [08:54:11]*** Stop cut motor [08:54:11]*** Cut end [08:54:11]Read from MH i2c: 01 07 00 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 FF 0F 82 [08:54:11]process_action close_receipt done [08:54:11]requested_data is exist [08:54:11]produce_requested_data [08:54:11]requested_item fm.sn is exist - process it [08:54:11]wFMCommunicate request_size=4 [08:54:11]MH_SAM_APDU [08:54:11]CAPDU: 80 11 00 00 [08:54:11]Write to MH i2c: E2 08 00 52 1C 80 11 00 00 00 00 00 00 E8 [08:54:11]Write i2c OK [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: E2 [08:54:11]MH_I2C_Read... [08:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:11]Read from MH i2c: E2 17 00 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: E2 17 00 52 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [08:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:54:11]wFMCommunicate OK [08:54:11]requested_item fd.num is exist - process it [08:54:11]SAM_PROTO_GetFieldsCounters [08:54:11]wFMCommunicate request_size=4 [08:54:11]MH_SAM_APDU [08:54:11]CAPDU: 80 13 00 00 [08:54:11]Write to MH i2c: E2 08 00 53 1C 80 13 00 00 00 00 00 00 EB [08:54:11]Write i2c OK [08:54:11]MH_I2C_Read... [08:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:11]Read from MH i2c: E2 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: E2 62 00 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: E2 62 00 53 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 60 DB 02 00 0E 04 04 00 88 02 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 3B [08:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 60 DB 02 00 0E 04 04 00 88 02 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:54:11]wFMCommunicate OK [08:54:11]SAM_PROTO_GetFieldsCounters done [08:54:11]requested_item shift.num is exist - process it [08:54:11]requested_item shift.opened is exist - process it [08:54:11]req_shift_opened [08:54:11]FM_GetShiftState [08:54:11]SAM_PROTO_GetShiftState [08:54:11]wFMCommunicate request_size=4 [08:54:11]MH_SAM_APDU [08:54:11]CAPDU: 80 13 01 00 [08:54:11]Write to MH i2c: E2 08 00 54 1C 80 13 01 00 00 00 00 00 ED [08:54:11]Write i2c OK [08:54:11]MH_I2C_Read... [08:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:11]Read from MH i2c: E2 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: E2 0E 00 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: E2 0E 00 54 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3F [08:54:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:54:11]wFMCommunicate OK [08:54:11]SAM_PROTO_GetShiftState done [08:54:11]FM_GetShiftState done [08:54:11]req_shift_opened done [08:54:11]requested_item shift.open_date is exist - process it [08:54:11]req_shift_open_date [08:54:11]req_shift_open_date done [08:54:11]produce_requested_data done [08:54:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187232,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:54:11]process_action_free close_receipt [08:54:11]json_value_free [08:54:11]json_value_free done [08:54:11]process_json_proto returns [08:54:11]Send response to host [08:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187232,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:54:11]free response buf [08:54:11]execute_script done [08:54:11]execute_script returns [08:54:11]free content buf [08:54:11]Sock 9.Close socket [08:54:11]Sock 9.Thread stoped [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]accept exits with 7 [08:57:40]New connection [08:57:40]New thread 3066654052 created [08:57:40]Thread 3066510692 joined [08:57:40]Waiting for new connection... [08:57:40] Sock 7.Parse request [08:57:40]Sock 7.Check first char [08:57:40]Sock 7.First char is OK [08:57:40]request: POST /json_proto HTTP/1.0 [08:57:40]Method: POST [08:57:40]URL: /json_proto [08:57:40]Method is POST - this is cgi request [08:57:40]url: /json_proto [08:57:40]query_string will be loaded in cgi processing [08:57:40]execute_cgi json_proto POST (null) [08:57:40]execute_cgi path=json_proto method=POST [08:57:40]POST find Content-Length [08:57:40]Host: 172.17.46.131:8080 [08:57:40]Content-Length: 677 [08:57:40]Content-Type: application/json [08:57:40] [08:57:40]POST finish read [08:57:40]Found Content-Length = 677 [08:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:57:40]execute_script... [08: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)412387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:57:40]POST & json_proto [08:57:40]process_json_proto [08:57:40]json parsed OK: [08:57:40]protocol is kg_v1.0 [08:57:40]action value=close_receipt [08:57:40]process_action close_receipt [08:57:40]cmd_close_receipt [08:57:40]MH_GetDate [08:57:40]Write to MH i2c: F0 00 00 55 1C 60 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: F0 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: F0 09 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: F0 09 00 55 1C 00 87 EE B6 67 7E 41 4F 65 6E [08:57:40]GetLastDocTimeStamp 1740041651 [08:57:40]current date 1740041863 [08:57:40]FM_GetShiftState [08:57:40]SAM_PROTO_GetShiftState [08:57:40]wFMCommunicate request_size=4 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 13 01 00 [08:57:40]Write to MH i2c: E2 08 00 56 1C 80 13 01 00 00 00 00 00 EF [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 0E 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 0E 00 56 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 41 [08:57:40]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:57:40]wFMCommunicate OK [08:57:40]SAM_PROTO_GetShiftState done [08:57:40]FM_GetShiftState done [08:57:40]opened in 1740011697 [08:57:40]opened+sec_in_day 1740098097 [08:57:40]quantity*price = 50011 [08:57:40]sum+1 = 50013 [08:57:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 34 20.02.2025 08:57 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187233 ФПД: 33955505484857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085743&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187233&fm=33955505484857&tin=02508201610067®Number=0000000000091857&sum=50000 [08:57:41]StoreToDocumentArchive [08:57:41]shift 648 fd 187233 [08:57:41]save to /storage/0648/doc_00187233 [08:57:41]save last doc name /storage/0648/doc_00187233 to /storage/kkm_last_doc_name [08:57:41]save OK [08:57:41]Clear old archive folders... [08:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:41]tlvbuf is B6E5F380 [08:57:41]SAM_PROTO_ClearQueue [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 09 00 00 [08:57:41]Write to MH i2c: E2 08 00 63 1C 80 09 00 00 00 00 00 00 F1 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 03 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 03 00 63 1C 00 90 00 F3 [08:57:41]RAPDU: 90 00 [08:57:41]wFMCommunicate OK [08:57:41]SAM_PROTO_ClearQueue done [08:57:41]KKMCreateOFDPacket [08:57:41]OFDProtocolAddRootSTLVToBuf [08:57:41]FM_MakeSignedData [08:57:41]FM_MakeSignedData [08:57:41]SAM_PROTO_SignData [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 0D 01 02 [08:57:41]Write to MH i2c: E2 08 00 64 1C 80 0D 01 02 00 00 00 00 F9 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 03 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 03 00 64 1C 00 90 00 F4 [08:57:41]RAPDU: 90 00 [08:57:41]wFMCommunicate OK [08:57:41]wFMCommunicate request_size=255 [08:57:41]MH_SAM_APDU [08: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 87 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DB 02 00 35 04 06 00 1E [08:57:41]Write to MH i2c: E2 02 01 65 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 87 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DB 02 00 35 04 06 00 1E 00 00 2C [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 03 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 03 00 65 1C 00 90 00 F5 [08:57:41]RAPDU: 90 00 [08:57:41]wFMCommunicate OK [08:57:41]wFMCommunicate request_size=10 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 0D 02 02 05 E1 E1 D7 B4 39 [08:57:41]Write to MH i2c: E2 0D 00 66 1C 80 0D 02 02 05 00 E1 E1 D7 B4 39 00 00 8C [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 03 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 03 00 66 1C 00 90 00 F6 [08:57:41]RAPDU: 90 00 [08:57:41]wFMCommunicate OK [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 0D 03 02 [08:57:41]Write to MH i2c: E2 08 00 67 1C 80 0D 03 02 00 00 00 00 FE [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 0B 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 0B 00 67 1C 00 58 9C 8C 63 B0 9F 08 90 90 00 C9 [08:57:41]RAPDU: 58 9C 8C 63 B0 9F 08 90 90 00 [08:57:41]wFMCommunicate OK [08:57:41]SAM_PROTO_SignData done [08:57:41]FM_MakeSignedData done [08:57:41]CreateOFDProtocolMessage [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 11 00 00 [08:57:41]Write to MH i2c: E2 08 00 68 1C 80 11 00 00 00 00 00 00 FE [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 17 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 17 00 68 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [08:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:57:41]wFMCommunicate OK [08:57:41]CreateOFDProtocolMessage done [08:57:41]OFDSenderStorePacket 187233 [08:57:41]StoreOFDPacket docnum=187233 [08:57:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E9 9F 07 01 E8 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 87 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DB 02 00 35 04 06 00 1E E1 E1 D7 B4 39 58 9C 8C 63 B0 9F 08 90 [08:57:41]CheckFolder [08:57:41]dirname=/storage/ofd_packets [08:57:41]CheckFolder done [08:57:41]ProducePacketName [08:57:41]name=ofd_packets/00187233 [08:57:41]NVStorageSaveData ofd_packets/00187233 [08:57:41]File name is /storage/ofd_packets/00187233 [08:57:41]Write 301 bytes [08:57:41]NVStorageSaveData done [08:57:41]OFDSenderStorePacket done [08:57:41]KKMCreateOFDPacket done [08:57:41]NVStorageSaveData kkm_last_timestamp [08:57:41]File name is /storage/kkm_last_timestamp [08:57:41]Write 4 bytes [08:57:41]NVStorageSaveData done [08:57:41]ExternCall_PrintAddStr [08:57:41]wPrintStart [08:57:41]Write to MH i2c: 01 00 00 69 1C 85 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: 01 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: 01 07 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: 01 07 00 69 1C 00 00 00 00 00 FF 0F 9A [08:57:41]RasterBufferAndPrint [08:57:41]line Счет N : (1)412387 [08:57:41]line ИНН: 02508201610067 [08:57:41]line Контрольно-Кассовый Чек [08:57:41]line ПРОДАЖА [08:57:41]line ТРК (МРК, ГНК) : 32 [08:57:41]line Товар: 2710124130 [08:57:41]line Аи-92-К-2 [08:57:41]line 7.790 * 64.20 [08:57:41]line = 500.12 [08:57:41]line НДС 12% НСП 1% [08:57:41]line > о реализуемом товаре [08:57:41]line ОКРУГЛЕНИЕ: -0.12 [08:57:41]line ИТОГО: 500.00 [08:57:41]line Внесено: 500.00 [08:57:41]line СДАЧА: 0.00 [08:57:41]line НСП 1% : 4.43 [08:57:41]line НДС 12% : 53.11 [08:57:41]line Наличными: 500.00 [08:57:41]line Безнал.: 0.00 [08:57:41]line Место: АЗС № 92 "Партнер Нефть" [08:57:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:57:41]line СНО: Общий режим [08:57:41]line Чек 34 20.02.2025 08:57 [08:57:41]line Смена: 648 ФФД: 1.0 [08:57:41]line ЗНМ: 0300000118 [08:57:41]line РНМ: 0000000000091857 [08:57:41]line Версия ККМ: 001 [08:57:41]line ФМ: 0000000000871826 [08:57:41]line ФД: 187233 [08:57:41]line ФПД: 33955505484857 [08:57:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085743&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187233&fm=33955505484857&tin=02508201610067®Number=0000000000091857&sum=50000 [08:57:42]written 0, free lines is 4095 [08:57:42]OFD Sender: Processing packet 187233 [packets to send 49, broken 48] [08:57:42]ProducePacketName [08:57:42]name=ofd_packets/00187233 [08:57:42]OFD Sender: To server: pG, [08:57:42]CommunicateWithHost lk.salyk.kg:30040 [08:57:42]ConnectInit lk.salyk.kg [08:57:42]Connected sock=10 [08: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 31 38 32 36 0F 01 00 00 E9 9F 07 01 E8 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 87 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DB 02 00 35 04 06 00 1E E1 E1 D7 B4 39 58 9C 8C 63 B0 9F 08 90 [08:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6D 50 47 00 2B 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 31 38 32 36 10 04 04 00 61 DB 02 00 F4 03 04 00 D9 94 B6 67 B6 04 01 00 00 CF 2D 4F 06 E6 67 17 EB [08:57:42]CommunicateWithHost err = 0 [08:57:42]CheckOFDResponse [08:57:42]1017 (14) - 77093643461234 [08:57:42]1041 (16) - 0000000000871826 [08:57:42]1040 (4) - 187233 [08:57:42]1012 (4) - 20.02.2025 02:35 [08:57:42]1206 (1) - 0 [08:57:42]OFD Sender: Remove packet 187233 [08:57:42]ProducePacketName [08:57:42]name=ofd_packets/00187233 [08:57:42]NVStorageDeleteData [08:57:42]Write to MH i2c: 01 00 00 94 1C B0 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: 01 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: 01 07 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: 01 07 00 94 1C 00 00 00 00 00 F0 0C B3 [08:57:42]RasterBufferAndPrint [08:57:42]line [08:57:42]line [08:57:42]line [08:57:42]line [08:57:42]line [08:57:42]written 0, free lines is 3319 [08:57:42]MH_Cut [08:57:42]Write to MH i2c: D1 01 00 9B 1C 01 89 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: D1 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: D1 01 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: D1 01 00 9B 1C 00 88 [08:57:42]Write to MH i2c: 01 00 00 9C 1C B8 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:43]OFD Sender: No OFD packet to send [08:57:43]*** Cut start [08:57:43]*** Partial cut [08:57:43]*** CUTSNS_PIN = 1 [08:57:43]*** CUTSNS_PIN = 0 [08:57:43]*** Brake cut motor [08:57:43]Read from MH i2c: 01 [08:57:44]MH_I2C_Read... [08:57:44]*** Stop cut motor [08:57:44]*** Cut end [08:57:44]Read from MH i2c: 01 07 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: 01 07 00 9C 1C 00 00 00 00 00 FF 0F CD [08:57:44]process_action close_receipt done [08:57:44]requested_data is exist [08:57:44]produce_requested_data [08:57:44]requested_item fm.sn is exist - process it [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 11 00 00 [08:57:44]Write to MH i2c: E2 08 00 9D 1C 80 11 00 00 00 00 00 00 33 [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 17 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 17 00 9D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [08:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:57:44]wFMCommunicate OK [08:57:44]requested_item fd.num is exist - process it [08:57:44]SAM_PROTO_GetFieldsCounters [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 13 00 00 [08:57:44]Write to MH i2c: E2 08 00 9E 1C 80 13 00 00 00 00 00 00 36 [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 62 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 62 00 9E 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 61 DB 02 00 0E 04 04 00 88 02 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 8A [08: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 61 DB 02 00 0E 04 04 00 88 02 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:57:44]wFMCommunicate OK [08:57:44]SAM_PROTO_GetFieldsCounters done [08:57:44]requested_item shift.num is exist - process it [08:57:44]requested_item shift.opened is exist - process it [08:57:44]req_shift_opened [08:57:44]FM_GetShiftState [08:57:44]SAM_PROTO_GetShiftState [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 13 01 00 [08:57:44]Write to MH i2c: E2 08 00 9F 1C 80 13 01 00 00 00 00 00 38 [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 9F 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8A [08:57:44]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:57:44]wFMCommunicate OK [08:57:44]SAM_PROTO_GetShiftState done [08:57:44]FM_GetShiftState done [08:57:44]req_shift_opened done [08:57:44]requested_item shift.open_date is exist - process it [08:57:44]req_shift_open_date [08:57:44]req_shift_open_date done [08:57:44]produce_requested_data done [08:57:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187233,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:57:44]process_action_free close_receipt [08:57:44]json_value_free [08:57:44]json_value_free done [08:57:44]process_json_proto returns [08:57:44]Send response to host [08:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187233,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:57:44]free response buf [08:57:44]execute_script done [08:57:44]execute_script returns [08:57:44]free content buf [08:57:44]Sock 7.Close socket [08:57:44]Sock 7.Thread stoped [08:57:44]accept exits with 9 [08:57:44]New connection [08:57:44]New thread 3066510692 created [08:57:44]Thread 3066654052 joined [08:57:44]Waiting for new connection... [08:57:44] Sock 9.Parse request [08:57:44]Sock 9.Check first char [08:57:44]Sock 9.First char is OK [08:57:44]request: POST /json_proto HTTP/1.0 [08:57:44]Method: POST [08:57:44]URL: /json_proto [08:57:44]Method is POST - this is cgi request [08:57:44]url: /json_proto [08:57:44]query_string will be loaded in cgi processing [08:57:44]execute_cgi json_proto POST (null) [08:57:44]execute_cgi path=json_proto method=POST [08:57:44]POST find Content-Length [08:57:44]Host: 172.17.46.131:8080 [08:57:44]Content-Length: 803 [08:57:44]Content-Type: application/json [08:57:44] [08:57:44]POST finish read [08:57:44]Found Content-Length = 803 [08:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:44]execute_script... [08:57:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:44]POST & json_proto [08:57:44]process_json_proto [08:57:44]json parsed OK: [08:57:44]protocol is kg_v1.0 [08:57:44]action value=close_receipt [08:57:44]process_action close_receipt [08:57:44]cmd_close_receipt [08:57:44]MH_GetDate [08:57:44]Write to MH i2c: F0 00 00 A0 1C AB [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 09 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 09 00 A0 1C 00 8C EE B6 67 7E 41 4F 65 BE [08:57:44]GetLastDocTimeStamp 1740041863 [08:57:44]current date 1740041868 [08:57:44]FM_GetShiftState [08:57:44]SAM_PROTO_GetShiftState [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 13 01 00 [08:57:44]Write to MH i2c: E2 08 00 A1 1C 80 13 01 00 00 00 00 00 3A [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 A1 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8C [08:57:44]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:57:44]wFMCommunicate OK [08:57:44]SAM_PROTO_GetShiftState done [08:57:44]FM_GetShiftState done [08:57:44]opened in 1740011697 [08:57:44]opened+sec_in_day 1740098097 [08:57:44]quantity*price = 100023 [08:57:44]sum+1 = 100025 [08:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 35 20.02.2025 08:57 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187234 ФПД: 52636934228448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085748&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187234&fm=52636934228448&tin=02508201610067®Number=0000000000091857&sum=100024 [08:57:45]StoreToDocumentArchive [08:57:45]shift 648 fd 187234 [08:57:45]save to /storage/0648/doc_00187234 [08:57:45]save last doc name /storage/0648/doc_00187234 to /storage/kkm_last_doc_name [08:57:45]save OK [08:57:45]Clear old archive folders... [08:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:45]tlvbuf is B6E783D0 [08:57:45]SAM_PROTO_ClearQueue [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 09 00 00 [08:57:45]Write to MH i2c: E2 08 00 AE 1C 80 09 00 00 00 00 00 00 3C [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 AE 1C 00 90 00 3E [08:57:45]RAPDU: 90 00 [08:57:45]wFMCommunicate OK [08:57:45]SAM_PROTO_ClearQueue done [08:57:45]KKMCreateOFDPacket [08:57:45]OFDProtocolAddRootSTLVToBuf [08:57:45]FM_MakeSignedData [08:57:45]FM_MakeSignedData [08:57:45]SAM_PROTO_SignData [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 0D 01 02 [08:57:45]Write to MH i2c: E2 08 00 AF 1C 80 0D 01 02 00 00 00 00 44 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 AF 1C 00 90 00 3F [08:57:45]RAPDU: 90 00 [08:57:45]wFMCommunicate OK [08:57:45]wFMCommunicate request_size=255 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8C EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DB 02 00 35 04 06 00 2F [08:57:45]Write to MH i2c: E2 02 01 B0 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8C EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DB 02 00 35 04 06 00 2F 00 00 23 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 B0 1C 00 90 00 40 [08:57:46]RAPDU: 90 00 [08:57:46]wFMCommunicate OK [08:57:46]wFMCommunicate request_size=10 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 0D 02 02 05 DF 7D C4 49 E0 [08:57:46]Write to MH i2c: E2 0D 00 B1 1C 80 0D 02 02 05 00 DF 7D C4 49 E0 00 00 9A [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 B1 1C 00 90 00 41 [08:57:46]RAPDU: 90 00 [08:57:46]wFMCommunicate OK [08:57:46]wFMCommunicate request_size=4 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 0D 03 02 [08:57:46]Write to MH i2c: E2 08 00 B2 1C 80 0D 03 02 00 00 00 00 49 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 0B 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 0B 00 B2 1C 00 5E 0C D3 75 B0 D8 6B 58 90 00 47 [08:57:46]RAPDU: 5E 0C D3 75 B0 D8 6B 58 90 00 [08:57:46]wFMCommunicate OK [08:57:46]SAM_PROTO_SignData done [08:57:46]FM_MakeSignedData done [08:57:46]CreateOFDProtocolMessage [08:57:46]wFMCommunicate request_size=4 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 11 00 00 [08:57:46]Write to MH i2c: E2 08 00 B3 1C 80 11 00 00 00 00 00 00 49 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 17 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 17 00 B3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9C [08:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:57:46]wFMCommunicate OK [08:57:46]CreateOFDProtocolMessage done [08:57:46]OFDSenderStorePacket 187234 [08:57:46]StoreOFDPacket docnum=187234 [08:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A8 88 07 01 EA 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8C EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DB 02 00 35 04 06 00 2F DF 7D C4 49 E0 5E 0C D3 75 B0 D8 6B 58 [08:57:46]CheckFolder [08:57:46]dirname=/storage/ofd_packets [08:57:46]CheckFolder done [08:57:46]ProducePacketName [08:57:46]name=ofd_packets/00187234 [08:57:46]NVStorageSaveData ofd_packets/00187234 [08:57:46]File name is /storage/ofd_packets/00187234 [08:57:46]Write 301 bytes [08:57:46]NVStorageSaveData done [08:57:46]OFDSenderStorePacket done [08:57:46]KKMCreateOFDPacket done [08:57:46]NVStorageSaveData kkm_last_timestamp [08:57:46]File name is /storage/kkm_last_timestamp [08:57:46]Write 4 bytes [08:57:46]NVStorageSaveData done [08:57:46]ExternCall_PrintAddStr [08:57:46]wPrintStart [08:57:46]Write to MH i2c: 01 00 00 B4 1C D0 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 B4 1C 00 00 00 00 00 FF 0F E5 [08:57:46]RasterBufferAndPrint [08:57:46]line Счет N : (1)412386 [08:57:46]line ИНН: 02508201610067 [08:57:46]line Контрольно-Кассовый Чек [08:57:46]line ПРОДАЖА [08:57:46]line ТРК (МРК, ГНК) : 42 [08:57:46]line Товар: 2710124130 [08:57:46]line Аи-92-К-2 [08:57:46]line 15.580 * 64.20 [08:57:46]line = 1000.24 [08:57:46]line НДС 12% НСП 1% [08:57:46]line > о реализуемом товаре [08:57:46]line ИТОГО: 1000.24 [08:57:46]line НСП 1% : 8.85 [08:57:46]line НДС 12% : 106.22 [08:57:46]line Наличными: 0.00 [08:57:46]line Безнал.: 1000.24 [08:57:46]line Место: АЗС № 92 "Партнер Нефть" [08:57:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:57:46]line СНО: Общий режим [08:57:46]line Чек 35 20.02.2025 08:57 [08:57:46]line Смена: 648 ФФД: 1.0 [08:57:46]line ЗНМ: 0300000118 [08:57:46]line РНМ: 0000000000091857 [08:57:46]line Версия ККМ: 001 [08:57:46]line Платежная система: O! деньги [08:57:46]line ФМ: 0000000000871826 [08:57:46]line ФД: 187234 [08:57:46]line ФПД: 52636934228448 [08:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085748&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187234&fm=52636934228448&tin=02508201610067®Number=0000000000091857&sum=100024 [08:57:46]OFD Sender: Processing packet 187234 [packets to send 49, broken 48] [08:57:46]ProducePacketName [08:57:46]name=ofd_packets/00187234 [08:57:46]OFD Sender: To server: pG, [08:57:46]CommunicateWithHost lk.salyk.kg:30040 [08:57:46]ConnectInit lk.salyk.kg [08:57:46]written 0, free lines is 4095 [08:57:47]Connected sock=10 [08:57:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A8 88 07 01 EA 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8C EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DB 02 00 35 04 06 00 2F DF 7D C4 49 E0 5E 0C D3 75 B0 D8 6B 58 [08:57:47]Write to MH i2c: 01 00 00 DE 1C FA [08:57:47]Write i2c OK [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 07 00 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 07 00 DE 1C 00 00 00 00 00 04 0D 12 [08:57:47]RasterBufferAndPrint [08:57:47]line [08:57:47]line [08:57:47]line [08:57:47]line [08:57:47]line [08:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8B EC 47 00 A0 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DB 02 00 F4 03 04 00 DE 94 B6 67 B6 04 01 00 00 44 73 F3 2F 39 40 8A CA [08:57:47]CommunicateWithHost err = 0 [08:57:47]CheckOFDResponse [08:57:47]1017 (14) - 77093643461234 [08:57:47]1041 (16) - 0000000000871826 [08:57:47]1040 (4) - 187234 [08:57:47]1012 (4) - 20.02.2025 02:35 [08:57:47]1206 (1) - 0 [08:57:47]OFD Sender: Remove packet 187234 [08:57:47]ProducePacketName [08:57:47]name=ofd_packets/00187234 [08:57:47]NVStorageDeleteData [08:57:47]written 0, free lines is 3354 [08:57:47]MH_Cut [08:57:47]Write to MH i2c: D1 01 00 E5 1C 01 D3 [08:57:47]Write i2c OK [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: D1 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: D1 01 00 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: D1 01 00 E5 1C 00 D2 [08:57:47]Write to MH i2c: 01 00 00 E6 1C 02 [08:57:47]Write i2c OK [08:57:47]MH_I2C_Read... [08:57:47]OFD Sender: No OFD packet to send [08:57:48]*** Cut start [08:57:48]*** Partial cut [08:57:48]*** CUTSNS_PIN = 1 [08:57:48]*** CUTSNS_PIN = 0 [08:57:48]*** Brake cut motor [08:57:48]Read from MH i2c: 01 [08:57:48]MH_I2C_Read... [08:57:48]*** Stop cut motor [08:57:48]*** Cut end [08:57:48]Read from MH i2c: 01 07 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: 01 07 00 E6 1C 00 00 00 00 00 FF 0F 17 [08:57:48]process_action close_receipt done [08:57:48]requested_data is exist [08:57:48]produce_requested_data [08:57:48]requested_item fm.sn is exist - process it [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 11 00 00 [08:57:48]Write to MH i2c: E2 08 00 E7 1C 80 11 00 00 00 00 00 00 7D [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 17 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 17 00 E7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [08:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:57:48]wFMCommunicate OK [08:57:48]requested_item fd.num is exist - process it [08:57:48]SAM_PROTO_GetFieldsCounters [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 13 00 00 [08:57:48]Write to MH i2c: E2 08 00 E8 1C 80 13 00 00 00 00 00 00 80 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 62 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 62 00 E8 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 62 DB 02 00 0E 04 04 00 88 02 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 D8 [08:57:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 62 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:49]wFMCommunicate OK [08:57:49]SAM_PROTO_GetFieldsCounters done [08:57:49]requested_item shift.num is exist - process it [08:57:49]requested_item shift.opened is exist - process it [08:57:49]req_shift_opened [08:57:49]FM_GetShiftState [08:57:49]SAM_PROTO_GetShiftState [08:57:49]wFMCommunicate request_size=4 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 13 01 00 [08:57:49]Write to MH i2c: E2 08 00 E9 1C 80 13 01 00 00 00 00 00 82 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 0E 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 0E 00 E9 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D4 [08:57:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:57:49]wFMCommunicate OK [08:57:49]SAM_PROTO_GetShiftState done [08:57:49]FM_GetShiftState done [08:57:49]req_shift_opened done [08:57:49]requested_item shift.open_date is exist - process it [08:57:49]req_shift_open_date [08:57:49]req_shift_open_date done [08:57:49]produce_requested_data done [08:57:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187234,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:57:49]process_action_free close_receipt [08:57:49]json_value_free [08:57:49]json_value_free done [08:57:49]process_json_proto returns [08:57:49]Send response to host [08:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187234,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:57:49]free response buf [08:57:49]execute_script done [08:57:49]execute_script returns [08:57:49]free content buf [08:57:49]Sock 9.Close socket [08:57:49]Sock 9.Thread stoped [08:57:49]accept exits with 7 [08:57:49]New connection [08:57:49]New thread 3066654052 created [08:57:49]Thread 3066510692 joined [08:57:49]Waiting for new connection... [08:57:49] Sock 7.Parse request [08:57:49]Sock 7.Check first char [08:57:49]Sock 7.First char is OK [08:57:49]request: POST /json_proto HTTP/1.0 [08:57:49]Method: POST [08:57:49]URL: /json_proto [08:57:49]Method is POST - this is cgi request [08:57:49]url: /json_proto [08:57:49]query_string will be loaded in cgi processing [08:57:49]execute_cgi json_proto POST (null) [08:57:49]execute_cgi path=json_proto method=POST [08:57:49]POST find Content-Length [08:57:49]Host: 172.17.46.131:8080 [08:57:49]Content-Length: 682 [08:57:49]Content-Type: application/json [08:57:49] [08:57:49]POST finish read [08:57:49]Found Content-Length = 682 [08:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:49]execute_script... [08:57: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)412388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:49]POST & json_proto [08:57:49]process_json_proto [08:57:49]json parsed OK: [08:57:49]protocol is kg_v1.0 [08:57:49]action value=close_receipt [08:57:49]process_action close_receipt [08:57:49]cmd_close_receipt [08:57:49]MH_GetDate [08:57:49]Write to MH i2c: F0 00 00 EA 1C F5 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: F0 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: F0 09 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: F0 09 00 EA 1C 00 91 EE B6 67 7E 41 4F 65 0D [08:57:49]GetLastDocTimeStamp 1740041868 [08:57:49]current date 1740041873 [08:57:49]FM_GetShiftState [08:57:49]SAM_PROTO_GetShiftState [08:57:49]wFMCommunicate request_size=4 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 13 01 00 [08:57:49]Write to MH i2c: E2 08 00 EB 1C 80 13 01 00 00 00 00 00 84 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 0E 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 0E 00 EB 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D6 [08:57:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:57:49]wFMCommunicate OK [08:57:49]SAM_PROTO_GetShiftState done [08:57:49]FM_GetShiftState done [08:57:49]opened in 1740011697 [08:57:49]opened+sec_in_day 1740098097 [08:57:49]quantity*price = 100023 [08:57:49]sum+1 = 100025 [08:57:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 36 20.02.2025 08:57 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187235 ФПД: 232348691537992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085753&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187235&fm=232348691537992&tin=02508201610067®Number=0000000000091857&sum=100000 [08:57:50]StoreToDocumentArchive [08:57:50]shift 648 fd 187235 [08:57:50]save to /storage/0648/doc_00187235 [08:57:50]save last doc name /storage/0648/doc_00187235 to /storage/kkm_last_doc_name [08:57:50]save OK [08:57:50]Clear old archive folders... [08:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:50]tlvbuf is 01FEE310 [08:57:50]SAM_PROTO_ClearQueue [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 09 00 00 [08:57:50]Write to MH i2c: E2 08 00 F8 1C 80 09 00 00 00 00 00 00 86 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 F8 1C 00 90 00 88 [08:57:50]RAPDU: 90 00 [08:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_ClearQueue done [08:57:50]KKMCreateOFDPacket [08:57:50]OFDProtocolAddRootSTLVToBuf [08:57:50]FM_MakeSignedData [08:57:50]FM_MakeSignedData [08:57:50]SAM_PROTO_SignData [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 0D 01 02 [08:57:50]Write to MH i2c: E2 08 00 F9 1C 80 0D 01 02 00 00 00 00 8E [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:51]Read from MH i2c: E2 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 03 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 03 00 F9 1C 00 90 00 89 [08:57:51]RAPDU: 90 00 [08:57:51]wFMCommunicate OK [08:57:51]wFMCommunicate request_size=255 [08:57:51]MH_SAM_APDU [08:57: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 91 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DB 02 00 35 04 06 00 D3 [08:57:51]Write to MH i2c: E2 02 01 FA 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 91 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DB 02 00 35 04 06 00 D3 00 00 E8 [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:51]Read from MH i2c: E2 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 03 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 03 00 FA 1C 00 90 00 8A [08:57:51]RAPDU: 90 00 [08:57:51]wFMCommunicate OK [08:57:51]wFMCommunicate request_size=10 [08:57:51]MH_SAM_APDU [08:57:51]CAPDU: 80 0D 02 02 05 51 E5 39 20 48 [08:57:51]Write to MH i2c: E2 0D 00 FB 1C 80 0D 02 02 05 00 51 E5 39 20 48 00 00 72 [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:51]Read from MH i2c: E2 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 03 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 03 00 FB 1C 00 90 00 8B [08:57:51]RAPDU: 90 00 [08:57:51]wFMCommunicate OK [08:57:51]wFMCommunicate request_size=4 [08:57:51]MH_SAM_APDU [08:57:51]CAPDU: 80 0D 03 02 [08:57:51]Write to MH i2c: E2 08 00 FC 1C 80 0D 03 02 00 00 00 00 93 [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:51]Read from MH i2c: E2 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 0B 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 0B 00 FC 1C 00 D4 A6 B3 FC 76 12 78 E2 90 00 9F [08:57:51]RAPDU: D4 A6 B3 FC 76 12 78 E2 90 00 [08:57:51]wFMCommunicate OK [08:57:51]SAM_PROTO_SignData done [08:57:51]FM_MakeSignedData done [08:57:51]CreateOFDProtocolMessage [08:57:51]wFMCommunicate request_size=4 [08:57:51]MH_SAM_APDU [08:57:51]CAPDU: 80 11 00 00 [08:57:51]Write to MH i2c: E2 08 00 FD 1C 80 11 00 00 00 00 00 00 93 [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:51]Read from MH i2c: E2 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 17 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: E2 17 00 FD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [08:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:57:51]wFMCommunicate OK [08:57:51]CreateOFDProtocolMessage done [08:57:51]OFDSenderStorePacket 187235 [08:57:51]StoreOFDPacket docnum=187235 [08:57:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 E2 07 01 6E 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 91 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DB 02 00 35 04 06 00 D3 51 E5 39 20 48 D4 A6 B3 FC 76 12 78 E2 [08:57:51]CheckFolder [08:57:51]dirname=/storage/ofd_packets [08:57:51]CheckFolder done [08:57:51]ProducePacketName [08:57:51]name=ofd_packets/00187235 [08:57:51]NVStorageSaveData ofd_packets/00187235 [08:57:51]File name is /storage/ofd_packets/00187235 [08:57:51]Write 301 bytes [08:57:51]NVStorageSaveData done [08:57:51]OFDSenderStorePacket done [08:57:51]KKMCreateOFDPacket done [08:57:51]NVStorageSaveData kkm_last_timestamp [08:57:51]File name is /storage/kkm_last_timestamp [08:57:51]Write 4 bytes [08:57:51]NVStorageSaveData done [08:57:51]ExternCall_PrintAddStr [08:57:51]wPrintStart [08:57:51]Write to MH i2c: 01 00 00 FE 1C 1A [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:51]OFD Sender: Processing packet 187235 [packets to send 49, broken 48] [08:57:51]ProducePacketName [08:57:51]name=ofd_packets/00187235 [08:57:51]OFD Sender: To server: pG, [08:57:51]CommunicateWithHost lk.salyk.kg:30040 [08:57:51]ConnectInit lk.salyk.kg [08:57:51]Read from MH i2c: 01 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: 01 07 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: 01 07 00 FE 1C 00 00 00 00 00 FF 0F 2F [08:57:51]RasterBufferAndPrint [08:57:51]line Счет N : (1)412388 [08:57:51]line ИНН: 02508201610067 [08:57:51]line Контрольно-Кассовый Чек [08:57:51]line ПРОДАЖА [08:57:51]line ТРК (МРК, ГНК) : 22 [08:57:51]line Товар: 2710124130 [08:57:51]line Аи-92-К-2 [08:57:51]line 15.580 * 64.20 [08:57:51]line = 1000.24 [08:57:51]line НДС 12% НСП 1% [08:57:51]line > о реализуемом товаре [08:57:51]line ОКРУГЛЕНИЕ: -0.24 [08:57:51]line ИТОГО: 1000.00 [08:57:51]line Внесено: 1000.00 [08:57:51]line СДАЧА: 0.00 [08:57:51]line НСП 1% : 8.85 [08:57:51]line НДС 12% : 106.22 [08:57:51]line Наличными: 1000.00 [08:57:51]line Безнал.: 0.00 [08:57:51]line Место: АЗС № 92 "Партнер Нефть" [08:57:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:57:51]line СНО: Общий режим [08:57:51]line Чек 36 20.02.2025 08:57 [08:57:51]line Смена: 648 ФФД: 1.0 [08:57:51]line ЗНМ: 0300000118 [08:57:51]line РНМ: 0000000000091857 [08:57:51]line Версия ККМ: 001 [08:57:51]line ФМ: 0000000000871826 [08:57:51]line ФД: 187235 [08:57:51]line ФПД: 232348691537992 [08:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085753&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187235&fm=232348691537992&tin=02508201610067®Number=0000000000091857&sum=100000 [08:57:51]written 0, free lines is 4095 [08:57:51]Connected sock=10 [08:57:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 E2 07 01 6E 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 91 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DB 02 00 35 04 06 00 D3 51 E5 39 20 48 D4 A6 B3 FC 76 12 78 E2 [08:57:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4B FB 47 00 21 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DB 02 00 F4 03 04 00 E2 94 B6 67 B6 04 01 00 00 27 5E C7 C4 AB 89 E6 BA [08:57:52]CommunicateWithHost err = 0 [08:57:52]CheckOFDResponse [08:57:52]1017 (14) - 77093643461234 [08:57:52]1041 (16) - 0000000000871826 [08:57:52]1040 (4) - 187235 [08:57:52]1012 (4) - 20.02.2025 02:35 [08:57:52]1206 (1) - 0 [08:57:52]OFD Sender: Remove packet 187235 [08:57:52]ProducePacketName [08:57:52]name=ofd_packets/00187235 [08:57:52]NVStorageDeleteData [08:57:52]Write to MH i2c: 01 00 00 29 1D 46 [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: 01 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: 01 07 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: 01 07 00 29 1D 00 00 00 00 00 FF 0C 58 [08:57:52]RasterBufferAndPrint [08:57:52]line [08:57:52]line [08:57:52]line [08:57:52]line [08:57:52]line [08:57:52]written 0, free lines is 3352 [08:57:52]MH_Cut [08:57:52]Write to MH i2c: D1 01 00 30 1D 01 1F [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: D1 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: D1 01 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: D1 01 00 30 1D 00 1E [08:57:52]Write to MH i2c: 01 00 00 31 1D 4E [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]OFD Sender: No OFD packet to send [08:57:52]*** Cut start [08:57:52]*** Partial cut [08:57:52]*** CUTSNS_PIN = 1 [08:57:52]*** CUTSNS_PIN = 0 [08:57:53]*** Brake cut motor [08:57:53]Read from MH i2c: 01 [08:57:53]MH_I2C_Read... [08:57:53]*** Stop cut motor [08:57:53]*** Cut end [08:57:53]Read from MH i2c: 01 07 00 [08:57:53]MH_I2C_Read... [08:57:53]Read from MH i2c: 01 07 00 31 1D 00 00 00 00 00 FF 0F 63 [08:57:53]process_action close_receipt done [08:57:53]requested_data is exist [08:57:53]produce_requested_data [08:57:53]requested_item fm.sn is exist - process it [08:57:53]wFMCommunicate request_size=4 [08:57:53]MH_SAM_APDU [08:57:53]CAPDU: 80 11 00 00 [08:57:53]Write to MH i2c: E2 08 00 32 1D 80 11 00 00 00 00 00 00 C9 [08:57:53]Write i2c OK [08:57:53]MH_I2C_Read... [08:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:53]Read from MH i2c: E2 [08:57:53]MH_I2C_Read... [08:57:53]Read from MH i2c: E2 17 00 [08:57:53]MH_I2C_Read... [08:57:53]Read from MH i2c: E2 17 00 32 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [08:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:57:53]wFMCommunicate OK [08:57:53]requested_item fd.num is exist - process it [08:57:53]SAM_PROTO_GetFieldsCounters [08:57:53]wFMCommunicate request_size=4 [08:57:53]MH_SAM_APDU [08:57:53]CAPDU: 80 13 00 00 [08:57:53]Write to MH i2c: E2 08 00 33 1D 80 13 00 00 00 00 00 00 CC [08:57:53]Write i2c OK [08:57:53]MH_I2C_Read... [08:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:53]Read from MH i2c: E2 [08:57:53]MH_I2C_Read... [08:57:53]Read from MH i2c: E2 62 00 [08:57:53]MH_I2C_Read... [08:57:53]Read from MH i2c: E2 62 00 33 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 63 DB 02 00 0E 04 04 00 88 02 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 28 [08:57:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 63 DB 02 00 0E 04 04 00 88 02 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:57:53]wFMCommunicate OK [08:57:53]SAM_PROTO_GetFieldsCounters done [08:57:53]requested_item shift.num is exist - process it [08:57:53]requested_item shift.opened is exist - process it [08:57:53]req_shift_opened [08:57:53]FM_GetShiftState [08:57:53]SAM_PROTO_GetShiftState [08:57:53]wFMCommunicate request_size=4 [08:57:53]MH_SAM_APDU [08:57:53]CAPDU: 80 13 01 00 [08:57:53]Write to MH i2c: E2 08 00 34 1D 80 13 01 00 00 00 00 00 CE [08:57:53]Write i2c OK [08:57:53]MH_I2C_Read... [08:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:53]Read from MH i2c: E2 [08:57:53]MH_I2C_Read... [08:57:53]Read from MH i2c: E2 0E 00 [08:57:53]MH_I2C_Read... [08:57:53]Read from MH i2c: E2 0E 00 34 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 20 [08:57:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:57:53]wFMCommunicate OK [08:57:53]SAM_PROTO_GetShiftState done [08:57:53]FM_GetShiftState done [08:57:53]req_shift_opened done [08:57:53]requested_item shift.open_date is exist - process it [08:57:53]req_shift_open_date [08:57:53]req_shift_open_date done [08:57:53]produce_requested_data done [08:57:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187235,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:57:53]process_action_free close_receipt [08:57:53]json_value_free [08:57:53]json_value_free done [08:57:53]process_json_proto returns [08:57:53]Send response to host [08:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187235,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:57:53]free response buf [08:57:53]execute_script done [08:57:53]execute_script returns [08:57:53]free content buf [08:57:53]Sock 7.Close socket [08:57:53]Sock 7.Thread stoped [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:21]accept exits with 9 [08:58:21]New connection [08:58:21]New thread 3066510692 created [08:58:21]Thread 3066654052 joined [08:58:21]Waiting for new connection... [08:58:21] Sock 9.Parse request [08:58:21]Sock 9.Check first char [08:58:21]Sock 9.First char is OK [08:58:21]request: POST /json_proto HTTP/1.0 [08:58:21]Method: POST [08:58:21]URL: /json_proto [08:58:21]Method is POST - this is cgi request [08:58:21]url: /json_proto [08:58:21]query_string will be loaded in cgi processing [08:58:21]execute_cgi json_proto POST (null) [08:58:21]execute_cgi path=json_proto method=POST [08:58:21]POST find Content-Length [08:58:21]Host: 172.17.46.131:8080 [08:58:21]Content-Length: 796 [08:58:21]Content-Type: application/json [08:58:21] [08:58:21]POST finish read [08:58:21]Found Content-Length = 796 [08:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:21]execute_script... [08:58:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:21]POST & json_proto [08:58:21]process_json_proto [08:58:21]json parsed OK: [08:58:21]protocol is kg_v1.0 [08:58:21]action value=close_receipt [08:58:21]process_action close_receipt [08:58:21]cmd_close_receipt [08:58:21]MH_GetDate [08:58:21]Write to MH i2c: F0 00 00 35 1D 41 [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: F0 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: F0 09 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: F0 09 00 35 1D 00 B1 EE B6 67 7E 41 4F 65 79 [08:58:21]GetLastDocTimeStamp 1740041873 [08:58:21]current date 1740041905 [08:58:21]FM_GetShiftState [08:58:21]SAM_PROTO_GetShiftState [08:58:21]wFMCommunicate request_size=4 [08:58:21]MH_SAM_APDU [08:58:21]CAPDU: 80 13 01 00 [08:58:21]Write to MH i2c: E2 08 00 36 1D 80 13 01 00 00 00 00 00 D0 [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:21]Read from MH i2c: E2 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 0E 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 0E 00 36 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 22 [08:58:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:58:21]wFMCommunicate OK [08:58:21]SAM_PROTO_GetShiftState done [08:58:21]FM_GetShiftState done [08:58:21]opened in 1740011697 [08:58:21]opened+sec_in_day 1740098097 [08:58:21]quantity*price = 50021 [08:58:21]sum+1 = 50022 [08:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.21 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.21 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 37 20.02.2025 08:58 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187236 ФПД: 187407305397199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085825&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187236&fm=187407305397199&tin=02508201610067®Number=0000000000091857&sum=50021 [08:58:23]StoreToDocumentArchive [08:58:23]shift 648 fd 187236 [08:58:23]save to /storage/0648/doc_00187236 [08:58:23]save last doc name /storage/0648/doc_00187236 to /storage/kkm_last_doc_name [08:58:23]save OK [08:58:23]Clear old archive folders... [08:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:58:23]tlvbuf is B6D5F5A0 [08:58:23]SAM_PROTO_ClearQueue [08:58:23]wFMCommunicate request_size=4 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 09 00 00 [08:58:23]Write to MH i2c: E2 08 00 43 1D 80 09 00 00 00 00 00 00 D2 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:23]Read from MH i2c: E2 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 03 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 03 00 43 1D 00 90 00 D4 [08:58:23]RAPDU: 90 00 [08:58:23]wFMCommunicate OK [08:58:23]SAM_PROTO_ClearQueue done [08:58:23]KKMCreateOFDPacket [08:58:23]OFDProtocolAddRootSTLVToBuf [08:58:23]FM_MakeSignedData [08:58:23]FM_MakeSignedData [08:58:23]SAM_PROTO_SignData [08:58:23]wFMCommunicate request_size=4 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 0D 01 02 [08:58:23]Write to MH i2c: E2 08 00 44 1D 80 0D 01 02 00 00 00 00 DA [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:23]Read from MH i2c: E2 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 03 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 03 00 44 1D 00 90 00 D5 [08:58:23]RAPDU: 90 00 [08:58:23]wFMCommunicate OK [08:58:23]wFMCommunicate request_size=255 [08:58:23]MH_SAM_APDU [08:58: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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B1 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DB 02 00 35 04 06 00 AA 72 29 DD [08:58:23]Write to MH i2c: E2 02 01 45 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B1 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DB 02 00 35 04 06 00 AA 72 29 DD 00 00 8E [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:23]Read from MH i2c: E2 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 03 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 03 00 45 1D 00 90 00 D6 [08:58:23]RAPDU: 90 00 [08:58:23]wFMCommunicate OK [08:58:23]wFMCommunicate request_size=7 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 0D 02 02 02 D3 CF [08:58:23]Write to MH i2c: E2 0A 00 46 1D 80 0D 02 02 02 00 D3 CF 00 00 83 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:23]Read from MH i2c: E2 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 03 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 03 00 46 1D 00 90 00 D7 [08:58:23]RAPDU: 90 00 [08:58:23]wFMCommunicate OK [08:58:23]wFMCommunicate request_size=4 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 0D 03 02 [08:58:23]Write to MH i2c: E2 08 00 47 1D 80 0D 03 02 00 00 00 00 DF [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:23]Read from MH i2c: E2 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 0B 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 0B 00 47 1D 00 1C 59 2F C7 76 6B 39 13 90 00 78 [08:58:23]RAPDU: 1C 59 2F C7 76 6B 39 13 90 00 [08:58:23]wFMCommunicate OK [08:58:23]SAM_PROTO_SignData done [08:58:23]FM_MakeSignedData done [08:58:23]CreateOFDProtocolMessage [08:58:23]wFMCommunicate request_size=4 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 11 00 00 [08:58:23]Write to MH i2c: E2 08 00 48 1D 80 11 00 00 00 00 00 00 DF [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:23]Read from MH i2c: E2 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 17 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 17 00 48 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [08:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:58:23]wFMCommunicate OK [08:58:23]CreateOFDProtocolMessage done [08:58:23]OFDSenderStorePacket 187236 [08:58:23]StoreOFDPacket docnum=187236 [08:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 ED A8 04 01 4E 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B1 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DB 02 00 35 04 06 00 AA 72 29 DD D3 CF 1C 59 2F C7 76 6B 39 13 [08:58:23]CheckFolder [08:58:23]dirname=/storage/ofd_packets [08:58:23]CheckFolder done [08:58:23]ProducePacketName [08:58:23]name=ofd_packets/00187236 [08:58:23]NVStorageSaveData ofd_packets/00187236 [08:58:23]File name is /storage/ofd_packets/00187236 [08:58:23]Write 298 bytes [08:58:23]NVStorageSaveData done [08:58:23]OFDSenderStorePacket done [08:58:23]KKMCreateOFDPacket done [08:58:23]NVStorageSaveData kkm_last_timestamp [08:58:23]File name is /storage/kkm_last_timestamp [08:58:23]Write 4 bytes [08:58:23]NVStorageSaveData done [08:58:23]ExternCall_PrintAddStr [08:58:23]wPrintStart [08:58:23]Write to MH i2c: 01 00 00 49 1D 66 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: 01 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: 01 07 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: 01 07 00 49 1D 00 00 00 00 00 FF 0F 7B [08:58:23]RasterBufferAndPrint [08:58:23]line Счет N : (1)412389 [08:58:23]line ИНН: 02508201610067 [08:58:23]line Контрольно-Кассовый Чек [08:58:23]line ПРОДАЖА [08:58:23]line ТРК (МРК, ГНК) : 6 [08:58:23]line Товар: 2710194210 [08:58:23]line ДТ-К-5 [08:58:23]line 6.890 * 72.60 [08:58:23]line = 500.21 [08:58:23]line НДС 12% НСП 1% [08:58:23]line > о реализуемом товаре [08:58:23]line ИТОГО: 500.21 [08:58:23]line НСП 1% : 4.43 [08:58:23]line НДС 12% : 53.12 [08:58:23]line Наличными: 0.00 [08:58:23]line Безнал.: 500.21 [08:58:23]line Место: АЗС № 92 "Партнер Нефть" [08:58:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:58:23]line СНО: Общий режим [08:58:23]line Чек 37 20.02.2025 08:58 [08:58:23]line Смена: 648 ФФД: 1.0 [08:58:23]line ЗНМ: 0300000118 [08:58:23]line РНМ: 0000000000091857 [08:58:23]line Версия ККМ: 001 [08:58:23]line Платежная система: O! деньги [08:58:23]line ФМ: 0000000000871826 [08:58:23]line ФД: 187236 [08:58:23]line ФПД: 187407305397199 [08:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085825&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187236&fm=187407305397199&tin=02508201610067®Number=0000000000091857&sum=50021 [08:58:23]written 0, free lines is 4095 [08:58:23]OFD Sender: Processing packet 187236 [packets to send 49, broken 48] [08:58:23]ProducePacketName [08:58:23]name=ofd_packets/00187236 [08:58:23]OFD Sender: To server: pG, [08:58:23]CommunicateWithHost lk.salyk.kg:30040 [08:58:23]ConnectInit lk.salyk.kg [08:58:23]Connected sock=10 [08:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 ED A8 04 01 4E 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B1 EE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DB 02 00 35 04 06 00 AA 72 29 DD D3 CF 1C 59 2F C7 76 6B 39 13 [08:58:24]Write to MH i2c: 01 00 00 73 1D 90 [08:58:24]Write i2c OK [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: 01 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: 01 07 00 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: 01 07 00 73 1D 00 00 00 00 00 0A 0D AE [08:58:24]RasterBufferAndPrint [08:58:24]line [08:58:24]line [08:58:24]line [08:58:24]line [08:58:24]line [08:58:24]written 0, free lines is 3347 [08:58:24]MH_Cut [08:58:24]Write to MH i2c: D1 01 00 7A 1D 01 69 [08:58:24]Write i2c OK [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: D1 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: D1 01 00 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: D1 01 00 7A 1D 00 68 [08:58:24]Write to MH i2c: 01 00 00 7B 1D 98 [08:58:24]Write i2c OK [08:58:24]MH_I2C_Read... [08:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 0B 47 00 9C 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 31 38 32 36 10 04 04 00 64 DB 02 00 F4 03 04 00 02 95 B6 67 B6 04 01 00 00 AE 4A EF 3D 79 DA 0D A9 [08:58:24]CommunicateWithHost err = 0 [08:58:24]CheckOFDResponse [08:58:24]1017 (14) - 77093643461234 [08:58:24]1041 (16) - 0000000000871826 [08:58:24]1040 (4) - 187236 [08:58:24]1012 (4) - 20.02.2025 02:35 [08:58:24]1206 (1) - 0 [08:58:24]OFD Sender: Remove packet 187236 [08:58:24]ProducePacketName [08:58:24]name=ofd_packets/00187236 [08:58:24]NVStorageDeleteData [08:58:24]OFD Sender: No OFD packet to send [08:58:24]*** Cut start [08:58:24]*** Partial cut [08:58:24]*** CUTSNS_PIN = 1 [08:58:24]*** CUTSNS_PIN = 0 [08:58:25]*** Brake cut motor [08:58:25]Read from MH i2c: 01 [08:58:25]MH_I2C_Read... [08:58:25]*** Stop cut motor [08:58:25]*** Cut end [08:58:25]Read from MH i2c: 01 07 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: 01 07 00 7B 1D 00 00 00 00 00 FF 0F AD [08:58:25]process_action close_receipt done [08:58:25]requested_data is exist [08:58:25]produce_requested_data [08:58:25]requested_item fm.sn is exist - process it [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 11 00 00 [08:58:25]Write to MH i2c: E2 08 00 7C 1D 80 11 00 00 00 00 00 00 13 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 17 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 17 00 7C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [08:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:58:25]wFMCommunicate OK [08:58:25]requested_item fd.num is exist - process it [08:58:25]SAM_PROTO_GetFieldsCounters [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 13 00 00 [08:58:25]Write to MH i2c: E2 08 00 7D 1D 80 13 00 00 00 00 00 00 16 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 62 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 62 00 7D 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 64 DB 02 00 0E 04 04 00 88 02 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 76 [08:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 64 DB 02 00 0E 04 04 00 88 02 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:58:25]wFMCommunicate OK [08:58:25]SAM_PROTO_GetFieldsCounters done [08:58:25]requested_item shift.num is exist - process it [08:58:25]requested_item shift.opened is exist - process it [08:58:25]req_shift_opened [08:58:25]FM_GetShiftState [08:58:25]SAM_PROTO_GetShiftState [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 13 01 00 [08:58:25]Write to MH i2c: E2 08 00 7E 1D 80 13 01 00 00 00 00 00 18 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 0E 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 0E 00 7E 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6A [08:58:25]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:58:25]wFMCommunicate OK [08:58:25]SAM_PROTO_GetShiftState done [08:58:25]FM_GetShiftState done [08:58:25]req_shift_opened done [08:58:25]requested_item shift.open_date is exist - process it [08:58:25]req_shift_open_date [08:58:25]req_shift_open_date done [08:58:25]produce_requested_data done [08:58:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187236,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:58:25]process_action_free close_receipt [08:58:25]json_value_free [08:58:25]json_value_free done [08:58:25]process_json_proto returns [08:58:25]Send response to host [08:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187236,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:58:25]free response buf [08:58:25]execute_script done [08:58:25]execute_script returns [08:58:25]free content buf [08:58:25]Sock 9.Close socket [08:58:25]Sock 9.Thread stoped [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:51]accept exits with 7 [08:59:51]New connection [08:59:51]New thread 3066654052 created [08:59:51]Thread 3066510692 joined [08:59:51]Waiting for new connection... [08:59:51] Sock 7.Parse request [08:59:51]Sock 7.Check first char [08:59:51]Sock 7.First char is OK [08:59:51]request: POST /json_proto HTTP/1.0 [08:59:51]Method: POST [08:59:51]URL: /json_proto [08:59:51]Method is POST - this is cgi request [08:59:51]url: /json_proto [08:59:51]query_string will be loaded in cgi processing [08:59:51]execute_cgi json_proto POST (null) [08:59:51]execute_cgi path=json_proto method=POST [08:59:51]POST find Content-Length [08:59:51]Host: 172.17.46.131:8080 [08:59:51]Content-Length: 682 [08:59:51]Content-Type: application/json [08:59:51] [08:59:51]POST finish read [08:59:51]Found Content-Length = 682 [08:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:51]execute_script... [08:59: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)412390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:51]POST & json_proto [08:59:51]process_json_proto [08:59:51]json parsed OK: [08:59:51]protocol is kg_v1.0 [08:59:51]action value=close_receipt [08:59:51]process_action close_receipt [08:59:51]cmd_close_receipt [08:59:51]MH_GetDate [08:59:51]Write to MH i2c: F0 00 00 7F 1D 8B [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: F0 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: F0 09 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: F0 09 00 7F 1D 00 0A EF B6 67 7E 41 4F 65 1D [08:59:51]GetLastDocTimeStamp 1740041905 [08:59:51]current date 1740041994 [08:59:51]FM_GetShiftState [08:59:51]SAM_PROTO_GetShiftState [08:59:51]wFMCommunicate request_size=4 [08:59:51]MH_SAM_APDU [08:59:51]CAPDU: 80 13 01 00 [08:59:51]Write to MH i2c: E2 08 00 80 1D 80 13 01 00 00 00 00 00 1A [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:51]Read from MH i2c: E2 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 0E 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 0E 00 80 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6C [08:59:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:59:51]wFMCommunicate OK [08:59:51]SAM_PROTO_GetShiftState done [08:59:51]FM_GetShiftState done [08:59:51]opened in 1740011697 [08:59:51]opened+sec_in_day 1740098097 [08:59:51]quantity*price = 100023 [08:59:51]sum+1 = 100025 [08:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 38 20.02.2025 08:59 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187237 ФПД: 143381700512675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085954&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187237&fm=143381700512675&tin=02508201610067®Number=0000000000091857&sum=100000 [08:59:52]StoreToDocumentArchive [08:59:52]shift 648 fd 187237 [08:59:52]save to /storage/0648/doc_00187237 [08:59:52]save last doc name /storage/0648/doc_00187237 to /storage/kkm_last_doc_name [08:59:52]save OK [08:59:52]Clear old archive folders... [08:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:52]tlvbuf is 01F98630 [08:59:52]SAM_PROTO_ClearQueue [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 09 00 00 [08:59:52]Write to MH i2c: E2 08 00 8D 1D 80 09 00 00 00 00 00 00 1C [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 8D 1D 00 90 00 1E [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_ClearQueue done [08:59:52]KKMCreateOFDPacket [08:59:52]OFDProtocolAddRootSTLVToBuf [08:59:52]FM_MakeSignedData [08:59:52]FM_MakeSignedData [08:59:52]SAM_PROTO_SignData [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 01 02 [08:59:52]Write to MH i2c: E2 08 00 8E 1D 80 0D 01 02 00 00 00 00 24 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 8E 1D 00 90 00 1F [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]wFMCommunicate request_size=255 [08:59:52]MH_SAM_APDU [08:59: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0A EF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DB 02 00 35 04 06 00 82 [08:59:52]Write to MH i2c: E2 02 01 8F 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0A EF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DB 02 00 35 04 06 00 82 00 00 AB [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 8F 1D 00 90 00 20 [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]wFMCommunicate request_size=10 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 02 02 05 67 A7 53 8B A3 [08:59:52]Write to MH i2c: E2 0D 00 90 1D 80 0D 02 02 05 00 67 A7 53 8B A3 00 00 C0 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 03 00 90 1D 00 90 00 21 [08:59:52]RAPDU: 90 00 [08:59:52]wFMCommunicate OK [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 0D 03 02 [08:59:52]Write to MH i2c: E2 08 00 91 1D 80 0D 03 02 00 00 00 00 29 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0B 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0B 00 91 1D 00 3B 41 0C F5 7D E2 96 A9 90 00 45 [08:59:52]RAPDU: 3B 41 0C F5 7D E2 96 A9 90 00 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_SignData done [08:59:52]FM_MakeSignedData done [08:59:52]CreateOFDProtocolMessage [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 11 00 00 [08:59:52]Write to MH i2c: E2 08 00 92 1D 80 11 00 00 00 00 00 00 29 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 92 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [08:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:59:52]wFMCommunicate OK [08:59:52]CreateOFDProtocolMessage done [08:59:52]OFDSenderStorePacket 187237 [08:59:52]StoreOFDPacket docnum=187237 [08:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D 53 07 01 FE D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0A EF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DB 02 00 35 04 06 00 82 67 A7 53 8B A3 3B 41 0C F5 7D E2 96 A9 [08:59:52]CheckFolder [08:59:52]dirname=/storage/ofd_packets [08:59:52]CheckFolder done [08:59:52]ProducePacketName [08:59:52]name=ofd_packets/00187237 [08:59:52]NVStorageSaveData ofd_packets/00187237 [08:59:52]File name is /storage/ofd_packets/00187237 [08:59:52]Write 301 bytes [08:59:52]NVStorageSaveData done [08:59:52]OFDSenderStorePacket done [08:59:52]KKMCreateOFDPacket done [08:59:52]NVStorageSaveData kkm_last_timestamp [08:59:52]File name is /storage/kkm_last_timestamp [08:59:52]Write 4 bytes [08:59:52]NVStorageSaveData done [08:59:52]ExternCall_PrintAddStr [08:59:52]wPrintStart [08:59:52]Write to MH i2c: 01 00 00 93 1D B0 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 07 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 07 00 93 1D 00 00 00 00 00 FF 0F C5 [08:59:52]RasterBufferAndPrint [08:59:52]line Счет N : (1)412390 [08:59:52]line ИНН: 02508201610067 [08:59:52]line Контрольно-Кассовый Чек [08:59:52]line ПРОДАЖА [08:59:52]line ТРК (МРК, ГНК) : 32 [08:59:52]line Товар: 2710124130 [08:59:52]line Аи-92-К-2 [08:59:52]line 15.580 * 64.20 [08:59:52]line = 1000.24 [08:59:52]line НДС 12% НСП 1% [08:59:52]line > о реализуемом товаре [08:59:52]line ОКРУГЛЕНИЕ: -0.24 [08:59:52]line ИТОГО: 1000.00 [08:59:52]line Внесено: 1000.00 [08:59:52]line СДАЧА: 0.00 [08:59:52]line НСП 1% : 8.85 [08:59:52]line НДС 12% : 106.22 [08:59:52]line Наличными: 1000.00 [08:59:52]line Безнал.: 0.00 [08:59:52]line Место: АЗС № 92 "Партнер Нефть" [08:59:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:59:52]line СНО: Общий режим [08:59:52]line Чек 38 20.02.2025 08:59 [08:59:52]line Смена: 648 ФФД: 1.0 [08:59:52]line ЗНМ: 0300000118 [08:59:52]line РНМ: 0000000000091857 [08:59:52]line Версия ККМ: 001 [08:59:52]line ФМ: 0000000000871826 [08:59:52]line ФД: 187237 [08:59:52]line ФПД: 143381700512675 [08:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T085954&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187237&fm=143381700512675&tin=02508201610067®Number=0000000000091857&sum=100000 [08:59:52]written 0, free lines is 4095 [08:59:52]OFD Sender: Processing packet 187237 [packets to send 49, broken 48] [08:59:52]ProducePacketName [08:59:52]name=ofd_packets/00187237 [08:59:52]OFD Sender: To server: pG, [08:59:52]CommunicateWithHost lk.salyk.kg:30040 [08:59:52]ConnectInit lk.salyk.kg [08:59:53]Connected sock=10 [08:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D 53 07 01 FE D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0A EF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DB 02 00 35 04 06 00 82 67 A7 53 8B A3 3B 41 0C F5 7D E2 96 A9 [08:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D8 D0 47 00 D6 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DB 02 00 F4 03 04 00 5C 95 B6 67 B6 04 01 00 00 8B 8D F8 94 57 2D B7 E0 [08:59:53]CommunicateWithHost err = 0 [08:59:53]CheckOFDResponse [08:59:53]1017 (14) - 77093643461234 [08:59:53]1041 (16) - 0000000000871826 [08:59:53]1040 (4) - 187237 [08:59:53]1012 (4) - 20.02.2025 02:37 [08:59:53]1206 (1) - 0 [08:59:53]OFD Sender: Remove packet 187237 [08:59:53]ProducePacketName [08:59:53]name=ofd_packets/00187237 [08:59:53]NVStorageDeleteData [08:59:53]Write to MH i2c: 01 00 00 BE 1D DB [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 07 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: 01 07 00 BE 1D 00 00 00 00 00 F5 0C E3 [08:59:53]RasterBufferAndPrint [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]line [08:59:53]written 0, free lines is 3323 [08:59:53]MH_Cut [08:59:53]Write to MH i2c: D1 01 00 C5 1D 01 B4 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 01 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: D1 01 00 C5 1D 00 B3 [08:59:53]Write to MH i2c: 01 00 00 C6 1D E3 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]OFD Sender: No OFD packet to send [08:59:53]*** Cut start [08:59:53]*** Partial cut [08:59:53]*** CUTSNS_PIN = 1 [08:59:54]*** CUTSNS_PIN = 0 [08:59:54]*** Brake cut motor [08:59:54]Read from MH i2c: 01 [08:59:54]MH_I2C_Read... [08:59:54]*** Stop cut motor [08:59:54]*** Cut end [08:59:54]Read from MH i2c: 01 07 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: 01 07 00 C6 1D 00 00 00 00 00 FF 0F F8 [08:59:54]process_action close_receipt done [08:59:54]requested_data is exist [08:59:54]produce_requested_data [08:59:54]requested_item fm.sn is exist - process it [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 11 00 00 [08:59:54]Write to MH i2c: E2 08 00 C7 1D 80 11 00 00 00 00 00 00 5E [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 17 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 17 00 C7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [08:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:59:54]wFMCommunicate OK [08:59:54]requested_item fd.num is exist - process it [08:59:54]SAM_PROTO_GetFieldsCounters [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 13 00 00 [08:59:54]Write to MH i2c: E2 08 00 C8 1D 80 13 00 00 00 00 00 00 61 [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 62 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 62 00 C8 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 65 DB 02 00 0E 04 04 00 88 02 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 C5 [08:59:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 65 DB 02 00 0E 04 04 00 88 02 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:59:54]wFMCommunicate OK [08:59:54]SAM_PROTO_GetFieldsCounters done [08:59:54]requested_item shift.num is exist - process it [08:59:54]requested_item shift.opened is exist - process it [08:59:54]req_shift_opened [08:59:54]FM_GetShiftState [08:59:54]SAM_PROTO_GetShiftState [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 13 01 00 [08:59:54]Write to MH i2c: E2 08 00 C9 1D 80 13 01 00 00 00 00 00 63 [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 0E 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 0E 00 C9 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B5 [08:59:54]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [08:59:54]wFMCommunicate OK [08:59:54]SAM_PROTO_GetShiftState done [08:59:54]FM_GetShiftState done [08:59:54]req_shift_opened done [08:59:54]requested_item shift.open_date is exist - process it [08:59:54]req_shift_open_date [08:59:54]req_shift_open_date done [08:59:54]produce_requested_data done [08:59:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187237,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [08:59:54]process_action_free close_receipt [08:59:54]json_value_free [08:59:54]json_value_free done [08:59:54]process_json_proto returns [08:59:54]Send response to host [08:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187237,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [08:59:54]free response buf [08:59:54]execute_script done [08:59:54]execute_script returns [08:59:54]free content buf [08:59:54]Sock 7.Close socket [08:59:54]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04: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:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [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:56]accept exits with 9 [09:15:56]New connection [09:15:56]New thread 3066510692 created [09:15:56]Thread 3066654052 joined [09:15:56]Waiting for new connection... [09:15:56] Sock 9.Parse request [09:15:56]Sock 9.Check first char [09:15:56]Sock 9.First char is OK [09:15:56]request: POST /json_proto HTTP/1.0 [09:15:56]Method: POST [09:15:56]URL: /json_proto [09:15:56]Method is POST - this is cgi request [09:15:56]url: /json_proto [09:15:56]query_string will be loaded in cgi processing [09:15:56]execute_cgi json_proto POST (null) [09:15:56]execute_cgi path=json_proto method=POST [09:15:56]POST find Content-Length [09:15:56]Host: 172.17.46.131:8080 [09:15:56]Content-Length: 677 [09:15:56]Content-Type: application/json [09:15:56] [09:15:56]POST finish read [09:15:56]Found Content-Length = 677 [09:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.860, "sum" : 440.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:56]execute_script... [09:15: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)412391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.860, "sum" : 440.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:56]POST & json_proto [09:15:56]process_json_proto [09:15:56]json parsed OK: [09:15:56]protocol is kg_v1.0 [09:15:56]action value=close_receipt [09:15:56]process_action close_receipt [09:15:56]cmd_close_receipt [09:15:56]MH_GetDate [09:15:56]Write to MH i2c: F0 00 00 CA 1D D6 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: F0 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: F0 09 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: F0 09 00 CA 1D 00 D0 F2 B6 67 7E 41 4F 65 31 [09:15:56]GetLastDocTimeStamp 1740041994 [09:15:56]current date 1740042960 [09:15:56]FM_GetShiftState [09:15:56]SAM_PROTO_GetShiftState [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 13 01 00 [09:15:56]Write to MH i2c: E2 08 00 CB 1D 80 13 01 00 00 00 00 00 65 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 0E 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 0E 00 CB 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B7 [09:15:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:15:56]wFMCommunicate OK [09:15:56]SAM_PROTO_GetShiftState done [09:15:56]FM_GetShiftState done [09:15:56]opened in 1740011697 [09:15:56]opened+sec_in_day 1740098097 [09:15:56]quantity*price = 44041 [09:15:56]sum+1 = 44042 [09:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.77 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 39 20.02.2025 09:16 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187238 ФПД: 246115171064341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T091600&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187238&fm=246115171064341&tin=02508201610067®Number=0000000000091857&sum=44000 [09:15:57]StoreToDocumentArchive [09:15:57]shift 648 fd 187238 [09:15:57]save to /storage/0648/doc_00187238 [09:15:57]save last doc name /storage/0648/doc_00187238 to /storage/kkm_last_doc_name [09:15:57]save OK [09:15:57]Clear old archive folders... [09:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:57]tlvbuf is B6E5FCD0 [09:15:57]SAM_PROTO_ClearQueue [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 09 00 00 [09:15:57]Write to MH i2c: E2 08 00 D8 1D 80 09 00 00 00 00 00 00 67 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 D8 1D 00 90 00 69 [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]SAM_PROTO_ClearQueue done [09:15:58]KKMCreateOFDPacket [09:15:58]OFDProtocolAddRootSTLVToBuf [09:15:58]FM_MakeSignedData [09:15:58]FM_MakeSignedData [09:15:58]SAM_PROTO_SignData [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 01 02 [09:15:58]Write to MH i2c: E2 08 00 D9 1D 80 0D 01 02 00 00 00 00 6F [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 D9 1D 00 90 00 6A [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]wFMCommunicate request_size=255 [09:15:58]MH_SAM_APDU [09:15: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 32 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 09 AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D0 F2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DB 02 00 35 04 06 00 DF [09:15:58]Write to MH i2c: E2 02 01 DA 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 32 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 09 AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D0 F2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DB 02 00 35 04 06 00 DF 00 00 E9 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 DA 1D 00 90 00 6B [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]wFMCommunicate request_size=10 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 02 02 05 D7 27 58 5A 15 [09:15:58]Write to MH i2c: E2 0D 00 DB 1D 80 0D 02 02 05 00 D7 27 58 5A 15 00 00 41 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 DB 1D 00 90 00 6C [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 03 02 [09:15:58]Write to MH i2c: E2 08 00 DC 1D 80 0D 03 02 00 00 00 00 74 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0B 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0B 00 DC 1D 00 BE 71 01 64 B8 79 D0 38 90 00 42 [09:15:58]RAPDU: BE 71 01 64 B8 79 D0 38 90 00 [09:15:58]wFMCommunicate OK [09:15:58]SAM_PROTO_SignData done [09:15:58]FM_MakeSignedData done [09:15:58]CreateOFDProtocolMessage [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 11 00 00 [09:15:58]Write to MH i2c: E2 08 00 DD 1D 80 11 00 00 00 00 00 00 74 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 17 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 17 00 DD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [09:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:15:58]wFMCommunicate OK [09:15:58]CreateOFDProtocolMessage done [09:15:58]OFDSenderStorePacket 187238 [09:15:58]StoreOFDPacket docnum=187238 [09:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7C 28 07 01 49 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 09 AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D0 F2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DB 02 00 35 04 06 00 DF D7 27 58 5A 15 BE 71 01 64 B8 79 D0 38 [09:15:58]CheckFolder [09:15:58]dirname=/storage/ofd_packets [09:15:58]CheckFolder done [09:15:58]ProducePacketName [09:15:58]name=ofd_packets/00187238 [09:15:58]NVStorageSaveData ofd_packets/00187238 [09:15:58]File name is /storage/ofd_packets/00187238 [09:15:58]Write 301 bytes [09:15:58]NVStorageSaveData done [09:15:58]OFDSenderStorePacket done [09:15:58]KKMCreateOFDPacket done [09:15:58]NVStorageSaveData kkm_last_timestamp [09:15:58]File name is /storage/kkm_last_timestamp [09:15:58]Write 4 bytes [09:15:58]NVStorageSaveData done [09:15:58]ExternCall_PrintAddStr [09:15:58]wPrintStart [09:15:58]Write to MH i2c: 01 00 00 DE 1D FB [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 DE 1D 00 00 00 00 00 FF 0F 10 [09:15:58]RasterBufferAndPrint [09:15:58]line Счет N : (1)412391 [09:15:58]line ИНН: 02508201610067 [09:15:58]line Контрольно-Кассовый Чек [09:15:58]line ПРОДАЖА [09:15:58]line ТРК (МРК, ГНК) : 12 [09:15:58]line Товар: 2710124130 [09:15:58]line Аи-92-К-2 [09:15:58]line 6.860 * 64.20 [09:15:58]line = 440.41 [09:15:58]line НДС 12% НСП 1% [09:15:58]line > о реализуемом товаре [09:15:58]line ОКРУГЛЕНИЕ: -0.41 [09:15:58]line ИТОГО: 440.00 [09:15:58]line Внесено: 440.00 [09:15:58]line СДАЧА: 0.00 [09:15:58]line НСП 1% : 3.90 [09:15:58]line НДС 12% : 46.77 [09:15:58]line Наличными: 440.00 [09:15:58]line Безнал.: 0.00 [09:15:58]line Место: АЗС № 92 "Партнер Нефть" [09:15:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:15:58]line СНО: Общий режим [09:15:58]line Чек 39 20.02.2025 09:16 [09:15:58]line Смена: 648 ФФД: 1.0 [09:15:58]line ЗНМ: 0300000118 [09:15:58]line РНМ: 0000000000091857 [09:15:58]line Версия ККМ: 001 [09:15:58]line ФМ: 0000000000871826 [09:15:58]line ФД: 187238 [09:15:58]line ФПД: 246115171064341 [09:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T091600&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187238&fm=246115171064341&tin=02508201610067®Number=0000000000091857&sum=44000 [09:15:58]written 0, free lines is 4095 [09:15:58]OFD Sender: Processing packet 187238 [packets to send 49, broken 48] [09:15:58]ProducePacketName [09:15:58]name=ofd_packets/00187238 [09:15:58]OFD Sender: To server: pG, [09:15:58]CommunicateWithHost lk.salyk.kg:30040 [09:15:58]ConnectInit lk.salyk.kg [09:15:59]Write to MH i2c: 01 00 00 09 1E 27 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 07 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 07 00 09 1E 00 00 00 00 00 E7 0C 21 [09:15:59]RasterBufferAndPrint [09:15:59]line [09:15:59]line [09:15:59]line [09:15:59]line [09:15:59]line [09:15:59]written 0, free lines is 3309 [09:15:59]MH_Cut [09:15:59]Write to MH i2c: D1 01 00 10 1E 01 00 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 01 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 01 00 10 1E 00 FF [09:15:59]Write to MH i2c: 01 00 00 11 1E 2F [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** Cut start [09:15:59]*** Partial cut [09:15:59]*** CUTSNS_PIN = 1 [09:16:00]*** CUTSNS_PIN = 0 [09:16:00]*** Brake cut motor [09:16:00]Read from MH i2c: 01 [09:16:00]MH_I2C_Read... [09:16:00]*** Stop cut motor [09:16:00]*** Cut end [09:16:00]Read from MH i2c: 01 07 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 07 00 11 1E 00 00 00 00 00 FF 0F 44 [09:16:00]process_action close_receipt done [09:16:00]requested_data is exist [09:16:00]produce_requested_data [09:16:00]requested_item fm.sn is exist - process it [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 11 00 00 [09:16:00]Write to MH i2c: E2 08 00 12 1E 80 11 00 00 00 00 00 00 AA [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 [09:16:00]MH_I2C_Read... [09:16:00]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 31 38 32 36 90 00 FD [09:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:16:00]wFMCommunicate OK [09:16:00]requested_item fd.num is exist - process it [09:16:00]SAM_PROTO_GetFieldsCounters [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 13 00 00 [09:16:00]Write to MH i2c: E2 08 00 13 1E 80 13 00 00 00 00 00 00 AD [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 62 00 [09:16:00]MH_I2C_Read... [09:16:00]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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 66 DB 02 00 0E 04 04 00 88 02 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 15 [09:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 66 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:00]wFMCommunicate OK [09:16:00]SAM_PROTO_GetFieldsCounters done [09:16:00]requested_item shift.num is exist - process it [09:16:00]requested_item shift.opened is exist - process it [09:16:00]req_shift_opened [09:16:00]FM_GetShiftState [09:16:00]SAM_PROTO_GetShiftState [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 13 01 00 [09:16:00]Write to MH i2c: E2 08 00 14 1E 80 13 01 00 00 00 00 00 AF [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0E 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0E 00 14 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 01 [09:16:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:16:00]wFMCommunicate OK [09:16:00]SAM_PROTO_GetShiftState done [09:16:00]FM_GetShiftState done [09:16:00]req_shift_opened done [09:16:00]requested_item shift.open_date is exist - process it [09:16:00]req_shift_open_date [09:16:00]req_shift_open_date done [09:16:00]produce_requested_data done [09:16:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187238,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:16:00]process_action_free close_receipt [09:16:00]json_value_free [09:16:00]json_value_free done [09:16:00]process_json_proto returns [09:16:00]Send response to host [09:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187238,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:16:00]free response buf [09:16:00]execute_script done [09:16:00]execute_script returns [09:16:00]free content buf [09:16:00]Sock 9.Close socket [09:16:00]Sock 9.Thread stoped [09:18:12]ConnectInit Can't connect to host [09:18:12]CommunicateWithHost connect error [09:18:12]CommunicateWithHost err = -1 [09:18:12]OFD Sender: Server communicate error [09:18:17]OFD Sender: Processing packet 187238 [packets to send 49, broken 48] [09:18:17]ProducePacketName [09:18:17]name=ofd_packets/00187238 [09:18:17]OFD Sender: To server: pG, [09:18:17]CommunicateWithHost lk.salyk.kg:30040 [09:18:17]ConnectInit lk.salyk.kg [09:18:17]Connected sock=9 [09:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7C 28 07 01 49 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 09 AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D0 F2 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DB 02 00 35 04 06 00 DF D7 27 58 5A 15 BE 71 01 64 B8 79 D0 38 [09:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 47 34 47 00 8A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DB 02 00 F4 03 04 00 AC 99 B6 67 B6 04 01 00 00 59 A9 FC B4 C6 33 D7 9A [09:18:17]CommunicateWithHost err = 0 [09:18:17]CheckOFDResponse [09:18:17]1017 (14) - 77093643461234 [09:18:17]1041 (16) - 0000000000871826 [09:18:17]1040 (4) - 187238 [09:18:17]1012 (4) - 20.02.2025 02:55 [09:18:17]1206 (1) - 0 [09:18:17]OFD Sender: Remove packet 187238 [09:18:17]ProducePacketName [09:18:17]name=ofd_packets/00187238 [09:18:17]NVStorageDeleteData [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:43]accept exits with 7 [09:18:43]New connection [09:18:43]New thread 3066654052 created [09:18:43]Thread 3066510692 joined [09:18:43]Waiting for new connection... [09:18:43] Sock 7.Parse request [09:18:43]Sock 7.Check first char [09:18:43]Sock 7.First char is OK [09:18:43]request: POST /json_proto HTTP/1.0 [09:18:43]Method: POST [09:18:43]URL: /json_proto [09:18:43]Method is POST - this is cgi request [09:18:43]url: /json_proto [09:18:43]query_string will be loaded in cgi processing [09:18:43]execute_cgi json_proto POST (null) [09:18:43]execute_cgi path=json_proto method=POST [09:18:43]POST find Content-Length [09:18:43]Host: 172.17.46.131:8080 [09:18:43]Content-Length: 678 [09:18:43]Content-Type: application/json [09:18:43] [09:18:43]POST finish read [09:18:43]Found Content-Length = 678 [09:18:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:18:43]execute_script... [09:18: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)412392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:18:43]POST & json_proto [09:18:43]process_json_proto [09:18:43]json parsed OK: [09:18:43]protocol is kg_v1.0 [09:18:43]action value=close_receipt [09:18:43]process_action close_receipt [09:18:43]cmd_close_receipt [09:18:43]MH_GetDate [09:18:43]Write to MH i2c: F0 00 00 15 1E 22 [09:18:43]Write i2c OK [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: F0 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: F0 09 00 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: F0 09 00 15 1E 00 77 F3 B6 67 7E 41 4F 65 25 [09:18:43]GetLastDocTimeStamp 1740042960 [09:18:43]current date 1740043127 [09:18:43]FM_GetShiftState [09:18:43]SAM_PROTO_GetShiftState [09:18:43]wFMCommunicate request_size=4 [09:18:43]MH_SAM_APDU [09:18:43]CAPDU: 80 13 01 00 [09:18:43]Write to MH i2c: E2 08 00 16 1E 80 13 01 00 00 00 00 00 B1 [09:18:43]Write i2c OK [09:18:43]MH_I2C_Read... [09:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 0E 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 0E 00 16 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 03 [09:18:44]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:18:44]wFMCommunicate OK [09:18:44]SAM_PROTO_GetShiftState done [09:18:44]FM_GetShiftState done [09:18:44]opened in 1740011697 [09:18:44]opened+sec_in_day 1740098097 [09:18:44]quantity*price = 100042 [09:18:44]sum+1 = 100044 [09:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 40 20.02.2025 09:18 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187239 ФПД: 46199924554880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T091847&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187239&fm=46199924554880&tin=02508201610067®Number=0000000000091857&sum=100000 [09:18:45]StoreToDocumentArchive [09:18:45]shift 648 fd 187239 [09:18:45]save to /storage/0648/doc_00187239 [09:18:45]save last doc name /storage/0648/doc_00187239 to /storage/kkm_last_doc_name [09:18:45]save OK [09:18:45]Clear old archive folders... [09:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:18:45]tlvbuf is 01F98FC0 [09:18:45]SAM_PROTO_ClearQueue [09:18:45]wFMCommunicate request_size=4 [09:18:45]MH_SAM_APDU [09:18:45]CAPDU: 80 09 00 00 [09:18:45]Write to MH i2c: E2 08 00 23 1E 80 09 00 00 00 00 00 00 B3 [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:45]Read from MH i2c: E2 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 03 00 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 03 00 23 1E 00 90 00 B5 [09:18:45]RAPDU: 90 00 [09:18:45]wFMCommunicate OK [09:18:45]SAM_PROTO_ClearQueue done [09:18:45]KKMCreateOFDPacket [09:18:45]OFDProtocolAddRootSTLVToBuf [09:18:45]FM_MakeSignedData [09:18:45]FM_MakeSignedData [09:18:45]SAM_PROTO_SignData [09:18:45]wFMCommunicate request_size=4 [09:18:45]MH_SAM_APDU [09:18:45]CAPDU: 80 0D 01 02 [09:18:45]Write to MH i2c: E2 08 00 24 1E 80 0D 01 02 00 00 00 00 BB [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:45]Read from MH i2c: E2 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 03 00 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 03 00 24 1E 00 90 00 B6 [09:18:45]RAPDU: 90 00 [09:18:45]wFMCommunicate OK [09:18:45]wFMCommunicate request_size=255 [09:18:45]MH_SAM_APDU [09:18:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 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 77 F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DB 02 00 35 04 06 00 2A 04 C2 17 [09:18:45]Write to MH i2c: E2 02 01 25 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 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 77 F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DB 02 00 35 04 06 00 2A 04 C2 17 00 00 E3 [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:45]Read from MH i2c: E2 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 03 00 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 03 00 25 1E 00 90 00 B7 [09:18:45]RAPDU: 90 00 [09:18:45]wFMCommunicate OK [09:18:45]wFMCommunicate request_size=7 [09:18:45]MH_SAM_APDU [09:18:45]CAPDU: 80 0D 02 02 02 7C 80 [09:18:45]Write to MH i2c: E2 0A 00 26 1E 80 0D 02 02 02 00 7C 80 00 00 BE [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:45]Read from MH i2c: E2 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 03 00 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 03 00 26 1E 00 90 00 B8 [09:18:45]RAPDU: 90 00 [09:18:45]wFMCommunicate OK [09:18:45]wFMCommunicate request_size=4 [09:18:45]MH_SAM_APDU [09:18:45]CAPDU: 80 0D 03 02 [09:18:45]Write to MH i2c: E2 08 00 27 1E 80 0D 03 02 00 00 00 00 C0 [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:45]Read from MH i2c: E2 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 0B 00 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 0B 00 27 1E 00 0E 0B D5 83 B6 02 17 72 90 00 73 [09:18:45]RAPDU: 0E 0B D5 83 B6 02 17 72 90 00 [09:18:45]wFMCommunicate OK [09:18:45]SAM_PROTO_SignData done [09:18:45]FM_MakeSignedData done [09:18:45]CreateOFDProtocolMessage [09:18:45]wFMCommunicate request_size=4 [09:18:45]MH_SAM_APDU [09:18:45]CAPDU: 80 11 00 00 [09:18:45]Write to MH i2c: E2 08 00 28 1E 80 11 00 00 00 00 00 00 C0 [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:45]Read from MH i2c: E2 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: E2 17 00 [09:18:45]MH_I2C_Read... [09:18:45]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 31 38 32 36 90 00 13 [09:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:18:45]wFMCommunicate OK [09:18:45]CreateOFDProtocolMessage done [09:18:45]OFDSenderStorePacket 187239 [09:18:45]StoreOFDPacket docnum=187239 [09:18:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3A 01 04 01 F2 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 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 77 F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DB 02 00 35 04 06 00 2A 04 C2 17 7C 80 0E 0B D5 83 B6 02 17 72 [09:18:45]CheckFolder [09:18:45]dirname=/storage/ofd_packets [09:18:45]CheckFolder done [09:18:45]ProducePacketName [09:18:45]name=ofd_packets/00187239 [09:18:45]NVStorageSaveData ofd_packets/00187239 [09:18:45]File name is /storage/ofd_packets/00187239 [09:18:45]Write 298 bytes [09:18:45]NVStorageSaveData done [09:18:45]OFDSenderStorePacket done [09:18:45]KKMCreateOFDPacket done [09:18:45]NVStorageSaveData kkm_last_timestamp [09:18:45]File name is /storage/kkm_last_timestamp [09:18:45]Write 4 bytes [09:18:45]NVStorageSaveData done [09:18:45]ExternCall_PrintAddStr [09:18:45]wPrintStart [09:18:45]Write to MH i2c: 01 00 00 29 1E 47 [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: 01 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: 01 07 00 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: 01 07 00 29 1E 00 00 00 00 00 FF 0F 5C [09:18:45]RasterBufferAndPrint [09:18:45]line Счет N : (1)412392 [09:18:45]line ИНН: 02508201610067 [09:18:45]line Контрольно-Кассовый Чек [09:18:45]line ПРОДАЖА [09:18:45]line ТРК (МРК, ГНК) : 6 [09:18:45]line Товар: 2710194210 [09:18:45]line ДТ-К-5 [09:18:45]line 13.780 * 72.60 [09:18:45]line = 1000.43 [09:18:45]line НДС 12% НСП 1% [09:18:45]line > о реализуемом товаре [09:18:45]line ОКРУГЛЕНИЕ: -0.43 [09:18:45]line ИТОГО: 1000.00 [09:18:45]line Внесено: 1000.00 [09:18:45]line СДАЧА: 0.00 [09:18:45]line НСП 1% : 8.85 [09:18:45]line НДС 12% : 106.24 [09:18:45]line Наличными: 1000.00 [09:18:45]line Безнал.: 0.00 [09:18:45]line Место: АЗС № 92 "Партнер Нефть" [09:18:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:18:45]line СНО: Общий режим [09:18:45]line Чек 40 20.02.2025 09:18 [09:18:45]line Смена: 648 ФФД: 1.0 [09:18:45]line ЗНМ: 0300000118 [09:18:45]line РНМ: 0000000000091857 [09:18:45]line Версия ККМ: 001 [09:18:45]line ФМ: 0000000000871826 [09:18:45]line ФД: 187239 [09:18:45]line ФПД: 46199924554880 [09:18:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T091847&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187239&fm=46199924554880&tin=02508201610067®Number=0000000000091857&sum=100000 [09:18:45]OFD Sender: Processing packet 187239 [packets to send 49, broken 48] [09:18:45]ProducePacketName [09:18:45]name=ofd_packets/00187239 [09:18:45]OFD Sender: To server: pG, [09:18:45]CommunicateWithHost lk.salyk.kg:30040 [09:18:45]ConnectInit lk.salyk.kg [09:18:45]written 0, free lines is 4095 [09:18:46]Connected sock=10 [09:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3A 01 04 01 F2 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 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 77 F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DB 02 00 35 04 06 00 2A 04 C2 17 7C 80 0E 0B D5 83 B6 02 17 72 [09:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 82 F7 47 00 59 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 31 38 32 36 10 04 04 00 67 DB 02 00 F4 03 04 00 C9 99 B6 67 B6 04 01 00 00 80 D5 C0 AC CA B5 C5 3C [09:18:46]CommunicateWithHost err = 0 [09:18:46]CheckOFDResponse [09:18:46]1017 (14) - 77093643461234 [09:18:46]1041 (16) - 0000000000871826 [09:18:46]1040 (4) - 187239 [09:18:46]1012 (4) - 20.02.2025 02:56 [09:18:46]1206 (1) - 0 [09:18:46]OFD Sender: Remove packet 187239 [09:18:46]ProducePacketName [09:18:46]name=ofd_packets/00187239 [09:18:46]NVStorageDeleteData [09:18:46]Write to MH i2c: 01 00 00 54 1E 72 [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: 01 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: 01 07 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: 01 07 00 54 1E 00 00 00 00 00 EC 0C 71 [09:18:46]RasterBufferAndPrint [09:18:46]line [09:18:46]line [09:18:46]line [09:18:46]line [09:18:46]line [09:18:46]written 0, free lines is 3314 [09:18:46]MH_Cut [09:18:46]Write to MH i2c: D1 01 00 5B 1E 01 4B [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: D1 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: D1 01 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: D1 01 00 5B 1E 00 4A [09:18:46]Write to MH i2c: 01 00 00 5C 1E 7A [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]OFD Sender: No OFD packet to send [09:18:47]*** Cut start [09:18:47]*** Partial cut [09:18:47]*** CUTSNS_PIN = 1 [09:18:47]*** CUTSNS_PIN = 0 [09:18:47]*** Brake cut motor [09:18:47]Read from MH i2c: 01 [09:18:47]MH_I2C_Read... [09:18:47]*** Stop cut motor [09:18:47]*** Cut end [09:18:47]Read from MH i2c: 01 07 00 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: 01 07 00 5C 1E 00 00 00 00 00 FF 0F 8F [09:18:47]process_action close_receipt done [09:18:47]requested_data is exist [09:18:47]produce_requested_data [09:18:47]requested_item fm.sn is exist - process it [09:18:47]wFMCommunicate request_size=4 [09:18:47]MH_SAM_APDU [09:18:47]CAPDU: 80 11 00 00 [09:18:47]Write to MH i2c: E2 08 00 5D 1E 80 11 00 00 00 00 00 00 F5 [09:18:47]Write i2c OK [09:18:47]MH_I2C_Read... [09:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:47]Read from MH i2c: E2 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: E2 17 00 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: E2 17 00 5D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [09:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:18:47]wFMCommunicate OK [09:18:47]requested_item fd.num is exist - process it [09:18:47]SAM_PROTO_GetFieldsCounters [09:18:47]wFMCommunicate request_size=4 [09:18:47]MH_SAM_APDU [09:18:47]CAPDU: 80 13 00 00 [09:18:47]Write to MH i2c: E2 08 00 5E 1E 80 13 00 00 00 00 00 00 F8 [09:18:47]Write i2c OK [09:18:47]MH_I2C_Read... [09:18:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:48]Read from MH i2c: E2 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 62 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 62 00 5E 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 67 DB 02 00 0E 04 04 00 88 02 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 64 [09:18:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 67 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:48]wFMCommunicate OK [09:18:48]SAM_PROTO_GetFieldsCounters done [09:18:48]requested_item shift.num is exist - process it [09:18:48]requested_item shift.opened is exist - process it [09:18:48]req_shift_opened [09:18:48]FM_GetShiftState [09:18:48]SAM_PROTO_GetShiftState [09:18:48]wFMCommunicate request_size=4 [09:18:48]MH_SAM_APDU [09:18:48]CAPDU: 80 13 01 00 [09:18:48]Write to MH i2c: E2 08 00 5F 1E 80 13 01 00 00 00 00 00 FA [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:48]Read from MH i2c: E2 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 0E 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 0E 00 5F 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4C [09:18:48]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:18:48]wFMCommunicate OK [09:18:48]SAM_PROTO_GetShiftState done [09:18:48]FM_GetShiftState done [09:18:48]req_shift_opened done [09:18:48]requested_item shift.open_date is exist - process it [09:18:48]req_shift_open_date [09:18:48]req_shift_open_date done [09:18:48]produce_requested_data done [09:18:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187239,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:18:48]process_action_free close_receipt [09:18:48]json_value_free [09:18:48]json_value_free done [09:18:48]process_json_proto returns [09:18:48]Send response to host [09:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187239,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:18:48]free response buf [09:18:48]execute_script done [09:18:48]execute_script returns [09:18:48]free content buf [09:18:48]Sock 7.Close socket [09:18:48]Sock 7.Thread stoped [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:05]accept exits with 9 [09:19:05]New connection [09:19:05]New thread 3066510692 created [09:19:05]Thread 3066654052 joined [09:19:05]Waiting for new connection... [09:19:05] Sock 9.Parse request [09:19:05]Sock 9.Check first char [09:19:05]Sock 9.First char is OK [09:19:05]request: POST /json_proto HTTP/1.0 [09:19:05]Method: POST [09:19:05]URL: /json_proto [09:19:05]Method is POST - this is cgi request [09:19:05]url: /json_proto [09:19:05]query_string will be loaded in cgi processing [09:19:05]execute_cgi json_proto POST (null) [09:19:05]execute_cgi path=json_proto method=POST [09:19:05]POST find Content-Length [09:19:05]Host: 172.17.46.131:8080 [09:19:05]Content-Length: 678 [09:19:05]Content-Type: application/json [09:19:05] [09:19:05]POST finish read [09:19:05]Found Content-Length = 678 [09:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:19:05]execute_script... [09:19: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)412393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:19:05]POST & json_proto [09:19:05]process_json_proto [09:19:05]json parsed OK: [09:19:05]protocol is kg_v1.0 [09:19:05]action value=close_receipt [09:19:05]process_action close_receipt [09:19:05]cmd_close_receipt [09:19:05]MH_GetDate [09:19:05]Write to MH i2c: F0 00 00 60 1E 6D [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 09 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 09 00 60 1E 00 8D F3 B6 67 7E 41 4F 65 86 [09:19:05]GetLastDocTimeStamp 1740043127 [09:19:05]current date 1740043149 [09:19:05]FM_GetShiftState [09:19:05]SAM_PROTO_GetShiftState [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 13 01 00 [09:19:05]Write to MH i2c: E2 08 00 61 1E 80 13 01 00 00 00 00 00 FC [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0E 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0E 00 61 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4E [09:19:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:19:05]wFMCommunicate OK [09:19:05]SAM_PROTO_GetShiftState done [09:19:05]FM_GetShiftState done [09:19:05]opened in 1740011697 [09:19:05]opened+sec_in_day 1740098097 [09:19:05]quantity*price = 100042 [09:19:05]sum+1 = 100044 [09:19:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 41 20.02.2025 09:19 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187240 ФПД: 161317064142824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T091909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187240&fm=161317064142824&tin=02508201610067®Number=0000000000091857&sum=100000 [09:19:06]StoreToDocumentArchive [09:19:06]shift 648 fd 187240 [09:19:06]save to /storage/0648/doc_00187240 [09:19:06]save last doc name /storage/0648/doc_00187240 to /storage/kkm_last_doc_name [09:19:06]save OK [09:19:06]Clear old archive folders... [09:19:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:19:06]tlvbuf is 01F935C0 [09:19:06]SAM_PROTO_ClearQueue [09:19:06]wFMCommunicate request_size=4 [09:19:06]MH_SAM_APDU [09:19:06]CAPDU: 80 09 00 00 [09:19:06]Write to MH i2c: E2 08 00 6E 1E 80 09 00 00 00 00 00 00 FE [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 6E 1E 00 90 00 00 [09:19:06]RAPDU: 90 00 [09:19:06]wFMCommunicate OK [09:19:06]SAM_PROTO_ClearQueue done [09:19:06]KKMCreateOFDPacket [09:19:06]OFDProtocolAddRootSTLVToBuf [09:19:06]FM_MakeSignedData [09:19:06]FM_MakeSignedData [09:19:06]SAM_PROTO_SignData [09:19:06]wFMCommunicate request_size=4 [09:19:06]MH_SAM_APDU [09:19:06]CAPDU: 80 0D 01 02 [09:19:06]Write to MH i2c: E2 08 00 6F 1E 80 0D 01 02 00 00 00 00 06 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 6F 1E 00 90 00 01 [09:19:06]RAPDU: 90 00 [09:19:06]wFMCommunicate OK [09:19:06]wFMCommunicate request_size=255 [09:19:06]MH_SAM_APDU [09:19: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 8D F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DB 02 00 35 04 06 00 92 B7 8E 4D [09:19:06]Write to MH i2c: E2 02 01 70 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 8D F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DB 02 00 35 04 06 00 92 B7 8E 4D 00 00 63 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]OFD Sender: No OFD packet to send [09:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 70 1E 00 90 00 02 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=7 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 02 02 02 EF E8 [09:19:07]Write to MH i2c: E2 0A 00 71 1E 80 0D 02 02 02 00 EF E8 00 00 E4 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 71 1E 00 90 00 03 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 03 02 [09:19:07]Write to MH i2c: E2 08 00 72 1E 80 0D 03 02 00 00 00 00 0B [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0B 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0B 00 72 1E 00 9E 8C D0 AD EA E4 1D 5E 90 00 FC [09:19:07]RAPDU: 9E 8C D0 AD EA E4 1D 5E 90 00 [09:19:07]wFMCommunicate OK [09:19:07]SAM_PROTO_SignData done [09:19:07]FM_MakeSignedData done [09:19:07]CreateOFDProtocolMessage [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 11 00 00 [09:19:07]Write to MH i2c: E2 08 00 73 1E 80 11 00 00 00 00 00 00 0B [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 73 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [09:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:19:07]wFMCommunicate OK [09:19:07]CreateOFDProtocolMessage done [09:19:07]OFDSenderStorePacket 187240 [09:19:07]StoreOFDPacket docnum=187240 [09:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 73 36 04 01 3E DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 8D F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DB 02 00 35 04 06 00 92 B7 8E 4D EF E8 9E 8C D0 AD EA E4 1D 5E [09:19:07]CheckFolder [09:19:07]dirname=/storage/ofd_packets [09:19:07]CheckFolder done [09:19:07]ProducePacketName [09:19:07]name=ofd_packets/00187240 [09:19:07]NVStorageSaveData ofd_packets/00187240 [09:19:07]File name is /storage/ofd_packets/00187240 [09:19:07]Write 298 bytes [09:19:07]NVStorageSaveData done [09:19:07]OFDSenderStorePacket done [09:19:07]KKMCreateOFDPacket done [09:19:07]NVStorageSaveData kkm_last_timestamp [09:19:07]File name is /storage/kkm_last_timestamp [09:19:07]Write 4 bytes [09:19:07]NVStorageSaveData done [09:19:07]ExternCall_PrintAddStr [09:19:07]wPrintStart [09:19:07]Write to MH i2c: 01 00 00 74 1E 92 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 74 1E 00 00 00 00 00 FF 0F A7 [09:19:07]RasterBufferAndPrint [09:19:07]line Счет N : (1)412393 [09:19:07]line ИНН: 02508201610067 [09:19:07]line Контрольно-Кассовый Чек [09:19:07]line ПРОДАЖА [09:19:07]line ТРК (МРК, ГНК) : 5 [09:19:07]line Товар: 2710194210 [09:19:07]line ДТ-К-5 [09:19:07]line 13.780 * 72.60 [09:19:07]line = 1000.43 [09:19:07]line НДС 12% НСП 1% [09:19:07]line > о реализуемом товаре [09:19:07]line ОКРУГЛЕНИЕ: -0.43 [09:19:07]line ИТОГО: 1000.00 [09:19:07]line Внесено: 1000.00 [09:19:07]line СДАЧА: 0.00 [09:19:07]line НСП 1% : 8.85 [09:19:07]line НДС 12% : 106.24 [09:19:07]line Наличными: 1000.00 [09:19:07]line Безнал.: 0.00 [09:19:07]line Место: АЗС № 92 "Партнер Нефть" [09:19:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:19:07]line СНО: Общий режим [09:19:07]line Чек 41 20.02.2025 09:19 [09:19:07]line Смена: 648 ФФД: 1.0 [09:19:07]line ЗНМ: 0300000118 [09:19:07]line РНМ: 0000000000091857 [09:19:07]line Версия ККМ: 001 [09:19:07]line ФМ: 0000000000871826 [09:19:07]line ФД: 187240 [09:19:07]line ФПД: 161317064142824 [09:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T091909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187240&fm=161317064142824&tin=02508201610067®Number=0000000000091857&sum=100000 [09:19:07]OFD Sender: Processing packet 187240 [packets to send 49, broken 48] [09:19:07]ProducePacketName [09:19:07]name=ofd_packets/00187240 [09:19:07]OFD Sender: To server: pG, [09:19:07]CommunicateWithHost lk.salyk.kg:30040 [09:19:07]ConnectInit lk.salyk.kg [09:19:07]written 0, free lines is 4095 [09:19:07]Connected sock=10 [09:19:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 73 36 04 01 3E DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 8D F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DB 02 00 35 04 06 00 92 B7 8E 4D EF E8 9E 8C D0 AD EA E4 1D 5E [09:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 55 07 47 00 22 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 31 38 32 36 10 04 04 00 68 DB 02 00 F4 03 04 00 DE 99 B6 67 B6 04 01 00 00 AC 22 A7 00 18 BD 89 F5 [09:19:08]CommunicateWithHost err = 0 [09:19:08]CheckOFDResponse [09:19:08]1017 (14) - 77093643461234 [09:19:08]1041 (16) - 0000000000871826 [09:19:08]1040 (4) - 187240 [09:19:08]1012 (4) - 20.02.2025 02:56 [09:19:08]1206 (1) - 0 [09:19:08]OFD Sender: Remove packet 187240 [09:19:08]ProducePacketName [09:19:08]name=ofd_packets/00187240 [09:19:08]NVStorageDeleteData [09:19:08]Write to MH i2c: 01 00 00 9F 1E BD [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 07 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 07 00 9F 1E 00 00 00 00 00 E4 0C B4 [09:19:08]RasterBufferAndPrint [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]written 0, free lines is 3306 [09:19:08]MH_Cut [09:19:08]Write to MH i2c: D1 01 00 A6 1E 01 96 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 01 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 01 00 A6 1E 00 95 [09:19:08]Write to MH i2c: 01 00 00 A7 1E C5 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]OFD Sender: No OFD packet to send [09:19:08]*** Cut start [09:19:08]*** Partial cut [09:19:08]*** CUTSNS_PIN = 1 [09:19:08]*** CUTSNS_PIN = 0 [09:19:09]*** Brake cut motor [09:19:09]Read from MH i2c: 01 [09:19:09]MH_I2C_Read... [09:19:09]*** Stop cut motor [09:19:09]*** Cut end [09:19:09]Read from MH i2c: 01 07 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 A7 1E 00 00 00 00 00 FF 0F DA [09:19:09]process_action close_receipt done [09:19:09]requested_data is exist [09:19:09]produce_requested_data [09:19:09]requested_item fm.sn is exist - process it [09:19:09]wFMCommunicate request_size=4 [09:19:09]MH_SAM_APDU [09:19:09]CAPDU: 80 11 00 00 [09:19:09]Write to MH i2c: E2 08 00 A8 1E 80 11 00 00 00 00 00 00 40 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:09]Read from MH i2c: E2 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 17 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 17 00 A8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [09:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:19:09]wFMCommunicate OK [09:19:09]requested_item fd.num is exist - process it [09:19:09]SAM_PROTO_GetFieldsCounters [09:19:09]wFMCommunicate request_size=4 [09:19:09]MH_SAM_APDU [09:19:09]CAPDU: 80 13 00 00 [09:19:09]Write to MH i2c: E2 08 00 A9 1E 80 13 00 00 00 00 00 00 43 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:09]Read from MH i2c: E2 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 62 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 62 00 A9 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 68 DB 02 00 0E 04 04 00 88 02 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 B3 [09:19:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 68 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:09]wFMCommunicate OK [09:19:09]SAM_PROTO_GetFieldsCounters done [09:19:09]requested_item shift.num is exist - process it [09:19:09]requested_item shift.opened is exist - process it [09:19:09]req_shift_opened [09:19:09]FM_GetShiftState [09:19:09]SAM_PROTO_GetShiftState [09:19:09]wFMCommunicate request_size=4 [09:19:09]MH_SAM_APDU [09:19:09]CAPDU: 80 13 01 00 [09:19:09]Write to MH i2c: E2 08 00 AA 1E 80 13 01 00 00 00 00 00 45 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:09]Read from MH i2c: E2 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 0E 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 0E 00 AA 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 97 [09:19:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:19:09]wFMCommunicate OK [09:19:09]SAM_PROTO_GetShiftState done [09:19:09]FM_GetShiftState done [09:19:09]req_shift_opened done [09:19:09]requested_item shift.open_date is exist - process it [09:19:09]req_shift_open_date [09:19:09]req_shift_open_date done [09:19:09]produce_requested_data done [09:19:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187240,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:19:09]process_action_free close_receipt [09:19:09]json_value_free [09:19:09]json_value_free done [09:19:09]process_json_proto returns [09:19:09]Send response to host [09:19:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187240,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:19:09]free response buf [09:19:09]execute_script done [09:19:09]execute_script returns [09:19:09]free content buf [09:19:09]Sock 9.Close socket [09:19:09]Sock 9.Thread stoped [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:27]accept exits with 7 [09:20:27]New connection [09:20:27]New thread 3066654052 created [09:20:27]Thread 3066510692 joined [09:20:27]Waiting for new connection... [09:20:27] Sock 7.Parse request [09:20:27]Sock 7.Check first char [09:20:27]Sock 7.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.46.131: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)412394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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: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)412394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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: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 AB 1E B8 [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 AB 1E 00 DF F3 B6 67 7E 41 4F 65 23 [09:20:27]GetLastDocTimeStamp 1740043149 [09:20:27]current date 1740043231 [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 AC 1E 80 13 01 00 00 00 00 00 47 [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 AC 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 99 [09:20:27]RAPDU: 09 00 01 B1 78 B6 67 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 1740011697 [09:20:27]opened+sec_in_day 1740098097 [09:20:27]quantity*price = 100023 [09:20:27]sum+1 = 100025 [09:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 42 20.02.2025 09:20 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187241 ФПД: 167356145648677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T092031&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187241&fm=167356145648677&tin=02508201610067®Number=0000000000091857&sum=100000 [09:20:29]StoreToDocumentArchive [09:20:29]shift 648 fd 187241 [09:20:29]save to /storage/0648/doc_00187241 [09:20:29]save last doc name /storage/0648/doc_00187241 to /storage/kkm_last_doc_name [09:20:29]save OK [09:20:29]Clear old archive folders... [09:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:29]tlvbuf is B6E5FA20 [09:20:29]SAM_PROTO_ClearQueue [09:20:29]wFMCommunicate request_size=4 [09:20:29]MH_SAM_APDU [09:20:29]CAPDU: 80 09 00 00 [09:20:29]Write to MH i2c: E2 08 00 B9 1E 80 09 00 00 00 00 00 00 49 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 03 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 03 00 B9 1E 00 90 00 4B [09:20:29]RAPDU: 90 00 [09:20:29]wFMCommunicate OK [09:20:29]SAM_PROTO_ClearQueue done [09:20:29]KKMCreateOFDPacket [09:20:29]OFDProtocolAddRootSTLVToBuf [09:20:29]FM_MakeSignedData [09:20:29]FM_MakeSignedData [09:20:29]SAM_PROTO_SignData [09:20:29]wFMCommunicate request_size=4 [09:20:29]MH_SAM_APDU [09:20:29]CAPDU: 80 0D 01 02 [09:20:29]Write to MH i2c: E2 08 00 BA 1E 80 0D 01 02 00 00 00 00 51 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 03 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 03 00 BA 1E 00 90 00 4C [09:20:29]RAPDU: 90 00 [09:20:29]wFMCommunicate OK [09:20:29]wFMCommunicate request_size=255 [09:20:29]MH_SAM_APDU [09:20: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DF F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 DB 02 00 35 04 06 00 98 [09:20:29]Write to MH i2c: E2 02 01 BB 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DF F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 DB 02 00 35 04 06 00 98 00 00 CF [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 03 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 03 00 BB 1E 00 90 00 4D [09:20:29]RAPDU: 90 00 [09:20:29]wFMCommunicate OK [09:20:29]wFMCommunicate request_size=10 [09:20:29]MH_SAM_APDU [09:20:29]CAPDU: 80 0D 02 02 05 35 A3 9C C4 25 [09:20:29]Write to MH i2c: E2 0D 00 BC 1E 80 0D 02 02 05 00 35 A3 9C C4 25 00 00 BB [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 03 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 03 00 BC 1E 00 90 00 4E [09:20:29]RAPDU: 90 00 [09:20:29]wFMCommunicate OK [09:20:29]wFMCommunicate request_size=4 [09:20:29]MH_SAM_APDU [09:20:29]CAPDU: 80 0D 03 02 [09:20:29]Write to MH i2c: E2 08 00 BD 1E 80 0D 03 02 00 00 00 00 56 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 0B 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 0B 00 BD 1E 00 1F 94 83 46 1E E7 47 90 90 00 AF [09:20:29]RAPDU: 1F 94 83 46 1E E7 47 90 90 00 [09:20:29]wFMCommunicate OK [09:20:29]SAM_PROTO_SignData done [09:20:29]FM_MakeSignedData done [09:20:29]CreateOFDProtocolMessage [09:20:29]wFMCommunicate request_size=4 [09:20:29]MH_SAM_APDU [09:20:29]CAPDU: 80 11 00 00 [09:20:29]Write to MH i2c: E2 08 00 BE 1E 80 11 00 00 00 00 00 00 56 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 17 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 17 00 BE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [09:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:20:29]wFMCommunicate OK [09:20:29]CreateOFDProtocolMessage done [09:20:29]OFDSenderStorePacket 187241 [09:20:29]StoreOFDPacket docnum=187241 [09:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FC D0 07 01 77 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DF F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 DB 02 00 35 04 06 00 98 35 A3 9C C4 25 1F 94 83 46 1E E7 47 90 [09:20:29]CheckFolder [09:20:29]dirname=/storage/ofd_packets [09:20:29]CheckFolder done [09:20:29]ProducePacketName [09:20:29]name=ofd_packets/00187241 [09:20:29]NVStorageSaveData ofd_packets/00187241 [09:20:29]File name is /storage/ofd_packets/00187241 [09:20:29]Write 301 bytes [09:20:29]NVStorageSaveData done [09:20:29]OFDSenderStorePacket done [09:20:29]KKMCreateOFDPacket done [09:20:29]NVStorageSaveData kkm_last_timestamp [09:20:29]File name is /storage/kkm_last_timestamp [09:20:29]Write 4 bytes [09:20:29]NVStorageSaveData done [09:20:29]ExternCall_PrintAddStr [09:20:29]wPrintStart [09:20:29]Write to MH i2c: 01 00 00 BF 1E DD [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 07 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 07 00 BF 1E 00 00 00 00 00 FF 0F F2 [09:20:29]RasterBufferAndPrint [09:20:29]line Счет N : (1)412394 [09:20:29]line ИНН: 02508201610067 [09:20:29]line Контрольно-Кассовый Чек [09:20:29]line ПРОДАЖА [09:20:29]line ТРК (МРК, ГНК) : 42 [09:20:29]line Товар: 2710124130 [09:20:29]line Аи-92-К-2 [09:20:29]line 15.580 * 64.20 [09:20:29]line = 1000.24 [09:20:29]line НДС 12% НСП 1% [09:20:29]line > о реализуемом товаре [09:20:29]line ОКРУГЛЕНИЕ: -0.24 [09:20:29]line ИТОГО: 1000.00 [09:20:29]line Внесено: 1000.00 [09:20:29]line СДАЧА: 0.00 [09:20:29]line НСП 1% : 8.85 [09:20:29]line НДС 12% : 106.22 [09:20:29]line Наличными: 1000.00 [09:20:29]line Безнал.: 0.00 [09:20:29]line Место: АЗС № 92 "Партнер Нефть" [09:20:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:20:29]line СНО: Общий режим [09:20:29]line Чек 42 20.02.2025 09:20 [09:20:29]line Смена: 648 ФФД: 1.0 [09:20:29]line ЗНМ: 0300000118 [09:20:29]line РНМ: 0000000000091857 [09:20:29]line Версия ККМ: 001 [09:20:29]line ФМ: 0000000000871826 [09:20:29]line ФД: 187241 [09:20:29]line ФПД: 167356145648677 [09:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T092031&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187241&fm=167356145648677&tin=02508201610067®Number=0000000000091857&sum=100000 [09:20:29]OFD Sender: Processing packet 187241 [packets to send 49, broken 48] [09:20:29]ProducePacketName [09:20:29]name=ofd_packets/00187241 [09:20:29]OFD Sender: To server: pG, [09:20:29]CommunicateWithHost lk.salyk.kg:30040 [09:20:29]ConnectInit lk.salyk.kg [09:20:29]written 0, free lines is 4095 [09:20:30]Connected sock=10 [09:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FC D0 07 01 77 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DF F3 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 DB 02 00 35 04 06 00 98 35 A3 9C C4 25 1F 94 83 46 1E E7 47 90 [09:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 69 40 47 00 A3 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 31 38 32 36 10 04 04 00 69 DB 02 00 F4 03 04 00 31 9A B6 67 B6 04 01 00 00 17 BB 47 14 5E 43 74 45 [09:20:30]CommunicateWithHost err = 0 [09:20:30]CheckOFDResponse [09:20:30]1017 (14) - 77093643461234 [09:20:30]1041 (16) - 0000000000871826 [09:20:30]1040 (4) - 187241 [09:20:30]1012 (4) - 20.02.2025 02:57 [09:20:30]1206 (1) - 0 [09:20:30]OFD Sender: Remove packet 187241 [09:20:30]ProducePacketName [09:20:30]name=ofd_packets/00187241 [09:20:30]NVStorageDeleteData [09:20:30]Write to MH i2c: 01 00 00 EA 1E 08 [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 07 00 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 07 00 EA 1E 00 00 00 00 00 FA 0C 15 [09:20:30]RasterBufferAndPrint [09:20:30]line [09:20:30]line [09:20:30]line [09:20:30]line [09:20:30]line [09:20:30]written 0, free lines is 3328 [09:20:30]MH_Cut [09:20:30]Write to MH i2c: D1 01 00 F1 1E 01 E1 [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: D1 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: D1 01 00 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: D1 01 00 F1 1E 00 E0 [09:20:30]Write to MH i2c: 01 00 00 F2 1E 10 [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]OFD Sender: No OFD packet to send [09:20:31]*** Cut start [09:20:31]*** Partial cut [09:20:31]*** CUTSNS_PIN = 1 [09:20:31]*** CUTSNS_PIN = 0 [09:20:31]*** Brake cut motor [09:20:31]Read from MH i2c: 01 [09:20:31]MH_I2C_Read... [09:20:31]*** Stop cut motor [09:20:31]*** Cut end [09:20:31]Read from MH i2c: 01 07 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: 01 07 00 F2 1E 00 00 00 00 00 FF 0F 25 [09:20:31]process_action close_receipt done [09:20:31]requested_data is exist [09:20:31]produce_requested_data [09:20:31]requested_item fm.sn is exist - process it [09:20:31]wFMCommunicate request_size=4 [09:20:31]MH_SAM_APDU [09:20:31]CAPDU: 80 11 00 00 [09:20:31]Write to MH i2c: E2 08 00 F3 1E 80 11 00 00 00 00 00 00 8B [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:31]Read from MH i2c: E2 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 17 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 17 00 F3 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [09:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:20:31]wFMCommunicate OK [09:20:31]requested_item fd.num is exist - process it [09:20:31]SAM_PROTO_GetFieldsCounters [09:20:31]wFMCommunicate request_size=4 [09:20:31]MH_SAM_APDU [09:20:31]CAPDU: 80 13 00 00 [09:20:31]Write to MH i2c: E2 08 00 F4 1E 80 13 00 00 00 00 00 00 8E [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:31]Read from MH i2c: E2 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 62 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: E2 62 00 F4 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 69 DB 02 00 0E 04 04 00 88 02 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 02 [09:20: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 69 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:31]wFMCommunicate OK [09:20:31]SAM_PROTO_GetFieldsCounters done [09:20:31]requested_item shift.num is exist - process it [09:20:31]requested_item shift.opened is exist - process it [09:20:31]req_shift_opened [09:20:31]FM_GetShiftState [09:20:31]SAM_PROTO_GetShiftState [09:20:31]wFMCommunicate request_size=4 [09:20:31]MH_SAM_APDU [09:20:31]CAPDU: 80 13 01 00 [09:20:31]Write to MH i2c: E2 08 00 F5 1E 80 13 01 00 00 00 00 00 90 [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:32]Read from MH i2c: E2 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 0E 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 0E 00 F5 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E2 [09:20:32]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:20:32]wFMCommunicate OK [09:20:32]SAM_PROTO_GetShiftState done [09:20:32]FM_GetShiftState done [09:20:32]req_shift_opened done [09:20:32]requested_item shift.open_date is exist - process it [09:20:32]req_shift_open_date [09:20:32]req_shift_open_date done [09:20:32]produce_requested_data done [09:20:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187241,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:20:32]process_action_free close_receipt [09:20:32]json_value_free [09:20:32]json_value_free done [09:20:32]process_json_proto returns [09:20:32]Send response to host [09:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187241,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:20:32]free response buf [09:20:32]execute_script done [09:20:32]execute_script returns [09:20:32]free content buf [09:20:32]Sock 7.Close socket [09:20:32]Sock 7.Thread stoped [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]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:00]accept exits with 9 [09:29:00]New connection [09:29:00]New thread 3066510692 created [09:29:00]Thread 3066654052 joined [09:29:00]Waiting for new connection... [09:29:00] Sock 9.Parse request [09:29:00]Sock 9.Check first char [09:29:00]Sock 9.First char is OK [09:29:00]request: POST /json_proto HTTP/1.0 [09:29:00]Method: POST [09:29:00]URL: /json_proto [09:29:00]Method is POST - this is cgi request [09:29:00]url: /json_proto [09:29:00]query_string will be loaded in cgi processing [09:29:00]execute_cgi json_proto POST (null) [09:29:00]execute_cgi path=json_proto method=POST [09:29:00]POST find Content-Length [09:29:00]Host: 172.17.46.131:8080 [09:29:00]Content-Length: 682 [09:29:00]Content-Type: application/json [09:29:00] [09:29:00]POST finish read [09:29:00]Found Content-Length = 682 [09:29:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:29:00]execute_script... [09:29: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)412395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:29:00]POST & json_proto [09:29:00]process_json_proto [09:29:00]json parsed OK: [09:29:00]protocol is kg_v1.0 [09:29:00]action value=close_receipt [09:29:00]process_action close_receipt [09:29:00]cmd_close_receipt [09:29:00]MH_GetDate [09:29:00]Write to MH i2c: F0 00 00 F6 1E 03 [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: F0 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: F0 09 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: F0 09 00 F6 1E 00 E0 F5 B6 67 7E 41 4F 65 71 [09:29:00]GetLastDocTimeStamp 1740043231 [09:29:00]current date 1740043744 [09:29:00]FM_GetShiftState [09:29:00]SAM_PROTO_GetShiftState [09:29:00]wFMCommunicate request_size=4 [09:29:00]MH_SAM_APDU [09:29:00]CAPDU: 80 13 01 00 [09:29:00]Write to MH i2c: E2 08 00 F7 1E 80 13 01 00 00 00 00 00 92 [09:29:00]Write i2c OK [09:29:00]MH_I2C_Read... [09:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:00]Read from MH i2c: E2 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 0E 00 [09:29:00]MH_I2C_Read... [09:29:00]Read from MH i2c: E2 0E 00 F7 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E4 [09:29:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:29:00]wFMCommunicate OK [09:29:00]SAM_PROTO_GetShiftState done [09:29:00]FM_GetShiftState done [09:29:00]opened in 1740011697 [09:29:00]opened+sec_in_day 1740098097 [09:29:00]quantity*price = 100023 [09:29:00]sum+1 = 100025 [09:29:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 43 20.02.2025 09:29 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187242 ФПД: 64152216069257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T092904&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187242&fm=64152216069257&tin=02508201610067®Number=0000000000091857&sum=100000 [09:29:01]StoreToDocumentArchive [09:29:01]shift 648 fd 187242 [09:29:01]save to /storage/0648/doc_00187242 [09:29:01]save last doc name /storage/0648/doc_00187242 to /storage/kkm_last_doc_name [09:29:01]save OK [09:29:01]Clear old archive folders... [09:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:01]tlvbuf is 01FAA5B0 [09:29:01]SAM_PROTO_ClearQueue [09:29:01]wFMCommunicate request_size=4 [09:29:01]MH_SAM_APDU [09:29:01]CAPDU: 80 09 00 00 [09:29:01]Write to MH i2c: E2 08 00 04 1F 80 09 00 00 00 00 00 00 95 [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 03 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 03 00 04 1F 00 90 00 97 [09:29:01]RAPDU: 90 00 [09:29:01]wFMCommunicate OK [09:29:01]SAM_PROTO_ClearQueue done [09:29:01]KKMCreateOFDPacket [09:29:01]OFDProtocolAddRootSTLVToBuf [09:29:01]FM_MakeSignedData [09:29:01]FM_MakeSignedData [09:29:01]SAM_PROTO_SignData [09:29:01]wFMCommunicate request_size=4 [09:29:01]MH_SAM_APDU [09:29:01]CAPDU: 80 0D 01 02 [09:29:01]Write to MH i2c: E2 08 00 05 1F 80 0D 01 02 00 00 00 00 9D [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 03 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 03 00 05 1F 00 90 00 98 [09:29:01]RAPDU: 90 00 [09:29:01]wFMCommunicate OK [09:29:01]wFMCommunicate request_size=255 [09:29:01]MH_SAM_APDU [09:29: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E0 F5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DB 02 00 35 04 06 00 3A [09:29:01]Write to MH i2c: E2 02 01 06 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E0 F5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DB 02 00 35 04 06 00 3A 00 00 C2 [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 03 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 03 00 06 1F 00 90 00 99 [09:29:01]RAPDU: 90 00 [09:29:01]wFMCommunicate OK [09:29:01]wFMCommunicate request_size=10 [09:29:01]MH_SAM_APDU [09:29:01]CAPDU: 80 0D 02 02 05 58 9A 0C E4 89 [09:29:01]Write to MH i2c: E2 0D 00 07 1F 80 0D 02 02 05 00 58 9A 0C E4 89 00 00 15 [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 03 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 03 00 07 1F 00 90 00 9A [09:29:01]RAPDU: 90 00 [09:29:01]wFMCommunicate OK [09:29:01]wFMCommunicate request_size=4 [09:29:01]MH_SAM_APDU [09:29:01]CAPDU: 80 0D 03 02 [09:29:01]Write to MH i2c: E2 08 00 08 1F 80 0D 03 02 00 00 00 00 A2 [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 0B 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 0B 00 08 1F 00 93 0E 79 4C DB 8E A5 6D 90 00 84 [09:29:01]RAPDU: 93 0E 79 4C DB 8E A5 6D 90 00 [09:29:01]wFMCommunicate OK [09:29:01]SAM_PROTO_SignData done [09:29:01]FM_MakeSignedData done [09:29:01]CreateOFDProtocolMessage [09:29:01]wFMCommunicate request_size=4 [09:29:01]MH_SAM_APDU [09:29:01]CAPDU: 80 11 00 00 [09:29:01]Write to MH i2c: E2 08 00 09 1F 80 11 00 00 00 00 00 00 A2 [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 17 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 17 00 09 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [09:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:29:02]wFMCommunicate OK [09:29:02]CreateOFDProtocolMessage done [09:29:02]OFDSenderStorePacket 187242 [09:29:02]StoreOFDPacket docnum=187242 [09:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5C A2 07 01 83 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E0 F5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DB 02 00 35 04 06 00 3A 58 9A 0C E4 89 93 0E 79 4C DB 8E A5 6D [09:29:02]CheckFolder [09:29:02]dirname=/storage/ofd_packets [09:29:02]CheckFolder done [09:29:02]ProducePacketName [09:29:02]name=ofd_packets/00187242 [09:29:02]NVStorageSaveData ofd_packets/00187242 [09:29:02]File name is /storage/ofd_packets/00187242 [09:29:02]Write 301 bytes [09:29:02]NVStorageSaveData done [09:29:02]OFDSenderStorePacket done [09:29:02]KKMCreateOFDPacket done [09:29:02]NVStorageSaveData kkm_last_timestamp [09:29:02]File name is /storage/kkm_last_timestamp [09:29:02]Write 4 bytes [09:29:02]NVStorageSaveData done [09:29:02]ExternCall_PrintAddStr [09:29:02]wPrintStart [09:29:02]Write to MH i2c: 01 00 00 0A 1F 29 [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 07 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 07 00 0A 1F 00 00 00 00 00 FF 0F 3E [09:29:02]RasterBufferAndPrint [09:29:02]line Счет N : (1)412395 [09:29:02]line ИНН: 02508201610067 [09:29:02]line Контрольно-Кассовый Чек [09:29:02]line ПРОДАЖА [09:29:02]line ТРК (МРК, ГНК) : 22 [09:29:02]line Товар: 2710124130 [09:29:02]line Аи-92-К-2 [09:29:02]line 15.580 * 64.20 [09:29:02]line = 1000.24 [09:29:02]line НДС 12% НСП 1% [09:29:02]line > о реализуемом товаре [09:29:02]line ОКРУГЛЕНИЕ: -0.24 [09:29:02]line ИТОГО: 1000.00 [09:29:02]line Внесено: 1000.00 [09:29:02]line СДАЧА: 0.00 [09:29:02]line НСП 1% : 8.85 [09:29:02]line НДС 12% : 106.22 [09:29:02]line Наличными: 1000.00 [09:29:02]line Безнал.: 0.00 [09:29:02]line Место: АЗС № 92 "Партнер Нефть" [09:29:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:29:02]line СНО: Общий режим [09:29:02]line Чек 43 20.02.2025 09:29 [09:29:02]line Смена: 648 ФФД: 1.0 [09:29:02]line ЗНМ: 0300000118 [09:29:02]line РНМ: 0000000000091857 [09:29:02]line Версия ККМ: 001 [09:29:02]line ФМ: 0000000000871826 [09:29:02]line ФД: 187242 [09:29:02]line ФПД: 64152216069257 [09:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T092904&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187242&fm=64152216069257&tin=02508201610067®Number=0000000000091857&sum=100000 [09:29:02]written 0, free lines is 4095 [09:29:02]OFD Sender: Processing packet 187242 [packets to send 49, broken 48] [09:29:02]ProducePacketName [09:29:02]name=ofd_packets/00187242 [09:29:02]OFD Sender: To server: pG, [09:29:02]CommunicateWithHost lk.salyk.kg:30040 [09:29:02]ConnectInit lk.salyk.kg [09:29:02]Connected sock=10 [09:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5C A2 07 01 83 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E0 F5 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DB 02 00 35 04 06 00 3A 58 9A 0C E4 89 93 0E 79 4C DB 8E A5 6D [09:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 15 6A 47 00 C3 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DB 02 00 F4 03 04 00 31 9C B6 67 B6 04 01 00 00 BD A6 19 98 3D 22 0B F3 [09:29:02]CommunicateWithHost err = 0 [09:29:02]CheckOFDResponse [09:29:02]1017 (14) - 77093643461234 [09:29:02]1041 (16) - 0000000000871826 [09:29:02]1040 (4) - 187242 [09:29:02]1012 (4) - 20.02.2025 03:06 [09:29:02]1206 (1) - 0 [09:29:02]OFD Sender: Remove packet 187242 [09:29:02]ProducePacketName [09:29:02]name=ofd_packets/00187242 [09:29:02]NVStorageDeleteData [09:29:02]Write to MH i2c: 01 00 00 35 1F 54 [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 07 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 07 00 35 1F 00 00 00 00 00 FA 0C 61 [09:29:02]RasterBufferAndPrint [09:29:02]line [09:29:02]line [09:29:02]line [09:29:02]line [09:29:02]line [09:29:02]written 0, free lines is 3329 [09:29:02]MH_Cut [09:29:02]Write to MH i2c: D1 01 00 3C 1F 01 2D [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: D1 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: D1 01 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: D1 01 00 3C 1F 00 2C [09:29:02]Write to MH i2c: 01 00 00 3D 1F 5C [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:03]OFD Sender: No OFD packet to send [09:29:03]*** Cut start [09:29:03]*** Partial cut [09:29:03]*** CUTSNS_PIN = 1 [09:29:03]*** CUTSNS_PIN = 0 [09:29:03]*** Brake cut motor [09:29:04]Read from MH i2c: 01 [09:29:04]MH_I2C_Read... [09:29:04]*** Stop cut motor [09:29:04]*** Cut end [09:29:04]Read from MH i2c: 01 07 00 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 FF 0F 71 [09:29:04]process_action close_receipt done [09:29:04]requested_data is exist [09:29:04]produce_requested_data [09:29:04]requested_item fm.sn is exist - process it [09:29:04]wFMCommunicate request_size=4 [09:29:04]MH_SAM_APDU [09:29:04]CAPDU: 80 11 00 00 [09:29:04]Write to MH i2c: E2 08 00 3E 1F 80 11 00 00 00 00 00 00 D7 [09:29:04]Write i2c OK [09:29:04]MH_I2C_Read... [09:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:04]Read from MH i2c: E2 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: E2 17 00 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: E2 17 00 3E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [09:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:29:04]wFMCommunicate OK [09:29:04]requested_item fd.num is exist - process it [09:29:04]SAM_PROTO_GetFieldsCounters [09:29:04]wFMCommunicate request_size=4 [09:29:04]MH_SAM_APDU [09:29:04]CAPDU: 80 13 00 00 [09:29:04]Write to MH i2c: E2 08 00 3F 1F 80 13 00 00 00 00 00 00 DA [09:29:04]Write i2c OK [09:29:04]MH_I2C_Read... [09:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:04]Read from MH i2c: E2 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: E2 62 00 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: E2 62 00 3F 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6A DB 02 00 0E 04 04 00 88 02 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 52 [09:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6A DB 02 00 0E 04 04 00 88 02 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 [09:29:04]wFMCommunicate OK [09:29:04]SAM_PROTO_GetFieldsCounters done [09:29:04]requested_item shift.num is exist - process it [09:29:04]requested_item shift.opened is exist - process it [09:29:04]req_shift_opened [09:29:04]FM_GetShiftState [09:29:04]SAM_PROTO_GetShiftState [09:29:04]wFMCommunicate request_size=4 [09:29:04]MH_SAM_APDU [09:29:04]CAPDU: 80 13 01 00 [09:29:04]Write to MH i2c: E2 08 00 40 1F 80 13 01 00 00 00 00 00 DC [09:29:04]Write i2c OK [09:29:04]MH_I2C_Read... [09:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:04]Read from MH i2c: E2 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: E2 0E 00 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: E2 0E 00 40 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2E [09:29:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:29:04]wFMCommunicate OK [09:29:04]SAM_PROTO_GetShiftState done [09:29:04]FM_GetShiftState done [09:29:04]req_shift_opened done [09:29:04]requested_item shift.open_date is exist - process it [09:29:04]req_shift_open_date [09:29:04]req_shift_open_date done [09:29:04]produce_requested_data done [09:29:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187242,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:29:04]process_action_free close_receipt [09:29:04]json_value_free [09:29:04]json_value_free done [09:29:04]process_json_proto returns [09:29:04]Send response to host [09:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187242,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:29:04]free response buf [09:29:04]execute_script done [09:29:04]execute_script returns [09:29:04]free content buf [09:29:04]Sock 9.Close socket [09:29:04]Sock 9.Thread stoped [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:37]accept exits with 7 [09:30:37]New connection [09:30:37]New thread 3066654052 created [09:30:37]Thread 3066510692 joined [09:30:37]Waiting for new connection... [09:30:37] Sock 7.Parse request [09:30:37]Sock 7.Check first char [09:30:37]Sock 7.First char is OK [09:30:37]request: POST /json_proto HTTP/1.0 [09:30:37]Method: POST [09:30:37]URL: /json_proto [09:30:37]Method is POST - this is cgi request [09:30:37]url: /json_proto [09:30:37]query_string will be loaded in cgi processing [09:30:37]execute_cgi json_proto POST (null) [09:30:37]execute_cgi path=json_proto method=POST [09:30:37]POST find Content-Length [09:30:37]Host: 172.17.46.131:8080 [09:30:37]Content-Length: 677 [09:30:37]Content-Type: application/json [09:30:37] [09:30:37]POST finish read [09:30:37]Found Content-Length = 677 [09:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:30:37]execute_script... [09:30: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)412397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:30:37]POST & json_proto [09:30:37]process_json_proto [09:30:37]json parsed OK: [09:30:37]protocol is kg_v1.0 [09:30:37]action value=close_receipt [09:30:37]process_action close_receipt [09:30:37]cmd_close_receipt [09:30:37]MH_GetDate [09:30:37]Write to MH i2c: F0 00 00 41 1F 4F [09:30:37]Write i2c OK [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: F0 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: F0 09 00 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: F0 09 00 41 1F 00 41 F6 B6 67 7E 41 4F 65 1F [09:30:37]GetLastDocTimeStamp 1740043744 [09:30:37]current date 1740043841 [09:30:37]FM_GetShiftState [09:30:37]SAM_PROTO_GetShiftState [09:30:37]wFMCommunicate request_size=4 [09:30:37]MH_SAM_APDU [09:30:37]CAPDU: 80 13 01 00 [09:30:37]Write to MH i2c: E2 08 00 42 1F 80 13 01 00 00 00 00 00 DE [09:30:37]Write i2c OK [09:30:37]MH_I2C_Read... [09:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:37]Read from MH i2c: E2 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: E2 0E 00 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: E2 0E 00 42 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 30 [09:30:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:30:37]wFMCommunicate OK [09:30:37]SAM_PROTO_GetShiftState done [09:30:37]FM_GetShiftState done [09:30:37]opened in 1740011697 [09:30:37]opened+sec_in_day 1740098097 [09:30:37]quantity*price = 50011 [09:30:37]sum+1 = 50013 [09:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 44 20.02.2025 09:30 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187243 ФПД: 20313260787008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T093041&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187243&fm=20313260787008&tin=02508201610067®Number=0000000000091857&sum=50000 [09:30:38]StoreToDocumentArchive [09:30:38]shift 648 fd 187243 [09:30:38]save to /storage/0648/doc_00187243 [09:30:38]save last doc name /storage/0648/doc_00187243 to /storage/kkm_last_doc_name [09:30:38]save OK [09:30:38]Clear old archive folders... [09:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:38]tlvbuf is 01F3E920 [09:30:38]SAM_PROTO_ClearQueue [09:30:38]wFMCommunicate request_size=4 [09:30:38]MH_SAM_APDU [09:30:38]CAPDU: 80 09 00 00 [09:30:38]Write to MH i2c: E2 08 00 4F 1F 80 09 00 00 00 00 00 00 E0 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:38]Read from MH i2c: E2 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 03 00 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 03 00 4F 1F 00 90 00 E2 [09:30:38]RAPDU: 90 00 [09:30:38]wFMCommunicate OK [09:30:38]SAM_PROTO_ClearQueue done [09:30:38]KKMCreateOFDPacket [09:30:38]OFDProtocolAddRootSTLVToBuf [09:30:38]FM_MakeSignedData [09:30:38]FM_MakeSignedData [09:30:38]SAM_PROTO_SignData [09:30:38]wFMCommunicate request_size=4 [09:30:38]MH_SAM_APDU [09:30:38]CAPDU: 80 0D 01 02 [09:30:38]Write to MH i2c: E2 08 00 50 1F 80 0D 01 02 00 00 00 00 E8 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:38]Read from MH i2c: E2 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 03 00 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 03 00 50 1F 00 90 00 E3 [09:30:38]RAPDU: 90 00 [09:30:38]wFMCommunicate OK [09:30:38]wFMCommunicate request_size=255 [09:30:38]MH_SAM_APDU [09:30: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 41 F6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DB 02 00 35 04 06 00 12 [09:30:38]Write to MH i2c: E2 02 01 51 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 41 F6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DB 02 00 35 04 06 00 12 00 00 E5 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 51 1F 00 90 00 E4 [09:30:39]RAPDU: 90 00 [09:30:39]wFMCommunicate OK [09:30:39]wFMCommunicate request_size=10 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 0D 02 02 05 79 8C B1 85 40 [09:30:39]Write to MH i2c: E2 0D 00 52 1F 80 0D 02 02 05 00 79 8C B1 85 40 00 00 70 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 52 1F 00 90 00 E5 [09:30:39]RAPDU: 90 00 [09:30:39]wFMCommunicate OK [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 0D 03 02 [09:30:39]Write to MH i2c: E2 08 00 53 1F 80 0D 03 02 00 00 00 00 ED [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0B 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0B 00 53 1F 00 9D B8 97 F7 C3 7A 69 DD 90 00 54 [09:30:39]RAPDU: 9D B8 97 F7 C3 7A 69 DD 90 00 [09:30:39]wFMCommunicate OK [09:30:39]SAM_PROTO_SignData done [09:30:39]FM_MakeSignedData done [09:30:39]CreateOFDProtocolMessage [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 11 00 00 [09:30:39]Write to MH i2c: E2 08 00 54 1F 80 11 00 00 00 00 00 00 ED [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 17 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 17 00 54 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [09:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:30:39]wFMCommunicate OK [09:30:39]CreateOFDProtocolMessage done [09:30:39]OFDSenderStorePacket 187243 [09:30:39]StoreOFDPacket docnum=187243 [09:30:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 99 CE 07 01 C9 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 41 F6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DB 02 00 35 04 06 00 12 79 8C B1 85 40 9D B8 97 F7 C3 7A 69 DD [09:30:39]CheckFolder [09:30:39]dirname=/storage/ofd_packets [09:30:39]CheckFolder done [09:30:39]ProducePacketName [09:30:39]name=ofd_packets/00187243 [09:30:39]NVStorageSaveData ofd_packets/00187243 [09:30:39]File name is /storage/ofd_packets/00187243 [09:30:39]Write 301 bytes [09:30:39]NVStorageSaveData done [09:30:39]OFDSenderStorePacket done [09:30:39]KKMCreateOFDPacket done [09:30:39]NVStorageSaveData kkm_last_timestamp [09:30:39]File name is /storage/kkm_last_timestamp [09:30:39]Write 4 bytes [09:30:39]NVStorageSaveData done [09:30:39]ExternCall_PrintAddStr [09:30:39]wPrintStart [09:30:39]Write to MH i2c: 01 00 00 55 1F 74 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: 01 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: 01 07 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: 01 07 00 55 1F 00 00 00 00 00 FF 0F 89 [09:30:39]RasterBufferAndPrint [09:30:39]line Счет N : (1)412397 [09:30:39]line ИНН: 02508201610067 [09:30:39]line Контрольно-Кассовый Чек [09:30:39]line ПРОДАЖА [09:30:39]line ТРК (МРК, ГНК) : 12 [09:30:39]line Товар: 2710124130 [09:30:39]line Аи-92-К-2 [09:30:39]line 7.790 * 64.20 [09:30:39]line = 500.12 [09:30:39]line НДС 12% НСП 1% [09:30:39]line > о реализуемом товаре [09:30:39]line ОКРУГЛЕНИЕ: -0.12 [09:30:39]line ИТОГО: 500.00 [09:30:39]line Внесено: 500.00 [09:30:39]line СДАЧА: 0.00 [09:30:39]line НСП 1% : 4.43 [09:30:39]line НДС 12% : 53.11 [09:30:39]line Наличными: 500.00 [09:30:39]line Безнал.: 0.00 [09:30:39]line Место: АЗС № 92 "Партнер Нефть" [09:30:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:30:39]line СНО: Общий режим [09:30:39]line Чек 44 20.02.2025 09:30 [09:30:39]line Смена: 648 ФФД: 1.0 [09:30:39]line ЗНМ: 0300000118 [09:30:39]line РНМ: 0000000000091857 [09:30:39]line Версия ККМ: 001 [09:30:39]line ФМ: 0000000000871826 [09:30:39]line ФД: 187243 [09:30:39]line ФПД: 20313260787008 [09:30:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T093041&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187243&fm=20313260787008&tin=02508201610067®Number=0000000000091857&sum=50000 [09:30:39]written 0, free lines is 4095 [09:30:39]OFD Sender: Processing packet 187243 [packets to send 49, broken 48] [09:30:39]ProducePacketName [09:30:39]name=ofd_packets/00187243 [09:30:39]OFD Sender: To server: pG, [09:30:39]CommunicateWithHost lk.salyk.kg:30040 [09:30:39]ConnectInit lk.salyk.kg [09:30:39]Connected sock=10 [09:30:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 99 CE 07 01 C9 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 41 F6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DB 02 00 35 04 06 00 12 79 8C B1 85 40 9D B8 97 F7 C3 7A 69 DD [09:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FB F3 47 00 21 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 31 38 32 36 10 04 04 00 6B DB 02 00 F4 03 04 00 92 9C B6 67 B6 04 01 00 00 06 8F 11 99 26 95 C3 16 [09:30:40]CommunicateWithHost err = 0 [09:30:40]CheckOFDResponse [09:30:40]1017 (14) - 77093643461234 [09:30:40]1041 (16) - 0000000000871826 [09:30:40]1040 (4) - 187243 [09:30:40]1012 (4) - 20.02.2025 03:08 [09:30:40]1206 (1) - 0 [09:30:40]OFD Sender: Remove packet 187243 [09:30:40]ProducePacketName [09:30:40]name=ofd_packets/00187243 [09:30:40]NVStorageDeleteData [09:30:40]Write to MH i2c: 01 00 00 80 1F 9F [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 FD 0C AF [09:30:40]RasterBufferAndPrint [09:30:40]line [09:30:40]line [09:30:40]line [09:30:40]line [09:30:40]line [09:30:40]written 0, free lines is 3332 [09:30:40]MH_Cut [09:30:40]Write to MH i2c: D1 01 00 87 1F 01 78 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: D1 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: D1 01 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: D1 01 00 87 1F 00 77 [09:30:40]Write to MH i2c: 01 00 00 88 1F A7 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]OFD Sender: No OFD packet to send [09:30:40]*** Cut start [09:30:40]*** Partial cut [09:30:40]*** CUTSNS_PIN = 1 [09:30:40]*** CUTSNS_PIN = 0 [09:30:41]*** Brake cut motor [09:30:41]Read from MH i2c: 01 [09:30:41]MH_I2C_Read... [09:30:41]*** Stop cut motor [09:30:41]*** Cut end [09:30:41]Read from MH i2c: 01 07 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 88 1F 00 00 00 00 00 FF 0F BC [09:30:41]process_action close_receipt done [09:30:41]requested_data is exist [09:30:41]produce_requested_data [09:30:41]requested_item fm.sn is exist - process it [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 11 00 00 [09:30:41]Write to MH i2c: E2 08 00 89 1F 80 11 00 00 00 00 00 00 22 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 17 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 17 00 89 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 75 [09:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:30:41]wFMCommunicate OK [09:30:41]requested_item fd.num is exist - process it [09:30:41]SAM_PROTO_GetFieldsCounters [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 13 00 00 [09:30:41]Write to MH i2c: E2 08 00 8A 1F 80 13 00 00 00 00 00 00 25 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 62 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 62 00 8A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6B DB 02 00 0E 04 04 00 88 02 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 A1 [09:30:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6B DB 02 00 0E 04 04 00 88 02 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 [09:30:41]wFMCommunicate OK [09:30:41]SAM_PROTO_GetFieldsCounters done [09:30:41]requested_item shift.num is exist - process it [09:30:41]requested_item shift.opened is exist - process it [09:30:41]req_shift_opened [09:30:41]FM_GetShiftState [09:30:41]SAM_PROTO_GetShiftState [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 13 01 00 [09:30:41]Write to MH i2c: E2 08 00 8B 1F 80 13 01 00 00 00 00 00 27 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 0E 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 0E 00 8B 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 79 [09:30:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:30:41]wFMCommunicate OK [09:30:41]SAM_PROTO_GetShiftState done [09:30:41]FM_GetShiftState done [09:30:41]req_shift_opened done [09:30:41]requested_item shift.open_date is exist - process it [09:30:41]req_shift_open_date [09:30:41]req_shift_open_date done [09:30:41]produce_requested_data done [09:30:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187243,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:30:41]process_action_free close_receipt [09:30:41]json_value_free [09:30:41]json_value_free done [09:30:41]process_json_proto returns [09:30:41]Send response to host [09:30:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187243,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:30:41]free response buf [09:30:41]execute_script done [09:30:41]execute_script returns [09:30:41]free content buf [09:30:41]Sock 7.Close socket [09:30:41]Sock 7.Thread stoped [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:24]accept exits with 9 [09:31:24]New connection [09:31:24]New thread 3066510692 created [09:31:24]Thread 3066654052 joined [09:31:24]Waiting for new connection... [09:31:24] Sock 9.Parse request [09:31:24]Sock 9.Check first char [09:31:24]Sock 9.First char is OK [09:31:24]request: POST /json_proto HTTP/1.0 [09:31:24]Method: POST [09:31:24]URL: /json_proto [09:31:24]Method is POST - this is cgi request [09:31:24]url: /json_proto [09:31:24]query_string will be loaded in cgi processing [09:31:24]execute_cgi json_proto POST (null) [09:31:24]execute_cgi path=json_proto method=POST [09:31:24]POST find Content-Length [09:31:24]Host: 172.17.46.131:8080 [09:31:24]Content-Length: 682 [09:31:24]Content-Type: application/json [09:31:24] [09:31:24]POST finish read [09:31:24]Found Content-Length = 682 [09:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:24]execute_script... [09:31: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)412398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:24]POST & json_proto [09:31:24]process_json_proto [09:31:24]json parsed OK: [09:31:24]protocol is kg_v1.0 [09:31:24]action value=close_receipt [09:31:24]process_action close_receipt [09:31:24]cmd_close_receipt [09:31:24]MH_GetDate [09:31:24]Write to MH i2c: F0 00 00 8C 1F 9A [09:31:24]Write i2c OK [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: F0 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: F0 09 00 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: F0 09 00 8C 1F 00 70 F6 B6 67 7E 41 4F 65 99 [09:31:24]GetLastDocTimeStamp 1740043841 [09:31:24]current date 1740043888 [09:31:24]FM_GetShiftState [09:31:24]SAM_PROTO_GetShiftState [09:31:24]wFMCommunicate request_size=4 [09:31:24]MH_SAM_APDU [09:31:24]CAPDU: 80 13 01 00 [09:31:24]Write to MH i2c: E2 08 00 8D 1F 80 13 01 00 00 00 00 00 29 [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 8D 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7B [09:31:25]RAPDU: 09 00 01 B1 78 B6 67 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]opened in 1740011697 [09:31:25]opened+sec_in_day 1740098097 [09:31:25]quantity*price = 100023 [09:31:25]sum+1 = 100025 [09:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 45 20.02.2025 09:31 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187244 ФПД: 61216374953362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T093128&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187244&fm=61216374953362&tin=02508201610067®Number=0000000000091857&sum=100000 [09:31:26]StoreToDocumentArchive [09:31:26]shift 648 fd 187244 [09:31:26]save to /storage/0648/doc_00187244 [09:31:26]save last doc name /storage/0648/doc_00187244 to /storage/kkm_last_doc_name [09:31:26]save OK [09:31:26]Clear old archive folders... [09:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:26]tlvbuf is B6E5F950 [09:31:26]SAM_PROTO_ClearQueue [09:31:26]wFMCommunicate request_size=4 [09:31:26]MH_SAM_APDU [09:31:26]CAPDU: 80 09 00 00 [09:31:26]Write to MH i2c: E2 08 00 9A 1F 80 09 00 00 00 00 00 00 2B [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:26]Read from MH i2c: E2 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 03 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 03 00 9A 1F 00 90 00 2D [09:31:26]RAPDU: 90 00 [09:31:26]wFMCommunicate OK [09:31:26]SAM_PROTO_ClearQueue done [09:31:26]KKMCreateOFDPacket [09:31:26]OFDProtocolAddRootSTLVToBuf [09:31:26]FM_MakeSignedData [09:31:26]FM_MakeSignedData [09:31:26]SAM_PROTO_SignData [09:31:26]wFMCommunicate request_size=4 [09:31:26]MH_SAM_APDU [09:31:26]CAPDU: 80 0D 01 02 [09:31:26]Write to MH i2c: E2 08 00 9B 1F 80 0D 01 02 00 00 00 00 33 [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:26]Read from MH i2c: E2 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 03 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 03 00 9B 1F 00 90 00 2E [09:31:26]RAPDU: 90 00 [09:31:26]wFMCommunicate OK [09:31:26]wFMCommunicate request_size=255 [09:31:26]MH_SAM_APDU [09:31: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 70 F6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DB 02 00 35 04 06 00 37 [09:31:26]Write to MH i2c: E2 02 01 9C 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 70 F6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DB 02 00 35 04 06 00 37 00 00 EA [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:26]Read from MH i2c: E2 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 03 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [09:31:26]RAPDU: 90 00 [09:31:26]wFMCommunicate OK [09:31:26]wFMCommunicate request_size=10 [09:31:26]MH_SAM_APDU [09:31:26]CAPDU: 80 0D 02 02 05 AD 0C 48 95 92 [09:31:26]Write to MH i2c: E2 0D 00 9D 1F 80 0D 02 02 05 00 AD 0C 48 95 92 00 00 68 [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:26]Read from MH i2c: E2 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 03 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [09:31:26]RAPDU: 90 00 [09:31:26]wFMCommunicate OK [09:31:26]wFMCommunicate request_size=4 [09:31:26]MH_SAM_APDU [09:31:26]CAPDU: 80 0D 03 02 [09:31:26]Write to MH i2c: E2 08 00 9E 1F 80 0D 03 02 00 00 00 00 38 [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:26]Read from MH i2c: E2 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 0B 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 0B 00 9E 1F 00 32 A7 4F 3C 67 24 39 29 90 00 8A [09:31:26]RAPDU: 32 A7 4F 3C 67 24 39 29 90 00 [09:31:26]wFMCommunicate OK [09:31:26]SAM_PROTO_SignData done [09:31:26]FM_MakeSignedData done [09:31:26]CreateOFDProtocolMessage [09:31:26]wFMCommunicate request_size=4 [09:31:26]MH_SAM_APDU [09:31:26]CAPDU: 80 11 00 00 [09:31:26]Write to MH i2c: E2 08 00 9F 1F 80 11 00 00 00 00 00 00 38 [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:26]Read from MH i2c: E2 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 17 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: E2 17 00 9F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [09:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:31:26]wFMCommunicate OK [09:31:26]CreateOFDProtocolMessage done [09:31:26]OFDSenderStorePacket 187244 [09:31:26]StoreOFDPacket docnum=187244 [09:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 11 07 01 24 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 70 F6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DB 02 00 35 04 06 00 37 AD 0C 48 95 92 32 A7 4F 3C 67 24 39 29 [09:31:26]CheckFolder [09:31:26]dirname=/storage/ofd_packets [09:31:26]CheckFolder done [09:31:26]ProducePacketName [09:31:26]name=ofd_packets/00187244 [09:31:26]NVStorageSaveData ofd_packets/00187244 [09:31:26]File name is /storage/ofd_packets/00187244 [09:31:26]Write 301 bytes [09:31:26]NVStorageSaveData done [09:31:26]OFDSenderStorePacket done [09:31:26]KKMCreateOFDPacket done [09:31:26]NVStorageSaveData kkm_last_timestamp [09:31:26]File name is /storage/kkm_last_timestamp [09:31:26]Write 4 bytes [09:31:26]OFD Sender: Processing packet 187244 [packets to send 49, broken 48] [09:31:26]ProducePacketName [09:31:26]name=ofd_packets/00187244 [09:31:26]OFD Sender: To server: pG, [09:31:26]CommunicateWithHost lk.salyk.kg:30040 [09:31:26]ConnectInit lk.salyk.kg [09:31:26]NVStorageSaveData done [09:31:26]ExternCall_PrintAddStr [09:31:26]wPrintStart [09:31:26]Write to MH i2c: 01 00 00 A0 1F BF [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: 01 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: 01 07 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: 01 07 00 A0 1F 00 00 00 00 00 FF 0F D4 [09:31:26]RasterBufferAndPrint [09:31:26]line Счет N : (1)412398 [09:31:26]line ИНН: 02508201610067 [09:31:26]line Контрольно-Кассовый Чек [09:31:26]line ПРОДАЖА [09:31:26]line ТРК (МРК, ГНК) : 42 [09:31:26]line Товар: 2710124130 [09:31:26]line Аи-92-К-2 [09:31:26]line 15.580 * 64.20 [09:31:26]line = 1000.24 [09:31:26]line НДС 12% НСП 1% [09:31:26]line > о реализуемом товаре [09:31:26]line ОКРУГЛЕНИЕ: -0.24 [09:31:26]line ИТОГО: 1000.00 [09:31:26]line Внесено: 1000.00 [09:31:26]line СДАЧА: 0.00 [09:31:26]line НСП 1% : 8.85 [09:31:26]line НДС 12% : 106.22 [09:31:26]line Наличными: 1000.00 [09:31:26]line Безнал.: 0.00 [09:31:26]line Место: АЗС № 92 "Партнер Нефть" [09:31:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:31:26]line СНО: Общий режим [09:31:26]line Чек 45 20.02.2025 09:31 [09:31:26]line Смена: 648 ФФД: 1.0 [09:31:26]line ЗНМ: 0300000118 [09:31:26]line РНМ: 0000000000091857 [09:31:26]line Версия ККМ: 001 [09:31:26]line ФМ: 0000000000871826 [09:31:26]line ФД: 187244 [09:31:26]line ФПД: 61216374953362 [09:31:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T093128&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187244&fm=61216374953362&tin=02508201610067®Number=0000000000091857&sum=100000 [09:31:27]Connected sock=11 [09:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 11 07 01 24 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 70 F6 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DB 02 00 35 04 06 00 37 AD 0C 48 95 92 32 A7 4F 3C 67 24 39 29 [09:31:27]written 0, free lines is 4095 [09:31:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E7 51 47 00 ED 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DB 02 00 F4 03 04 00 C2 9C B6 67 B6 04 01 00 00 5E 88 D0 27 DA D1 F7 2E [09:31:27]CommunicateWithHost err = 0 [09:31:27]CheckOFDResponse [09:31:27]1017 (14) - 77093643461234 [09:31:27]1041 (16) - 0000000000871826 [09:31:27]1040 (4) - 187244 [09:31:27]1012 (4) - 20.02.2025 03:08 [09:31:27]1206 (1) - 0 [09:31:27]OFD Sender: Remove packet 187244 [09:31:27]ProducePacketName [09:31:27]name=ofd_packets/00187244 [09:31:27]NVStorageDeleteData [09:31:27]Write to MH i2c: 01 00 00 CB 1F EA [09:31:27]Write i2c OK [09:31:27]MH_I2C_Read... [09:31:27]Read from MH i2c: 01 [09:31:27]MH_I2C_Read... [09:31:27]Read from MH i2c: 01 07 00 [09:31:27]MH_I2C_Read... [09:31:27]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 F2 0C EF [09:31:27]RasterBufferAndPrint [09:31:27]line [09:31:27]line [09:31:27]line [09:31:27]line [09:31:27]line [09:31:27]written 0, free lines is 3320 [09:31:27]MH_Cut [09:31:27]Write to MH i2c: D1 01 00 D2 1F 01 C3 [09:31:27]Write i2c OK [09:31:27]MH_I2C_Read... [09:31:27]Read from MH i2c: D1 [09:31:27]MH_I2C_Read... [09:31:27]Read from MH i2c: D1 01 00 [09:31:27]MH_I2C_Read... [09:31:27]Read from MH i2c: D1 01 00 D2 1F 00 C2 [09:31:27]Write to MH i2c: 01 00 00 D3 1F F2 [09:31:27]Write i2c OK [09:31:27]MH_I2C_Read... [09:31:27]OFD Sender: No OFD packet to send [09:31:28]*** Cut start [09:31:28]*** Partial cut [09:31:28]*** CUTSNS_PIN = 1 [09:31:28]*** CUTSNS_PIN = 0 [09:31:28]*** Brake cut motor [09:31:28]Read from MH i2c: 01 [09:31:28]MH_I2C_Read... [09:31:28]*** Stop cut motor [09:31:28]*** Cut end [09:31:28]Read from MH i2c: 01 07 00 [09:31:28]MH_I2C_Read... [09:31:28]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 FF 0F 07 [09:31:28]process_action close_receipt done [09:31:28]requested_data is exist [09:31:28]produce_requested_data [09:31:28]requested_item fm.sn is exist - process it [09:31:28]wFMCommunicate request_size=4 [09:31:28]MH_SAM_APDU [09:31:28]CAPDU: 80 11 00 00 [09:31:28]Write to MH i2c: E2 08 00 D4 1F 80 11 00 00 00 00 00 00 6D [09:31:28]Write i2c OK [09:31:28]MH_I2C_Read... [09:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:28]Read from MH i2c: E2 [09:31:28]MH_I2C_Read... [09:31:28]Read from MH i2c: E2 17 00 [09:31:28]MH_I2C_Read... [09:31:28]Read from MH i2c: E2 17 00 D4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [09:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:31:28]wFMCommunicate OK [09:31:28]requested_item fd.num is exist - process it [09:31:28]SAM_PROTO_GetFieldsCounters [09:31:28]wFMCommunicate request_size=4 [09:31:28]MH_SAM_APDU [09:31:28]CAPDU: 80 13 00 00 [09:31:28]Write to MH i2c: E2 08 00 D5 1F 80 13 00 00 00 00 00 00 70 [09:31:28]Write i2c OK [09:31:28]MH_I2C_Read... [09:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:29]Read from MH i2c: E2 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 62 00 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 62 00 D5 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6C DB 02 00 0E 04 04 00 88 02 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 F0 [09:31:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6C DB 02 00 0E 04 04 00 88 02 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:31:29]wFMCommunicate OK [09:31:29]SAM_PROTO_GetFieldsCounters done [09:31:29]requested_item shift.num is exist - process it [09:31:29]requested_item shift.opened is exist - process it [09:31:29]req_shift_opened [09:31:29]FM_GetShiftState [09:31:29]SAM_PROTO_GetShiftState [09:31:29]wFMCommunicate request_size=4 [09:31:29]MH_SAM_APDU [09:31:29]CAPDU: 80 13 01 00 [09:31:29]Write to MH i2c: E2 08 00 D6 1F 80 13 01 00 00 00 00 00 72 [09:31:29]Write i2c OK [09:31:29]MH_I2C_Read... [09:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:29]Read from MH i2c: E2 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 0E 00 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 0E 00 D6 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C4 [09:31:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:31:29]wFMCommunicate OK [09:31:29]SAM_PROTO_GetShiftState done [09:31:29]FM_GetShiftState done [09:31:29]req_shift_opened done [09:31:29]requested_item shift.open_date is exist - process it [09:31:29]req_shift_open_date [09:31:29]req_shift_open_date done [09:31:29]produce_requested_data done [09:31:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187244,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:31:29]process_action_free close_receipt [09:31:29]json_value_free [09:31:29]json_value_free done [09:31:29]process_json_proto returns [09:31:29]Send response to host [09:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187244,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:31:29]free response buf [09:31:29]execute_script done [09:31:29]execute_script returns [09:31:29]free content buf [09:31:29]Sock 9.Close socket [09:31:29]Sock 9.Thread stoped [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]accept exits with 7 [09:33:52]New connection [09:33:52]New thread 3066654052 created [09:33:52]Thread 3066510692 joined [09:33:52]Waiting for new connection... [09:33:52] Sock 7.Parse request [09:33:52]Sock 7.Check first char [09:33:52]Sock 7.First char is OK [09:33:52]request: POST /json_proto HTTP/1.0 [09:33:52]Method: POST [09:33:52]URL: /json_proto [09:33:52]Method is POST - this is cgi request [09:33:52]url: /json_proto [09:33:52]query_string will be loaded in cgi processing [09:33:52]execute_cgi json_proto POST (null) [09:33:52]execute_cgi path=json_proto method=POST [09:33:52]POST find Content-Length [09:33:52]Host: 172.17.46.131:8080 [09:33:52]Content-Length: 750 [09:33:52]Content-Type: application/json [09:33:52] [09:33:52]POST finish read [09:33:52]Found Content-Length = 750 [09:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 55.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30113973", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:52]execute_script... [09:33: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)412396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 55.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30113973", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:52]POST & json_proto [09:33:52]process_json_proto [09:33:52]json parsed OK: [09:33:52]protocol is kg_v1.0 [09:33:52]action value=close_receipt [09:33:52]process_action close_receipt [09:33:52]cmd_close_receipt [09:33:52]MH_GetDate [09:33:52]Write to MH i2c: F0 00 00 D7 1F E5 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 09 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 09 00 D7 1F 00 04 F7 B6 67 7E 41 4F 65 79 [09:33:52]GetLastDocTimeStamp 1740043888 [09:33:52]current date 1740044036 [09:33:52]FM_GetShiftState [09:33:52]SAM_PROTO_GetShiftState [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 13 01 00 [09:33:52]Write to MH i2c: E2 08 00 D8 1F 80 13 01 00 00 00 00 00 74 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 D8 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C6 [09:33:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_GetShiftState done [09:33:52]FM_GetShiftState done [09:33:52]opened in 1740011697 [09:33:52]opened+sec_in_day 1740098097 [09:33:52]quantity*price = 0 [09:33:52]sum+1 = 1 [09:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 46 20.02.2025 09:33 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30113973 ФМ: 0000000000871826 ФД: 187245 ФПД: 141030820377174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T093356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187245&fm=141030820377174&tin=02508201610067®Number=0000000000091857&sum=0 [09:33:53]StoreToDocumentArchive [09:33:53]shift 648 fd 187245 [09:33:53]save to /storage/0648/doc_00187245 [09:33:53]save last doc name /storage/0648/doc_00187245 to /storage/kkm_last_doc_name [09:33:53]save OK [09:33:53]Clear old archive folders... [09:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:53]tlvbuf is 01F3DF90 [09:33:53]SAM_PROTO_ClearQueue [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 09 00 00 [09:33:53]Write to MH i2c: E2 08 00 E5 1F 80 09 00 00 00 00 00 00 76 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 E5 1F 00 90 00 78 [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]SAM_PROTO_ClearQueue done [09:33:54]KKMCreateOFDPacket [09:33:54]OFDProtocolAddRootSTLVToBuf [09:33:54]FM_MakeSignedData [09:33:54]FM_MakeSignedData [09:33:54]SAM_PROTO_SignData [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 01 02 [09:33:54]Write to MH i2c: E2 08 00 E6 1F 80 0D 01 02 00 00 00 00 7E [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 E6 1F 00 90 00 79 [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=255 [09:33:54]MH_SAM_APDU [09:33: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 D8 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 04 F7 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DB 02 00 35 04 06 00 80 44 4B F3 [09:33:54]Write to MH i2c: E2 02 01 E7 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 D8 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 04 F7 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DB 02 00 35 04 06 00 80 44 4B F3 00 00 AA [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 E7 1F 00 90 00 7A [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=7 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 02 02 02 72 56 [09:33:54]Write to MH i2c: E2 0A 00 E8 1F 80 0D 02 02 02 00 72 56 00 00 4D [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 E8 1F 00 90 00 7B [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 03 02 [09:33:54]Write to MH i2c: E2 08 00 E9 1F 80 0D 03 02 00 00 00 00 83 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 0B 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 0B 00 E9 1F 00 6E 15 71 21 61 C8 0A FC 90 00 C8 [09:33:54]RAPDU: 6E 15 71 21 61 C8 0A FC 90 00 [09:33:54]wFMCommunicate OK [09:33:54]SAM_PROTO_SignData done [09:33:54]FM_MakeSignedData done [09:33:54]CreateOFDProtocolMessage [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 11 00 00 [09:33:54]Write to MH i2c: E2 08 00 EA 1F 80 11 00 00 00 00 00 00 83 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 17 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 17 00 EA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [09:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:33:54]wFMCommunicate OK [09:33:54]CreateOFDProtocolMessage done [09:33:54]OFDSenderStorePacket 187245 [09:33:54]StoreOFDPacket docnum=187245 [09:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 76 6F 04 01 DD 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 D8 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 04 F7 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DB 02 00 35 04 06 00 80 44 4B F3 72 56 6E 15 71 21 61 C8 0A FC [09:33:54]CheckFolder [09:33:54]dirname=/storage/ofd_packets [09:33:54]CheckFolder done [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00187245 [09:33:54]NVStorageSaveData ofd_packets/00187245 [09:33:54]File name is /storage/ofd_packets/00187245 [09:33:54]Write 298 bytes [09:33:54]NVStorageSaveData done [09:33:54]OFDSenderStorePacket done [09:33:54]KKMCreateOFDPacket done [09:33:54]NVStorageSaveData kkm_last_timestamp [09:33:54]File name is /storage/kkm_last_timestamp [09:33:54]Write 4 bytes [09:33:54]NVStorageSaveData done [09:33:54]ExternCall_PrintAddStr [09:33:54]wPrintStart [09:33:54]Write to MH i2c: 01 00 00 EB 1F 0A [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 EB 1F 00 00 00 00 00 FF 0F 1F [09:33:54]RasterBufferAndPrint [09:33:54]line Счет N : (1)412396 [09:33:54]line ИНН: 02508201610067 [09:33:54]line Контрольно-Кассовый Чек [09:33:54]line ПРОДАЖА [09:33:54]line ТРК (МРК, ГНК) : 6 [09:33:54]line Товар: 2710194210 [09:33:54]line ДТ-К-5 [09:33:54]line 55.000 * 0.00 [09:33:54]line = 0.00 [09:33:54]line НДС 12% НСП 1% [09:33:54]line > о реализуемом товаре [09:33:54]line ИТОГО: 0.00 [09:33:54]line НСП 1% : 0.00 [09:33:54]line НДС 12% : 0.00 [09:33:54]line Наличными: 0.00 [09:33:54]line Безнал.: 0.00 [09:33:54]line Место: АЗС № 92 "Партнер Нефть" [09:33:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:33:54]line СНО: Общий режим [09:33:54]line Чек 46 20.02.2025 09:33 [09:33:54]line Смена: 648 ФФД: 1.0 [09:33:54]line ЗНМ: 0300000118 [09:33:54]line РНМ: 0000000000091857 [09:33:54]line Версия ККМ: 001 [09:33:54]line Талоны: ТК ГПНА Online [09:33:54]line 30113973 [09:33:54]line ФМ: 0000000000871826 [09:33:54]line ФД: 187245 [09:33:54]line ФПД: 141030820377174 [09:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T093356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187245&fm=141030820377174&tin=02508201610067®Number=0000000000091857&sum=0 [09:33:54]OFD Sender: Processing packet 187245 [packets to send 49, broken 48] [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00187245 [09:33:54]OFD Sender: To server: pG, [09:33:54]CommunicateWithHost lk.salyk.kg:30040 [09:33:54]ConnectInit lk.salyk.kg [09:33:54]written 0, free lines is 4095 [09:33:54]Connected sock=10 [09:33:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 76 6F 04 01 DD 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 D8 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 04 F7 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DB 02 00 35 04 06 00 80 44 4B F3 72 56 6E 15 71 21 61 C8 0A FC [09:33:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9C 0B 47 00 5A C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DB 02 00 F4 03 04 00 56 9D B6 67 B6 04 01 00 00 1F BA 75 A6 B3 9E B0 0D [09:33:55]CommunicateWithHost err = 0 [09:33:55]CheckOFDResponse [09:33:55]1017 (14) - 77093643461234 [09:33:55]1041 (16) - 0000000000871826 [09:33:55]1040 (4) - 187245 [09:33:55]1012 (4) - 20.02.2025 03:11 [09:33:55]1206 (1) - 0 [09:33:55]OFD Sender: Remove packet 187245 [09:33:55]ProducePacketName [09:33:55]name=ofd_packets/00187245 [09:33:55]NVStorageDeleteData [09:33:55]Write to MH i2c: 01 00 00 15 20 35 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 15 20 00 00 00 00 00 00 0D 49 [09:33:55]RasterBufferAndPrint [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]written 0, free lines is 3334 [09:33:55]MH_Cut [09:33:55]Write to MH i2c: D1 01 00 1C 20 01 0E [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: D1 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: D1 01 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: D1 01 00 1C 20 00 0D [09:33:55]Write to MH i2c: 01 00 00 1D 20 3D [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]OFD Sender: No OFD packet to send [09:33:55]*** Cut start [09:33:55]*** Partial cut [09:33:55]*** CUTSNS_PIN = 1 [09:33:56]*** CUTSNS_PIN = 0 [09:33:56]*** Brake cut motor [09:33:56]Read from MH i2c: 01 [09:33:56]MH_I2C_Read... [09:33:56]*** Stop cut motor [09:33:56]*** Cut end [09:33:56]Read from MH i2c: 01 07 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: 01 07 00 1D 20 00 00 00 00 00 FF 0F 52 [09:33:56]process_action close_receipt done [09:33:56]requested_data is exist [09:33:56]produce_requested_data [09:33:56]requested_item fm.sn is exist - process it [09:33:56]wFMCommunicate request_size=4 [09:33:56]MH_SAM_APDU [09:33:56]CAPDU: 80 11 00 00 [09:33:56]Write to MH i2c: E2 08 00 1E 20 80 11 00 00 00 00 00 00 B8 [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 17 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 17 00 1E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [09:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:33:56]wFMCommunicate OK [09:33:56]requested_item fd.num is exist - process it [09:33:56]SAM_PROTO_GetFieldsCounters [09:33:56]wFMCommunicate request_size=4 [09:33:56]MH_SAM_APDU [09:33:56]CAPDU: 80 13 00 00 [09:33:56]Write to MH i2c: E2 08 00 1F 20 80 13 00 00 00 00 00 00 BB [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 62 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 62 00 1F 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6D DB 02 00 0E 04 04 00 88 02 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 3F [09:33:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6D DB 02 00 0E 04 04 00 88 02 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:33:56]wFMCommunicate OK [09:33:56]SAM_PROTO_GetFieldsCounters done [09:33:56]requested_item shift.num is exist - process it [09:33:56]requested_item shift.opened is exist - process it [09:33:56]req_shift_opened [09:33:56]FM_GetShiftState [09:33:56]SAM_PROTO_GetShiftState [09:33:56]wFMCommunicate request_size=4 [09:33:56]MH_SAM_APDU [09:33:56]CAPDU: 80 13 01 00 [09:33:56]Write to MH i2c: E2 08 00 20 20 80 13 01 00 00 00 00 00 BD [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 0E 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 0E 00 20 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0F [09:33:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:33:56]wFMCommunicate OK [09:33:56]SAM_PROTO_GetShiftState done [09:33:56]FM_GetShiftState done [09:33:56]req_shift_opened done [09:33:56]requested_item shift.open_date is exist - process it [09:33:56]req_shift_open_date [09:33:56]req_shift_open_date done [09:33:56]produce_requested_data done [09:33:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187245,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:33:56]process_action_free close_receipt [09:33:56]json_value_free [09:33:56]json_value_free done [09:33:56]process_json_proto returns [09:33:56]Send response to host [09:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187245,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:33:56]free response buf [09:33:56]execute_script done [09:33:56]execute_script returns [09:33:56]free content buf [09:33:56]Sock 7.Close socket [09:33:56]Sock 7.Thread stoped [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:12]accept exits with 9 [09:41:12]New connection [09:41:12]New thread 3066510692 created [09:41:12]Thread 3066654052 joined [09:41:12]Waiting for new connection... [09:41:12] Sock 9.Parse request [09:41:12]Sock 9.Check first char [09:41:12]Sock 9.First char is OK [09:41:12]request: POST /json_proto HTTP/1.0 [09:41:12]Method: POST [09:41:12]URL: /json_proto [09:41:12]Method is POST - this is cgi request [09:41:12]url: /json_proto [09:41:12]query_string will be loaded in cgi processing [09:41:12]execute_cgi json_proto POST (null) [09:41:12]execute_cgi path=json_proto method=POST [09:41:12]POST find Content-Length [09:41:12]Host: 172.17.46.131:8080 [09:41:12]Content-Length: 799 [09:41:12]Content-Type: application/json [09:41:12] [09:41:12]POST finish read [09:41:12]Found Content-Length = 799 [09:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:12]execute_script... [09:41:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:12]POST & json_proto [09:41:12]process_json_proto [09:41:12]json parsed OK: [09:41:12]protocol is kg_v1.0 [09:41:12]action value=close_receipt [09:41:12]process_action close_receipt [09:41:12]cmd_close_receipt [09:41:12]MH_GetDate [09:41:12]Write to MH i2c: F0 00 00 21 20 30 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: F0 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: F0 09 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: F0 09 00 21 20 00 BC F8 B6 67 7E 41 4F 65 7D [09:41:12]GetLastDocTimeStamp 1740044036 [09:41:12]current date 1740044476 [09:41:12]FM_GetShiftState [09:41:12]SAM_PROTO_GetShiftState [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 13 01 00 [09:41:12]Write to MH i2c: E2 08 00 22 20 80 13 01 00 00 00 00 00 BF [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 0E 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 0E 00 22 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 11 [09:41:12]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:41:12]wFMCommunicate OK [09:41:12]SAM_PROTO_GetShiftState done [09:41:12]FM_GetShiftState done [09:41:12]opened in 1740011697 [09:41:12]opened+sec_in_day 1740098097 [09:41:12]quantity*price = 150064 [09:41:12]sum+1 = 150065 [09:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 47 20.02.2025 09:41 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187246 ФПД: 61692089999652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187246&fm=61692089999652&tin=02508201610067®Number=0000000000091857&sum=150064 [09:41:13]StoreToDocumentArchive [09:41:13]shift 648 fd 187246 [09:41:13]save to /storage/0648/doc_00187246 [09:41:13]save last doc name /storage/0648/doc_00187246 to /storage/kkm_last_doc_name [09:41:13]save OK [09:41:13]Clear old archive folders... [09:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:41:13]tlvbuf is B6D5F300 [09:41:13]SAM_PROTO_ClearQueue [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 09 00 00 [09:41:13]Write to MH i2c: E2 08 00 2F 20 80 09 00 00 00 00 00 00 C1 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 2F 20 00 90 00 C3 [09:41:13]RAPDU: 90 00 [09:41:13]wFMCommunicate OK [09:41:13]SAM_PROTO_ClearQueue done [09:41:13]KKMCreateOFDPacket [09:41:13]OFDProtocolAddRootSTLVToBuf [09:41:13]FM_MakeSignedData [09:41:13]FM_MakeSignedData [09:41:13]SAM_PROTO_SignData [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 0D 01 02 [09:41:13]Write to MH i2c: E2 08 00 30 20 80 0D 01 02 00 00 00 00 C9 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 30 20 00 90 00 C4 [09:41:13]RAPDU: 90 00 [09:41:13]wFMCommunicate OK [09:41:13]wFMCommunicate request_size=255 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BC F8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DB 02 00 35 04 06 00 38 1B CF 1C [09:41:13]Write to MH i2c: E2 02 01 31 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BC F8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DB 02 00 35 04 06 00 38 1B CF 1C 00 00 EB [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 03 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 03 00 31 20 00 90 00 C5 [09:41:14]RAPDU: 90 00 [09:41:14]wFMCommunicate OK [09:41:14]wFMCommunicate request_size=7 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 0D 02 02 02 21 24 [09:41:14]Write to MH i2c: E2 0A 00 32 20 80 0D 02 02 02 00 21 24 00 00 15 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 03 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 03 00 32 20 00 90 00 C6 [09:41:14]RAPDU: 90 00 [09:41:14]wFMCommunicate OK [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 0D 03 02 [09:41:14]Write to MH i2c: E2 08 00 33 20 80 0D 03 02 00 00 00 00 CE [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0B 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0B 00 33 20 00 09 93 0F 15 D6 70 31 F6 90 00 FC [09:41:14]RAPDU: 09 93 0F 15 D6 70 31 F6 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_SignData done [09:41:14]FM_MakeSignedData done [09:41:14]CreateOFDProtocolMessage [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 11 00 00 [09:41:14]Write to MH i2c: E2 08 00 34 20 80 11 00 00 00 00 00 00 CE [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 17 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 17 00 34 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [09:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:41:14]wFMCommunicate OK [09:41:14]CreateOFDProtocolMessage done [09:41:14]OFDSenderStorePacket 187246 [09:41:14]StoreOFDPacket docnum=187246 [09:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 89 3A 04 01 FF 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BC F8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DB 02 00 35 04 06 00 38 1B CF 1C 21 24 09 93 0F 15 D6 70 31 F6 [09:41:14]CheckFolder [09:41:14]dirname=/storage/ofd_packets [09:41:14]CheckFolder done [09:41:14]ProducePacketName [09:41:14]name=ofd_packets/00187246 [09:41:14]NVStorageSaveData ofd_packets/00187246 [09:41:14]File name is /storage/ofd_packets/00187246 [09:41:14]Write 298 bytes [09:41:14]NVStorageSaveData done [09:41:14]OFDSenderStorePacket done [09:41:14]KKMCreateOFDPacket done [09:41:14]NVStorageSaveData kkm_last_timestamp [09:41:14]File name is /storage/kkm_last_timestamp [09:41:14]Write 4 bytes [09:41:14]NVStorageSaveData done [09:41:14]ExternCall_PrintAddStr [09:41:14]wPrintStart [09:41:14]Write to MH i2c: 01 00 00 35 20 55 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 07 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 07 00 35 20 00 00 00 00 00 FF 0F 6A [09:41:14]RasterBufferAndPrint [09:41:14]line Счет N : (1)412399 [09:41:14]line ИНН: 02508201610067 [09:41:14]line Контрольно-Кассовый Чек [09:41:14]line ПРОДАЖА [09:41:14]line ТРК (МРК, ГНК) : 5 [09:41:14]line Товар: 2710194210 [09:41:14]line ДТ-К-5 [09:41:14]line 20.670 * 72.60 [09:41:14]line = 1500.64 [09:41:14]line НДС 12% НСП 1% [09:41:14]line > о реализуемом товаре [09:41:14]line ИТОГО: 1500.64 [09:41:14]line НСП 1% : 13.28 [09:41:14]line НДС 12% : 159.36 [09:41:14]line Наличными: 0.00 [09:41:14]line Безнал.: 1500.64 [09:41:14]line Место: АЗС № 92 "Партнер Нефть" [09:41:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:41:14]line СНО: Общий режим [09:41:14]line Чек 47 20.02.2025 09:41 [09:41:14]line Смена: 648 ФФД: 1.0 [09:41:14]line ЗНМ: 0300000118 [09:41:14]line РНМ: 0000000000091857 [09:41:14]line Версия ККМ: 001 [09:41:14]line Платежная система: O! деньги [09:41:14]line ФМ: 0000000000871826 [09:41:14]line ФД: 187246 [09:41:14]line ФПД: 61692089999652 [09:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187246&fm=61692089999652&tin=02508201610067®Number=0000000000091857&sum=150064 [09:41:14]written 0, free lines is 4095 [09:41:14]OFD Sender: Processing packet 187246 [packets to send 49, broken 48] [09:41:14]ProducePacketName [09:41:14]name=ofd_packets/00187246 [09:41:14]OFD Sender: To server: pG, [09:41:14]CommunicateWithHost lk.salyk.kg:30040 [09:41:14]ConnectInit lk.salyk.kg [09:41:14]Connected sock=10 [09:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 89 3A 04 01 FF 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BC F8 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DB 02 00 35 04 06 00 38 1B CF 1C 21 24 09 93 0F 15 D6 70 31 F6 [09:41:14]Write to MH i2c: 01 00 00 5F 20 7F [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 07 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 07 00 5F 20 00 00 00 00 00 0D 0D A0 [09:41:14]RasterBufferAndPrint [09:41:14]line [09:41:14]line [09:41:14]line [09:41:14]line [09:41:14]line [09:41:14]written 0, free lines is 3348 [09:41:14]MH_Cut [09:41:14]Write to MH i2c: D1 01 00 66 20 01 58 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: D1 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: D1 01 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: D1 01 00 66 20 00 57 [09:41:14]Write to MH i2c: 01 00 00 67 20 87 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B8 D5 47 00 54 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DB 02 00 F4 03 04 00 0D 9F B6 67 B6 04 01 00 00 A8 50 CE E9 AB EA 31 BC [09:41:14]CommunicateWithHost err = 0 [09:41:14]CheckOFDResponse [09:41:14]1017 (14) - 77093643461234 [09:41:14]1041 (16) - 0000000000871826 [09:41:14]1040 (4) - 187246 [09:41:14]1012 (4) - 20.02.2025 03:18 [09:41:14]1206 (1) - 0 [09:41:14]OFD Sender: Remove packet 187246 [09:41:14]ProducePacketName [09:41:14]name=ofd_packets/00187246 [09:41:14]NVStorageDeleteData [09:41:15]*** Cut start [09:41:15]*** Partial cut [09:41:15]*** CUTSNS_PIN = 1 [09:41:15]OFD Sender: No OFD packet to send [09:41:15]*** CUTSNS_PIN = 0 [09:41:15]*** Brake cut motor [09:41:16]Read from MH i2c: 01 [09:41:16]MH_I2C_Read... [09:41:16]*** Stop cut motor [09:41:16]*** Cut end [09:41:16]Read from MH i2c: 01 07 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 07 00 67 20 00 00 00 00 00 FF 0F 9C [09:41:16]process_action close_receipt done [09:41:16]requested_data is exist [09:41:16]produce_requested_data [09:41:16]requested_item fm.sn is exist - process it [09:41:16]wFMCommunicate request_size=4 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 11 00 00 [09:41:16]Write to MH i2c: E2 08 00 68 20 80 11 00 00 00 00 00 00 02 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 17 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 17 00 68 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [09:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:41:16]wFMCommunicate OK [09:41:16]requested_item fd.num is exist - process it [09:41:16]SAM_PROTO_GetFieldsCounters [09:41:16]wFMCommunicate request_size=4 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 13 00 00 [09:41:16]Write to MH i2c: E2 08 00 69 20 80 13 00 00 00 00 00 00 05 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 62 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 62 00 69 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6E DB 02 00 0E 04 04 00 88 02 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 8D [09:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6E DB 02 00 0E 04 04 00 88 02 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:41:16]wFMCommunicate OK [09:41:16]SAM_PROTO_GetFieldsCounters done [09:41:16]requested_item shift.num is exist - process it [09:41:16]requested_item shift.opened is exist - process it [09:41:16]req_shift_opened [09:41:16]FM_GetShiftState [09:41:16]SAM_PROTO_GetShiftState [09:41:16]wFMCommunicate request_size=4 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 13 01 00 [09:41:16]Write to MH i2c: E2 08 00 6A 20 80 13 01 00 00 00 00 00 07 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 0E 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 0E 00 6A 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 59 [09:41:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:41:16]wFMCommunicate OK [09:41:16]SAM_PROTO_GetShiftState done [09:41:16]FM_GetShiftState done [09:41:16]req_shift_opened done [09:41:16]requested_item shift.open_date is exist - process it [09:41:16]req_shift_open_date [09:41:16]req_shift_open_date done [09:41:16]produce_requested_data done [09:41:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187246,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:41:16]process_action_free close_receipt [09:41:16]json_value_free [09:41:16]json_value_free done [09:41:16]process_json_proto returns [09:41:16]Send response to host [09:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187246,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:41:16]free response buf [09:41:16]execute_script done [09:41:16]execute_script returns [09:41:16]free content buf [09:41:16]Sock 9.Close socket [09:41:16]Sock 9.Thread stoped [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:17]accept exits with 7 [09:43:17]New connection [09:43:17]New thread 3066654052 created [09:43:17]Thread 3066510692 joined [09:43:17]Waiting for new connection... [09:43:17] Sock 7.Parse request [09:43:17]Sock 7.Check first char [09:43:17]Sock 7.First char is OK [09:43:17]request: POST /json_proto HTTP/1.0 [09:43:17]Method: POST [09:43:17]URL: /json_proto [09:43:17]Method is POST - this is cgi request [09:43:17]url: /json_proto [09:43:17]query_string will be loaded in cgi processing [09:43:17]execute_cgi json_proto POST (null) [09:43:17]execute_cgi path=json_proto method=POST [09:43:17]POST find Content-Length [09:43:17]Host: 172.17.46.131:8080 [09:43:17]Content-Length: 678 [09:43:17]Content-Type: application/json [09:43:17] [09:43:17]POST finish read [09:43:17]Found Content-Length = 678 [09:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "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:43:17]execute_script... [09:43: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)412400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "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:43:17]POST & json_proto [09:43:17]process_json_proto [09:43:17]json parsed OK: [09:43:17]protocol is kg_v1.0 [09:43:17]action value=close_receipt [09:43:17]process_action close_receipt [09:43:17]cmd_close_receipt [09:43:17]MH_GetDate [09:43:17]Write to MH i2c: F0 00 00 6B 20 7A [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: F0 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: F0 09 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: F0 09 00 6B 20 00 39 F9 B6 67 7E 41 4F 65 45 [09:43:17]GetLastDocTimeStamp 1740044476 [09:43:17]current date 1740044601 [09:43:17]FM_GetShiftState [09:43:17]SAM_PROTO_GetShiftState [09:43:17]wFMCommunicate request_size=4 [09:43:17]MH_SAM_APDU [09:43:17]CAPDU: 80 13 01 00 [09:43:17]Write to MH i2c: E2 08 00 6C 20 80 13 01 00 00 00 00 00 09 [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:17]Read from MH i2c: E2 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 0E 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 0E 00 6C 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5B [09:43:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:43:17]wFMCommunicate OK [09:43:17]SAM_PROTO_GetShiftState done [09:43:17]FM_GetShiftState done [09:43:17]opened in 1740011697 [09:43:17]opened+sec_in_day 1740098097 [09:43:17]quantity*price = 80057 [09:43:17]sum+1 = 80058 [09:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 48 20.02.2025 09:43 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187247 ФПД: 241224263963329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094321&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187247&fm=241224263963329&tin=02508201610067®Number=0000000000091857&sum=80000 [09:43:19]StoreToDocumentArchive [09:43:19]shift 648 fd 187247 [09:43:19]save to /storage/0648/doc_00187247 [09:43:19]save last doc name /storage/0648/doc_00187247 to /storage/kkm_last_doc_name [09:43:19]save OK [09:43:19]Clear old archive folders... [09:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:19]tlvbuf is B6E5F380 [09:43:19]SAM_PROTO_ClearQueue [09:43:19]wFMCommunicate request_size=4 [09:43:19]MH_SAM_APDU [09:43:19]CAPDU: 80 09 00 00 [09:43:19]Write to MH i2c: E2 08 00 79 20 80 09 00 00 00 00 00 00 0B [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 [09:43:19]MH_I2C_Read... [09:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:19]Read from MH i2c: E2 03 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [09:43:19]RAPDU: 90 00 [09:43:19]wFMCommunicate OK [09:43:19]SAM_PROTO_ClearQueue done [09:43:19]KKMCreateOFDPacket [09:43:19]OFDProtocolAddRootSTLVToBuf [09:43:19]FM_MakeSignedData [09:43:19]FM_MakeSignedData [09:43:19]SAM_PROTO_SignData [09:43:19]wFMCommunicate request_size=4 [09:43:19]MH_SAM_APDU [09:43:19]CAPDU: 80 0D 01 02 [09:43:19]Write to MH i2c: E2 08 00 7A 20 80 0D 01 02 00 00 00 00 13 [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:19]Read from MH i2c: E2 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 03 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [09:43:19]RAPDU: 90 00 [09:43:19]wFMCommunicate OK [09:43:19]wFMCommunicate request_size=255 [09:43:19]MH_SAM_APDU [09:43: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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 39 F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F DB 02 00 35 04 06 00 DB [09:43:19]Write to MH i2c: E2 02 01 7B 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 39 F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F DB 02 00 35 04 06 00 DB 00 00 E3 [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:19]Read from MH i2c: E2 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 03 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [09:43:19]RAPDU: 90 00 [09:43:19]wFMCommunicate OK [09:43:19]wFMCommunicate request_size=10 [09:43:19]MH_SAM_APDU [09:43:19]CAPDU: 80 0D 02 02 05 64 66 90 92 C1 [09:43:19]Write to MH i2c: E2 0D 00 7C 20 80 0D 02 02 05 00 64 66 90 92 C1 00 00 CD [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:19]Read from MH i2c: E2 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 03 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 03 00 7C 20 00 90 00 10 [09:43:19]RAPDU: 90 00 [09:43:19]wFMCommunicate OK [09:43:19]wFMCommunicate request_size=4 [09:43:19]MH_SAM_APDU [09:43:19]CAPDU: 80 0D 03 02 [09:43:19]Write to MH i2c: E2 08 00 7D 20 80 0D 03 02 00 00 00 00 18 [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:19]Read from MH i2c: E2 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 0B 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 0B 00 7D 20 00 DC 62 D6 5B C0 75 13 3B 90 00 0B [09:43:19]RAPDU: DC 62 D6 5B C0 75 13 3B 90 00 [09:43:19]wFMCommunicate OK [09:43:19]SAM_PROTO_SignData done [09:43:19]FM_MakeSignedData done [09:43:19]CreateOFDProtocolMessage [09:43:19]wFMCommunicate request_size=4 [09:43:19]MH_SAM_APDU [09:43:19]CAPDU: 80 11 00 00 [09:43:19]Write to MH i2c: E2 08 00 7E 20 80 11 00 00 00 00 00 00 18 [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:19]Read from MH i2c: E2 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 17 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 17 00 7E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [09:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:43:19]wFMCommunicate OK [09:43:19]CreateOFDProtocolMessage done [09:43:19]OFDSenderStorePacket 187247 [09:43:19]StoreOFDPacket docnum=187247 [09:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F3 86 07 01 73 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 39 F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F DB 02 00 35 04 06 00 DB 64 66 90 92 C1 DC 62 D6 5B C0 75 13 3B [09:43:19]CheckFolder [09:43:19]dirname=/storage/ofd_packets [09:43:19]CheckFolder done [09:43:19]ProducePacketName [09:43:19]name=ofd_packets/00187247 [09:43:19]NVStorageSaveData ofd_packets/00187247 [09:43:19]File name is /storage/ofd_packets/00187247 [09:43:19]Write 301 bytes [09:43:19]NVStorageSaveData done [09:43:19]OFDSenderStorePacket done [09:43:19]KKMCreateOFDPacket done [09:43:19]NVStorageSaveData kkm_last_timestamp [09:43:19]File name is /storage/kkm_last_timestamp [09:43:19]Write 4 bytes [09:43:19]NVStorageSaveData done [09:43:19]ExternCall_PrintAddStr [09:43:19]wPrintStart [09:43:19]Write to MH i2c: 01 00 00 7F 20 9F [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: 01 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: 01 07 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: 01 07 00 7F 20 00 00 00 00 00 FF 0F B4 [09:43:19]RasterBufferAndPrint [09:43:19]line Счет N : (1)412400 [09:43:19]line ИНН: 02508201610067 [09:43:19]line Контрольно-Кассовый Чек [09:43:19]line ПРОДАЖА [09:43:19]line ТРК (МРК, ГНК) : 12 [09:43:19]line Товар: 2710124130 [09:43:19]line Аи-92-К-2 [09:43:19]line 12.470 * 64.20 [09:43:19]line = 800.57 [09:43:19]line НДС 12% НСП 1% [09:43:19]line > о реализуемом товаре [09:43:19]line ОКРУГЛЕНИЕ: -0.57 [09:43:19]line ИТОГО: 800.00 [09:43:19]line Внесено: 800.00 [09:43:19]line СДАЧА: 0.00 [09:43:19]line НСП 1% : 7.08 [09:43:19]line НДС 12% : 85.02 [09:43:19]line Наличными: 800.00 [09:43:19]line Безнал.: 0.00 [09:43:19]line Место: АЗС № 92 "Партнер Нефть" [09:43:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:43:19]line СНО: Общий режим [09:43:19]line Чек 48 20.02.2025 09:43 [09:43:19]line Смена: 648 ФФД: 1.0 [09:43:19]line ЗНМ: 0300000118 [09:43:19]line РНМ: 0000000000091857 [09:43:19]line Версия ККМ: 001 [09:43:19]line ФМ: 0000000000871826 [09:43:19]line ФД: 187247 [09:43:19]line ФПД: 241224263963329 [09:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094321&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187247&fm=241224263963329&tin=02508201610067®Number=0000000000091857&sum=80000 [09:43:19]written 0, free lines is 4095 [09:43:19]OFD Sender: Processing packet 187247 [packets to send 49, broken 48] [09:43:19]ProducePacketName [09:43:19]name=ofd_packets/00187247 [09:43:19]OFD Sender: To server: pG, [09:43:19]CommunicateWithHost lk.salyk.kg:30040 [09:43:19]ConnectInit lk.salyk.kg [09:43:20]Connected sock=10 [09:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F3 86 07 01 73 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 39 F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F DB 02 00 35 04 06 00 DB 64 66 90 92 C1 DC 62 D6 5B C0 75 13 3B [09:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DC E4 47 00 3C 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 31 38 32 36 10 04 04 00 6F DB 02 00 F4 03 04 00 8B 9F B6 67 B6 04 01 00 00 30 FE 16 5E 71 5B C1 B6 [09:43:20]CommunicateWithHost err = 0 [09:43:20]CheckOFDResponse [09:43:20]1017 (14) - 77093643461234 [09:43:20]1041 (16) - 0000000000871826 [09:43:20]1040 (4) - 187247 [09:43:20]1012 (4) - 20.02.2025 03:20 [09:43:20]1206 (1) - 0 [09:43:20]OFD Sender: Remove packet 187247 [09:43:20]ProducePacketName [09:43:20]name=ofd_packets/00187247 [09:43:20]NVStorageDeleteData [09:43:20]Write to MH i2c: 01 00 00 AA 20 CA [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: 01 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: 01 07 00 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: 01 07 00 AA 20 00 00 00 00 00 00 0D DE [09:43:20]RasterBufferAndPrint [09:43:20]line [09:43:20]line [09:43:20]line [09:43:20]line [09:43:20]line [09:43:20]written 0, free lines is 3334 [09:43:20]MH_Cut [09:43:20]Write to MH i2c: D1 01 00 B1 20 01 A3 [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: D1 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: D1 01 00 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: D1 01 00 B1 20 00 A2 [09:43:20]Write to MH i2c: 01 00 00 B2 20 D2 [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]OFD Sender: No OFD packet to send [09:43:21]*** Cut start [09:43:21]*** Partial cut [09:43:21]*** CUTSNS_PIN = 1 [09:43:21]*** CUTSNS_PIN = 0 [09:43:21]*** Brake cut motor [09:43:21]Read from MH i2c: 01 [09:43:21]MH_I2C_Read... [09:43:21]*** Stop cut motor [09:43:21]*** Cut end [09:43:21]Read from MH i2c: 01 07 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 B2 20 00 00 00 00 00 FF 0F E7 [09:43:21]process_action close_receipt done [09:43:21]requested_data is exist [09:43:21]produce_requested_data [09:43:21]requested_item fm.sn is exist - process it [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 11 00 00 [09:43:21]Write to MH i2c: E2 08 00 B3 20 80 11 00 00 00 00 00 00 4D [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 17 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 17 00 B3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [09:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:43:21]wFMCommunicate OK [09:43:21]requested_item fd.num is exist - process it [09:43:21]SAM_PROTO_GetFieldsCounters [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 13 00 00 [09:43:21]Write to MH i2c: E2 08 00 B4 20 80 13 00 00 00 00 00 00 50 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 62 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 62 00 B4 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6F DB 02 00 0E 04 04 00 88 02 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 DC [09:43:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6F DB 02 00 0E 04 04 00 88 02 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:43:21]wFMCommunicate OK [09:43:21]SAM_PROTO_GetFieldsCounters done [09:43:21]requested_item shift.num is exist - process it [09:43:21]requested_item shift.opened is exist - process it [09:43:21]req_shift_opened [09:43:21]FM_GetShiftState [09:43:21]SAM_PROTO_GetShiftState [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 13 01 00 [09:43:21]Write to MH i2c: E2 08 00 B5 20 80 13 01 00 00 00 00 00 52 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 B5 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A4 [09:43:22]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:43:22]wFMCommunicate OK [09:43:22]SAM_PROTO_GetShiftState done [09:43:22]FM_GetShiftState done [09:43:22]req_shift_opened done [09:43:22]requested_item shift.open_date is exist - process it [09:43:22]req_shift_open_date [09:43:22]req_shift_open_date done [09:43:22]produce_requested_data done [09:43:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187247,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:43:22]process_action_free close_receipt [09:43:22]json_value_free [09:43:22]json_value_free done [09:43:22]process_json_proto returns [09:43:22]Send response to host [09:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187247,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:43:22]free response buf [09:43:22]execute_script done [09:43:22]execute_script returns [09:43:22]free content buf [09:43:22]Sock 7.Close socket [09:43:22]Sock 7.Thread stoped [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:26]accept exits with 9 [09:44:26]New connection [09:44:26]New thread 3066510692 created [09:44:26]Thread 3066654052 joined [09:44:26]Waiting for new connection... [09:44:26] Sock 9.Parse request [09:44:26]Sock 9.Check first char [09:44:26]Sock 9.First char is OK [09:44:26]request: POST /json_proto HTTP/1.0 [09:44:26]Method: POST [09:44:26]URL: /json_proto [09:44:26]Method is POST - this is cgi request [09:44:26]url: /json_proto [09:44:26]query_string will be loaded in cgi processing [09:44:26]execute_cgi json_proto POST (null) [09:44:26]execute_cgi path=json_proto method=POST [09:44:26]POST find Content-Length [09:44:26]Host: 172.17.46.131:8080 [09:44:26]Content-Length: 677 [09:44:26]Content-Type: application/json [09:44:26] [09:44:26]POST finish read [09:44:26]Found Content-Length = 677 [09:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:44:26]execute_script... [09: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)412401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:44:26]POST & json_proto [09:44:26]process_json_proto [09:44:26]json parsed OK: [09:44:26]protocol is kg_v1.0 [09:44:26]action value=close_receipt [09:44:26]process_action close_receipt [09:44:26]cmd_close_receipt [09:44:26]MH_GetDate [09:44:26]Write to MH i2c: F0 00 00 B6 20 C5 [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 09 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: F0 09 00 B6 20 00 7E F9 B6 67 7E 41 4F 65 D5 [09:44:26]GetLastDocTimeStamp 1740044601 [09:44:26]current date 1740044670 [09:44:26]FM_GetShiftState [09:44:26]SAM_PROTO_GetShiftState [09:44:26]wFMCommunicate request_size=4 [09:44:26]MH_SAM_APDU [09:44:26]CAPDU: 80 13 01 00 [09:44:26]Write to MH i2c: E2 08 00 B7 20 80 13 01 00 00 00 00 00 54 [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 0E 00 B7 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A6 [09:44:26]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:44:26]wFMCommunicate OK [09:44:26]SAM_PROTO_GetShiftState done [09:44:26]FM_GetShiftState done [09:44:26]opened in 1740011697 [09:44:26]opened+sec_in_day 1740098097 [09:44:26]quantity*price = 50011 [09:44:26]sum+1 = 50013 [09:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 49 20.02.2025 09:44 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187248 ФПД: 121249449606011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094430&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187248&fm=121249449606011&tin=02508201610067®Number=0000000000091857&sum=50000 [09:44:27]StoreToDocumentArchive [09:44:27]shift 648 fd 187248 [09:44:27]save to /storage/0648/doc_00187248 [09:44:27]save last doc name /storage/0648/doc_00187248 to /storage/kkm_last_doc_name [09:44:27]save OK [09:44:27]Clear old archive folders... [09:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:27]tlvbuf is 01F6A6D0 [09:44:27]SAM_PROTO_ClearQueue [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 09 00 00 [09:44:27]Write to MH i2c: E2 08 00 C4 20 80 09 00 00 00 00 00 00 56 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_ClearQueue done [09:44:27]KKMCreateOFDPacket [09:44:27]OFDProtocolAddRootSTLVToBuf [09:44:27]FM_MakeSignedData [09:44:27]FM_MakeSignedData [09:44:27]SAM_PROTO_SignData [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 01 02 [09:44:27]Write to MH i2c: E2 08 00 C5 20 80 0D 01 02 00 00 00 00 5E [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=255 [09:44:27]MH_SAM_APDU [09: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7E F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DB 02 00 35 04 06 00 6E [09:44:27]Write to MH i2c: E2 02 01 C6 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7E F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DB 02 00 35 04 06 00 6E 00 00 01 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=10 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 02 02 05 46 96 5F 7B 7B [09:44:27]Write to MH i2c: E2 0D 00 C7 20 80 0D 02 02 05 00 46 96 5F 7B 7B 00 00 9C [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 03 00 C7 20 00 90 00 5B [09:44:27]RAPDU: 90 00 [09:44:27]wFMCommunicate OK [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 0D 03 02 [09:44:27]Write to MH i2c: E2 08 00 C8 20 80 0D 03 02 00 00 00 00 63 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0B 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0B 00 C8 20 00 AF C4 9D 52 EA 97 DF C8 90 00 EE [09:44:27]RAPDU: AF C4 9D 52 EA 97 DF C8 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_SignData done [09:44:27]FM_MakeSignedData done [09:44:27]CreateOFDProtocolMessage [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 11 00 00 [09:44:27]Write to MH i2c: E2 08 00 C9 20 80 11 00 00 00 00 00 00 63 [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 17 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 17 00 C9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [09:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:44:27]wFMCommunicate OK [09:44:27]CreateOFDProtocolMessage done [09:44:27]OFDSenderStorePacket 187248 [09:44:27]StoreOFDPacket docnum=187248 [09:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9B 7E 07 01 AC 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7E F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DB 02 00 35 04 06 00 6E 46 96 5F 7B 7B AF C4 9D 52 EA 97 DF C8 [09:44:27]CheckFolder [09:44:27]dirname=/storage/ofd_packets [09:44:27]CheckFolder done [09:44:27]ProducePacketName [09:44:27]name=ofd_packets/00187248 [09:44:27]NVStorageSaveData ofd_packets/00187248 [09:44:27]File name is /storage/ofd_packets/00187248 [09:44:27]Write 301 bytes [09:44:27]NVStorageSaveData done [09:44:27]OFDSenderStorePacket done [09:44:27]KKMCreateOFDPacket done [09:44:27]NVStorageSaveData kkm_last_timestamp [09:44:27]File name is /storage/kkm_last_timestamp [09:44:27]Write 4 bytes [09:44:27]NVStorageSaveData done [09:44:27]ExternCall_PrintAddStr [09:44:27]wPrintStart [09:44:27]Write to MH i2c: 01 00 00 CA 20 EA [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: 01 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: 01 07 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: 01 07 00 CA 20 00 00 00 00 00 FF 0F FF [09:44:27]RasterBufferAndPrint [09:44:27]line Счет N : (1)412401 [09:44:27]line ИНН: 02508201610067 [09:44:27]line Контрольно-Кассовый Чек [09:44:27]line ПРОДАЖА [09:44:27]line ТРК (МРК, ГНК) : 32 [09:44:27]line Товар: 2710124130 [09:44:27]line Аи-92-К-2 [09:44:27]line 7.790 * 64.20 [09:44:27]line = 500.12 [09:44:27]line НДС 12% НСП 1% [09:44:27]line > о реализуемом товаре [09:44:27]line ОКРУГЛЕНИЕ: -0.12 [09:44:27]line ИТОГО: 500.00 [09:44:27]line Внесено: 500.00 [09:44:27]line СДАЧА: 0.00 [09:44:27]line НСП 1% : 4.43 [09:44:27]line НДС 12% : 53.11 [09:44:27]line Наличными: 500.00 [09:44:27]line Безнал.: 0.00 [09:44:27]line Место: АЗС № 92 "Партнер Нефть" [09:44:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:44:27]line СНО: Общий режим [09:44:27]line Чек 49 20.02.2025 09:44 [09:44:27]line Смена: 648 ФФД: 1.0 [09:44:27]line ЗНМ: 0300000118 [09:44:27]line РНМ: 0000000000091857 [09:44:27]line Версия ККМ: 001 [09:44:27]line ФМ: 0000000000871826 [09:44:27]line ФД: 187248 [09:44:27]line ФПД: 121249449606011 [09:44:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094430&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187248&fm=121249449606011&tin=02508201610067®Number=0000000000091857&sum=50000 [09:44:28]OFD Sender: Processing packet 187248 [packets to send 49, broken 48] [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00187248 [09:44:28]OFD Sender: To server: pG, [09:44:28]CommunicateWithHost lk.salyk.kg:30040 [09:44:28]ConnectInit lk.salyk.kg [09:44:28]written 0, free lines is 4095 [09:44:28]Connected sock=10 [09: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 31 38 32 36 0F 01 00 00 9B 7E 07 01 AC 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7E F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DB 02 00 35 04 06 00 6E 46 96 5F 7B 7B AF C4 9D 52 EA 97 DF C8 [09:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E9 71 47 00 B5 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DB 02 00 F4 03 04 00 CF 9F B6 67 B6 04 01 00 00 63 7F AF 4B 65 50 BA 7A [09:44:28]CommunicateWithHost err = 0 [09:44:28]CheckOFDResponse [09:44:28]1017 (14) - 77093643461234 [09:44:28]1041 (16) - 0000000000871826 [09:44:28]1040 (4) - 187248 [09:44:28]1012 (4) - 20.02.2025 03:21 [09:44:28]1206 (1) - 0 [09:44:28]OFD Sender: Remove packet 187248 [09:44:28]ProducePacketName [09:44:28]name=ofd_packets/00187248 [09:44:28]NVStorageDeleteData [09:44:28]Write to MH i2c: 01 00 00 F5 20 15 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 F5 20 00 00 00 00 00 EC 0C 14 [09:44:28]RasterBufferAndPrint [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]line [09:44:28]written 0, free lines is 3314 [09:44:28]MH_Cut [09:44:28]Write to MH i2c: D1 01 00 FC 20 01 EE [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 01 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: D1 01 00 FC 20 00 ED [09:44:28]Write to MH i2c: 01 00 00 FD 20 1D [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:29]OFD Sender: No OFD packet to send [09:44:29]*** Cut start [09:44:29]*** Partial cut [09:44:29]*** CUTSNS_PIN = 1 [09:44:29]*** CUTSNS_PIN = 0 [09:44:29]*** Brake cut motor [09:44:29]Read from MH i2c: 01 [09:44:29]MH_I2C_Read... [09:44:29]*** Stop cut motor [09:44:29]*** Cut end [09:44:29]Read from MH i2c: 01 07 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 07 00 FD 20 00 00 00 00 00 FF 0F 32 [09:44:29]process_action close_receipt done [09:44:29]requested_data is exist [09:44:29]produce_requested_data [09:44:29]requested_item fm.sn is exist - process it [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 11 00 00 [09:44:29]Write to MH i2c: E2 08 00 FE 20 80 11 00 00 00 00 00 00 98 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 17 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 17 00 FE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EB [09:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:44:30]wFMCommunicate OK [09:44:30]requested_item fd.num is exist - process it [09:44:30]SAM_PROTO_GetFieldsCounters [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 13 00 00 [09:44:30]Write to MH i2c: E2 08 00 FF 20 80 13 00 00 00 00 00 00 9B [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 62 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 62 00 FF 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DB 02 00 0E 04 04 00 88 02 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 2B [09: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DB 02 00 0E 04 04 00 88 02 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:44:30]wFMCommunicate OK [09:44:30]SAM_PROTO_GetFieldsCounters done [09:44:30]requested_item shift.num is exist - process it [09:44:30]requested_item shift.opened is exist - process it [09:44:30]req_shift_opened [09:44:30]FM_GetShiftState [09:44:30]SAM_PROTO_GetShiftState [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 13 01 00 [09:44:30]Write to MH i2c: E2 08 00 00 21 80 13 01 00 00 00 00 00 9E [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 0E 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 0E 00 00 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F0 [09:44:30]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:44:30]wFMCommunicate OK [09:44:30]SAM_PROTO_GetShiftState done [09:44:30]FM_GetShiftState done [09:44:30]req_shift_opened done [09:44:30]requested_item shift.open_date is exist - process it [09:44:30]req_shift_open_date [09:44:30]req_shift_open_date done [09:44:30]produce_requested_data done [09:44:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187248,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:44:30]process_action_free close_receipt [09:44:30]json_value_free [09:44:30]json_value_free done [09:44:30]process_json_proto returns [09:44:30]Send response to host [09:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187248,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:44:30]free response buf [09:44:30]execute_script done [09:44:30]execute_script returns [09:44:30]free content buf [09:44:30]Sock 9.Close socket [09:44:30]Sock 9.Thread stoped [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:11]accept exits with 7 [09:45:11]New connection [09:45:11]New thread 3066654052 created [09:45:11]Thread 3066510692 joined [09:45:11]Waiting for new connection... [09:45:11] Sock 7.Parse request [09:45:11]Sock 7.Check first char [09:45:11]Sock 7.First char is OK [09:45:11]request: POST /json_proto HTTP/1.0 [09:45:11]Method: POST [09:45:11]URL: /json_proto [09:45:11]Method is POST - this is cgi request [09:45:11]url: /json_proto [09:45:11]query_string will be loaded in cgi processing [09:45:11]execute_cgi json_proto POST (null) [09:45:11]execute_cgi path=json_proto method=POST [09:45:11]POST find Content-Length [09:45:11]Host: 172.17.46.131:8080 [09:45:11]Content-Length: 678 [09:45:11]Content-Type: application/json [09:45:11] [09:45:11]POST finish read [09:45:11]Found Content-Length = 678 [09:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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" ] } } [09:45:11]execute_script... [09:45: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)412402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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" ] } } [09:45:11]POST & json_proto [09:45:11]process_json_proto [09:45:11]json parsed OK: [09:45:11]protocol is kg_v1.0 [09:45:11]action value=close_receipt [09:45:11]process_action close_receipt [09:45:11]cmd_close_receipt [09:45:11]MH_GetDate [09:45:11]Write to MH i2c: F0 00 00 01 21 11 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: F0 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: F0 09 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: F0 09 00 01 21 00 AB F9 B6 67 7E 41 4F 65 4E [09:45:11]GetLastDocTimeStamp 1740044670 [09:45:11]current date 1740044715 [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 02 21 80 13 01 00 00 00 00 00 A0 [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 02 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F2 [09:45:11]RAPDU: 09 00 01 B1 78 B6 67 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]opened in 1740011697 [09:45:11]opened+sec_in_day 1740098097 [09:45:11]quantity*price = 200013 [09:45:11]sum+1 = 200014 [09:45:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 50 20.02.2025 09:45 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187249 ФПД: 190417861389305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094515&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187249&fm=190417861389305&tin=02508201610067®Number=0000000000091857&sum=200000 [09:45:12]StoreToDocumentArchive [09:45:12]shift 648 fd 187249 [09:45:12]save to /storage/0648/doc_00187249 [09:45:12]save last doc name /storage/0648/doc_00187249 to /storage/kkm_last_doc_name [09:45:12]save OK [09:45:12]Clear old archive folders... [09:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:45:12]tlvbuf is 01F3E7A0 [09:45:12]SAM_PROTO_ClearQueue [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 09 00 00 [09:45:12]Write to MH i2c: E2 08 00 0F 21 80 09 00 00 00 00 00 00 A2 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [09:45:12]RAPDU: 90 00 [09:45:12]wFMCommunicate OK [09:45:12]SAM_PROTO_ClearQueue done [09:45:12]KKMCreateOFDPacket [09:45:12]OFDProtocolAddRootSTLVToBuf [09:45:12]FM_MakeSignedData [09:45:12]FM_MakeSignedData [09:45:12]SAM_PROTO_SignData [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 0D 01 02 [09:45:12]Write to MH i2c: E2 08 00 10 21 80 0D 01 02 00 00 00 00 AA [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 03 00 10 21 00 90 00 A5 [09:45:12]RAPDU: 90 00 [09:45:12]wFMCommunicate OK [09:45:12]wFMCommunicate request_size=255 [09:45:12]MH_SAM_APDU [09:45: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AB F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 DB 02 00 35 04 06 00 AD 2F 1C FC [09:45:12]Write to MH i2c: E2 02 01 11 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AB F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 DB 02 00 35 04 06 00 AD 2F 1C FC 00 00 83 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:13]Read from MH i2c: E2 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 03 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 03 00 11 21 00 90 00 A6 [09:45:13]RAPDU: 90 00 [09:45:13]wFMCommunicate OK [09:45:13]wFMCommunicate request_size=7 [09:45:13]MH_SAM_APDU [09:45:13]CAPDU: 80 0D 02 02 02 AB F9 [09:45:13]Write to MH i2c: E2 0A 00 12 21 80 0D 02 02 02 00 AB F9 00 00 55 [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:13]Read from MH i2c: E2 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 03 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 03 00 12 21 00 90 00 A7 [09:45:13]RAPDU: 90 00 [09:45:13]wFMCommunicate OK [09:45:13]wFMCommunicate request_size=4 [09:45:13]MH_SAM_APDU [09:45:13]CAPDU: 80 0D 03 02 [09:45:13]Write to MH i2c: E2 08 00 13 21 80 0D 03 02 00 00 00 00 AF [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:13]Read from MH i2c: E2 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 0B 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 0B 00 13 21 00 10 F7 B8 A3 B3 7C A7 E6 90 00 CE [09:45:13]RAPDU: 10 F7 B8 A3 B3 7C A7 E6 90 00 [09:45:13]wFMCommunicate OK [09:45:13]SAM_PROTO_SignData done [09:45:13]FM_MakeSignedData done [09:45:13]CreateOFDProtocolMessage [09:45:13]wFMCommunicate request_size=4 [09:45:13]MH_SAM_APDU [09:45:13]CAPDU: 80 11 00 00 [09:45:13]Write to MH i2c: E2 08 00 14 21 80 11 00 00 00 00 00 00 AF [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:13]Read from MH i2c: E2 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 17 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 17 00 14 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [09:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:45:13]wFMCommunicate OK [09:45:13]CreateOFDProtocolMessage done [09:45:13]OFDSenderStorePacket 187249 [09:45:13]StoreOFDPacket docnum=187249 [09:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F5 A2 04 01 38 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AB F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 DB 02 00 35 04 06 00 AD 2F 1C FC AB F9 10 F7 B8 A3 B3 7C A7 E6 [09:45:13]CheckFolder [09:45:13]dirname=/storage/ofd_packets [09:45:13]CheckFolder done [09:45:13]ProducePacketName [09:45:13]name=ofd_packets/00187249 [09:45:13]NVStorageSaveData ofd_packets/00187249 [09:45:13]File name is /storage/ofd_packets/00187249 [09:45:13]Write 298 bytes [09:45:13]NVStorageSaveData done [09:45:13]OFDSenderStorePacket done [09:45:13]KKMCreateOFDPacket done [09:45:13]NVStorageSaveData kkm_last_timestamp [09:45:13]File name is /storage/kkm_last_timestamp [09:45:13]Write 4 bytes [09:45:13]NVStorageSaveData done [09:45:13]ExternCall_PrintAddStr [09:45:13]wPrintStart [09:45:13]Write to MH i2c: 01 00 00 15 21 36 [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 07 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 07 00 15 21 00 00 00 00 00 FF 0F 4B [09:45:13]RasterBufferAndPrint [09:45:13]line Счет N : (1)412402 [09:45:13]line ИНН: 02508201610067 [09:45:13]line Контрольно-Кассовый Чек [09:45:13]line ПРОДАЖА [09:45:13]line ТРК (МРК, ГНК) : 5 [09:45:13]line Товар: 2710194210 [09:45:13]line ДТ-К-5 [09:45:13]line 27.550 * 72.60 [09:45:13]line = 2000.13 [09:45:13]line НДС 12% НСП 1% [09:45:13]line > о реализуемом товаре [09:45:13]line ОКРУГЛЕНИЕ: -0.13 [09:45:13]line ИТОГО: 2000.00 [09:45:13]line Внесено: 2000.00 [09:45:13]line СДАЧА: 0.00 [09:45:13]line НСП 1% : 17.70 [09:45:13]line НДС 12% : 212.40 [09:45:13]line Наличными: 2000.00 [09:45:13]line Безнал.: 0.00 [09:45:13]line Место: АЗС № 92 "Партнер Нефть" [09:45:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:45:13]line СНО: Общий режим [09:45:13]line Чек 50 20.02.2025 09:45 [09:45:13]line Смена: 648 ФФД: 1.0 [09:45:13]line ЗНМ: 0300000118 [09:45:13]line РНМ: 0000000000091857 [09:45:13]line Версия ККМ: 001 [09:45:13]line ФМ: 0000000000871826 [09:45:13]line ФД: 187249 [09:45:13]line ФПД: 190417861389305 [09:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094515&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187249&fm=190417861389305&tin=02508201610067®Number=0000000000091857&sum=200000 [09:45:13]written 0, free lines is 4095 [09:45:13]OFD Sender: Processing packet 187249 [packets to send 49, broken 48] [09:45:13]ProducePacketName [09:45:13]name=ofd_packets/00187249 [09:45:13]OFD Sender: To server: pG, [09:45:13]CommunicateWithHost lk.salyk.kg:30040 [09:45:13]ConnectInit lk.salyk.kg [09:45:13]Connected sock=10 [09:45:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F5 A2 04 01 38 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AB F9 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 DB 02 00 35 04 06 00 AD 2F 1C FC AB F9 10 F7 B8 A3 B3 7C A7 E6 [09:45:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B6 0F 47 00 00 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 DB 02 00 F4 03 04 00 FC 9F B6 67 B6 04 01 00 00 47 0D 77 59 E7 1D EF 52 [09:45:14]CommunicateWithHost err = 0 [09:45:14]CheckOFDResponse [09:45:14]1017 (14) - 77093643461234 [09:45:14]1041 (16) - 0000000000871826 [09:45:14]1040 (4) - 187249 [09:45:14]1012 (4) - 20.02.2025 03:22 [09:45:14]1206 (1) - 0 [09:45:14]OFD Sender: Remove packet 187249 [09:45:14]ProducePacketName [09:45:14]name=ofd_packets/00187249 [09:45:14]NVStorageDeleteData [09:45:14]Write to MH i2c: 01 00 00 40 21 61 [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: 01 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: 01 07 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: 01 07 00 40 21 00 00 00 00 00 F3 0C 67 [09:45:14]RasterBufferAndPrint [09:45:14]line [09:45:14]line [09:45:14]line [09:45:14]line [09:45:14]line [09:45:14]written 0, free lines is 3321 [09:45:14]MH_Cut [09:45:14]Write to MH i2c: D1 01 00 47 21 01 3A [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: D1 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: D1 01 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: D1 01 00 47 21 00 39 [09:45:14]Write to MH i2c: 01 00 00 48 21 69 [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]OFD Sender: No OFD packet to send [09:45:14]*** Cut start [09:45:14]*** Partial cut [09:45:14]*** CUTSNS_PIN = 1 [09:45:14]*** CUTSNS_PIN = 0 [09:45:15]*** Brake cut motor [09:45:15]Read from MH i2c: 01 [09:45:15]MH_I2C_Read... [09:45:15]*** Stop cut motor [09:45:15]*** Cut end [09:45:15]Read from MH i2c: 01 07 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: 01 07 00 48 21 00 00 00 00 00 FF 0F 7E [09:45:15]process_action close_receipt done [09:45:15]requested_data is exist [09:45:15]produce_requested_data [09:45:15]requested_item fm.sn is exist - process it [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 11 00 00 [09:45:15]Write to MH i2c: E2 08 00 49 21 80 11 00 00 00 00 00 00 E4 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 17 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 17 00 49 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [09:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:45:15]wFMCommunicate OK [09:45:15]requested_item fd.num is exist - process it [09:45:15]SAM_PROTO_GetFieldsCounters [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 13 00 00 [09:45:15]Write to MH i2c: E2 08 00 4A 21 80 13 00 00 00 00 00 00 E7 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 62 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 62 00 4A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 DB 02 00 0E 04 04 00 88 02 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 7B [09:45:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 DB 02 00 0E 04 04 00 88 02 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:45:15]wFMCommunicate OK [09:45:15]SAM_PROTO_GetFieldsCounters done [09:45:15]requested_item shift.num is exist - process it [09:45:15]requested_item shift.opened is exist - process it [09:45:15]req_shift_opened [09:45:15]FM_GetShiftState [09:45:15]SAM_PROTO_GetShiftState [09:45:15]wFMCommunicate request_size=4 [09:45:15]MH_SAM_APDU [09:45:15]CAPDU: 80 13 01 00 [09:45:15]Write to MH i2c: E2 08 00 4B 21 80 13 01 00 00 00 00 00 E9 [09:45:15]Write i2c OK [09:45:15]MH_I2C_Read... [09:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:15]Read from MH i2c: E2 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 0E 00 [09:45:15]MH_I2C_Read... [09:45:15]Read from MH i2c: E2 0E 00 4B 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3B [09:45:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:45:15]wFMCommunicate OK [09:45:15]SAM_PROTO_GetShiftState done [09:45:15]FM_GetShiftState done [09:45:15]req_shift_opened done [09:45:15]requested_item shift.open_date is exist - process it [09:45:15]req_shift_open_date [09:45:15]req_shift_open_date done [09:45:15]produce_requested_data done [09:45:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187249,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:45:15]process_action_free close_receipt [09:45:15]json_value_free [09:45:15]json_value_free done [09:45:15]process_json_proto returns [09:45:15]Send response to host [09:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187249,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:45:15]free response buf [09:45:15]execute_script done [09:45:15]execute_script returns [09:45:15]free content buf [09:45:15]Sock 7.Close socket [09:45:15]Sock 7.Thread stoped [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:00]accept exits with 9 [09:48:00]New connection [09:48:00]New thread 3066510692 created [09:48:00]Thread 3066654052 joined [09:48:00]Waiting for new connection... [09:48:00] Sock 9.Parse request [09:48:00]Sock 9.Check first char [09:48:00]Sock 9.First char is OK [09:48:00]request: POST /json_proto HTTP/1.0 [09:48:00]Method: POST [09:48:00]URL: /json_proto [09:48:00]Method is POST - this is cgi request [09:48:00]url: /json_proto [09:48:00]query_string will be loaded in cgi processing [09:48:00]execute_cgi json_proto POST (null) [09:48:00]execute_cgi path=json_proto method=POST [09:48:00]POST find Content-Length [09:48:00]Host: 172.17.46.131:8080 [09:48:00]Content-Length: 803 [09:48:00]Content-Type: application/json [09:48:00] [09:48:00]POST finish read [09:48:00]Found Content-Length = 803 [09:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:00]execute_script... [09:48: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)412403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:00]POST & json_proto [09:48:00]process_json_proto [09:48:00]json parsed OK: [09:48:00]protocol is kg_v1.0 [09:48:00]action value=close_receipt [09:48:00]process_action close_receipt [09:48:00]cmd_close_receipt [09:48:00]MH_GetDate [09:48:00]Write to MH i2c: F0 00 00 4C 21 5C [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: F0 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: F0 09 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: F0 09 00 4C 21 00 54 FA B6 67 7E 41 4F 65 43 [09:48:00]GetLastDocTimeStamp 1740044715 [09:48:00]current date 1740044884 [09:48:00]FM_GetShiftState [09:48:00]SAM_PROTO_GetShiftState [09:48:00]wFMCommunicate request_size=4 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 13 01 00 [09:48:00]Write to MH i2c: E2 08 00 4D 21 80 13 01 00 00 00 00 00 EB [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 0E 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 0E 00 4D 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3D [09:48:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:48:00]wFMCommunicate OK [09:48:00]SAM_PROTO_GetShiftState done [09:48:00]FM_GetShiftState done [09:48:00]opened in 1740011697 [09:48:00]opened+sec_in_day 1740098097 [09:48:00]quantity*price = 100023 [09:48:00]sum+1 = 100025 [09:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 51 20.02.2025 09:48 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187250 ФПД: 215459982460789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094804&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187250&fm=215459982460789&tin=02508201610067®Number=0000000000091857&sum=100024 [09:48:01]StoreToDocumentArchive [09:48:01]shift 648 fd 187250 [09:48:01]save to /storage/0648/doc_00187250 [09:48:01]save last doc name /storage/0648/doc_00187250 to /storage/kkm_last_doc_name [09:48:01]save OK [09:48:01]Clear old archive folders... [09:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:01]tlvbuf is B6E78780 [09:48:01]SAM_PROTO_ClearQueue [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 09 00 00 [09:48:01]Write to MH i2c: E2 08 00 5A 21 80 09 00 00 00 00 00 00 ED [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 5A 21 00 90 00 EF [09:48:01]RAPDU: 90 00 [09:48:01]wFMCommunicate OK [09:48:01]SAM_PROTO_ClearQueue done [09:48:01]KKMCreateOFDPacket [09:48:01]OFDProtocolAddRootSTLVToBuf [09:48:01]FM_MakeSignedData [09:48:01]FM_MakeSignedData [09:48:01]SAM_PROTO_SignData [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 0D 01 02 [09:48:01]Write to MH i2c: E2 08 00 5B 21 80 0D 01 02 00 00 00 00 F5 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 5B 21 00 90 00 F0 [09:48:01]RAPDU: 90 00 [09:48:01]wFMCommunicate OK [09:48:01]wFMCommunicate request_size=255 [09:48:01]MH_SAM_APDU [09:48: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 54 FA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 DB 02 00 35 04 06 00 C3 [09:48:01]Write to MH i2c: E2 02 01 5C 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 54 FA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 DB 02 00 35 04 06 00 C3 00 00 5C [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 5C 21 00 90 00 F1 [09:48:01]RAPDU: 90 00 [09:48:01]wFMCommunicate OK [09:48:01]wFMCommunicate request_size=10 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 0D 02 02 05 F5 AF B7 C7 75 [09:48:01]Write to MH i2c: E2 0D 00 5D 21 80 0D 02 02 05 00 F5 AF B7 C7 75 00 00 99 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [09:48:01]RAPDU: 90 00 [09:48:01]wFMCommunicate OK [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 0D 03 02 [09:48:01]Write to MH i2c: E2 08 00 5E 21 80 0D 03 02 00 00 00 00 FA [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 0B 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 0B 00 5E 21 00 9E 16 BB 9B 20 AE D5 71 90 00 19 [09:48:01]RAPDU: 9E 16 BB 9B 20 AE D5 71 90 00 [09:48:01]wFMCommunicate OK [09:48:01]SAM_PROTO_SignData done [09:48:01]FM_MakeSignedData done [09:48:01]CreateOFDProtocolMessage [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 11 00 00 [09:48:01]Write to MH i2c: E2 08 00 5F 21 80 11 00 00 00 00 00 00 FA [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 17 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 17 00 5F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [09:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:48:01]wFMCommunicate OK [09:48:01]CreateOFDProtocolMessage done [09:48:01]OFDSenderStorePacket 187250 [09:48:01]StoreOFDPacket docnum=187250 [09:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 06 A1 07 01 74 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 54 FA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 DB 02 00 35 04 06 00 C3 F5 AF B7 C7 75 9E 16 BB 9B 20 AE D5 71 [09:48:01]CheckFolder [09:48:01]dirname=/storage/ofd_packets [09:48:01]CheckFolder done [09:48:01]ProducePacketName [09:48:01]name=ofd_packets/00187250 [09:48:01]NVStorageSaveData ofd_packets/00187250 [09:48:01]File name is /storage/ofd_packets/00187250 [09:48:01]Write 301 bytes [09:48:01]NVStorageSaveData done [09:48:01]OFDSenderStorePacket done [09:48:01]KKMCreateOFDPacket done [09:48:01]NVStorageSaveData kkm_last_timestamp [09:48:01]File name is /storage/kkm_last_timestamp [09:48:01]Write 4 bytes [09:48:01]NVStorageSaveData done [09:48:01]ExternCall_PrintAddStr [09:48:01]wPrintStart [09:48:01]Write to MH i2c: 01 00 00 60 21 81 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 60 21 00 00 00 00 00 FF 0F 96 [09:48:01]RasterBufferAndPrint [09:48:01]line Счет N : (1)412403 [09:48:01]line ИНН: 02508201610067 [09:48:01]line Контрольно-Кассовый Чек [09:48:01]line ПРОДАЖА [09:48:01]line ТРК (МРК, ГНК) : 12 [09:48:01]line Товар: 2710124130 [09:48:01]line Аи-92-К-2 [09:48:01]line 15.580 * 64.20 [09:48:01]line = 1000.24 [09:48:01]line НДС 12% НСП 1% [09:48:01]line > о реализуемом товаре [09:48:01]line ИТОГО: 1000.24 [09:48:01]line НСП 1% : 8.85 [09:48:01]line НДС 12% : 106.22 [09:48:01]line Наличными: 0.00 [09:48:01]line Безнал.: 1000.24 [09:48:01]line Место: АЗС № 92 "Партнер Нефть" [09:48:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:48:01]line СНО: Общий режим [09:48:01]line Чек 51 20.02.2025 09:48 [09:48:01]line Смена: 648 ФФД: 1.0 [09:48:01]line ЗНМ: 0300000118 [09:48:01]line РНМ: 0000000000091857 [09:48:01]line Версия ККМ: 001 [09:48:01]line Платежная система: O! деньги [09:48:01]line ФМ: 0000000000871826 [09:48:01]line ФД: 187250 [09:48:01]line ФПД: 215459982460789 [09:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T094804&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187250&fm=215459982460789&tin=02508201610067®Number=0000000000091857&sum=100024 [09:48:02]written 0, free lines is 4095 [09:48:02]OFD Sender: Processing packet 187250 [packets to send 49, broken 48] [09:48:02]ProducePacketName [09:48:02]name=ofd_packets/00187250 [09:48:02]OFD Sender: To server: pG, [09:48:02]CommunicateWithHost lk.salyk.kg:30040 [09:48:02]ConnectInit lk.salyk.kg [09:48:02]Connected sock=7 [09:48:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 06 A1 07 01 74 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 54 FA B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 DB 02 00 35 04 06 00 C3 F5 AF B7 C7 75 9E 16 BB 9B 20 AE D5 71 [09:48:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 39 2C 47 00 A0 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 31 38 32 36 10 04 04 00 72 DB 02 00 F4 03 04 00 A5 A0 B6 67 B6 04 01 00 00 6E 5D 69 0F 5E 6E 17 C4 [09:48:02]CommunicateWithHost err = 0 [09:48:02]CheckOFDResponse [09:48:02]1017 (14) - 77093643461234 [09:48:02]1041 (16) - 0000000000871826 [09:48:02]1040 (4) - 187250 [09:48:02]1012 (4) - 20.02.2025 03:25 [09:48:02]1206 (1) - 0 [09:48:02]OFD Sender: Remove packet 187250 [09:48:02]ProducePacketName [09:48:02]name=ofd_packets/00187250 [09:48:02]NVStorageDeleteData [09:48:02]Write to MH i2c: 01 00 00 8A 21 AB [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 07 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 07 00 8A 21 00 00 00 00 00 11 0D D0 [09:48:02]RasterBufferAndPrint [09:48:02]line [09:48:02]line [09:48:02]line [09:48:02]line [09:48:02]line [09:48:02]written 0, free lines is 3352 [09:48:02]MH_Cut [09:48:02]Write to MH i2c: D1 01 00 91 21 01 84 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: D1 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: D1 01 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: D1 01 00 91 21 00 83 [09:48:02]Write to MH i2c: 01 00 00 92 21 B3 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:03]OFD Sender: No OFD packet to send [09:48:03]*** Cut start [09:48:03]*** Partial cut [09:48:03]*** CUTSNS_PIN = 1 [09:48:03]*** CUTSNS_PIN = 0 [09:48:03]*** Brake cut motor [09:48:03]Read from MH i2c: 01 [09:48:03]MH_I2C_Read... [09:48:03]*** Stop cut motor [09:48:03]*** Cut end [09:48:03]Read from MH i2c: 01 07 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 07 00 92 21 00 00 00 00 00 FF 0F C8 [09:48:03]process_action close_receipt done [09:48:03]requested_data is exist [09:48:03]produce_requested_data [09:48:03]requested_item fm.sn is exist - process it [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 11 00 00 [09:48:03]Write to MH i2c: E2 08 00 93 21 80 11 00 00 00 00 00 00 2E [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 17 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 17 00 93 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [09:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:48:04]wFMCommunicate OK [09:48:04]requested_item fd.num is exist - process it [09:48:04]SAM_PROTO_GetFieldsCounters [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 13 00 00 [09:48:04]Write to MH i2c: E2 08 00 94 21 80 13 00 00 00 00 00 00 31 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 62 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 62 00 94 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 DB 02 00 0E 04 04 00 88 02 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 C9 [09:48:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 DB 02 00 0E 04 04 00 88 02 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:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_GetFieldsCounters done [09:48:04]requested_item shift.num is exist - process it [09:48:04]requested_item shift.opened is exist - process it [09:48:04]req_shift_opened [09:48:04]FM_GetShiftState [09:48:04]SAM_PROTO_GetShiftState [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 13 01 00 [09:48:04]Write to MH i2c: E2 08 00 95 21 80 13 01 00 00 00 00 00 33 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0E 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0E 00 95 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 85 [09:48:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_GetShiftState done [09:48:04]FM_GetShiftState done [09:48:04]req_shift_opened done [09:48:04]requested_item shift.open_date is exist - process it [09:48:04]req_shift_open_date [09:48:04]req_shift_open_date done [09:48:04]produce_requested_data done [09:48:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187250,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:48:04]process_action_free close_receipt [09:48:04]json_value_free [09:48:04]json_value_free done [09:48:04]process_json_proto returns [09:48:04]Send response to host [09:48:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187250,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:48:04]free response buf [09:48:04]execute_script done [09:48:04]execute_script returns [09:48:04]free content buf [09:48:04]Sock 9.Close socket [09:48:04]Sock 9.Thread stoped [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:04]accept exits with 10 [09:52:04]New connection [09:52:04]New thread 3066654052 created [09:52:04]Thread 3066510692 joined [09:52:04]Waiting for new connection... [09:52:04] Sock 10.Parse request [09:52:04]Sock 10.Check first char [09:52:04]Sock 10.First char is OK [09:52:04]request: POST /json_proto HTTP/1.0 [09:52:04]Method: POST [09:52:04]URL: /json_proto [09:52:04]Method is POST - this is cgi request [09:52:04]url: /json_proto [09:52:04]query_string will be loaded in cgi processing [09:52:04]execute_cgi json_proto POST (null) [09:52:04]execute_cgi path=json_proto method=POST [09:52:04]POST find Content-Length [09:52:04]Host: 172.17.46.131:8080 [09:52:04]Content-Length: 799 [09:52:04]Content-Type: application/json [09:52:04] [09:52:04]POST finish read [09:52:04]Found Content-Length = 799 [09:52:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:04]execute_script... [09:52:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:04]POST & json_proto [09:52:04]process_json_proto [09:52:04]json parsed OK: [09:52:04]protocol is kg_v1.0 [09:52:04]action value=close_receipt [09:52:04]process_action close_receipt [09:52:04]cmd_close_receipt [09:52:04]MH_GetDate [09:52:04]Write to MH i2c: F0 00 00 96 21 A6 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: F0 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: F0 09 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: F0 09 00 96 21 00 48 FB B6 67 7E 41 4F 65 82 [09:52:04]GetLastDocTimeStamp 1740044884 [09:52:04]current date 1740045128 [09:52:04]FM_GetShiftState [09:52:04]SAM_PROTO_GetShiftState [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 13 01 00 [09:52:04]Write to MH i2c: E2 08 00 97 21 80 13 01 00 00 00 00 00 35 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0E 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0E 00 97 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 87 [09:52:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:52:04]wFMCommunicate OK [09:52:04]SAM_PROTO_GetShiftState done [09:52:04]FM_GetShiftState done [09:52:04]opened in 1740011697 [09:52:04]opened+sec_in_day 1740098097 [09:52:04]quantity*price = 200013 [09:52:04]sum+1 = 200014 [09:52:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 52 20.02.2025 09:52 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187251 ФПД: 131560529449641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095208&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187251&fm=131560529449641&tin=02508201610067®Number=0000000000091857&sum=200013 [09:52:05]StoreToDocumentArchive [09:52:05]shift 648 fd 187251 [09:52:05]save to /storage/0648/doc_00187251 [09:52:05]save last doc name /storage/0648/doc_00187251 to /storage/kkm_last_doc_name [09:52:05]save OK [09:52:05]Clear old archive folders... [09:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:52:05]tlvbuf is 01FDC730 [09:52:05]SAM_PROTO_ClearQueue [09:52:05]wFMCommunicate request_size=4 [09:52:05]MH_SAM_APDU [09:52:05]CAPDU: 80 09 00 00 [09:52:05]Write to MH i2c: E2 08 00 A4 21 80 09 00 00 00 00 00 00 37 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:05]Read from MH i2c: E2 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 03 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 03 00 A4 21 00 90 00 39 [09:52:05]RAPDU: 90 00 [09:52:05]wFMCommunicate OK [09:52:05]SAM_PROTO_ClearQueue done [09:52:05]KKMCreateOFDPacket [09:52:05]OFDProtocolAddRootSTLVToBuf [09:52:05]FM_MakeSignedData [09:52:05]FM_MakeSignedData [09:52:05]SAM_PROTO_SignData [09:52:05]wFMCommunicate request_size=4 [09:52:05]MH_SAM_APDU [09:52:05]CAPDU: 80 0D 01 02 [09:52:05]Write to MH i2c: E2 08 00 A5 21 80 0D 01 02 00 00 00 00 3F [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:05]Read from MH i2c: E2 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 03 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 03 00 A5 21 00 90 00 3A [09:52:05]RAPDU: 90 00 [09:52:05]wFMCommunicate OK [09:52:05]wFMCommunicate request_size=255 [09:52:05]MH_SAM_APDU [09:52: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 48 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DB 02 00 35 04 06 00 77 A7 52 9F [09:52:05]Write to MH i2c: E2 02 01 A6 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 48 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DB 02 00 35 04 06 00 77 A7 52 9F 00 00 F0 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 03 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [09:52:06]RAPDU: 90 00 [09:52:06]wFMCommunicate OK [09:52:06]wFMCommunicate request_size=7 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 0D 02 02 02 D2 A9 [09:52:06]Write to MH i2c: E2 0A 00 A7 21 80 0D 02 02 02 00 D2 A9 00 00 C1 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 03 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [09:52:06]RAPDU: 90 00 [09:52:06]wFMCommunicate OK [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 0D 03 02 [09:52:06]Write to MH i2c: E2 08 00 A8 21 80 0D 03 02 00 00 00 00 44 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 0B 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 0B 00 A8 21 00 31 E5 7F 2F 40 50 20 76 90 00 2F [09:52:06]RAPDU: 31 E5 7F 2F 40 50 20 76 90 00 [09:52:06]wFMCommunicate OK [09:52:06]SAM_PROTO_SignData done [09:52:06]FM_MakeSignedData done [09:52:06]CreateOFDProtocolMessage [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 11 00 00 [09:52:06]Write to MH i2c: E2 08 00 A9 21 80 11 00 00 00 00 00 00 44 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 17 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 17 00 A9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [09:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:52:06]wFMCommunicate OK [09:52:06]CreateOFDProtocolMessage done [09:52:06]OFDSenderStorePacket 187251 [09:52:06]StoreOFDPacket docnum=187251 [09:52:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A9 19 04 01 D4 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 48 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DB 02 00 35 04 06 00 77 A7 52 9F D2 A9 31 E5 7F 2F 40 50 20 76 [09:52:06]CheckFolder [09:52:06]dirname=/storage/ofd_packets [09:52:06]CheckFolder done [09:52:06]ProducePacketName [09:52:06]name=ofd_packets/00187251 [09:52:06]NVStorageSaveData ofd_packets/00187251 [09:52:06]File name is /storage/ofd_packets/00187251 [09:52:06]Write 298 bytes [09:52:06]NVStorageSaveData done [09:52:06]OFDSenderStorePacket done [09:52:06]KKMCreateOFDPacket done [09:52:06]NVStorageSaveData kkm_last_timestamp [09:52:06]File name is /storage/kkm_last_timestamp [09:52:06]Write 4 bytes [09:52:06]NVStorageSaveData done [09:52:06]ExternCall_PrintAddStr [09:52:06]wPrintStart [09:52:06]Write to MH i2c: 01 00 00 AA 21 CB [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 AA 21 00 00 00 00 00 FF 0F E0 [09:52:06]RasterBufferAndPrint [09:52:06]line Счет N : (1)412404 [09:52:06]line ИНН: 02508201610067 [09:52:06]line Контрольно-Кассовый Чек [09:52:06]line ПРОДАЖА [09:52:06]line ТРК (МРК, ГНК) : 6 [09:52:06]line Товар: 2710194210 [09:52:06]line ДТ-К-5 [09:52:06]line 27.550 * 72.60 [09:52:06]line = 2000.13 [09:52:06]line НДС 12% НСП 1% [09:52:06]line > о реализуемом товаре [09:52:06]line ИТОГО: 2000.13 [09:52:06]line НСП 1% : 17.70 [09:52:06]line НДС 12% : 212.40 [09:52:06]line Наличными: 0.00 [09:52:06]line Безнал.: 2000.13 [09:52:06]line Место: АЗС № 92 "Партнер Нефть" [09:52:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:52:06]line СНО: Общий режим [09:52:06]line Чек 52 20.02.2025 09:52 [09:52:06]line Смена: 648 ФФД: 1.0 [09:52:06]line ЗНМ: 0300000118 [09:52:06]line РНМ: 0000000000091857 [09:52:06]line Версия ККМ: 001 [09:52:06]line Платежная система: O! деньги [09:52:06]line ФМ: 0000000000871826 [09:52:06]line ФД: 187251 [09:52:06]line ФПД: 131560529449641 [09:52:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095208&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187251&fm=131560529449641&tin=02508201610067®Number=0000000000091857&sum=200013 [09:52:06]OFD Sender: Processing packet 187251 [packets to send 49, broken 48] [09:52:06]ProducePacketName [09:52:06]name=ofd_packets/00187251 [09:52:06]OFD Sender: To server: pG, [09:52:06]CommunicateWithHost lk.salyk.kg:30040 [09:52:06]ConnectInit lk.salyk.kg [09:52:06]written 0, free lines is 4095 [09:52:06]Connected sock=9 [09:52:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A9 19 04 01 D4 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 48 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DB 02 00 35 04 06 00 77 A7 52 9F D2 A9 31 E5 7F 2F 40 50 20 76 [09:52:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 54 CC 47 00 72 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DB 02 00 F4 03 04 00 9A A1 B6 67 B6 04 01 00 00 B8 67 1F D6 48 10 08 21 [09:52:07]CommunicateWithHost err = 0 [09:52:07]CheckOFDResponse [09:52:07]1017 (14) - 77093643461234 [09:52:07]1041 (16) - 0000000000871826 [09:52:07]1040 (4) - 187251 [09:52:07]1012 (4) - 20.02.2025 03:29 [09:52:07]1206 (1) - 0 [09:52:07]OFD Sender: Remove packet 187251 [09:52:07]ProducePacketName [09:52:07]name=ofd_packets/00187251 [09:52:07]NVStorageDeleteData [09:52:07]Write to MH i2c: 01 00 00 D4 21 F5 [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: 01 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: 01 07 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: 01 07 00 D4 21 00 00 00 00 00 17 0D 20 [09:52:07]RasterBufferAndPrint [09:52:07]line [09:52:07]line [09:52:07]line [09:52:07]line [09:52:07]line [09:52:07]written 0, free lines is 3357 [09:52:07]MH_Cut [09:52:07]Write to MH i2c: D1 01 00 DB 21 01 CE [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: D1 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: D1 01 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: D1 01 00 DB 21 00 CD [09:52:07]Write to MH i2c: 01 00 00 DC 21 FD [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]OFD Sender: No OFD packet to send [09:52:07]*** Cut start [09:52:07]*** Partial cut [09:52:07]*** CUTSNS_PIN = 1 [09:52:07]*** CUTSNS_PIN = 0 [09:52:08]*** Brake cut motor [09:52:08]Read from MH i2c: 01 [09:52:08]MH_I2C_Read... [09:52:08]*** Stop cut motor [09:52:08]*** Cut end [09:52:08]Read from MH i2c: 01 07 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: 01 07 00 DC 21 00 00 00 00 00 FF 0F 12 [09:52:08]process_action close_receipt done [09:52:08]requested_data is exist [09:52:08]produce_requested_data [09:52:08]requested_item fm.sn is exist - process it [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 11 00 00 [09:52:08]Write to MH i2c: E2 08 00 DD 21 80 11 00 00 00 00 00 00 78 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 17 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 17 00 DD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [09:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:52:08]wFMCommunicate OK [09:52:08]requested_item fd.num is exist - process it [09:52:08]SAM_PROTO_GetFieldsCounters [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 13 00 00 [09:52:08]Write to MH i2c: E2 08 00 DE 21 80 13 00 00 00 00 00 00 7B [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 62 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 62 00 DE 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 73 DB 02 00 0E 04 04 00 88 02 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 17 [09:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 73 DB 02 00 0E 04 04 00 88 02 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:52:08]wFMCommunicate OK [09:52:08]SAM_PROTO_GetFieldsCounters done [09:52:08]requested_item shift.num is exist - process it [09:52:08]requested_item shift.opened is exist - process it [09:52:08]req_shift_opened [09:52:08]FM_GetShiftState [09:52:08]SAM_PROTO_GetShiftState [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 13 01 00 [09:52:08]Write to MH i2c: E2 08 00 DF 21 80 13 01 00 00 00 00 00 7D [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0E 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0E 00 DF 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CF [09:52:08]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:52:08]wFMCommunicate OK [09:52:08]SAM_PROTO_GetShiftState done [09:52:08]FM_GetShiftState done [09:52:08]req_shift_opened done [09:52:08]requested_item shift.open_date is exist - process it [09:52:08]req_shift_open_date [09:52:08]req_shift_open_date done [09:52:08]produce_requested_data done [09:52:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187251,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:52:08]process_action_free close_receipt [09:52:08]json_value_free [09:52:08]json_value_free done [09:52:08]process_json_proto returns [09:52:08]Send response to host [09:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187251,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:52:08]free response buf [09:52:08]execute_script done [09:52:08]execute_script returns [09:52:08]free content buf [09:52:08]Sock 10.Close socket [09:52:08]Sock 10.Thread stoped [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:34]accept exits with 7 [09:53:34]New connection [09:53:34]New thread 3066510692 created [09:53:34]Thread 3066654052 joined [09:53:34]Waiting for new connection... [09:53:34] Sock 7.Parse request [09:53:34]Sock 7.Check first char [09:53:34]Sock 7.First char is OK [09:53:34]request: POST /json_proto HTTP/1.0 [09:53:34]Method: POST [09:53:34]URL: /json_proto [09:53:34]Method is POST - this is cgi request [09:53:34]url: /json_proto [09:53:34]query_string will be loaded in cgi processing [09:53:34]execute_cgi json_proto POST (null) [09:53:34]execute_cgi path=json_proto method=POST [09:53:34]POST find Content-Length [09:53:34]Host: 172.17.46.131:8080 [09:53:34]Content-Length: 682 [09:53:34]Content-Type: application/json [09:53:34] [09:53:34]POST finish read [09:53:34]Found Content-Length = 682 [09:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [09:53:34]execute_script... [09: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)412406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [09:53:34]POST & json_proto [09:53:34]process_json_proto [09:53:34]json parsed OK: [09:53:34]protocol is kg_v1.0 [09:53:34]action value=close_receipt [09:53:34]process_action close_receipt [09:53:34]cmd_close_receipt [09:53:34]MH_GetDate [09:53:34]Write to MH i2c: F0 00 00 E0 21 F0 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: F0 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: F0 09 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: F0 09 00 E0 21 00 A2 FB B6 67 7E 41 4F 65 26 [09:53:34]GetLastDocTimeStamp 1740045128 [09:53:34]current date 1740045218 [09:53:34]FM_GetShiftState [09:53:34]SAM_PROTO_GetShiftState [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 13 01 00 [09:53:34]Write to MH i2c: E2 08 00 E1 21 80 13 01 00 00 00 00 00 7F [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:34]Read from MH i2c: E2 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 0E 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 0E 00 E1 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D1 [09:53:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:53:34]wFMCommunicate OK [09:53:34]SAM_PROTO_GetShiftState done [09:53:34]FM_GetShiftState done [09:53:34]opened in 1740011697 [09:53:34]opened+sec_in_day 1740098097 [09:53:34]quantity*price = 200025 [09:53:34]sum+1 = 200027 [09:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 53 20.02.2025 09:53 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187252 ФПД: 190739260560409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095338&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187252&fm=190739260560409&tin=02508201610067®Number=0000000000091857&sum=200000 [09:53:35]StoreToDocumentArchive [09:53:35]shift 648 fd 187252 [09:53:35]save to /storage/0648/doc_00187252 [09:53:35]save last doc name /storage/0648/doc_00187252 to /storage/kkm_last_doc_name [09:53:35]save OK [09:53:35]Clear old archive folders... [09:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:35]tlvbuf is B6F0F860 [09:53:35]SAM_PROTO_ClearQueue [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 09 00 00 [09:53:35]Write to MH i2c: E2 08 00 EE 21 80 09 00 00 00 00 00 00 81 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 EE 21 00 90 00 83 [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]SAM_PROTO_ClearQueue done [09:53:35]KKMCreateOFDPacket [09:53:35]OFDProtocolAddRootSTLVToBuf [09:53:35]FM_MakeSignedData [09:53:35]FM_MakeSignedData [09:53:35]SAM_PROTO_SignData [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 0D 01 02 [09:53:35]Write to MH i2c: E2 08 00 EF 21 80 0D 01 02 00 00 00 00 89 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 EF 21 00 90 00 84 [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]wFMCommunicate request_size=255 [09:53:35]MH_SAM_APDU [09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 35 00 00 00 F4 03 04 00 A2 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DB 02 00 35 04 06 00 AD [09:53:35]Write to MH i2c: E2 02 01 F0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 35 00 00 00 F4 03 04 00 A2 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DB 02 00 35 04 06 00 AD 00 00 A3 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 F0 21 00 90 00 85 [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]wFMCommunicate request_size=10 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 0D 02 02 05 79 F1 DE D4 19 [09:53:35]Write to MH i2c: E2 0D 00 F1 21 80 0D 02 02 05 00 79 F1 DE D4 19 00 00 CB [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 F1 21 00 90 00 86 [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 0D 03 02 [09:53:35]Write to MH i2c: E2 08 00 F2 21 80 0D 03 02 00 00 00 00 8E [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 0B 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 0B 00 F2 21 00 CB ED 62 C3 6A F0 50 F6 90 00 0C [09:53:36]RAPDU: CB ED 62 C3 6A F0 50 F6 90 00 [09:53:36]wFMCommunicate OK [09:53:36]SAM_PROTO_SignData done [09:53:36]FM_MakeSignedData done [09:53:36]CreateOFDProtocolMessage [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 11 00 00 [09:53:36]Write to MH i2c: E2 08 00 F3 21 80 11 00 00 00 00 00 00 8E [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 17 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 17 00 F3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [09:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:53:36]wFMCommunicate OK [09:53:36]CreateOFDProtocolMessage done [09:53:36]OFDSenderStorePacket 187252 [09:53:36]StoreOFDPacket docnum=187252 [09:53:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 63 AD 07 01 8D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 35 00 00 00 F4 03 04 00 A2 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DB 02 00 35 04 06 00 AD 79 F1 DE D4 19 CB ED 62 C3 6A F0 50 F6 [09:53:36]CheckFolder [09:53:36]dirname=/storage/ofd_packets [09:53:36]CheckFolder done [09:53:36]ProducePacketName [09:53:36]name=ofd_packets/00187252 [09:53:36]NVStorageSaveData ofd_packets/00187252 [09:53:36]File name is /storage/ofd_packets/00187252 [09:53:36]Write 301 bytes [09:53:36]NVStorageSaveData done [09:53:36]OFDSenderStorePacket done [09:53:36]KKMCreateOFDPacket done [09:53:36]NVStorageSaveData kkm_last_timestamp [09:53:36]File name is /storage/kkm_last_timestamp [09:53:36]Write 4 bytes [09:53:36]NVStorageSaveData done [09:53:36]ExternCall_PrintAddStr [09:53:36]wPrintStart [09:53:36]Write to MH i2c: 01 00 00 F4 21 15 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 F4 21 00 00 00 00 00 FF 0F 2A [09:53:36]RasterBufferAndPrint [09:53:36]line Счет N : (1)412406 [09:53:36]line ИНН: 02508201610067 [09:53:36]line Контрольно-Кассовый Чек [09:53:36]line ПРОДАЖА [09:53:36]line ТРК (МРК, ГНК) : 23 [09:53:36]line Товар: 2710124500 [09:53:36]line Аи-95-К-5 [09:53:36]line 27.820 * 71.90 [09:53:36]line = 2000.26 [09:53:36]line НДС 12% НСП 1% [09:53:36]line > о реализуемом товаре [09:53:36]line ОКРУГЛЕНИЕ: -0.26 [09:53:36]line ИТОГО: 2000.00 [09:53:36]line Внесено: 2000.00 [09:53:36]line СДАЧА: 0.00 [09:53:36]line НСП 1% : 17.70 [09:53:36]line НДС 12% : 212.42 [09:53:36]line Наличными: 2000.00 [09:53:36]line Безнал.: 0.00 [09:53:36]line Место: АЗС № 92 "Партнер Нефть" [09:53:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:53:36]line СНО: Общий режим [09:53:36]line Чек 53 20.02.2025 09:53 [09:53:36]line Смена: 648 ФФД: 1.0 [09:53:36]line ЗНМ: 0300000118 [09:53:36]line РНМ: 0000000000091857 [09:53:36]line Версия ККМ: 001 [09:53:36]line ФМ: 0000000000871826 [09:53:36]line ФД: 187252 [09:53:36]line ФПД: 190739260560409 [09:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095338&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187252&fm=190739260560409&tin=02508201610067®Number=0000000000091857&sum=200000 [09:53:36]OFD Sender: Processing packet 187252 [packets to send 49, broken 48] [09:53:36]ProducePacketName [09:53:36]name=ofd_packets/00187252 [09:53:36]OFD Sender: To server: pG, [09:53:36]CommunicateWithHost lk.salyk.kg:30040 [09:53:36]ConnectInit lk.salyk.kg [09:53:36]written 0, free lines is 4095 [09:53:36]Connected sock=10 [09:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 63 AD 07 01 8D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 35 00 00 00 F4 03 04 00 A2 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DB 02 00 35 04 06 00 AD 79 F1 DE D4 19 CB ED 62 C3 6A F0 50 F6 [09:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0E A3 47 00 5C 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 31 38 32 36 10 04 04 00 74 DB 02 00 F4 03 04 00 F3 A1 B6 67 B6 04 01 00 00 12 03 A1 7C 02 D1 2A C0 [09:53:36]CommunicateWithHost err = 0 [09:53:36]CheckOFDResponse [09:53:36]1017 (14) - 77093643461234 [09:53:36]1041 (16) - 0000000000871826 [09:53:36]1040 (4) - 187252 [09:53:36]1012 (4) - 20.02.2025 03:30 [09:53:36]1206 (1) - 0 [09:53:36]OFD Sender: Remove packet 187252 [09:53:36]ProducePacketName [09:53:36]name=ofd_packets/00187252 [09:53:36]NVStorageDeleteData [09:53:36]Write to MH i2c: 01 00 00 1F 22 41 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 1F 22 00 00 00 00 00 F8 0C 4C [09:53:36]RasterBufferAndPrint [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]written 0, free lines is 3330 [09:53:36]MH_Cut [09:53:36]Write to MH i2c: D1 01 00 26 22 01 1A [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: D1 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: D1 01 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: D1 01 00 26 22 00 19 [09:53:36]Write to MH i2c: 01 00 00 27 22 49 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:37]OFD Sender: No OFD packet to send [09:53:37]*** Cut start [09:53:37]*** Partial cut [09:53:37]*** CUTSNS_PIN = 1 [09:53:37]*** CUTSNS_PIN = 0 [09:53:37]*** Brake cut motor [09:53:38]Read from MH i2c: 01 [09:53:38]MH_I2C_Read... [09:53:38]*** Stop cut motor [09:53:38]*** Cut end [09:53:38]Read from MH i2c: 01 07 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: 01 07 00 27 22 00 00 00 00 00 FF 0F 5E [09:53:38]process_action close_receipt done [09:53:38]requested_data is exist [09:53:38]produce_requested_data [09:53:38]requested_item fm.sn is exist - process it [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 11 00 00 [09:53:38]Write to MH i2c: E2 08 00 28 22 80 11 00 00 00 00 00 00 C4 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 17 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 17 00 28 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [09:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:53:38]wFMCommunicate OK [09:53:38]requested_item fd.num is exist - process it [09:53:38]SAM_PROTO_GetFieldsCounters [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 13 00 00 [09:53:38]Write to MH i2c: E2 08 00 29 22 80 13 00 00 00 00 00 00 C7 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 62 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 62 00 29 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 74 DB 02 00 0E 04 04 00 88 02 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 67 [09: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 74 DB 02 00 0E 04 04 00 88 02 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:53:38]wFMCommunicate OK [09:53:38]SAM_PROTO_GetFieldsCounters done [09:53:38]requested_item shift.num is exist - process it [09:53:38]requested_item shift.opened is exist - process it [09:53:38]req_shift_opened [09:53:38]FM_GetShiftState [09:53:38]SAM_PROTO_GetShiftState [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 13 01 00 [09:53:38]Write to MH i2c: E2 08 00 2A 22 80 13 01 00 00 00 00 00 C9 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 0E 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 0E 00 2A 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1B [09:53:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:53:38]wFMCommunicate OK [09:53:38]SAM_PROTO_GetShiftState done [09:53:38]FM_GetShiftState done [09:53:38]req_shift_opened done [09:53:38]requested_item shift.open_date is exist - process it [09:53:38]req_shift_open_date [09:53:38]req_shift_open_date done [09:53:38]produce_requested_data done [09:53:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187252,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:53:38]process_action_free close_receipt [09:53:38]json_value_free [09:53:38]json_value_free done [09:53:38]process_json_proto returns [09:53:38]Send response to host [09:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187252,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:53:38]free response buf [09:53:38]execute_script done [09:53:38]execute_script returns [09:53:38]free content buf [09:53:38]Sock 7.Close socket [09:53:38]Sock 7.Thread stoped [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:21]accept exits with 9 [09:54:21]New connection [09:54:21]New thread 3066654052 created [09:54:21]Thread 3066510692 joined [09:54:21]Waiting for new connection... [09:54:21] Sock 9.Parse request [09:54:21]Sock 9.Check first char [09:54:21]Sock 9.First char is OK [09:54:21]request: POST /json_proto HTTP/1.0 [09:54:21]Method: POST [09:54:21]URL: /json_proto [09:54:21]Method is POST - this is cgi request [09:54:21]url: /json_proto [09:54:21]query_string will be loaded in cgi processing [09:54:21]execute_cgi json_proto POST (null) [09:54:21]execute_cgi path=json_proto method=POST [09:54:21]POST find Content-Length [09:54:21]Host: 172.17.46.131:8080 [09:54:21]Content-Length: 792 [09:54:21]Content-Type: application/json [09:54:21] [09:54:21]POST finish read [09:54:21]Found Content-Length = 792 [09:54:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 39.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:21]execute_script... [09:54: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)412405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 39.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:21]POST & json_proto [09:54:21]process_json_proto [09:54:21]json parsed OK: [09:54:21]protocol is kg_v1.0 [09:54:21]action value=close_receipt [09:54:21]process_action close_receipt [09:54:21]cmd_close_receipt [09:54:21]MH_GetDate [09:54:21]Write to MH i2c: F0 00 00 2B 22 3C [09:54:21]Write i2c OK [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: F0 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: F0 09 00 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: F0 09 00 2B 22 00 D1 FB B6 67 7E 41 4F 65 A1 [09:54:21]GetLastDocTimeStamp 1740045218 [09:54:21]current date 1740045265 [09:54:21]FM_GetShiftState [09:54:21]SAM_PROTO_GetShiftState [09:54:21]wFMCommunicate request_size=4 [09:54:21]MH_SAM_APDU [09:54:21]CAPDU: 80 13 01 00 [09:54:21]Write to MH i2c: E2 08 00 2C 22 80 13 01 00 00 00 00 00 CB [09:54:21]Write i2c OK [09:54:21]MH_I2C_Read... [09:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:21]Read from MH i2c: E2 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: E2 0E 00 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: E2 0E 00 2C 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1D [09:54:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:54:21]wFMCommunicate OK [09:54:21]SAM_PROTO_GetShiftState done [09:54:21]FM_GetShiftState done [09:54:21]opened in 1740011697 [09:54:21]opened+sec_in_day 1740098097 [09:54:21]quantity*price = 0 [09:54:21]sum+1 = 1 [09:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 54 20.02.2025 09:54 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03529 ФМ: 0000000000871826 ФД: 187253 ФПД: 60653046635696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095425&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187253&fm=60653046635696&tin=02508201610067®Number=0000000000091857&sum=0 [09:54:22]StoreToDocumentArchive [09:54:22]shift 648 fd 187253 [09:54:22]save to /storage/0648/doc_00187253 [09:54:22]save last doc name /storage/0648/doc_00187253 to /storage/kkm_last_doc_name [09:54:22]save OK [09:54:22]Clear old archive folders... [09:54:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:22]tlvbuf is 0201A4E0 [09:54:22]SAM_PROTO_ClearQueue [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 09 00 00 [09:54:22]Write to MH i2c: E2 08 00 39 22 80 09 00 00 00 00 00 00 CD [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 39 22 00 90 00 CF [09:54:22]RAPDU: 90 00 [09:54:22]wFMCommunicate OK [09:54:22]SAM_PROTO_ClearQueue done [09:54:22]KKMCreateOFDPacket [09:54:22]OFDProtocolAddRootSTLVToBuf [09:54:22]FM_MakeSignedData [09:54:22]FM_MakeSignedData [09:54:22]SAM_PROTO_SignData [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 0D 01 02 [09:54:22]Write to MH i2c: E2 08 00 3A 22 80 0D 01 02 00 00 00 00 D5 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]OFD Sender: No OFD packet to send [09:54:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 3A 22 00 90 00 D0 [09:54:22]RAPDU: 90 00 [09:54:22]wFMCommunicate OK [09:54:22]wFMCommunicate request_size=255 [09:54:22]MH_SAM_APDU [09:54: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 32 FF 03 08 00 03 58 98 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D1 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DB 02 00 35 04 06 00 37 [09:54:22]Write to MH i2c: E2 02 01 3B 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 32 FF 03 08 00 03 58 98 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D1 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DB 02 00 35 04 06 00 37 00 00 03 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 3B 22 00 90 00 D1 [09:54:22]RAPDU: 90 00 [09:54:22]wFMCommunicate OK [09:54:22]wFMCommunicate request_size=10 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 0D 02 02 05 29 E3 4C 9C B0 [09:54:22]Write to MH i2c: E2 0D 00 3C 22 80 0D 02 02 05 00 29 E3 4C 9C B0 00 00 86 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 3C 22 00 90 00 D2 [09:54:22]RAPDU: 90 00 [09:54:22]wFMCommunicate OK [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 0D 03 02 [09:54:22]Write to MH i2c: E2 08 00 3D 22 80 0D 03 02 00 00 00 00 DA [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 0B 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 0B 00 3D 22 00 83 25 B6 EF F0 C1 3A 32 90 00 45 [09:54:22]RAPDU: 83 25 B6 EF F0 C1 3A 32 90 00 [09:54:22]wFMCommunicate OK [09:54:22]SAM_PROTO_SignData done [09:54:22]FM_MakeSignedData done [09:54:22]CreateOFDProtocolMessage [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 11 00 00 [09:54:22]Write to MH i2c: E2 08 00 3E 22 80 11 00 00 00 00 00 00 DA [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 17 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 17 00 3E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2D [09:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:54:22]wFMCommunicate OK [09:54:22]CreateOFDProtocolMessage done [09:54:22]OFDSenderStorePacket 187253 [09:54:22]StoreOFDPacket docnum=187253 [09:54:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 86 47 07 01 DE 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 32 FF 03 08 00 03 58 98 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D1 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DB 02 00 35 04 06 00 37 29 E3 4C 9C B0 83 25 B6 EF F0 C1 3A 32 [09:54:22]CheckFolder [09:54:22]dirname=/storage/ofd_packets [09:54:22]CheckFolder done [09:54:22]ProducePacketName [09:54:22]name=ofd_packets/00187253 [09:54:22]NVStorageSaveData ofd_packets/00187253 [09:54:22]File name is /storage/ofd_packets/00187253 [09:54:22]Write 301 bytes [09:54:22]NVStorageSaveData done [09:54:22]OFDSenderStorePacket done [09:54:22]KKMCreateOFDPacket done [09:54:22]NVStorageSaveData kkm_last_timestamp [09:54:22]File name is /storage/kkm_last_timestamp [09:54:22]Write 4 bytes [09:54:22]NVStorageSaveData done [09:54:22]ExternCall_PrintAddStr [09:54:22]wPrintStart [09:54:22]Write to MH i2c: 01 00 00 3F 22 61 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: 01 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: 01 07 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: 01 07 00 3F 22 00 00 00 00 00 FF 0F 76 [09:54:22]RasterBufferAndPrint [09:54:22]line Счет N : (1)412405 [09:54:22]line ИНН: 02508201610067 [09:54:22]line Контрольно-Кассовый Чек [09:54:22]line ПРОДАЖА [09:54:22]line ТРК (МРК, ГНК) : 32 [09:54:22]line Товар: 2710124130 [09:54:22]line Аи-92-К-2 [09:54:22]line 39.000 * 0.00 [09:54:22]line = 0.00 [09:54:22]line НДС 12% НСП 1% [09:54:22]line > о реализуемом товаре [09:54:22]line ИТОГО: 0.00 [09:54:22]line НСП 1% : 0.00 [09:54:22]line НДС 12% : 0.00 [09:54:22]line Наличными: 0.00 [09:54:22]line Безнал.: 0.00 [09:54:22]line Место: АЗС № 92 "Партнер Нефть" [09:54:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:54:22]line СНО: Общий режим [09:54:22]line Чек 54 20.02.2025 09:54 [09:54:22]line Смена: 648 ФФД: 1.0 [09:54:22]line ЗНМ: 0300000118 [09:54:22]line РНМ: 0000000000091857 [09:54:22]line Версия ККМ: 001 [09:54:22]line Талоны: Топливная Карта [09:54:22]line 03529 [09:54:22]line ФМ: 0000000000871826 [09:54:22]line ФД: 187253 [09:54:22]line ФПД: 60653046635696 [09:54:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095425&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187253&fm=60653046635696&tin=02508201610067®Number=0000000000091857&sum=0 [09:54:22]written 0, free lines is 4095 [09:54:22]OFD Sender: Processing packet 187253 [packets to send 49, broken 48] [09:54:22]ProducePacketName [09:54:22]name=ofd_packets/00187253 [09:54:22]OFD Sender: To server: pG, [09:54:22]CommunicateWithHost lk.salyk.kg:30040 [09:54:22]ConnectInit lk.salyk.kg [09:54:23]Connected sock=10 [09:54:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 86 47 07 01 DE 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 32 FF 03 08 00 03 58 98 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D1 FB B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DB 02 00 35 04 06 00 37 29 E3 4C 9C B0 83 25 B6 EF F0 C1 3A 32 [09:54:23]Write to MH i2c: 01 00 00 69 22 8B [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 07 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 07 00 69 22 00 00 00 00 00 09 0D A8 [09:54:23]RasterBufferAndPrint [09:54:23]line [09:54:23]line [09:54:23]line [09:54:23]line [09:54:23]line [09:54:23]written 0, free lines is 3347 [09:54:23]MH_Cut [09:54:23]Write to MH i2c: D1 01 00 70 22 01 64 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: D1 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: D1 01 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: D1 01 00 70 22 00 63 [09:54:23]Write to MH i2c: 01 00 00 71 22 93 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 21 7C 47 00 FD 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 31 38 32 36 10 04 04 00 75 DB 02 00 F4 03 04 00 22 A2 B6 67 B6 04 01 00 00 A1 B4 92 AB 15 BD DE B7 [09:54:23]CommunicateWithHost err = 0 [09:54:23]CheckOFDResponse [09:54:23]1017 (14) - 77093643461234 [09:54:23]1041 (16) - 0000000000871826 [09:54:23]1040 (4) - 187253 [09:54:23]1012 (4) - 20.02.2025 03:31 [09:54:23]1206 (1) - 0 [09:54:23]OFD Sender: Remove packet 187253 [09:54:23]ProducePacketName [09:54:23]name=ofd_packets/00187253 [09:54:23]NVStorageDeleteData [09:54:24]*** Cut start [09:54:24]*** Partial cut [09:54:24]*** CUTSNS_PIN = 1 [09:54:24]*** CUTSNS_PIN = 0 [09:54:24]OFD Sender: No OFD packet to send [09:54:24]*** Brake cut motor [09:54:24]Read from MH i2c: 01 [09:54:24]MH_I2C_Read... [09:54:24]*** Stop cut motor [09:54:24]*** Cut end [09:54:24]Read from MH i2c: 01 07 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: 01 07 00 71 22 00 00 00 00 00 FF 0F A8 [09:54:24]process_action close_receipt done [09:54:24]requested_data is exist [09:54:24]produce_requested_data [09:54:24]requested_item fm.sn is exist - process it [09:54:24]wFMCommunicate request_size=4 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 11 00 00 [09:54:24]Write to MH i2c: E2 08 00 72 22 80 11 00 00 00 00 00 00 0E [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 17 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 17 00 72 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [09:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:54:24]wFMCommunicate OK [09:54:24]requested_item fd.num is exist - process it [09:54:24]SAM_PROTO_GetFieldsCounters [09:54:24]wFMCommunicate request_size=4 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 13 00 00 [09:54:24]Write to MH i2c: E2 08 00 73 22 80 13 00 00 00 00 00 00 11 [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 62 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 62 00 73 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 75 DB 02 00 0E 04 04 00 88 02 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 B5 [09:54:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 75 DB 02 00 0E 04 04 00 88 02 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:54:24]wFMCommunicate OK [09:54:24]SAM_PROTO_GetFieldsCounters done [09:54:24]requested_item shift.num is exist - process it [09:54:24]requested_item shift.opened is exist - process it [09:54:24]req_shift_opened [09:54:24]FM_GetShiftState [09:54:24]SAM_PROTO_GetShiftState [09:54:24]wFMCommunicate request_size=4 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 13 01 00 [09:54:24]Write to MH i2c: E2 08 00 74 22 80 13 01 00 00 00 00 00 13 [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:25]Read from MH i2c: E2 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 0E 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 0E 00 74 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 65 [09:54:25]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:54:25]wFMCommunicate OK [09:54:25]SAM_PROTO_GetShiftState done [09:54:25]FM_GetShiftState done [09:54:25]req_shift_opened done [09:54:25]requested_item shift.open_date is exist - process it [09:54:25]req_shift_open_date [09:54:25]req_shift_open_date done [09:54:25]produce_requested_data done [09:54:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187253,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:54:25]process_action_free close_receipt [09:54:25]json_value_free [09:54:25]json_value_free done [09:54:25]process_json_proto returns [09:54:25]Send response to host [09:54:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187253,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:54:25]free response buf [09:54:25]execute_script done [09:54:25]execute_script returns [09:54:25]free content buf [09:54:25]Sock 9.Close socket [09:54:25]Sock 9.Thread stoped [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]accept exits with 7 [09:57:54]New connection [09:57:54]New thread 3066510692 created [09:57:54]Thread 3066654052 joined [09:57:54]Waiting for new connection... [09:57:54] Sock 7.Parse request [09:57:54]Sock 7.Check first char [09:57:54]Sock 7.First char is OK [09:57:54]request: POST /json_proto HTTP/1.0 [09:57:54]Method: POST [09:57:54]URL: /json_proto [09:57:54]Method is POST - this is cgi request [09:57:54]url: /json_proto [09:57:54]query_string will be loaded in cgi processing [09:57:54]execute_cgi json_proto POST (null) [09:57:54]execute_cgi path=json_proto method=POST [09:57:54]POST find Content-Length [09:57:54]Host: 172.17.46.131:8080 [09:57:54]Content-Length: 682 [09:57:54]Content-Type: application/json [09:57:54] [09:57:54]POST finish read [09:57:54]Found Content-Length = 682 [09:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:57:54]execute_script... [09:57:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:57:54]POST & json_proto [09:57:54]process_json_proto [09:57:54]json parsed OK: [09:57:54]protocol is kg_v1.0 [09:57:54]action value=close_receipt [09:57:54]process_action close_receipt [09:57:54]cmd_close_receipt [09:57:54]MH_GetDate [09:57:54]Write to MH i2c: F0 00 00 75 22 86 [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: F0 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: F0 09 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: F0 09 00 75 22 00 A6 FC B6 67 7E 41 4F 65 C1 [09:57:54]GetLastDocTimeStamp 1740045265 [09:57:54]current date 1740045478 [09:57:54]FM_GetShiftState [09:57:54]SAM_PROTO_GetShiftState [09:57:54]wFMCommunicate request_size=4 [09:57:54]MH_SAM_APDU [09:57:54]CAPDU: 80 13 01 00 [09:57:54]Write to MH i2c: E2 08 00 76 22 80 13 01 00 00 00 00 00 15 [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:54]Read from MH i2c: E2 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 0E 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 0E 00 76 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 67 [09:57:54]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:57:54]wFMCommunicate OK [09:57:54]SAM_PROTO_GetShiftState done [09:57:54]FM_GetShiftState done [09:57:54]opened in 1740011697 [09:57:54]opened+sec_in_day 1740098097 [09:57:54]quantity*price = 100023 [09:57:54]sum+1 = 100025 [09:57:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 55 20.02.2025 09:57 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187254 ФПД: 119450013512931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095758&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187254&fm=119450013512931&tin=02508201610067®Number=0000000000091857&sum=100000 [09:57:55]StoreToDocumentArchive [09:57:55]shift 648 fd 187254 [09:57:55]save to /storage/0648/doc_00187254 [09:57:55]save last doc name /storage/0648/doc_00187254 to /storage/kkm_last_doc_name [09:57:55]save OK [09:57:55]Clear old archive folders... [09:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:55]tlvbuf is 01F92F40 [09:57:55]SAM_PROTO_ClearQueue [09:57:55]wFMCommunicate request_size=4 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 09 00 00 [09:57:55]Write to MH i2c: E2 08 00 83 22 80 09 00 00 00 00 00 00 17 [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 03 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 03 00 83 22 00 90 00 19 [09:57:55]RAPDU: 90 00 [09:57:55]wFMCommunicate OK [09:57:55]SAM_PROTO_ClearQueue done [09:57:55]KKMCreateOFDPacket [09:57:55]OFDProtocolAddRootSTLVToBuf [09:57:55]FM_MakeSignedData [09:57:55]FM_MakeSignedData [09:57:55]SAM_PROTO_SignData [09:57:55]wFMCommunicate request_size=4 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 0D 01 02 [09:57:55]Write to MH i2c: E2 08 00 84 22 80 0D 01 02 00 00 00 00 1F [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 03 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 03 00 84 22 00 90 00 1A [09:57:55]RAPDU: 90 00 [09:57:55]wFMCommunicate OK [09:57:55]wFMCommunicate request_size=255 [09:57:55]MH_SAM_APDU [09:57: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A6 FC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 DB 02 00 35 04 06 00 6C [09:57:55]Write to MH i2c: E2 02 01 85 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A6 FC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 DB 02 00 35 04 06 00 6C 00 00 5B [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 03 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 03 00 85 22 00 90 00 1B [09:57:55]RAPDU: 90 00 [09:57:55]wFMCommunicate OK [09:57:55]wFMCommunicate request_size=10 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 0D 02 02 05 A3 9F 9F B4 E3 [09:57:55]Write to MH i2c: E2 0D 00 86 22 80 0D 02 02 05 00 A3 9F 9F B4 E3 00 00 A4 [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 03 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 03 00 86 22 00 90 00 1C [09:57:55]RAPDU: 90 00 [09:57:55]wFMCommunicate OK [09:57:55]wFMCommunicate request_size=4 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 0D 03 02 [09:57:55]Write to MH i2c: E2 08 00 87 22 80 0D 03 02 00 00 00 00 24 [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 0B 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 0B 00 87 22 00 2C AE E3 A1 A7 93 B3 A6 90 00 16 [09:57:55]RAPDU: 2C AE E3 A1 A7 93 B3 A6 90 00 [09:57:55]wFMCommunicate OK [09:57:55]SAM_PROTO_SignData done [09:57:55]FM_MakeSignedData done [09:57:55]CreateOFDProtocolMessage [09:57:55]wFMCommunicate request_size=4 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 11 00 00 [09:57:55]Write to MH i2c: E2 08 00 88 22 80 11 00 00 00 00 00 00 24 [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:56]Read from MH i2c: E2 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 17 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 17 00 88 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 77 [09:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:57:56]wFMCommunicate OK [09:57:56]CreateOFDProtocolMessage done [09:57:56]OFDSenderStorePacket 187254 [09:57:56]StoreOFDPacket docnum=187254 [09:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C8 AA 07 01 71 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A6 FC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 DB 02 00 35 04 06 00 6C A3 9F 9F B4 E3 2C AE E3 A1 A7 93 B3 A6 [09:57:56]CheckFolder [09:57:56]dirname=/storage/ofd_packets [09:57:56]CheckFolder done [09:57:56]ProducePacketName [09:57:56]name=ofd_packets/00187254 [09:57:56]NVStorageSaveData ofd_packets/00187254 [09:57:56]File name is /storage/ofd_packets/00187254 [09:57:56]Write 301 bytes [09:57:56]NVStorageSaveData done [09:57:56]OFDSenderStorePacket done [09:57:56]KKMCreateOFDPacket done [09:57:56]NVStorageSaveData kkm_last_timestamp [09:57:56]File name is /storage/kkm_last_timestamp [09:57:56]Write 4 bytes [09:57:56]NVStorageSaveData done [09:57:56]ExternCall_PrintAddStr [09:57:56]wPrintStart [09:57:56]Write to MH i2c: 01 00 00 89 22 AB [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 89 22 00 00 00 00 00 FF 0F C0 [09:57:56]RasterBufferAndPrint [09:57:56]line Счет N : (1)412407 [09:57:56]line ИНН: 02508201610067 [09:57:56]line Контрольно-Кассовый Чек [09:57:56]line ПРОДАЖА [09:57:56]line ТРК (МРК, ГНК) : 22 [09:57:56]line Товар: 2710124130 [09:57:56]line Аи-92-К-2 [09:57:56]line 15.580 * 64.20 [09:57:56]line = 1000.24 [09:57:56]line НДС 12% НСП 1% [09:57:56]line > о реализуемом товаре [09:57:56]line ОКРУГЛЕНИЕ: -0.24 [09:57:56]line ИТОГО: 1000.00 [09:57:56]line Внесено: 1000.00 [09:57:56]line СДАЧА: 0.00 [09:57:56]line НСП 1% : 8.85 [09:57:56]line НДС 12% : 106.22 [09:57:56]line Наличными: 1000.00 [09:57:56]line Безнал.: 0.00 [09:57:56]line Место: АЗС № 92 "Партнер Нефть" [09:57:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:57:56]line СНО: Общий режим [09:57:56]line Чек 55 20.02.2025 09:57 [09:57:56]line Смена: 648 ФФД: 1.0 [09:57:56]line ЗНМ: 0300000118 [09:57:56]line РНМ: 0000000000091857 [09:57:56]line Версия ККМ: 001 [09:57:56]line ФМ: 0000000000871826 [09:57:56]line ФД: 187254 [09:57:56]line ФПД: 119450013512931 [09:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095758&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187254&fm=119450013512931&tin=02508201610067®Number=0000000000091857&sum=100000 [09:57:56]OFD Sender: Processing packet 187254 [packets to send 49, broken 48] [09:57:56]ProducePacketName [09:57:56]name=ofd_packets/00187254 [09:57:56]OFD Sender: To server: pG, [09:57:56]CommunicateWithHost lk.salyk.kg:30040 [09:57:56]ConnectInit lk.salyk.kg [09:57:56]written 0, free lines is 4095 [09:57:56]Connected sock=10 [09:57:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C8 AA 07 01 71 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A6 FC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 DB 02 00 35 04 06 00 6C A3 9F 9F B4 E3 2C AE E3 A1 A7 93 B3 A6 [09:57:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A0 67 47 00 75 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 31 38 32 36 10 04 04 00 76 DB 02 00 F4 03 04 00 F7 A2 B6 67 B6 04 01 00 00 99 E3 8D 2F 4C A3 07 5F [09:57:56]CommunicateWithHost err = 0 [09:57:56]CheckOFDResponse [09:57:56]1017 (14) - 77093643461234 [09:57:56]1041 (16) - 0000000000871826 [09:57:56]1040 (4) - 187254 [09:57:56]1012 (4) - 20.02.2025 03:35 [09:57:56]1206 (1) - 0 [09:57:56]OFD Sender: Remove packet 187254 [09:57:56]ProducePacketName [09:57:56]name=ofd_packets/00187254 [09:57:56]NVStorageDeleteData [09:57:56]Write to MH i2c: 01 00 00 B4 22 D6 [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 B4 22 00 00 00 00 00 F5 0C DE [09:57:56]RasterBufferAndPrint [09:57:56]line [09:57:56]line [09:57:56]line [09:57:56]line [09:57:56]line [09:57:56]written 0, free lines is 3323 [09:57:56]MH_Cut [09:57:56]Write to MH i2c: D1 01 00 BB 22 01 AF [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: D1 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: D1 01 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: D1 01 00 BB 22 00 AE [09:57:56]Write to MH i2c: 01 00 00 BC 22 DE [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:57]OFD Sender: No OFD packet to send [09:57:57]*** Cut start [09:57:57]*** Partial cut [09:57:57]*** CUTSNS_PIN = 1 [09:57:57]*** CUTSNS_PIN = 0 [09:57:57]*** Brake cut motor [09:57:58]Read from MH i2c: 01 [09:57:58]MH_I2C_Read... [09:57:58]*** Stop cut motor [09:57:58]*** Cut end [09:57:58]Read from MH i2c: 01 07 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: 01 07 00 BC 22 00 00 00 00 00 FF 0F F3 [09:57:58]process_action close_receipt done [09:57:58]requested_data is exist [09:57:58]produce_requested_data [09:57:58]requested_item fm.sn is exist - process it [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 11 00 00 [09:57:58]Write to MH i2c: E2 08 00 BD 22 80 11 00 00 00 00 00 00 59 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 17 00 [09:57:58]MH_I2C_Read... [09:57:58]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 31 38 32 36 90 00 AC [09:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:57:58]wFMCommunicate OK [09:57:58]requested_item fd.num is exist - process it [09:57:58]SAM_PROTO_GetFieldsCounters [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 13 00 00 [09:57:58]Write to MH i2c: E2 08 00 BE 22 80 13 00 00 00 00 00 00 5C [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 62 00 [09:57:58]MH_I2C_Read... [09:57:58]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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 76 DB 02 00 0E 04 04 00 88 02 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 04 [09:57:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 76 DB 02 00 0E 04 04 00 88 02 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:57:58]wFMCommunicate OK [09:57:58]SAM_PROTO_GetFieldsCounters done [09:57:58]requested_item shift.num is exist - process it [09:57:58]requested_item shift.opened is exist - process it [09:57:58]req_shift_opened [09:57:58]FM_GetShiftState [09:57:58]SAM_PROTO_GetShiftState [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 13 01 00 [09:57:58]Write to MH i2c: E2 08 00 BF 22 80 13 01 00 00 00 00 00 5E [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 0E 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 0E 00 BF 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B0 [09:57:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:57:58]wFMCommunicate OK [09:57:58]SAM_PROTO_GetShiftState done [09:57:58]FM_GetShiftState done [09:57:58]req_shift_opened done [09:57:58]requested_item shift.open_date is exist - process it [09:57:58]req_shift_open_date [09:57:58]req_shift_open_date done [09:57:58]produce_requested_data done [09:57:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187254,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:57:58]process_action_free close_receipt [09:57:58]json_value_free [09:57:58]json_value_free done [09:57:58]process_json_proto returns [09:57:58]Send response to host [09:57:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187254,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:57:58]free response buf [09:57:58]execute_script done [09:57:58]execute_script returns [09:57:58]free content buf [09:57:58]Sock 7.Close socket [09:57:58]Sock 7.Thread stoped [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:15]accept exits with 9 [09:59:15]New connection [09:59:15]New thread 3066654052 created [09:59:15]Thread 3066510692 joined [09:59:15]Waiting for new connection... [09:59:15] Sock 9.Parse request [09:59:15]Sock 9.Check first char [09:59:15]Sock 9.First char is OK [09:59:15]request: POST /json_proto HTTP/1.0 [09:59:15]Method: POST [09:59:15]URL: /json_proto [09:59:15]Method is POST - this is cgi request [09:59:15]url: /json_proto [09:59:15]query_string will be loaded in cgi processing [09:59:15]execute_cgi json_proto POST (null) [09:59:15]execute_cgi path=json_proto method=POST [09:59:15]POST find Content-Length [09:59:15]Host: 172.17.46.131:8080 [09:59:15]Content-Length: 800 [09:59:15]Content-Type: application/json [09:59:15] [09:59:15]POST finish read [09:59:15]Found Content-Length = 800 [09:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4995593", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:15]execute_script... [09:59: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)412408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4995593", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:15]POST & json_proto [09:59:15]process_json_proto [09:59:15]json parsed OK: [09:59:15]protocol is kg_v1.0 [09:59:15]action value=close_receipt [09:59:15]process_action close_receipt [09:59:15]cmd_close_receipt [09:59:15]MH_GetDate [09:59:15]Write to MH i2c: F0 00 00 C0 22 D1 [09:59:15]Write i2c OK [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: F0 [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: F0 09 00 [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: F0 09 00 C0 22 00 F7 FC B6 67 7E 41 4F 65 5D [09:59:15]GetLastDocTimeStamp 1740045478 [09:59:15]current date 1740045559 [09:59:15]FM_GetShiftState [09:59:15]SAM_PROTO_GetShiftState [09:59:15]wFMCommunicate request_size=4 [09:59:15]MH_SAM_APDU [09:59:15]CAPDU: 80 13 01 00 [09:59:15]Write to MH i2c: E2 08 00 C1 22 80 13 01 00 00 00 00 00 60 [09:59:15]Write i2c OK [09:59:15]MH_I2C_Read... [09:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:15]Read from MH i2c: E2 [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: E2 0E 00 [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: E2 0E 00 C1 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B2 [09:59:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:59:15]wFMCommunicate OK [09:59:15]SAM_PROTO_GetShiftState done [09:59:15]FM_GetShiftState done [09:59:15]opened in 1740011697 [09:59:15]opened+sec_in_day 1740098097 [09:59:15]quantity*price = 0 [09:59:15]sum+1 = 1 [09:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 56 20.02.2025 09:59 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4995593 ФМ: 0000000000871826 ФД: 187255 ФПД: 106566621672855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095919&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187255&fm=106566621672855&tin=02508201610067®Number=0000000000091857&sum=0 [09:59:16]StoreToDocumentArchive [09:59:16]shift 648 fd 187255 [09:59:16]save to /storage/0648/doc_00187255 [09:59:16]save last doc name /storage/0648/doc_00187255 to /storage/kkm_last_doc_name [09:59:16]save OK [09:59:16]Clear old archive folders... [09:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:16]tlvbuf is 01F92D70 [09:59:16]SAM_PROTO_ClearQueue [09:59:16]wFMCommunicate request_size=4 [09:59:16]MH_SAM_APDU [09:59:16]CAPDU: 80 09 00 00 [09:59:16]Write to MH i2c: E2 08 00 CE 22 80 09 00 00 00 00 00 00 62 [09:59:16]Write i2c OK [09:59:16]MH_I2C_Read... [09:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:16]Read from MH i2c: E2 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 03 00 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [09:59:16]RAPDU: 90 00 [09:59:16]wFMCommunicate OK [09:59:16]SAM_PROTO_ClearQueue done [09:59:16]KKMCreateOFDPacket [09:59:16]OFDProtocolAddRootSTLVToBuf [09:59:16]FM_MakeSignedData [09:59:16]FM_MakeSignedData [09:59:16]SAM_PROTO_SignData [09:59:16]wFMCommunicate request_size=4 [09:59:16]MH_SAM_APDU [09:59:16]CAPDU: 80 0D 01 02 [09:59:16]Write to MH i2c: E2 08 00 CF 22 80 0D 01 02 00 00 00 00 6A [09:59:16]Write i2c OK [09:59:16]MH_I2C_Read... [09:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:16]Read from MH i2c: E2 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 03 00 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [09:59:16]RAPDU: 90 00 [09:59:16]wFMCommunicate OK [09:59:16]wFMCommunicate request_size=255 [09:59:16]MH_SAM_APDU [09:59: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F7 FC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DB 02 00 35 04 06 00 60 [09:59:16]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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F7 FC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DB 02 00 35 04 06 00 60 00 00 33 [09:59:16]Write i2c OK [09:59:16]MH_I2C_Read... [09:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:17]Read from MH i2c: E2 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: E2 03 00 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [09:59:17]RAPDU: 90 00 [09:59:17]wFMCommunicate OK [09:59:17]wFMCommunicate request_size=10 [09:59:17]MH_SAM_APDU [09:59:17]CAPDU: 80 0D 02 02 05 EB F9 A1 35 97 [09:59:17]Write to MH i2c: E2 0D 00 D1 22 80 0D 02 02 05 00 EB F9 A1 35 97 00 00 C8 [09:59:17]Write i2c OK [09:59:17]MH_I2C_Read... [09:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:17]Read from MH i2c: E2 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: E2 03 00 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: E2 03 00 D1 22 00 90 00 67 [09:59:17]RAPDU: 90 00 [09:59:17]wFMCommunicate OK [09:59:17]wFMCommunicate request_size=4 [09:59:17]MH_SAM_APDU [09:59:17]CAPDU: 80 0D 03 02 [09:59:17]Write to MH i2c: E2 08 00 D2 22 80 0D 03 02 00 00 00 00 6F [09:59:17]Write i2c OK [09:59:17]MH_I2C_Read... [09:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:17]Read from MH i2c: E2 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: E2 0B 00 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: E2 0B 00 D2 22 00 AE 88 B9 FA 45 DE ED C5 90 00 2E [09:59:17]RAPDU: AE 88 B9 FA 45 DE ED C5 90 00 [09:59:17]wFMCommunicate OK [09:59:17]SAM_PROTO_SignData done [09:59:17]FM_MakeSignedData done [09:59:17]CreateOFDProtocolMessage [09:59:17]wFMCommunicate request_size=4 [09:59:17]MH_SAM_APDU [09:59:17]CAPDU: 80 11 00 00 [09:59:17]Write to MH i2c: E2 08 00 D3 22 80 11 00 00 00 00 00 00 6F [09:59:17]Write i2c OK [09:59:17]MH_I2C_Read... [09:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:17]Read from MH i2c: E2 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: E2 17 00 [09:59:17]MH_I2C_Read... [09:59:17]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 31 38 32 36 90 00 C2 [09:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:59:17]wFMCommunicate OK [09:59:17]CreateOFDProtocolMessage done [09:59:17]OFDSenderStorePacket 187255 [09:59:17]StoreOFDPacket docnum=187255 [09:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2A C9 07 01 C7 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F7 FC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DB 02 00 35 04 06 00 60 EB F9 A1 35 97 AE 88 B9 FA 45 DE ED C5 [09:59:17]CheckFolder [09:59:17]dirname=/storage/ofd_packets [09:59:17]CheckFolder done [09:59:17]ProducePacketName [09:59:17]name=ofd_packets/00187255 [09:59:17]NVStorageSaveData ofd_packets/00187255 [09:59:17]File name is /storage/ofd_packets/00187255 [09:59:17]Write 301 bytes [09:59:17]NVStorageSaveData done [09:59:17]OFDSenderStorePacket done [09:59:17]KKMCreateOFDPacket done [09:59:17]NVStorageSaveData kkm_last_timestamp [09:59:17]File name is /storage/kkm_last_timestamp [09:59:17]Write 4 bytes [09:59:17]NVStorageSaveData done [09:59:17]ExternCall_PrintAddStr [09:59:17]wPrintStart [09:59:17]Write to MH i2c: 01 00 00 D4 22 F6 [09:59:17]OFD Sender: Processing packet 187255 [packets to send 49, broken 48] [09:59:17]ProducePacketName [09:59:17]name=ofd_packets/00187255 [09:59:17]OFD Sender: To server: pG, [09:59:17]CommunicateWithHost lk.salyk.kg:30040 [09:59:17]ConnectInit lk.salyk.kg [09:59:17]Write i2c OK [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 07 00 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 07 00 D4 22 00 00 00 00 00 FF 0F 0B [09:59:17]RasterBufferAndPrint [09:59:17]line Счет N : (1)412408 [09:59:17]line ИНН: 02508201610067 [09:59:17]line Контрольно-Кассовый Чек [09:59:17]line ПРОДАЖА [09:59:17]line ТРК (МРК, ГНК) : 42 [09:59:17]line Товар: 2710124130 [09:59:17]line Аи-92-К-2 [09:59:17]line 10.000 * 0.00 [09:59:17]line = 0.00 [09:59:17]line НДС 12% НСП 1% [09:59:17]line > о реализуемом товаре [09:59:17]line ИТОГО: 0.00 [09:59:17]line НСП 1% : 0.00 [09:59:17]line НДС 12% : 0.00 [09:59:17]line Наличными: 0.00 [09:59:17]line Безнал.: 0.00 [09:59:17]line Место: АЗС № 92 "Партнер Нефть" [09:59:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:59:17]line СНО: Общий режим [09:59:17]line Чек 56 20.02.2025 09:59 [09:59:17]line Смена: 648 ФФД: 1.0 [09:59:17]line ЗНМ: 0300000118 [09:59:17]line РНМ: 0000000000091857 [09:59:17]line Версия ККМ: 001 [09:59:17]line Талоны: Топливные Талоны [09:59:17]line 4995593 [09:59:17]line ФМ: 0000000000871826 [09:59:17]line ФД: 187255 [09:59:17]line ФПД: 106566621672855 [09:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T095919&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187255&fm=106566621672855&tin=02508201610067®Number=0000000000091857&sum=0 [09:59:17]Connected sock=10 [09:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2A C9 07 01 C7 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F7 FC B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DB 02 00 35 04 06 00 60 EB F9 A1 35 97 AE 88 B9 FA 45 DE ED C5 [09:59:17]written 0, free lines is 4095 [09:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 68 88 47 00 62 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DB 02 00 F4 03 04 00 48 A3 B6 67 B6 04 01 00 00 23 87 13 9A 54 C5 67 F1 [09:59:17]CommunicateWithHost err = 0 [09:59:17]CheckOFDResponse [09:59:17]1017 (14) - 77093643461234 [09:59:17]1041 (16) - 0000000000871826 [09:59:17]1040 (4) - 187255 [09:59:17]1012 (4) - 20.02.2025 03:36 [09:59:17]1206 (1) - 0 [09:59:17]OFD Sender: Remove packet 187255 [09:59:17]ProducePacketName [09:59:17]name=ofd_packets/00187255 [09:59:17]NVStorageDeleteData [09:59:18]Write to MH i2c: 01 00 00 FE 22 20 [09:59:18]Write i2c OK [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: 01 [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: 01 07 00 [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 FC 0C 2F [09:59:18]RasterBufferAndPrint [09:59:18]line [09:59:18]line [09:59:18]line [09:59:18]line [09:59:18]line [09:59:18]written 0, free lines is 3330 [09:59:18]MH_Cut [09:59:18]Write to MH i2c: D1 01 00 05 23 01 FA [09:59:18]Write i2c OK [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: D1 [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: D1 01 00 [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: D1 01 00 05 23 00 F9 [09:59:18]Write to MH i2c: 01 00 00 06 23 29 [09:59:18]Write i2c OK [09:59:18]MH_I2C_Read... [09:59:18]OFD Sender: No OFD packet to send [09:59:18]*** Cut start [09:59:18]*** Partial cut [09:59:18]*** CUTSNS_PIN = 1 [09:59:18]*** CUTSNS_PIN = 0 [09:59:19]*** Brake cut motor [09:59:19]Read from MH i2c: 01 [09:59:19]MH_I2C_Read... [09:59:19]*** Stop cut motor [09:59:19]*** Cut end [09:59:19]Read from MH i2c: 01 07 00 [09:59:19]MH_I2C_Read... [09:59:19]Read from MH i2c: 01 07 00 06 23 00 00 00 00 00 FF 0F 3E [09:59:19]process_action close_receipt done [09:59:19]requested_data is exist [09:59:19]produce_requested_data [09:59:19]requested_item fm.sn is exist - process it [09:59:19]wFMCommunicate request_size=4 [09:59:19]MH_SAM_APDU [09:59:19]CAPDU: 80 11 00 00 [09:59:19]Write to MH i2c: E2 08 00 07 23 80 11 00 00 00 00 00 00 A4 [09:59:19]Write i2c OK [09:59:19]MH_I2C_Read... [09:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:19]Read from MH i2c: E2 [09:59:19]MH_I2C_Read... [09:59:19]Read from MH i2c: E2 17 00 [09:59:19]MH_I2C_Read... [09:59:19]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 31 38 32 36 90 00 F7 [09:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:59:19]wFMCommunicate OK [09:59:19]requested_item fd.num is exist - process it [09:59:19]SAM_PROTO_GetFieldsCounters [09:59:19]wFMCommunicate request_size=4 [09:59:19]MH_SAM_APDU [09:59:19]CAPDU: 80 13 00 00 [09:59:19]Write to MH i2c: E2 08 00 08 23 80 13 00 00 00 00 00 00 A7 [09:59:19]Write i2c OK [09:59:19]MH_I2C_Read... [09:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:19]Read from MH i2c: E2 [09:59:19]MH_I2C_Read... [09:59:19]Read from MH i2c: E2 62 00 [09:59:19]MH_I2C_Read... [09:59:19]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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 77 DB 02 00 0E 04 04 00 88 02 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 53 [09:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 77 DB 02 00 0E 04 04 00 88 02 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:59:19]wFMCommunicate OK [09:59:19]SAM_PROTO_GetFieldsCounters done [09:59:19]requested_item shift.num is exist - process it [09:59:19]requested_item shift.opened is exist - process it [09:59:19]req_shift_opened [09:59:19]FM_GetShiftState [09:59:19]SAM_PROTO_GetShiftState [09:59:19]wFMCommunicate request_size=4 [09:59:19]MH_SAM_APDU [09:59:19]CAPDU: 80 13 01 00 [09:59:19]Write to MH i2c: E2 08 00 09 23 80 13 01 00 00 00 00 00 A9 [09:59:19]Write i2c OK [09:59:19]MH_I2C_Read... [09:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:19]Read from MH i2c: E2 [09:59:19]MH_I2C_Read... [09:59:19]Read from MH i2c: E2 0E 00 [09:59:19]MH_I2C_Read... [09:59:19]Read from MH i2c: E2 0E 00 09 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FB [09:59:19]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [09:59:19]wFMCommunicate OK [09:59:19]SAM_PROTO_GetShiftState done [09:59:19]FM_GetShiftState done [09:59:19]req_shift_opened done [09:59:19]requested_item shift.open_date is exist - process it [09:59:19]req_shift_open_date [09:59:19]req_shift_open_date done [09:59:19]produce_requested_data done [09:59:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187255,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [09:59:19]process_action_free close_receipt [09:59:19]json_value_free [09:59:19]json_value_free done [09:59:19]process_json_proto returns [09:59:19]Send response to host [09:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187255,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [09:59:19]free response buf [09:59:19]execute_script done [09:59:19]execute_script returns [09:59:19]free content buf [09:59:19]Sock 9.Close socket [09:59:19]Sock 9.Thread stoped [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:27]accept exits with 7 [10:00:27]New connection [10:00:27]New thread 3066510692 created [10:00:27]Thread 3066654052 joined [10:00:27]Waiting for new connection... [10:00:27] Sock 7.Parse request [10:00:27]Sock 7.Check first char [10:00:27]Sock 7.First char is OK [10:00:27]request: POST /json_proto HTTP/1.0 [10:00:27]Method: POST [10:00:27]URL: /json_proto [10:00:27]Method is POST - this is cgi request [10:00:27]url: /json_proto [10:00:27]query_string will be loaded in cgi processing [10:00:27]execute_cgi json_proto POST (null) [10:00:27]execute_cgi path=json_proto method=POST [10:00:27]POST find Content-Length [10:00:27]Host: 172.17.46.131:8080 [10:00:27]Content-Length: 678 [10:00:27]Content-Type: application/json [10:00:27] [10:00:27]POST finish read [10:00:27]Found Content-Length = 678 [10:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 25.050, "sum" : 1818.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2198.00, "total" : 1818.00, "payments": [ { "type": 0, "sum" : 1818.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:27]execute_script... [10:00:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 25.050, "sum" : 1818.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2198.00, "total" : 1818.00, "payments": [ { "type": 0, "sum" : 1818.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:27]POST & json_proto [10:00:27]process_json_proto [10:00:27]json parsed OK: [10:00:27]protocol is kg_v1.0 [10:00:27]action value=close_receipt [10:00:27]process_action close_receipt [10:00:27]cmd_close_receipt [10:00:27]MH_GetDate [10:00:27]Write to MH i2c: F0 00 00 0A 23 1C [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: F0 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: F0 09 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: F0 09 00 0A 23 00 3F FD B6 67 7E 41 4F 65 F1 [10:00:27]GetLastDocTimeStamp 1740045559 [10:00:27]current date 1740045631 [10:00:27]FM_GetShiftState [10:00:27]SAM_PROTO_GetShiftState [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 13 01 00 [10:00:27]Write to MH i2c: E2 08 00 0B 23 80 13 01 00 00 00 00 00 AB [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 0E 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 0E 00 0B 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FD [10:00:27]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:00:27]wFMCommunicate OK [10:00:27]SAM_PROTO_GetShiftState done [10:00:27]FM_GetShiftState done [10:00:27]opened in 1740011697 [10:00:27]opened+sec_in_day 1740098097 [10:00:27]quantity*price = 181863 [10:00:27]sum+1 = 181864 [10:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1818.00 Внесено: 2198.00 СДАЧА: 380.00 НСП 1% : 16.09 НДС 12% : 193.13 Наличными: 1818.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 57 20.02.2025 10:00 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187256 ФПД: 193434102192248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100031&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187256&fm=193434102192248&tin=02508201610067®Number=0000000000091857&sum=181800 [10:00:28]StoreToDocumentArchive [10:00:28]shift 648 fd 187256 [10:00:28]save to /storage/0648/doc_00187256 [10:00:28]save last doc name /storage/0648/doc_00187256 to /storage/kkm_last_doc_name [10:00:28]save OK [10:00:28]Clear old archive folders... [10:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:00:28]tlvbuf is B6E5F290 [10:00:28]SAM_PROTO_ClearQueue [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 09 00 00 [10:00:28]Write to MH i2c: E2 08 00 18 23 80 09 00 00 00 00 00 00 AD [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [10:00:29]RAPDU: 90 00 [10:00:29]wFMCommunicate OK [10:00:29]SAM_PROTO_ClearQueue done [10:00:29]KKMCreateOFDPacket [10:00:29]OFDProtocolAddRootSTLVToBuf [10:00:29]FM_MakeSignedData [10:00:29]FM_MakeSignedData [10:00:29]SAM_PROTO_SignData [10:00:29]wFMCommunicate request_size=4 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 0D 01 02 [10:00:29]Write to MH i2c: E2 08 00 19 23 80 0D 01 02 00 00 00 00 B5 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [10:00:29]RAPDU: 90 00 [10:00:29]wFMCommunicate OK [10:00:29]wFMCommunicate request_size=255 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 61 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 67 C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 4B 00 00 00 00 07 04 06 00 28 C6 02 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 3F FD B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DB 02 00 35 04 06 00 AF ED 62 F2 [10:00:29]Write to MH i2c: E2 02 01 1A 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 61 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 67 C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 4B 00 00 00 00 07 04 06 00 28 C6 02 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 3F FD B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DB 02 00 35 04 06 00 AF ED 62 F2 00 00 45 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [10:00:29]RAPDU: 90 00 [10:00:29]wFMCommunicate OK [10:00:29]wFMCommunicate request_size=7 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 0D 02 02 02 D8 78 [10:00:29]Write to MH i2c: E2 0A 00 1B 23 80 0D 02 02 02 00 D8 78 00 00 0C [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [10:00:29]RAPDU: 90 00 [10:00:29]wFMCommunicate OK [10:00:29]wFMCommunicate request_size=4 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 0D 03 02 [10:00:29]Write to MH i2c: E2 08 00 1C 23 80 0D 03 02 00 00 00 00 BA [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 0B 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 0B 00 1C 23 00 9F 2B A3 28 DA C2 2A 73 90 00 89 [10:00:29]RAPDU: 9F 2B A3 28 DA C2 2A 73 90 00 [10:00:29]wFMCommunicate OK [10:00:29]SAM_PROTO_SignData done [10:00:29]FM_MakeSignedData done [10:00:29]CreateOFDProtocolMessage [10:00:29]wFMCommunicate request_size=4 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 11 00 00 [10:00:29]Write to MH i2c: E2 08 00 1D 23 80 11 00 00 00 00 00 00 BA [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 17 00 [10:00:29]MH_I2C_Read... [10:00:29]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 31 38 32 36 90 00 0D [10:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:00:29]wFMCommunicate OK [10:00:29]CreateOFDProtocolMessage done [10:00:29]OFDSenderStorePacket 187256 [10:00:29]StoreOFDPacket docnum=187256 [10:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 34 24 04 01 AA 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 61 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 67 C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 4B 00 00 00 00 07 04 06 00 28 C6 02 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 3F FD B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DB 02 00 35 04 06 00 AF ED 62 F2 D8 78 9F 2B A3 28 DA C2 2A 73 [10:00:29]CheckFolder [10:00:29]dirname=/storage/ofd_packets [10:00:29]CheckFolder done [10:00:29]ProducePacketName [10:00:29]name=ofd_packets/00187256 [10:00:29]NVStorageSaveData ofd_packets/00187256 [10:00:29]File name is /storage/ofd_packets/00187256 [10:00:29]Write 298 bytes [10:00:29]NVStorageSaveData done [10:00:29]OFDSenderStorePacket done [10:00:29]KKMCreateOFDPacket done [10:00:29]NVStorageSaveData kkm_last_timestamp [10:00:29]File name is /storage/kkm_last_timestamp [10:00:29]Write 4 bytes [10:00:29]NVStorageSaveData done [10:00:29]ExternCall_PrintAddStr [10:00:29]wPrintStart [10:00:29]Write to MH i2c: 01 00 00 1E 23 41 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 07 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 07 00 1E 23 00 00 00 00 00 FF 0F 56 [10:00:29]RasterBufferAndPrint [10:00:29]line Счет N : (1)412409 [10:00:29]line ИНН: 02508201610067 [10:00:29]line Контрольно-Кассовый Чек [10:00:29]line ПРОДАЖА [10:00:29]line ТРК (МРК, ГНК) : 5 [10:00:29]line Товар: 2710194210 [10:00:29]line ДТ-К-5 [10:00:29]line 25.050 * 72.60 [10:00:29]line = 1818.63 [10:00:29]line НДС 12% НСП 1% [10:00:29]line > о реализуемом товаре [10:00:29]line ОКРУГЛЕНИЕ: -0.63 [10:00:29]line ИТОГО: 1818.00 [10:00:29]line Внесено: 2198.00 [10:00:29]line СДАЧА: 380.00 [10:00:29]line НСП 1% : 16.09 [10:00:29]line НДС 12% : 193.13 [10:00:29]line Наличными: 1818.00 [10:00:29]line Безнал.: 0.00 [10:00:29]line Место: АЗС № 92 "Партнер Нефть" [10:00:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:00:29]line СНО: Общий режим [10:00:29]line Чек 57 20.02.2025 10:00 [10:00:29]line Смена: 648 ФФД: 1.0 [10:00:29]line ЗНМ: 0300000118 [10:00:29]line РНМ: 0000000000091857 [10:00:29]line Версия ККМ: 001 [10:00:29]line ФМ: 0000000000871826 [10:00:29]line ФД: 187256 [10:00:29]line ФПД: 193434102192248 [10:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100031&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187256&fm=193434102192248&tin=02508201610067®Number=0000000000091857&sum=181800 [10:00:29]OFD Sender: Processing packet 187256 [packets to send 49, broken 48] [10:00:29]ProducePacketName [10:00:29]name=ofd_packets/00187256 [10:00:29]OFD Sender: To server: pG, [10:00:29]CommunicateWithHost lk.salyk.kg:30040 [10:00:29]ConnectInit lk.salyk.kg [10:00:29]written 0, free lines is 4095 [10:00:29]Connected sock=10 [10:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 34 24 04 01 AA 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 61 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 67 C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 4B 00 00 00 00 07 04 06 00 28 C6 02 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 3F FD B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DB 02 00 35 04 06 00 AF ED 62 F2 D8 78 9F 2B A3 28 DA C2 2A 73 [10:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9D 39 47 00 D1 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DB 02 00 F4 03 04 00 91 A3 B6 67 B6 04 01 00 00 42 32 51 CE B7 91 28 C7 [10:00:30]CommunicateWithHost err = 0 [10:00:30]CheckOFDResponse [10:00:30]1017 (14) - 77093643461234 [10:00:30]1041 (16) - 0000000000871826 [10:00:30]1040 (4) - 187256 [10:00:30]1012 (4) - 20.02.2025 03:37 [10:00:30]1206 (1) - 0 [10:00:30]OFD Sender: Remove packet 187256 [10:00:30]ProducePacketName [10:00:30]name=ofd_packets/00187256 [10:00:30]NVStorageDeleteData [10:00:30]Write to MH i2c: 01 00 00 49 23 6C [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 07 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 07 00 49 23 00 00 00 00 00 03 0D 83 [10:00:30]RasterBufferAndPrint [10:00:30]line [10:00:30]line [10:00:30]line [10:00:30]line [10:00:30]line [10:00:30]written 0, free lines is 3337 [10:00:30]MH_Cut [10:00:30]Write to MH i2c: D1 01 00 50 23 01 45 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: D1 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: D1 01 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: D1 01 00 50 23 00 44 [10:00:30]Write to MH i2c: 01 00 00 51 23 74 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]OFD Sender: No OFD packet to send [10:00:30]*** Cut start [10:00:30]*** Partial cut [10:00:30]*** CUTSNS_PIN = 1 [10:00:31]*** CUTSNS_PIN = 0 [10:00:31]*** Brake cut motor [10:00:31]Read from MH i2c: 01 [10:00:31]MH_I2C_Read... [10:00:31]*** Stop cut motor [10:00:31]*** Cut end [10:00:31]Read from MH i2c: 01 07 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 07 00 51 23 00 00 00 00 00 FF 0F 89 [10:00:31]process_action close_receipt done [10:00:31]requested_data is exist [10:00:31]produce_requested_data [10:00:31]requested_item fm.sn is exist - process it [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 11 00 00 [10:00:31]Write to MH i2c: E2 08 00 52 23 80 11 00 00 00 00 00 00 EF [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 17 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 17 00 52 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [10:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:00:31]wFMCommunicate OK [10:00:31]requested_item fd.num is exist - process it [10:00:31]SAM_PROTO_GetFieldsCounters [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 13 00 00 [10:00:31]Write to MH i2c: E2 08 00 53 23 80 13 00 00 00 00 00 00 F2 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 62 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 62 00 53 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 78 DB 02 00 0E 04 04 00 88 02 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 A2 [10:00: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 78 DB 02 00 0E 04 04 00 88 02 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 [10:00:31]wFMCommunicate OK [10:00:31]SAM_PROTO_GetFieldsCounters done [10:00:31]requested_item shift.num is exist - process it [10:00:31]requested_item shift.opened is exist - process it [10:00:31]req_shift_opened [10:00:31]FM_GetShiftState [10:00:31]SAM_PROTO_GetShiftState [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 13 01 00 [10:00:31]Write to MH i2c: E2 08 00 54 23 80 13 01 00 00 00 00 00 F4 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0E 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0E 00 54 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 46 [10:00:31]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:00:31]wFMCommunicate OK [10:00:31]SAM_PROTO_GetShiftState done [10:00:31]FM_GetShiftState done [10:00:31]req_shift_opened done [10:00:31]requested_item shift.open_date is exist - process it [10:00:31]req_shift_open_date [10:00:31]req_shift_open_date done [10:00:31]produce_requested_data done [10:00:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187256,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:00:31]process_action_free close_receipt [10:00:31]json_value_free [10:00:31]json_value_free done [10:00:31]process_json_proto returns [10:00:31]Send response to host [10:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187256,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:00:31]free response buf [10:00:31]execute_script done [10:00:31]execute_script returns [10:00:31]free content buf [10:00:31]Sock 7.Close socket [10:00:31]Sock 7.Thread stoped [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:12]accept exits with 9 [10:04:12]New connection [10:04:12]New thread 3066654052 created [10:04:12]Thread 3066510692 joined [10:04:12]Waiting for new connection... [10:04:12] Sock 9.Parse request [10:04:12]Sock 9.Check first char [10:04:12]Sock 9.First char is OK [10:04:12]request: POST /json_proto HTTP/1.0 [10:04:12]Method: POST [10:04:12]URL: /json_proto [10:04:12]Method is POST - this is cgi request [10:04:12]url: /json_proto [10:04:12]query_string will be loaded in cgi processing [10:04:12]execute_cgi json_proto POST (null) [10:04:12]execute_cgi path=json_proto method=POST [10:04:12]POST find Content-Length [10:04:12]Host: 172.17.46.131:8080 [10:04:12]Content-Length: 677 [10:04:12]Content-Type: application/json [10:04:12] [10:04:12]POST finish read [10:04:12]Found Content-Length = 677 [10:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 8.100, "sum" : 520.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:12]execute_script... [10:04: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)412411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 8.100, "sum" : 520.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:12]POST & json_proto [10:04:12]process_json_proto [10:04:12]json parsed OK: [10:04:12]protocol is kg_v1.0 [10:04:12]action value=close_receipt [10:04:12]process_action close_receipt [10:04:12]cmd_close_receipt [10:04:12]MH_GetDate [10:04:12]Write to MH i2c: F0 00 00 55 23 67 [10:04:12]Write i2c OK [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: F0 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: F0 09 00 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: F0 09 00 55 23 00 20 FE B6 67 7E 41 4F 65 1E [10:04:12]GetLastDocTimeStamp 1740045631 [10:04:12]current date 1740045856 [10:04:12]FM_GetShiftState [10:04:12]SAM_PROTO_GetShiftState [10:04:12]wFMCommunicate request_size=4 [10:04:12]MH_SAM_APDU [10:04:12]CAPDU: 80 13 01 00 [10:04:12]Write to MH i2c: E2 08 00 56 23 80 13 01 00 00 00 00 00 F6 [10:04:12]Write i2c OK [10:04:12]MH_I2C_Read... [10:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:12]Read from MH i2c: E2 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 0E 00 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 0E 00 56 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 48 [10:04:12]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:04:12]wFMCommunicate OK [10:04:12]SAM_PROTO_GetShiftState done [10:04:12]FM_GetShiftState done [10:04:12]opened in 1740011697 [10:04:12]opened+sec_in_day 1740098097 [10:04:12]quantity*price = 52002 [10:04:12]sum+1 = 52003 [10:04:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.22 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 58 20.02.2025 10:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187257 ФПД: 179895671066091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100416&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187257&fm=179895671066091&tin=02508201610067®Number=0000000000091857&sum=52000 [10:04:13]StoreToDocumentArchive [10:04:13]shift 648 fd 187257 [10:04:13]save to /storage/0648/doc_00187257 [10:04:13]save last doc name /storage/0648/doc_00187257 to /storage/kkm_last_doc_name [10:04:13]save OK [10:04:13]Clear old archive folders... [10:04:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:13]tlvbuf is B6E78570 [10:04:13]SAM_PROTO_ClearQueue [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 09 00 00 [10:04:13]Write to MH i2c: E2 08 00 63 23 80 09 00 00 00 00 00 00 F8 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [10:04:13]RAPDU: 90 00 [10:04:13]wFMCommunicate OK [10:04:13]SAM_PROTO_ClearQueue done [10:04:13]KKMCreateOFDPacket [10:04:13]OFDProtocolAddRootSTLVToBuf [10:04:13]FM_MakeSignedData [10:04:13]FM_MakeSignedData [10:04:13]SAM_PROTO_SignData [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 0D 01 02 [10:04:13]Write to MH i2c: E2 08 00 64 23 80 0D 01 02 00 00 00 00 00 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 64 23 00 90 00 FB [10:04:13]RAPDU: 90 00 [10:04:13]wFMCommunicate OK [10:04:13]wFMCommunicate request_size=255 [10:04:13]MH_SAM_APDU [10:04: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 32 FF 03 08 00 03 A4 1F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 22 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 20 FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 DB 02 00 35 04 06 00 A3 [10:04:13]Write to MH i2c: E2 02 01 65 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 32 FF 03 08 00 03 A4 1F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 22 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 20 FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 DB 02 00 35 04 06 00 A3 00 00 2B [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:14]Read from MH i2c: E2 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 03 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 03 00 65 23 00 90 00 FC [10:04:14]RAPDU: 90 00 [10:04:14]wFMCommunicate OK [10:04:14]wFMCommunicate request_size=10 [10:04:14]MH_SAM_APDU [10:04:14]CAPDU: 80 0D 02 02 05 9D 39 92 0D EB [10:04:14]Write to MH i2c: E2 0D 00 66 23 80 0D 02 02 05 00 9D 39 92 0D EB 00 00 6D [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:14]Read from MH i2c: E2 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 03 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 03 00 66 23 00 90 00 FD [10:04:14]RAPDU: 90 00 [10:04:14]wFMCommunicate OK [10:04:14]wFMCommunicate request_size=4 [10:04:14]MH_SAM_APDU [10:04:14]CAPDU: 80 0D 03 02 [10:04:14]Write to MH i2c: E2 08 00 67 23 80 0D 03 02 00 00 00 00 05 [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:14]Read from MH i2c: E2 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 0B 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 0B 00 67 23 00 C1 A0 BC B2 59 DE 6F 8B 90 00 06 [10:04:14]RAPDU: C1 A0 BC B2 59 DE 6F 8B 90 00 [10:04:14]wFMCommunicate OK [10:04:14]SAM_PROTO_SignData done [10:04:14]FM_MakeSignedData done [10:04:14]CreateOFDProtocolMessage [10:04:14]wFMCommunicate request_size=4 [10:04:14]MH_SAM_APDU [10:04:14]CAPDU: 80 11 00 00 [10:04:14]Write to MH i2c: E2 08 00 68 23 80 11 00 00 00 00 00 00 05 [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:14]Read from MH i2c: E2 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 17 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 17 00 68 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [10:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:04:14]wFMCommunicate OK [10:04:14]CreateOFDProtocolMessage done [10:04:14]OFDSenderStorePacket 187257 [10:04:14]StoreOFDPacket docnum=187257 [10:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 55 3B 07 01 87 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 32 FF 03 08 00 03 A4 1F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 22 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 20 FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 DB 02 00 35 04 06 00 A3 9D 39 92 0D EB C1 A0 BC B2 59 DE 6F 8B [10:04:14]CheckFolder [10:04:14]dirname=/storage/ofd_packets [10:04:14]CheckFolder done [10:04:14]ProducePacketName [10:04:14]name=ofd_packets/00187257 [10:04:14]NVStorageSaveData ofd_packets/00187257 [10:04:14]File name is /storage/ofd_packets/00187257 [10:04:14]Write 301 bytes [10:04:14]NVStorageSaveData done [10:04:14]OFDSenderStorePacket done [10:04:14]KKMCreateOFDPacket done [10:04:14]NVStorageSaveData kkm_last_timestamp [10:04:14]File name is /storage/kkm_last_timestamp [10:04:14]Write 4 bytes [10:04:14]NVStorageSaveData done [10:04:14]ExternCall_PrintAddStr [10:04:14]wPrintStart [10:04:14]Write to MH i2c: 01 00 00 69 23 8C [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: 01 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: 01 07 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: 01 07 00 69 23 00 00 00 00 00 FF 0F A1 [10:04:14]RasterBufferAndPrint [10:04:14]line Счет N : (1)412411 [10:04:14]line ИНН: 02508201610067 [10:04:14]line Контрольно-Кассовый Чек [10:04:14]line ПРОДАЖА [10:04:14]line ТРК (МРК, ГНК) : 42 [10:04:14]line Товар: 2710124130 [10:04:14]line Аи-92-К-2 [10:04:14]line 8.100 * 64.20 [10:04:14]line = 520.02 [10:04:14]line НДС 12% НСП 1% [10:04:14]line > о реализуемом товаре [10:04:14]line ОКРУГЛЕНИЕ: -0.02 [10:04:14]line ИТОГО: 520.00 [10:04:14]line Внесено: 520.00 [10:04:14]line СДАЧА: 0.00 [10:04:14]line НСП 1% : 4.60 [10:04:14]line НДС 12% : 55.22 [10:04:14]line Наличными: 520.00 [10:04:14]line Безнал.: 0.00 [10:04:14]line Место: АЗС № 92 "Партнер Нефть" [10:04:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:04:14]line СНО: Общий режим [10:04:14]line Чек 58 20.02.2025 10:04 [10:04:14]line Смена: 648 ФФД: 1.0 [10:04:14]line ЗНМ: 0300000118 [10:04:14]line РНМ: 0000000000091857 [10:04:14]line Версия ККМ: 001 [10:04:14]line ФМ: 0000000000871826 [10:04:14]line ФД: 187257 [10:04:14]line ФПД: 179895671066091 [10:04:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100416&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187257&fm=179895671066091&tin=02508201610067®Number=0000000000091857&sum=52000 [10:04:14]written 0, free lines is 4095 [10:04:14]OFD Sender: Processing packet 187257 [packets to send 49, broken 48] [10:04:14]ProducePacketName [10:04:14]name=ofd_packets/00187257 [10:04:14]OFD Sender: To server: pG, [10:04:14]CommunicateWithHost lk.salyk.kg:30040 [10:04:14]ConnectInit lk.salyk.kg [10:04:14]Connected sock=10 [10:04:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 55 3B 07 01 87 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 32 FF 03 08 00 03 A4 1F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 22 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 20 FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 DB 02 00 35 04 06 00 A3 9D 39 92 0D EB C1 A0 BC B2 59 DE 6F 8B [10:04:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 32 AF 47 00 ED 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 31 38 32 36 10 04 04 00 79 DB 02 00 F4 03 04 00 72 A4 B6 67 B6 04 01 00 00 C6 29 E5 0D C3 0F 95 60 [10:04:15]CommunicateWithHost err = 0 [10:04:15]CheckOFDResponse [10:04:15]1017 (14) - 77093643461234 [10:04:15]1041 (16) - 0000000000871826 [10:04:15]1040 (4) - 187257 [10:04:15]1012 (4) - 20.02.2025 03:41 [10:04:15]1206 (1) - 0 [10:04:15]OFD Sender: Remove packet 187257 [10:04:15]ProducePacketName [10:04:15]name=ofd_packets/00187257 [10:04:15]NVStorageDeleteData [10:04:15]Write to MH i2c: 01 00 00 94 23 B7 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: 01 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: 01 07 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: 01 07 00 94 23 00 00 00 00 00 EF 0C B9 [10:04:15]RasterBufferAndPrint [10:04:15]line [10:04:15]line [10:04:15]line [10:04:15]line [10:04:15]line [10:04:15]written 0, free lines is 3317 [10:04:15]MH_Cut [10:04:15]Write to MH i2c: D1 01 00 9B 23 01 90 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: D1 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: D1 01 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: D1 01 00 9B 23 00 8F [10:04:15]Write to MH i2c: 01 00 00 9C 23 BF [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]OFD Sender: No OFD packet to send [10:04:15]*** Cut start [10:04:15]*** Partial cut [10:04:15]*** CUTSNS_PIN = 1 [10:04:15]*** CUTSNS_PIN = 0 [10:04:16]*** Brake cut motor [10:04:16]Read from MH i2c: 01 [10:04:16]MH_I2C_Read... [10:04:16]*** Stop cut motor [10:04:16]*** Cut end [10:04:16]Read from MH i2c: 01 07 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 9C 23 00 00 00 00 00 FF 0F D4 [10:04:16]process_action close_receipt done [10:04:16]requested_data is exist [10:04:16]produce_requested_data [10:04:16]requested_item fm.sn is exist - process it [10:04:16]wFMCommunicate request_size=4 [10:04:16]MH_SAM_APDU [10:04:16]CAPDU: 80 11 00 00 [10:04:16]Write to MH i2c: E2 08 00 9D 23 80 11 00 00 00 00 00 00 3A [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:16]Read from MH i2c: E2 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 17 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 17 00 9D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8D [10:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:04:16]wFMCommunicate OK [10:04:16]requested_item fd.num is exist - process it [10:04:16]SAM_PROTO_GetFieldsCounters [10:04:16]wFMCommunicate request_size=4 [10:04:16]MH_SAM_APDU [10:04:16]CAPDU: 80 13 00 00 [10:04:16]Write to MH i2c: E2 08 00 9E 23 80 13 00 00 00 00 00 00 3D [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:16]Read from MH i2c: E2 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 62 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 62 00 9E 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 79 DB 02 00 0E 04 04 00 88 02 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 F1 [10:04:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 79 DB 02 00 0E 04 04 00 88 02 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 [10:04:16]wFMCommunicate OK [10:04:16]SAM_PROTO_GetFieldsCounters done [10:04:16]requested_item shift.num is exist - process it [10:04:16]requested_item shift.opened is exist - process it [10:04:16]req_shift_opened [10:04:16]FM_GetShiftState [10:04:16]SAM_PROTO_GetShiftState [10:04:16]wFMCommunicate request_size=4 [10:04:16]MH_SAM_APDU [10:04:16]CAPDU: 80 13 01 00 [10:04:16]Write to MH i2c: E2 08 00 9F 23 80 13 01 00 00 00 00 00 3F [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:16]Read from MH i2c: E2 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 0E 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 0E 00 9F 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 91 [10:04:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:04:16]wFMCommunicate OK [10:04:16]SAM_PROTO_GetShiftState done [10:04:16]FM_GetShiftState done [10:04:16]req_shift_opened done [10:04:16]requested_item shift.open_date is exist - process it [10:04:16]req_shift_open_date [10:04:16]req_shift_open_date done [10:04:16]produce_requested_data done [10:04:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187257,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:04:16]process_action_free close_receipt [10:04:16]json_value_free [10:04:16]json_value_free done [10:04:16]process_json_proto returns [10:04:16]Send response to host [10:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187257,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:04:16]free response buf [10:04:16]execute_script done [10:04:16]execute_script returns [10:04:16]free content buf [10:04:16]Sock 9.Close socket [10:04:16]Sock 9.Thread stoped [10:04:17]accept exits with 7 [10:04:17]New connection [10:04:17]New thread 3066510692 created [10:04:17]Thread 3066654052 joined [10:04:17]Waiting for new connection... [10:04:17] Sock 7.Parse request [10:04:17]Sock 7.Check first char [10:04:17]Sock 7.First char is OK [10:04:17]request: POST /json_proto HTTP/1.0 [10:04:17]Method: POST [10:04:17]URL: /json_proto [10:04:17]Method is POST - this is cgi request [10:04:17]url: /json_proto [10:04:17]query_string will be loaded in cgi processing [10:04:17]execute_cgi json_proto POST (null) [10:04:17]execute_cgi path=json_proto method=POST [10:04:17]POST find Content-Length [10:04:17]Host: 172.17.46.131:8080 [10:04:17]Content-Length: 679 [10:04:17]Content-Type: application/json [10:04:17] [10:04:17]POST finish read [10:04:17]Found Content-Length = 679 [10:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:17]execute_script... [10:04: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)412410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:17]POST & json_proto [10:04:17]process_json_proto [10:04:17]json parsed OK: [10:04:17]protocol is kg_v1.0 [10:04:17]action value=close_receipt [10:04:17]process_action close_receipt [10:04:17]cmd_close_receipt [10:04:17]MH_GetDate [10:04:17]Write to MH i2c: F0 00 00 A0 23 B2 [10:04:17]Write i2c OK [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: F0 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: F0 09 00 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: F0 09 00 A0 23 00 25 FE B6 67 7E 41 4F 65 6E [10:04:17]GetLastDocTimeStamp 1740045856 [10:04:17]current date 1740045861 [10:04:17]FM_GetShiftState [10:04:17]SAM_PROTO_GetShiftState [10:04:17]wFMCommunicate request_size=4 [10:04:17]MH_SAM_APDU [10:04:17]CAPDU: 80 13 01 00 [10:04:17]Write to MH i2c: E2 08 00 A1 23 80 13 01 00 00 00 00 00 41 [10:04:17]Write i2c OK [10:04:17]MH_I2C_Read... [10:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:17]Read from MH i2c: E2 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: E2 0E 00 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: E2 0E 00 A1 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 93 [10:04:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:04:17]wFMCommunicate OK [10:04:17]SAM_PROTO_GetShiftState done [10:04:17]FM_GetShiftState done [10:04:17]opened in 1740011697 [10:04:17]opened+sec_in_day 1740098097 [10:04:17]quantity*price = 300055 [10:04:17]sum+1 = 300057 [10:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 59 20.02.2025 10:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187258 ФПД: 174023188898782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100421&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187258&fm=174023188898782&tin=02508201610067®Number=0000000000091857&sum=300000 [10:04:18]StoreToDocumentArchive [10:04:18]shift 648 fd 187258 [10:04:18]save to /storage/0648/doc_00187258 [10:04:18]save last doc name /storage/0648/doc_00187258 to /storage/kkm_last_doc_name [10:04:18]save OK [10:04:18]Clear old archive folders... [10:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:18]tlvbuf is 02028AD0 [10:04:18]SAM_PROTO_ClearQueue [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 09 00 00 [10:04:18]Write to MH i2c: E2 08 00 AE 23 80 09 00 00 00 00 00 00 43 [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 AE 23 00 90 00 45 [10:04:18]RAPDU: 90 00 [10:04:18]wFMCommunicate OK [10:04:18]SAM_PROTO_ClearQueue done [10:04:18]KKMCreateOFDPacket [10:04:18]OFDProtocolAddRootSTLVToBuf [10:04:18]FM_MakeSignedData [10:04:18]FM_MakeSignedData [10:04:18]SAM_PROTO_SignData [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 0D 01 02 [10:04:18]Write to MH i2c: E2 08 00 AF 23 80 0D 01 02 00 00 00 00 4B [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 AF 23 00 90 00 46 [10:04:18]RAPDU: 90 00 [10:04:18]wFMCommunicate OK [10:04:18]wFMCommunicate request_size=255 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 25 FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DB 02 00 35 04 06 00 9E 45 EE 5B [10:04:18]Write to MH i2c: E2 02 01 B0 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 25 FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DB 02 00 35 04 06 00 9E 45 EE 5B 00 00 B8 [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 B0 23 00 90 00 47 [10:04:19]RAPDU: 90 00 [10:04:19]wFMCommunicate OK [10:04:19]wFMCommunicate request_size=7 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 0D 02 02 02 63 DE [10:04:19]Write to MH i2c: E2 0A 00 B1 23 80 0D 02 02 02 00 63 DE 00 00 93 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 B1 23 00 90 00 48 [10:04:19]RAPDU: 90 00 [10:04:19]wFMCommunicate OK [10:04:19]wFMCommunicate request_size=4 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 0D 03 02 [10:04:19]Write to MH i2c: E2 08 00 B2 23 80 0D 03 02 00 00 00 00 50 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 0B 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 0B 00 B2 23 00 C7 CF A9 83 94 FB C7 AB 90 00 14 [10:04:19]RAPDU: C7 CF A9 83 94 FB C7 AB 90 00 [10:04:19]wFMCommunicate OK [10:04:19]SAM_PROTO_SignData done [10:04:19]FM_MakeSignedData done [10:04:19]CreateOFDProtocolMessage [10:04:19]wFMCommunicate request_size=4 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 11 00 00 [10:04:19]Write to MH i2c: E2 08 00 B3 23 80 11 00 00 00 00 00 00 50 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 17 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 17 00 B3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A3 [10:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:04:19]wFMCommunicate OK [10:04:19]CreateOFDProtocolMessage done [10:04:19]OFDSenderStorePacket 187258 [10:04:19]StoreOFDPacket docnum=187258 [10:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B7 29 04 01 C0 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 25 FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DB 02 00 35 04 06 00 9E 45 EE 5B 63 DE C7 CF A9 83 94 FB C7 AB [10:04:19]CheckFolder [10:04:19]dirname=/storage/ofd_packets [10:04:19]CheckFolder done [10:04:19]ProducePacketName [10:04:19]name=ofd_packets/00187258 [10:04:19]NVStorageSaveData ofd_packets/00187258 [10:04:19]File name is /storage/ofd_packets/00187258 [10:04:19]Write 298 bytes [10:04:19]NVStorageSaveData done [10:04:19]OFDSenderStorePacket done [10:04:19]KKMCreateOFDPacket done [10:04:19]NVStorageSaveData kkm_last_timestamp [10:04:19]File name is /storage/kkm_last_timestamp [10:04:19]Write 4 bytes [10:04:19]NVStorageSaveData done [10:04:19]ExternCall_PrintAddStr [10:04:19]wPrintStart [10:04:19]Write to MH i2c: 01 00 00 B4 23 D7 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 07 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 07 00 B4 23 00 00 00 00 00 FF 0F EC [10:04:19]RasterBufferAndPrint [10:04:19]line Счет N : (1)412410 [10:04:19]line ИНН: 02508201610067 [10:04:19]line Контрольно-Кассовый Чек [10:04:19]line ПРОДАЖА [10:04:19]line ТРК (МРК, ГНК) : 11 [10:04:19]line Товар: 2710194210 [10:04:19]line ДТ-К-2 [10:04:19]line 41.330 * 72.60 [10:04:19]line = 3000.56 [10:04:19]line НДС 12% НСП 1% [10:04:19]line > о реализуемом товаре [10:04:19]line ОКРУГЛЕНИЕ: -0.56 [10:04:19]line ИТОГО: 3000.00 [10:04:19]line Внесено: 3000.00 [10:04:19]line СДАЧА: 0.00 [10:04:19]line НСП 1% : 26.55 [10:04:19]line НДС 12% : 318.64 [10:04:19]line Наличными: 3000.00 [10:04:19]line Безнал.: 0.00 [10:04:19]line Место: АЗС № 92 "Партнер Нефть" [10:04:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:04:19]line СНО: Общий режим [10:04:19]line Чек 59 20.02.2025 10:04 [10:04:19]line Смена: 648 ФФД: 1.0 [10:04:19]line ЗНМ: 0300000118 [10:04:19]line РНМ: 0000000000091857 [10:04:19]line Версия ККМ: 001 [10:04:19]line ФМ: 0000000000871826 [10:04:19]line ФД: 187258 [10:04:19]line ФПД: 174023188898782 [10:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100421&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187258&fm=174023188898782&tin=02508201610067®Number=0000000000091857&sum=300000 [10:04:19]OFD Sender: Processing packet 187258 [packets to send 49, broken 48] [10:04:19]ProducePacketName [10:04:19]name=ofd_packets/00187258 [10:04:19]OFD Sender: To server: pG, [10:04:19]CommunicateWithHost lk.salyk.kg:30040 [10:04:19]ConnectInit lk.salyk.kg [10:04:19]written 0, free lines is 4095 [10:04:19]Connected sock=10 [10:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B7 29 04 01 C0 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 25 FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DB 02 00 35 04 06 00 9E 45 EE 5B 63 DE C7 CF A9 83 94 FB C7 AB [10:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8B 79 47 00 9B 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DB 02 00 F4 03 04 00 76 A4 B6 67 B6 04 01 00 00 83 31 6F 8C 77 25 6F FD [10:04:20]CommunicateWithHost err = 0 [10:04:20]CheckOFDResponse [10:04:20]1017 (14) - 77093643461234 [10:04:20]1041 (16) - 0000000000871826 [10:04:20]1040 (4) - 187258 [10:04:20]1012 (4) - 20.02.2025 03:41 [10:04:20]1206 (1) - 0 [10:04:20]OFD Sender: Remove packet 187258 [10:04:20]ProducePacketName [10:04:20]name=ofd_packets/00187258 [10:04:20]NVStorageDeleteData [10:04:20]Write to MH i2c: 01 00 00 DF 23 02 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 DF 23 00 00 00 00 00 08 0D 1E [10:04:20]RasterBufferAndPrint [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]written 0, free lines is 3352 [10:04:20]MH_Cut [10:04:20]Write to MH i2c: D1 01 00 E6 23 01 DB [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 01 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 01 00 E6 23 00 DA [10:04:20]Write to MH i2c: 01 00 00 E7 23 0A [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]OFD Sender: No OFD packet to send [10:04:20]*** Cut start [10:04:20]*** Partial cut [10:04:20]*** CUTSNS_PIN = 1 [10:04:20]*** CUTSNS_PIN = 0 [10:04:21]*** Brake cut motor [10:04:21]Read from MH i2c: 01 [10:04:21]MH_I2C_Read... [10:04:21]*** Stop cut motor [10:04:21]*** Cut end [10:04:21]Read from MH i2c: 01 07 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: 01 07 00 E7 23 00 00 00 00 00 FF 0F 1F [10:04:21]process_action close_receipt done [10:04:21]requested_data is exist [10:04:21]produce_requested_data [10:04:21]requested_item fm.sn is exist - process it [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 11 00 00 [10:04:21]Write to MH i2c: E2 08 00 E8 23 80 11 00 00 00 00 00 00 85 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 17 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 17 00 E8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [10:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:04:21]wFMCommunicate OK [10:04:21]requested_item fd.num is exist - process it [10:04:21]SAM_PROTO_GetFieldsCounters [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 13 00 00 [10:04:21]Write to MH i2c: E2 08 00 E9 23 80 13 00 00 00 00 00 00 88 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 62 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 62 00 E9 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7A DB 02 00 0E 04 04 00 88 02 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 40 [10:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7A DB 02 00 0E 04 04 00 88 02 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 [10:04:21]wFMCommunicate OK [10:04:21]SAM_PROTO_GetFieldsCounters done [10:04:21]requested_item shift.num is exist - process it [10:04:21]requested_item shift.opened is exist - process it [10:04:21]req_shift_opened [10:04:21]FM_GetShiftState [10:04:21]SAM_PROTO_GetShiftState [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 13 01 00 [10:04:21]Write to MH i2c: E2 08 00 EA 23 80 13 01 00 00 00 00 00 8A [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 0E 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 0E 00 EA 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DC [10:04:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:04:21]wFMCommunicate OK [10:04:21]SAM_PROTO_GetShiftState done [10:04:21]FM_GetShiftState done [10:04:21]req_shift_opened done [10:04:21]requested_item shift.open_date is exist - process it [10:04:21]req_shift_open_date [10:04:21]req_shift_open_date done [10:04:21]produce_requested_data done [10:04:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187258,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:04:21]process_action_free close_receipt [10:04:21]json_value_free [10:04:21]json_value_free done [10:04:21]process_json_proto returns [10:04:21]Send response to host [10:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187258,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:04:21]free response buf [10:04:21]execute_script done [10:04:21]execute_script returns [10:04:21]free content buf [10:04:21]Sock 7.Close socket [10:04:21]Sock 7.Thread stoped [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:04:56]accept exits with 9 [10:04:56]New connection [10:04:56]New thread 3066654052 created [10:04:56]Thread 3066510692 joined [10:04:56]Waiting for new connection... [10:04:56] Sock 9.Parse request [10:04:56]Sock 9.Check first char [10:04:56]Sock 9.First char is OK [10:04:56]request: POST /json_proto HTTP/1.0 [10:04:56]Method: POST [10:04:56]URL: /json_proto [10:04:56]Method is POST - this is cgi request [10:04:56]url: /json_proto [10:04:56]query_string will be loaded in cgi processing [10:04:56]execute_cgi json_proto POST (null) [10:04:56]execute_cgi path=json_proto method=POST [10:04:56]POST find Content-Length [10:04:56]Host: 172.17.46.131:8080 [10:04:56]Content-Length: 754 [10:04:56]Content-Type: application/json [10:04:56] [10:04:56]POST finish read [10:04:56]Found Content-Length = 754 [10:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107207", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:56]execute_script... [10: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)412412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107207", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:56]POST & json_proto [10:04:56]process_json_proto [10:04:56]json parsed OK: [10:04:56]protocol is kg_v1.0 [10:04:56]action value=close_receipt [10:04:56]process_action close_receipt [10:04:56]cmd_close_receipt [10:04:56]MH_GetDate [10:04:56]Write to MH i2c: F0 00 00 EB 23 FD [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 09 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 09 00 EB 23 00 4C FE B6 67 7E 41 4F 65 E0 [10:04:56]GetLastDocTimeStamp 1740045861 [10:04:56]current date 1740045900 [10:04:56]FM_GetShiftState [10:04:56]SAM_PROTO_GetShiftState [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 13 01 00 [10:04:56]Write to MH i2c: E2 08 00 EC 23 80 13 01 00 00 00 00 00 8C [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0E 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0E 00 EC 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DE [10:04:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:04:56]wFMCommunicate OK [10:04:56]SAM_PROTO_GetShiftState done [10:04:56]FM_GetShiftState done [10:04:56]opened in 1740011697 [10:04:56]opened+sec_in_day 1740098097 [10:04:56]quantity*price = 0 [10:04:56]sum+1 = 1 [10:04:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 60 20.02.2025 10:05 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107207 ФМ: 0000000000871826 ФД: 187259 ФПД: 72371874857699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187259&fm=72371874857699&tin=02508201610067®Number=0000000000091857&sum=0 [10:04:57]StoreToDocumentArchive [10:04:57]shift 648 fd 187259 [10:04:57]save to /storage/0648/doc_00187259 [10:04:57]save last doc name /storage/0648/doc_00187259 to /storage/kkm_last_doc_name [10:04:57]save OK [10:04:57]Clear old archive folders... [10:04:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:57]tlvbuf is 01FA99D0 [10:04:57]SAM_PROTO_ClearQueue [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 09 00 00 [10:04:57]Write to MH i2c: E2 08 00 F9 23 80 09 00 00 00 00 00 00 8E [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 03 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 03 00 F9 23 00 90 00 90 [10:04:58]RAPDU: 90 00 [10:04:58]wFMCommunicate OK [10:04:58]SAM_PROTO_ClearQueue done [10:04:58]KKMCreateOFDPacket [10:04:58]OFDProtocolAddRootSTLVToBuf [10:04:58]FM_MakeSignedData [10:04:58]FM_MakeSignedData [10:04:58]SAM_PROTO_SignData [10:04:58]wFMCommunicate request_size=4 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 0D 01 02 [10:04:58]Write to MH i2c: E2 08 00 FA 23 80 0D 01 02 00 00 00 00 96 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 03 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 03 00 FA 23 00 90 00 91 [10:04:58]RAPDU: 90 00 [10:04:58]wFMCommunicate OK [10:04:58]wFMCommunicate request_size=255 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 4C FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DB 02 00 35 04 06 00 41 [10:04:58]Write to MH i2c: E2 02 01 FB 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 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 4C FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DB 02 00 35 04 06 00 41 00 00 71 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 03 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 03 00 FB 23 00 90 00 92 [10:04:58]RAPDU: 90 00 [10:04:58]wFMCommunicate OK [10:04:58]wFMCommunicate request_size=10 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 0D 02 02 05 D2 63 E4 82 E3 [10:04:58]Write to MH i2c: E2 0D 00 FC 23 80 0D 02 02 05 00 D2 63 E4 82 E3 00 00 21 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 03 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 03 00 FC 23 00 90 00 93 [10:04:58]RAPDU: 90 00 [10:04:58]wFMCommunicate OK [10:04:58]wFMCommunicate request_size=4 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 0D 03 02 [10:04:58]Write to MH i2c: E2 08 00 FD 23 80 0D 03 02 00 00 00 00 9B [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 0B 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 0B 00 FD 23 00 65 57 55 6F 2C 7B B5 67 90 00 DF [10:04:58]RAPDU: 65 57 55 6F 2C 7B B5 67 90 00 [10:04:58]wFMCommunicate OK [10:04:58]SAM_PROTO_SignData done [10:04:58]FM_MakeSignedData done [10:04:58]CreateOFDProtocolMessage [10:04:58]wFMCommunicate request_size=4 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 11 00 00 [10:04:58]Write to MH i2c: E2 08 00 FE 23 80 11 00 00 00 00 00 00 9B [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 17 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 17 00 FE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [10:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:04:58]wFMCommunicate OK [10:04:58]CreateOFDProtocolMessage done [10:04:58]OFDSenderStorePacket 187259 [10:04:58]StoreOFDPacket docnum=187259 [10:04:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DC 27 07 01 78 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 4C FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DB 02 00 35 04 06 00 41 D2 63 E4 82 E3 65 57 55 6F 2C 7B B5 67 [10:04:58]CheckFolder [10:04:58]dirname=/storage/ofd_packets [10:04:58]CheckFolder done [10:04:58]ProducePacketName [10:04:58]name=ofd_packets/00187259 [10:04:58]NVStorageSaveData ofd_packets/00187259 [10:04:58]File name is /storage/ofd_packets/00187259 [10:04:58]Write 301 bytes [10:04:58]NVStorageSaveData done [10:04:58]OFDSenderStorePacket done [10:04:58]KKMCreateOFDPacket done [10:04:58]NVStorageSaveData kkm_last_timestamp [10:04:58]File name is /storage/kkm_last_timestamp [10:04:58]Write 4 bytes [10:04:58]NVStorageSaveData done [10:04:58]ExternCall_PrintAddStr [10:04:58]wPrintStart [10:04:58]Write to MH i2c: 01 00 00 FF 23 22 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 FF 23 00 00 00 00 00 FF 0F 37 [10:04:58]RasterBufferAndPrint [10:04:58]line Счет N : (1)412412 [10:04:58]line ИНН: 02508201610067 [10:04:58]line Контрольно-Кассовый Чек [10:04:58]line ПРОДАЖА [10:04:58]line ТРК (МРК, ГНК) : 32 [10:04:58]line Товар: 2710124130 [10:04:58]line Аи-92-К-2 [10:04:58]line 25.000 * 0.00 [10:04:58]line = 0.00 [10:04:58]line НДС 12% НСП 1% [10:04:58]line > о реализуемом товаре [10:04:58]line ИТОГО: 0.00 [10:04:58]line НСП 1% : 0.00 [10:04:58]line НДС 12% : 0.00 [10:04:58]line Наличными: 0.00 [10:04:58]line Безнал.: 0.00 [10:04:58]line Место: АЗС № 92 "Партнер Нефть" [10:04:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:04:58]line СНО: Общий режим [10:04:58]line Чек 60 20.02.2025 10:05 [10:04:58]line Смена: 648 ФФД: 1.0 [10:04:58]line ЗНМ: 0300000118 [10:04:58]line РНМ: 0000000000091857 [10:04:58]line Версия ККМ: 001 [10:04:58]line Талоны: ТК ГПНА Online [10:04:58]line 30107207 [10:04:58]line ФМ: 0000000000871826 [10:04:58]line ФД: 187259 [10:04:58]line ФПД: 72371874857699 [10:04:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187259&fm=72371874857699&tin=02508201610067®Number=0000000000091857&sum=0 [10:04:58]written 0, free lines is 4095 [10:04:58]OFD Sender: Processing packet 187259 [packets to send 49, broken 48] [10:04:58]ProducePacketName [10:04:58]name=ofd_packets/00187259 [10:04:58]OFD Sender: To server: pG, [10:04:58]CommunicateWithHost lk.salyk.kg:30040 [10:04:58]ConnectInit lk.salyk.kg [10:04:58]Write to MH i2c: 01 00 00 29 24 4D [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 29 24 00 00 00 00 00 FA 0C 5A [10:04:58]RasterBufferAndPrint [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]written 0, free lines is 3328 [10:04:58]MH_Cut [10:04:58]Write to MH i2c: D1 01 00 30 24 01 26 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 01 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 01 00 30 24 00 25 [10:04:58]Write to MH i2c: 01 00 00 31 24 55 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Connected sock=11 [10:04:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DC 27 07 01 78 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 4C FE B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DB 02 00 35 04 06 00 41 D2 63 E4 82 E3 65 57 55 6F 2C 7B B5 67 [10:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DF 5A 47 00 68 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DB 02 00 F4 03 04 00 9E A4 B6 67 B6 04 01 00 00 63 0A 0E 70 F9 79 3C 15 [10:04:59]CommunicateWithHost err = 0 [10:04:59]CheckOFDResponse [10:04:59]1017 (14) - 77093643461234 [10:04:59]1041 (16) - 0000000000871826 [10:04:59]1040 (4) - 187259 [10:04:59]1012 (4) - 20.02.2025 03:42 [10:04:59]1206 (1) - 0 [10:04:59]OFD Sender: Remove packet 187259 [10:04:59]ProducePacketName [10:04:59]name=ofd_packets/00187259 [10:04:59]NVStorageDeleteData [10:04:59]*** Cut start [10:04:59]*** Partial cut [10:04:59]*** CUTSNS_PIN = 1 [10:04:59]*** CUTSNS_PIN = 0 [10:04:59]OFD Sender: No OFD packet to send [10:04:59]*** Brake cut motor [10:05:00]Read from MH i2c: 01 [10:05:00]MH_I2C_Read... [10:05:00]*** Stop cut motor [10:05:00]*** Cut end [10:05:00]Read from MH i2c: 01 07 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 07 00 31 24 00 00 00 00 00 FF 0F 6A [10:05:00]process_action close_receipt done [10:05:00]requested_data is exist [10:05:00]produce_requested_data [10:05:00]requested_item fm.sn is exist - process it [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 11 00 00 [10:05:00]Write to MH i2c: E2 08 00 32 24 80 11 00 00 00 00 00 00 D0 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 32 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 23 [10:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:05:00]wFMCommunicate OK [10:05:00]requested_item fd.num is exist - process it [10:05:00]SAM_PROTO_GetFieldsCounters [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 00 00 [10:05:00]Write to MH i2c: E2 08 00 33 24 80 13 00 00 00 00 00 00 D3 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 62 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 62 00 33 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7B DB 02 00 0E 04 04 00 88 02 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 8F [10: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7B DB 02 00 0E 04 04 00 88 02 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 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_GetFieldsCounters done [10:05:00]requested_item shift.num is exist - process it [10:05:00]requested_item shift.opened is exist - process it [10:05:00]req_shift_opened [10:05:00]FM_GetShiftState [10:05:00]SAM_PROTO_GetShiftState [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 01 00 [10:05:00]Write to MH i2c: E2 08 00 34 24 80 13 01 00 00 00 00 00 D5 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 34 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 27 [10:05:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_GetShiftState done [10:05:00]FM_GetShiftState done [10:05:00]req_shift_opened done [10:05:00]requested_item shift.open_date is exist - process it [10:05:00]req_shift_open_date [10:05:00]req_shift_open_date done [10:05:00]produce_requested_data done [10:05:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187259,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:05:00]process_action_free close_receipt [10:05:00]json_value_free [10:05:00]json_value_free done [10:05:00]process_json_proto returns [10:05:00]Send response to host [10:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187259,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:05:00]free response buf [10:05:00]execute_script done [10:05:00]execute_script returns [10:05:00]free content buf [10:05:00]Sock 9.Close socket [10:05:00]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:37]accept exits with 7 [10:09:37]New connection [10:09:37]New thread 3066510692 created [10:09:37]Thread 3066654052 joined [10:09:37]Waiting for new connection... [10:09:37] Sock 7.Parse request [10:09:37]Sock 7.Check first char [10:09:37]Sock 7.First char is OK [10:09:37]request: POST /json_proto HTTP/1.0 [10:09:37]Method: POST [10:09:37]URL: /json_proto [10:09:37]Method is POST - this is cgi request [10:09:37]url: /json_proto [10:09:37]query_string will be loaded in cgi processing [10:09:37]execute_cgi json_proto POST (null) [10:09:37]execute_cgi path=json_proto method=POST [10:09:37]POST find Content-Length [10:09:37]Host: 172.17.46.131:8080 [10:09:37]Content-Length: 801 [10:09:37]Content-Type: application/json [10:09:37] [10:09:37]POST finish read [10:09:37]Found Content-Length = 801 [10:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:37]execute_script... [10:09: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)412413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:37]POST & json_proto [10:09:37]process_json_proto [10:09:37]json parsed OK: [10:09:37]protocol is kg_v1.0 [10:09:37]action value=close_receipt [10:09:37]process_action close_receipt [10:09:37]cmd_close_receipt [10:09:37]MH_GetDate [10:09:37]Write to MH i2c: F0 00 00 35 24 48 [10:09:37]Write i2c OK [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: F0 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: F0 09 00 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: F0 09 00 35 24 00 65 FF B6 67 7E 41 4F 65 45 [10:09:37]GetLastDocTimeStamp 1740045900 [10:09:37]current date 1740046181 [10:09:37]FM_GetShiftState [10:09:37]SAM_PROTO_GetShiftState [10:09:37]wFMCommunicate request_size=4 [10:09:37]MH_SAM_APDU [10:09:37]CAPDU: 80 13 01 00 [10:09:37]Write to MH i2c: E2 08 00 36 24 80 13 01 00 00 00 00 00 D7 [10:09:37]Write i2c OK [10:09:37]MH_I2C_Read... [10:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:37]Read from MH i2c: E2 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 0E 00 [10:09:37]MH_I2C_Read... [10:09:37]Read from MH i2c: E2 0E 00 36 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 29 [10:09:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:09:37]wFMCommunicate OK [10:09:37]SAM_PROTO_GetShiftState done [10:09:37]FM_GetShiftState done [10:09:37]opened in 1740011697 [10:09:37]opened+sec_in_day 1740098097 [10:09:37]quantity*price = 70042 [10:09:37]sum+1 = 70043 [10:09:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 61 20.02.2025 10:09 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187260 ФПД: 35545744466351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100941&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187260&fm=35545744466351&tin=02508201610067®Number=0000000000091857&sum=70042 [10:09:38]StoreToDocumentArchive [10:09:38]shift 648 fd 187260 [10:09:38]save to /storage/0648/doc_00187260 [10:09:38]save last doc name /storage/0648/doc_00187260 to /storage/kkm_last_doc_name [10:09:38]save OK [10:09:38]Clear old archive folders... [10:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:38]tlvbuf is 01F3E230 [10:09:38]SAM_PROTO_ClearQueue [10:09:38]wFMCommunicate request_size=4 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 09 00 00 [10:09:38]Write to MH i2c: E2 08 00 43 24 80 09 00 00 00 00 00 00 D9 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 43 24 00 90 00 DB [10:09:38]RAPDU: 90 00 [10:09:38]wFMCommunicate OK [10:09:38]SAM_PROTO_ClearQueue done [10:09:38]KKMCreateOFDPacket [10:09:38]OFDProtocolAddRootSTLVToBuf [10:09:38]FM_MakeSignedData [10:09:38]FM_MakeSignedData [10:09:38]SAM_PROTO_SignData [10:09:38]wFMCommunicate request_size=4 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 0D 01 02 [10:09:38]Write to MH i2c: E2 08 00 44 24 80 0D 01 02 00 00 00 00 E1 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 44 24 00 90 00 DC [10:09:38]RAPDU: 90 00 [10:09:38]wFMCommunicate OK [10:09:38]wFMCommunicate request_size=255 [10:09:38]MH_SAM_APDU [10:09: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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 65 FF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DB 02 00 35 04 06 00 20 [10:09:38]Write to MH i2c: E2 02 01 45 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 65 FF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DB 02 00 35 04 06 00 20 00 00 40 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 45 24 00 90 00 DD [10:09:38]RAPDU: 90 00 [10:09:38]wFMCommunicate OK [10:09:38]wFMCommunicate request_size=10 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 0D 02 02 05 54 23 78 E1 AF [10:09:38]Write to MH i2c: E2 0D 00 46 24 80 0D 02 02 05 00 54 23 78 E1 AF 00 00 6D [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 03 00 46 24 00 90 00 DE [10:09:38]RAPDU: 90 00 [10:09:38]wFMCommunicate OK [10:09:38]wFMCommunicate request_size=4 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 0D 03 02 [10:09:38]Write to MH i2c: E2 08 00 47 24 80 0D 03 02 00 00 00 00 E6 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 0B 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 0B 00 47 24 00 94 C8 68 BC 50 E4 F6 F6 90 00 87 [10:09:38]RAPDU: 94 C8 68 BC 50 E4 F6 F6 90 00 [10:09:38]wFMCommunicate OK [10:09:38]SAM_PROTO_SignData done [10:09:38]FM_MakeSignedData done [10:09:38]CreateOFDProtocolMessage [10:09:38]wFMCommunicate request_size=4 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 11 00 00 [10:09:38]Write to MH i2c: E2 08 00 48 24 80 11 00 00 00 00 00 00 E6 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 17 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 17 00 48 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 39 [10:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:09:39]wFMCommunicate OK [10:09:39]CreateOFDProtocolMessage done [10:09:39]OFDSenderStorePacket 187260 [10:09:39]StoreOFDPacket docnum=187260 [10:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F0 DA 07 01 E1 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 65 FF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DB 02 00 35 04 06 00 20 54 23 78 E1 AF 94 C8 68 BC 50 E4 F6 F6 [10:09:39]CheckFolder [10:09:39]dirname=/storage/ofd_packets [10:09:39]CheckFolder done [10:09:39]ProducePacketName [10:09:39]name=ofd_packets/00187260 [10:09:39]NVStorageSaveData ofd_packets/00187260 [10:09:39]File name is /storage/ofd_packets/00187260 [10:09:39]Write 301 bytes [10:09:39]NVStorageSaveData done [10:09:39]OFDSenderStorePacket done [10:09:39]KKMCreateOFDPacket done [10:09:39]NVStorageSaveData kkm_last_timestamp [10:09:39]File name is /storage/kkm_last_timestamp [10:09:39]Write 4 bytes [10:09:39]NVStorageSaveData done [10:09:39]ExternCall_PrintAddStr [10:09:39]wPrintStart [10:09:39]Write to MH i2c: 01 00 00 49 24 6D [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 49 24 00 00 00 00 00 FF 0F 82 [10:09:39]RasterBufferAndPrint [10:09:39]line Счет N : (1)412413 [10:09:39]line ИНН: 02508201610067 [10:09:39]line Контрольно-Кассовый Чек [10:09:39]line ПРОДАЖА [10:09:39]line ТРК (МРК, ГНК) : 32 [10:09:39]line Товар: 2710124130 [10:09:39]line Аи-92-К-2 [10:09:39]line 10.910 * 64.20 [10:09:39]line = 700.42 [10:09:39]line НДС 12% НСП 1% [10:09:39]line > о реализуемом товаре [10:09:39]line ИТОГО: 700.42 [10:09:39]line НСП 1% : 6.20 [10:09:39]line НДС 12% : 74.38 [10:09:39]line Наличными: 0.00 [10:09:39]line Безнал.: 700.42 [10:09:39]line Место: АЗС № 92 "Партнер Нефть" [10:09:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:09:39]line СНО: Общий режим [10:09:39]line Чек 61 20.02.2025 10:09 [10:09:39]line Смена: 648 ФФД: 1.0 [10:09:39]line ЗНМ: 0300000118 [10:09:39]line РНМ: 0000000000091857 [10:09:39]line Версия ККМ: 001 [10:09:39]line Платежная система: O! деньги [10:09:39]line ФМ: 0000000000871826 [10:09:39]line ФД: 187260 [10:09:39]line ФПД: 35545744466351 [10:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100941&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187260&fm=35545744466351&tin=02508201610067®Number=0000000000091857&sum=70042 [10:09:39]written 0, free lines is 4095 [10:09:39]OFD Sender: Processing packet 187260 [packets to send 49, broken 48] [10:09:39]ProducePacketName [10:09:39]name=ofd_packets/00187260 [10:09:39]OFD Sender: To server: pG, [10:09:39]CommunicateWithHost lk.salyk.kg:30040 [10:09:39]ConnectInit lk.salyk.kg [10:09:39]Connected sock=10 [10:09:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F0 DA 07 01 E1 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 65 FF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DB 02 00 35 04 06 00 20 54 23 78 E1 AF 94 C8 68 BC 50 E4 F6 F6 [10:09:39]Write to MH i2c: 01 00 00 73 24 97 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 73 24 00 00 00 00 00 00 0D AB [10:09:39]RasterBufferAndPrint [10:09:39]line [10:09:39]line [10:09:39]line [10:09:39]line [10:09:39]line [10:09:39]written 0, free lines is 3334 [10:09:39]MH_Cut [10:09:39]Write to MH i2c: D1 01 00 7A 24 01 70 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: D1 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: D1 01 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: D1 01 00 7A 24 00 6F [10:09:39]Write to MH i2c: 01 00 00 7B 24 9F [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A0 58 47 00 93 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DB 02 00 F4 03 04 00 B6 A5 B6 67 B6 04 01 00 00 29 74 31 56 55 4A C2 FF [10:09:39]CommunicateWithHost err = 0 [10:09:39]CheckOFDResponse [10:09:39]1017 (14) - 77093643461234 [10:09:39]1041 (16) - 0000000000871826 [10:09:39]1040 (4) - 187260 [10:09:39]1012 (4) - 20.02.2025 03:47 [10:09:39]1206 (1) - 0 [10:09:39]OFD Sender: Remove packet 187260 [10:09:39]ProducePacketName [10:09:39]name=ofd_packets/00187260 [10:09:39]NVStorageDeleteData [10:09:40]OFD Sender: No OFD packet to send [10:09:40]*** Cut start [10:09:40]*** Partial cut [10:09:40]*** CUTSNS_PIN = 1 [10:09:40]*** CUTSNS_PIN = 0 [10:09:40]*** Brake cut motor [10:09:40]Read from MH i2c: 01 [10:09:40]MH_I2C_Read... [10:09:40]*** Stop cut motor [10:09:40]*** Cut end [10:09:40]Read from MH i2c: 01 07 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: 01 07 00 7B 24 00 00 00 00 00 FF 0F B4 [10:09:40]process_action close_receipt done [10:09:40]requested_data is exist [10:09:40]produce_requested_data [10:09:40]requested_item fm.sn is exist - process it [10:09:40]wFMCommunicate request_size=4 [10:09:40]MH_SAM_APDU [10:09:40]CAPDU: 80 11 00 00 [10:09:40]Write to MH i2c: E2 08 00 7C 24 80 11 00 00 00 00 00 00 1A [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:40]Read from MH i2c: E2 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: E2 17 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: E2 17 00 7C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [10:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:09:40]wFMCommunicate OK [10:09:40]requested_item fd.num is exist - process it [10:09:40]SAM_PROTO_GetFieldsCounters [10:09:40]wFMCommunicate request_size=4 [10:09:40]MH_SAM_APDU [10:09:40]CAPDU: 80 13 00 00 [10:09:40]Write to MH i2c: E2 08 00 7D 24 80 13 00 00 00 00 00 00 1D [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:41]Read from MH i2c: E2 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: E2 62 00 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: E2 62 00 7D 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7C DB 02 00 0E 04 04 00 88 02 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 DD [10:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7C DB 02 00 0E 04 04 00 88 02 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 [10:09:41]wFMCommunicate OK [10:09:41]SAM_PROTO_GetFieldsCounters done [10:09:41]requested_item shift.num is exist - process it [10:09:41]requested_item shift.opened is exist - process it [10:09:41]req_shift_opened [10:09:41]FM_GetShiftState [10:09:41]SAM_PROTO_GetShiftState [10:09:41]wFMCommunicate request_size=4 [10:09:41]MH_SAM_APDU [10:09:41]CAPDU: 80 13 01 00 [10:09:41]Write to MH i2c: E2 08 00 7E 24 80 13 01 00 00 00 00 00 1F [10:09:41]Write i2c OK [10:09:41]MH_I2C_Read... [10:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:41]Read from MH i2c: E2 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: E2 0E 00 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: E2 0E 00 7E 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 71 [10:09:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:09:41]wFMCommunicate OK [10:09:41]SAM_PROTO_GetShiftState done [10:09:41]FM_GetShiftState done [10:09:41]req_shift_opened done [10:09:41]requested_item shift.open_date is exist - process it [10:09:41]req_shift_open_date [10:09:41]req_shift_open_date done [10:09:41]produce_requested_data done [10:09:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187260,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:09:41]process_action_free close_receipt [10:09:41]json_value_free [10:09:41]json_value_free done [10:09:41]process_json_proto returns [10:09:41]Send response to host [10:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187260,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:09:41]free response buf [10:09:41]execute_script done [10:09:41]execute_script returns [10:09:41]free content buf [10:09:41]Sock 7.Close socket [10:09:41]Sock 7.Thread stoped [10:09:41]accept exits with 9 [10:09:41]New connection [10:09:41]New thread 3066654052 created [10:09:41]Thread 3066510692 joined [10:09:41]Waiting for new connection... [10:09:41] Sock 9.Parse request [10:09:41]Sock 9.Check first char [10:09:41]Sock 9.First char is OK [10:09:41]request: POST /json_proto HTTP/1.0 [10:09:41]Method: POST [10:09:41]URL: /json_proto [10:09:41]Method is POST - this is cgi request [10:09:41]url: /json_proto [10:09:41]query_string will be loaded in cgi processing [10:09:41]execute_cgi json_proto POST (null) [10:09:41]execute_cgi path=json_proto method=POST [10:09:41]POST find Content-Length [10:09:41]Host: 172.17.46.131:8080 [10:09:41]Content-Length: 674 [10:09:41]Content-Type: application/json [10:09:41] [10:09:41]POST finish read [10:09:41]Found Content-Length = 674 [10:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:41]execute_script... [10:09: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)412414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:41]POST & json_proto [10:09:41]process_json_proto [10:09:41]json parsed OK: [10:09:41]protocol is kg_v1.0 [10:09:41]action value=close_receipt [10:09:41]process_action close_receipt [10:09:41]cmd_close_receipt [10:09:41]MH_GetDate [10:09:41]Write to MH i2c: F0 00 00 7F 24 92 [10:09:41]Write i2c OK [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: F0 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: F0 09 00 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: F0 09 00 7F 24 00 69 FF B6 67 7E 41 4F 65 93 [10:09:41]GetLastDocTimeStamp 1740046181 [10:09:41]current date 1740046185 [10:09:41]FM_GetShiftState [10:09:41]SAM_PROTO_GetShiftState [10:09:41]wFMCommunicate request_size=4 [10:09:41]MH_SAM_APDU [10:09:41]CAPDU: 80 13 01 00 [10:09:41]Write to MH i2c: E2 08 00 80 24 80 13 01 00 00 00 00 00 21 [10:09:41]Write i2c OK [10:09:41]MH_I2C_Read... [10:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:41]Read from MH i2c: E2 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: E2 0E 00 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: E2 0E 00 80 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 73 [10:09:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:09:41]wFMCommunicate OK [10:09:41]SAM_PROTO_GetShiftState done [10:09:41]FM_GetShiftState done [10:09:41]opened in 1740011697 [10:09:41]opened+sec_in_day 1740098097 [10:09:41]quantity*price = 50021 [10:09:41]sum+1 = 50022 [10:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 62 20.02.2025 10:09 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187261 ФПД: 61925004324195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100945&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187261&fm=61925004324195&tin=02508201610067®Number=0000000000091857&sum=50000 [10:09:42]StoreToDocumentArchive [10:09:42]shift 648 fd 187261 [10:09:42]save to /storage/0648/doc_00187261 [10:09:42]save last doc name /storage/0648/doc_00187261 to /storage/kkm_last_doc_name [10:09:42]save OK [10:09:42]Clear old archive folders... [10:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:09:42]tlvbuf is 020213F0 [10:09:42]SAM_PROTO_ClearQueue [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 09 00 00 [10:09:43]Write to MH i2c: E2 08 00 8D 24 80 09 00 00 00 00 00 00 23 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 8D 24 00 90 00 25 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]SAM_PROTO_ClearQueue done [10:09:43]KKMCreateOFDPacket [10:09:43]OFDProtocolAddRootSTLVToBuf [10:09:43]FM_MakeSignedData [10:09:43]FM_MakeSignedData [10:09:43]SAM_PROTO_SignData [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 0D 01 02 [10:09:43]Write to MH i2c: E2 08 00 8E 24 80 0D 01 02 00 00 00 00 2B [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 8E 24 00 90 00 26 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]wFMCommunicate request_size=255 [10:09:43]MH_SAM_APDU [10:09: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 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 69 FF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D DB 02 00 35 04 06 00 38 52 09 E2 [10:09:43]Write to MH i2c: E2 02 01 8F 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 69 FF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D DB 02 00 35 04 06 00 38 52 09 E2 00 00 00 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 8F 24 00 90 00 27 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]wFMCommunicate request_size=7 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 0D 02 02 02 AD 63 [10:09:43]Write to MH i2c: E2 0A 00 90 24 80 0D 02 02 02 00 AD 63 00 00 42 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 90 24 00 90 00 28 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 0D 03 02 [10:09:43]Write to MH i2c: E2 08 00 91 24 80 0D 03 02 00 00 00 00 30 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 0B 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 0B 00 91 24 00 78 50 07 0D 5C 57 C5 31 90 00 B6 [10:09:43]RAPDU: 78 50 07 0D 5C 57 C5 31 90 00 [10:09:43]wFMCommunicate OK [10:09:43]SAM_PROTO_SignData done [10:09:43]FM_MakeSignedData done [10:09:43]CreateOFDProtocolMessage [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 11 00 00 [10:09:43]Write to MH i2c: E2 08 00 92 24 80 11 00 00 00 00 00 00 30 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 17 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 17 00 92 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 83 [10:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:09:43]wFMCommunicate OK [10:09:43]CreateOFDProtocolMessage done [10:09:43]OFDSenderStorePacket 187261 [10:09:43]StoreOFDPacket docnum=187261 [10:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A2 A3 04 01 D9 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 69 FF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D DB 02 00 35 04 06 00 38 52 09 E2 AD 63 78 50 07 0D 5C 57 C5 31 [10:09:43]CheckFolder [10:09:43]dirname=/storage/ofd_packets [10:09:43]CheckFolder done [10:09:43]ProducePacketName [10:09:43]name=ofd_packets/00187261 [10:09:43]NVStorageSaveData ofd_packets/00187261 [10:09:43]File name is /storage/ofd_packets/00187261 [10:09:43]Write 298 bytes [10:09:43]NVStorageSaveData done [10:09:43]OFDSenderStorePacket done [10:09:43]KKMCreateOFDPacket done [10:09:43]NVStorageSaveData kkm_last_timestamp [10:09:43]File name is /storage/kkm_last_timestamp [10:09:43]Write 4 bytes [10:09:43]NVStorageSaveData done [10:09:43]ExternCall_PrintAddStr [10:09:43]wPrintStart [10:09:43]Write to MH i2c: 01 00 00 93 24 B7 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]OFD Sender: Processing packet 187261 [packets to send 49, broken 48] [10:09:43]ProducePacketName [10:09:43]name=ofd_packets/00187261 [10:09:43]OFD Sender: To server: pG, [10:09:43]CommunicateWithHost lk.salyk.kg:30040 [10:09:43]ConnectInit lk.salyk.kg [10:09:43]Read from MH i2c: 01 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: 01 07 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: 01 07 00 93 24 00 00 00 00 00 FF 0F CC [10:09:43]RasterBufferAndPrint [10:09:43]line Счет N : (1)412414 [10:09:43]line ИНН: 02508201610067 [10:09:43]line Контрольно-Кассовый Чек [10:09:43]line ПРОДАЖА [10:09:43]line ТРК (МРК, ГНК) : 11 [10:09:43]line Товар: 2710194210 [10:09:43]line ДТ-К-2 [10:09:43]line 6.890 * 72.60 [10:09:43]line = 500.21 [10:09:43]line НДС 12% НСП 1% [10:09:43]line > о реализуемом товаре [10:09:43]line ОКРУГЛЕНИЕ: -0.21 [10:09:43]line ИТОГО: 500.00 [10:09:43]line Внесено: 500.00 [10:09:43]line СДАЧА: 0.00 [10:09:43]line НСП 1% : 4.43 [10:09:43]line НДС 12% : 53.12 [10:09:43]line Наличными: 500.00 [10:09:43]line Безнал.: 0.00 [10:09:43]line Место: АЗС № 92 "Партнер Нефть" [10:09:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:09:43]line СНО: Общий режим [10:09:43]line Чек 62 20.02.2025 10:09 [10:09:43]line Смена: 648 ФФД: 1.0 [10:09:43]line ЗНМ: 0300000118 [10:09:43]line РНМ: 0000000000091857 [10:09:43]line Версия ККМ: 001 [10:09:44]line ФМ: 0000000000871826 [10:09:44]line ФД: 187261 [10:09:44]line ФПД: 61925004324195 [10:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T100945&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187261&fm=61925004324195&tin=02508201610067®Number=0000000000091857&sum=50000 [10:09:44]Connected sock=10 [10:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A2 A3 04 01 D9 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 69 FF B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 written 0, free lines is 4095 [10:09:44]10 04 04 00 7D DB 02 00 35 04 06 00 38 52 09 E2 AD 63 78 50 07 0D 5C 57 C5 31 [10:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D6 88 47 00 05 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 31 38 32 36 10 04 04 00 7D DB 02 00 F4 03 04 00 BB A5 B6 67 B6 04 01 00 00 3D 52 ED 78 C4 72 99 ED [10:09:44]CommunicateWithHost err = 0 [10:09:44]CheckOFDResponse [10:09:44]1017 (14) - 77093643461234 [10:09:44]1041 (16) - 0000000000871826 [10:09:44]1040 (4) - 187261 [10:09:44]1012 (4) - 20.02.2025 03:47 [10:09:44]1206 (1) - 0 [10:09:44]OFD Sender: Remove packet 187261 [10:09:44]ProducePacketName [10:09:44]name=ofd_packets/00187261 [10:09:44]NVStorageDeleteData [10:09:44]Write to MH i2c: 01 00 00 BE 24 E2 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 BE 24 00 00 00 00 00 E8 0C DD [10:09:44]RasterBufferAndPrint [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]written 0, free lines is 3319 [10:09:44]MH_Cut [10:09:44]Write to MH i2c: D1 01 00 C5 24 01 BB [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 01 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 01 00 C5 24 00 BA [10:09:44]Write to MH i2c: 01 00 00 C6 24 EA [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]OFD Sender: No OFD packet to send [10:09:45]*** Cut start [10:09:45]*** Partial cut [10:09:45]*** CUTSNS_PIN = 1 [10:09:45]*** CUTSNS_PIN = 0 [10:09:45]*** Brake cut motor [10:09:45]Read from MH i2c: 01 [10:09:45]MH_I2C_Read... [10:09:45]*** Stop cut motor [10:09:45]*** Cut end [10:09:45]Read from MH i2c: 01 07 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 C6 24 00 00 00 00 00 FF 0F FF [10:09:45]process_action close_receipt done [10:09:45]requested_data is exist [10:09:45]produce_requested_data [10:09:45]requested_item fm.sn is exist - process it [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 11 00 00 [10:09:45]Write to MH i2c: E2 08 00 C7 24 80 11 00 00 00 00 00 00 65 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 C7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [10:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:09:46]wFMCommunicate OK [10:09:46]requested_item fd.num is exist - process it [10:09:46]SAM_PROTO_GetFieldsCounters [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 13 00 00 [10:09:46]Write to MH i2c: E2 08 00 C8 24 80 13 00 00 00 00 00 00 68 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 62 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 62 00 C8 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7D DB 02 00 0E 04 04 00 88 02 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 2C [10:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7D DB 02 00 0E 04 04 00 88 02 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 [10:09:46]wFMCommunicate OK [10:09:46]SAM_PROTO_GetFieldsCounters done [10:09:46]requested_item shift.num is exist - process it [10:09:46]requested_item shift.opened is exist - process it [10:09:46]req_shift_opened [10:09:46]FM_GetShiftState [10:09:46]SAM_PROTO_GetShiftState [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 13 01 00 [10:09:46]Write to MH i2c: E2 08 00 C9 24 80 13 01 00 00 00 00 00 6A [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 0E 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 0E 00 C9 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BC [10:09:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:09:46]wFMCommunicate OK [10:09:46]SAM_PROTO_GetShiftState done [10:09:46]FM_GetShiftState done [10:09:46]req_shift_opened done [10:09:46]requested_item shift.open_date is exist - process it [10:09:46]req_shift_open_date [10:09:46]req_shift_open_date done [10:09:46]produce_requested_data done [10:09:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187261,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:09:46]process_action_free close_receipt [10:09:46]json_value_free [10:09:46]json_value_free done [10:09:46]process_json_proto returns [10:09:46]Send response to host [10:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187261,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:09:46]free response buf [10:09:46]execute_script done [10:09:46]execute_script returns [10:09:46]free content buf [10:09:46]Sock 9.Close socket [10:09:46]Sock 9.Thread stoped [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:51]accept exits with 7 [10:12:51]New connection [10:12:51]New thread 3066510692 created [10:12:51]Thread 3066654052 joined [10:12:51]Waiting for new connection... [10:12:51] Sock 7.Parse request [10:12:51]Sock 7.Check first char [10:12:51]Sock 7.First char is OK [10:12:51]request: POST /json_proto HTTP/1.0 [10:12:51]Method: POST [10:12:51]URL: /json_proto [10:12:51]Method is POST - this is cgi request [10:12:51]url: /json_proto [10:12:51]query_string will be loaded in cgi processing [10:12:51]execute_cgi json_proto POST (null) [10:12:51]execute_cgi path=json_proto method=POST [10:12:51]POST find Content-Length [10:12:51]Host: 172.17.46.131:8080 [10:12:51]Content-Length: 754 [10:12:51]Content-Type: application/json [10:12:51] [10:12:51]POST finish read [10:12:51]Found Content-Length = 754 [10:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107207", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:51]execute_script... [10:12:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107207", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:51]POST & json_proto [10:12:51]process_json_proto [10:12:51]json parsed OK: [10:12:51]protocol is kg_v1.0 [10:12:51]action value=close_receipt [10:12:51]process_action close_receipt [10:12:51]cmd_close_receipt [10:12:51]MH_GetDate [10:12:51]Write to MH i2c: F0 00 00 CA 24 DD [10:12:51]Write i2c OK [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: F0 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: F0 09 00 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: F0 09 00 CA 24 00 28 00 B7 67 7E 41 4F 65 9F [10:12:51]GetLastDocTimeStamp 1740046185 [10:12:51]current date 1740046376 [10:12:51]FM_GetShiftState [10:12:51]SAM_PROTO_GetShiftState [10:12:51]wFMCommunicate request_size=4 [10:12:51]MH_SAM_APDU [10:12:51]CAPDU: 80 13 01 00 [10:12:51]Write to MH i2c: E2 08 00 CB 24 80 13 01 00 00 00 00 00 6C [10:12:51]Write i2c OK [10:12:51]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 0E 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 0E 00 CB 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BE [10:12:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:12:52]wFMCommunicate OK [10:12:52]SAM_PROTO_GetShiftState done [10:12:52]FM_GetShiftState done [10:12:52]opened in 1740011697 [10:12:52]opened+sec_in_day 1740098097 [10:12:52]quantity*price = 0 [10:12:52]sum+1 = 1 [10:12:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 63 20.02.2025 10:12 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107207 ФМ: 0000000000871826 ФД: 187262 ФПД: 98920137881108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T101256&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187262&fm=98920137881108&tin=02508201610067®Number=0000000000091857&sum=0 [10:12:53]StoreToDocumentArchive [10:12:53]shift 648 fd 187262 [10:12:53]save to /storage/0648/doc_00187262 [10:12:53]save last doc name /storage/0648/doc_00187262 to /storage/kkm_last_doc_name [10:12:53]save OK [10:12:53]Clear old archive folders... [10:12:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:53]tlvbuf is B6E5F660 [10:12:53]SAM_PROTO_ClearQueue [10:12:53]wFMCommunicate request_size=4 [10:12:53]MH_SAM_APDU [10:12:53]CAPDU: 80 09 00 00 [10:12:53]Write to MH i2c: E2 08 00 D8 24 80 09 00 00 00 00 00 00 6E [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 03 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 03 00 D8 24 00 90 00 70 [10:12:53]RAPDU: 90 00 [10:12:53]wFMCommunicate OK [10:12:53]SAM_PROTO_ClearQueue done [10:12:53]KKMCreateOFDPacket [10:12:53]OFDProtocolAddRootSTLVToBuf [10:12:53]FM_MakeSignedData [10:12:53]FM_MakeSignedData [10:12:53]SAM_PROTO_SignData [10:12:53]wFMCommunicate request_size=4 [10:12:53]MH_SAM_APDU [10:12:53]CAPDU: 80 0D 01 02 [10:12:53]Write to MH i2c: E2 08 00 D9 24 80 0D 01 02 00 00 00 00 76 [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 03 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 03 00 D9 24 00 90 00 71 [10:12:53]RAPDU: 90 00 [10:12:53]wFMCommunicate OK [10:12:53]wFMCommunicate request_size=255 [10:12:53]MH_SAM_APDU [10:12: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 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 28 00 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DB 02 00 35 04 06 00 59 [10:12:53]Write to MH i2c: E2 02 01 DA 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 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 28 00 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DB 02 00 35 04 06 00 59 00 00 4E [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 03 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 03 00 DA 24 00 90 00 72 [10:12:53]RAPDU: 90 00 [10:12:53]wFMCommunicate OK [10:12:53]wFMCommunicate request_size=10 [10:12:53]MH_SAM_APDU [10:12:53]CAPDU: 80 0D 02 02 05 F7 A3 AD F6 14 [10:12:53]Write to MH i2c: E2 0D 00 DB 24 80 0D 02 02 05 00 F7 A3 AD F6 14 00 00 D4 [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 03 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 03 00 DB 24 00 90 00 73 [10:12:53]RAPDU: 90 00 [10:12:53]wFMCommunicate OK [10:12:53]wFMCommunicate request_size=4 [10:12:53]MH_SAM_APDU [10:12:53]CAPDU: 80 0D 03 02 [10:12:53]Write to MH i2c: E2 08 00 DC 24 80 0D 03 02 00 00 00 00 7B [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 0B 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 0B 00 DC 24 00 7F 38 A0 9F CF 68 FC F8 90 00 9D [10:12:53]RAPDU: 7F 38 A0 9F CF 68 FC F8 90 00 [10:12:53]wFMCommunicate OK [10:12:53]SAM_PROTO_SignData done [10:12:53]FM_MakeSignedData done [10:12:53]CreateOFDProtocolMessage [10:12:53]wFMCommunicate request_size=4 [10:12:53]MH_SAM_APDU [10:12:53]CAPDU: 80 11 00 00 [10:12:53]Write to MH i2c: E2 08 00 DD 24 80 11 00 00 00 00 00 00 7B [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 17 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 17 00 DD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [10:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:12:53]wFMCommunicate OK [10:12:53]CreateOFDProtocolMessage done [10:12:53]OFDSenderStorePacket 187262 [10:12:53]StoreOFDPacket docnum=187262 [10:12:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8E 29 07 01 1C 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 28 00 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DB 02 00 35 04 06 00 59 F7 A3 AD F6 14 7F 38 A0 9F CF 68 FC F8 [10:12:53]CheckFolder [10:12:53]dirname=/storage/ofd_packets [10:12:53]CheckFolder done [10:12:53]ProducePacketName [10:12:53]name=ofd_packets/00187262 [10:12:53]NVStorageSaveData ofd_packets/00187262 [10:12:53]File name is /storage/ofd_packets/00187262 [10:12:53]Write 301 bytes [10:12:53]NVStorageSaveData done [10:12:53]OFDSenderStorePacket done [10:12:53]KKMCreateOFDPacket done [10:12:53]NVStorageSaveData kkm_last_timestamp [10:12:53]File name is /storage/kkm_last_timestamp [10:12:53]Write 4 bytes [10:12:53]NVStorageSaveData done [10:12:53]ExternCall_PrintAddStr [10:12:53]wPrintStart [10:12:53]Write to MH i2c: 01 00 00 DE 24 02 [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: 01 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: 01 07 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: 01 07 00 DE 24 00 00 00 00 00 FF 0F 17 [10:12:53]RasterBufferAndPrint [10:12:53]line Счет N : (1)412415 [10:12:53]line ИНН: 02508201610067 [10:12:53]line Контрольно-Кассовый Чек [10:12:53]line ПРОДАЖА [10:12:53]line ТРК (МРК, ГНК) : 22 [10:12:53]line Товар: 2710124130 [10:12:53]line Аи-92-К-2 [10:12:53]line 25.000 * 0.00 [10:12:53]line = 0.00 [10:12:53]line НДС 12% НСП 1% [10:12:53]line > о реализуемом товаре [10:12:53]line ИТОГО: 0.00 [10:12:53]line НСП 1% : 0.00 [10:12:53]line НДС 12% : 0.00 [10:12:53]line Наличными: 0.00 [10:12:53]line Безнал.: 0.00 [10:12:53]line Место: АЗС № 92 "Партнер Нефть" [10:12:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:12:53]line СНО: Общий режим [10:12:53]line Чек 63 20.02.2025 10:12 [10:12:53]line Смена: 648 ФФД: 1.0 [10:12:53]line ЗНМ: 0300000118 [10:12:53]line РНМ: 0000000000091857 [10:12:53]line Версия ККМ: 001 [10:12:53]line Талоны: ТК ГПНА Online [10:12:53]line 30107207 [10:12:53]line ФМ: 0000000000871826 [10:12:53]line ФД: 187262 [10:12:53]line ФПД: 98920137881108 [10:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T101256&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187262&fm=98920137881108&tin=02508201610067®Number=0000000000091857&sum=0 [10:12:53]written 0, free lines is 4095 [10:12:53]OFD Sender: Processing packet 187262 [packets to send 49, broken 48] [10:12:53]ProducePacketName [10:12:53]name=ofd_packets/00187262 [10:12:53]OFD Sender: To server: pG, [10:12:53]CommunicateWithHost lk.salyk.kg:30040 [10:12:53]ConnectInit lk.salyk.kg [10:12:53]Connected sock=10 [10:12:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8E 29 07 01 1C 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 28 00 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DB 02 00 35 04 06 00 59 F7 A3 AD F6 14 7F 38 A0 9F CF 68 FC F8 [10:12:54]Write to MH i2c: 01 00 00 08 25 2D [10:12:54]Write i2c OK [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: 01 [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: 01 07 00 [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: 01 07 00 08 25 00 00 00 00 00 F9 0C 39 [10:12:54]RasterBufferAndPrint [10:12:54]line [10:12:54]line [10:12:54]line [10:12:54]line [10:12:54]line [10:12:54]written 0, free lines is 3327 [10:12:54]MH_Cut [10:12:54]Write to MH i2c: D1 01 00 0F 25 01 06 [10:12:54]Write i2c OK [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: D1 [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: D1 01 00 [10:12:54]MH_I2C_Read... [10:12:54]Read from MH i2c: D1 01 00 0F 25 00 05 [10:12:54]Write to MH i2c: 01 00 00 10 25 35 [10:12:54]Write i2c OK [10:12:54]MH_I2C_Read... [10:12:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B5 5F 47 00 56 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DB 02 00 F4 03 04 00 79 A6 B6 67 B6 04 01 00 00 10 A0 1E A3 29 53 4D 06 [10:12:54]CommunicateWithHost err = 0 [10:12:54]CheckOFDResponse [10:12:54]1017 (14) - 77093643461234 [10:12:54]1041 (16) - 0000000000871826 [10:12:54]1040 (4) - 187262 [10:12:54]1012 (4) - 20.02.2025 03:50 [10:12:54]1206 (1) - 0 [10:12:54]OFD Sender: Remove packet 187262 [10:12:54]ProducePacketName [10:12:54]name=ofd_packets/00187262 [10:12:54]NVStorageDeleteData [10:12:54]OFD Sender: No OFD packet to send [10:12:54]*** Cut start [10:12:54]*** Partial cut [10:12:54]*** CUTSNS_PIN = 1 [10:12:54]*** CUTSNS_PIN = 0 [10:12:55]*** Brake cut motor [10:12:55]Read from MH i2c: 01 [10:12:55]MH_I2C_Read... [10:12:55]*** Stop cut motor [10:12:55]*** Cut end [10:12:55]Read from MH i2c: 01 07 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: 01 07 00 10 25 00 00 00 00 00 FF 0F 4A [10:12:55]process_action close_receipt done [10:12:55]requested_data is exist [10:12:55]produce_requested_data [10:12:55]requested_item fm.sn is exist - process it [10:12:55]wFMCommunicate request_size=4 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 11 00 00 [10:12:55]Write to MH i2c: E2 08 00 11 25 80 11 00 00 00 00 00 00 B0 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:55]Read from MH i2c: E2 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 17 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 17 00 11 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [10:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:12:55]wFMCommunicate OK [10:12:55]requested_item fd.num is exist - process it [10:12:55]SAM_PROTO_GetFieldsCounters [10:12:55]wFMCommunicate request_size=4 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 13 00 00 [10:12:55]Write to MH i2c: E2 08 00 12 25 80 13 00 00 00 00 00 00 B3 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:55]Read from MH i2c: E2 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 62 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 62 00 12 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7E DB 02 00 0E 04 04 00 88 02 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 7B [10:12:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7E DB 02 00 0E 04 04 00 88 02 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 [10:12:55]wFMCommunicate OK [10:12:55]SAM_PROTO_GetFieldsCounters done [10:12:55]requested_item shift.num is exist - process it [10:12:55]requested_item shift.opened is exist - process it [10:12:55]req_shift_opened [10:12:55]FM_GetShiftState [10:12:55]SAM_PROTO_GetShiftState [10:12:55]wFMCommunicate request_size=4 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 13 01 00 [10:12:55]Write to MH i2c: E2 08 00 13 25 80 13 01 00 00 00 00 00 B5 [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:55]Read from MH i2c: E2 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 0E 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 0E 00 13 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 07 [10:12:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:12:55]wFMCommunicate OK [10:12:55]SAM_PROTO_GetShiftState done [10:12:55]FM_GetShiftState done [10:12:55]req_shift_opened done [10:12:55]requested_item shift.open_date is exist - process it [10:12:55]req_shift_open_date [10:12:55]req_shift_open_date done [10:12:55]produce_requested_data done [10:12:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187262,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:12:55]process_action_free close_receipt [10:12:55]json_value_free [10:12:55]json_value_free done [10:12:55]process_json_proto returns [10:12:55]Send response to host [10:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187262,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:12:55]free response buf [10:12:55]execute_script done [10:12:55]execute_script returns [10:12:55]free content buf [10:12:55]Sock 7.Close socket [10:12:55]Sock 7.Thread stoped [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]accept exits with 9 [10:16:24]New connection [10:16:24]New thread 3066654052 created [10:16:24]Thread 3066510692 joined [10:16:24]Waiting for new connection... [10:16:24] Sock 9.Parse request [10:16:24]Sock 9.Check first char [10:16:24]Sock 9.First char is OK [10:16:24]request: POST /json_proto HTTP/1.0 [10:16:24]Method: POST [10:16:24]URL: /json_proto [10:16:24]Method is POST - this is cgi request [10:16:24]url: /json_proto [10:16:24]query_string will be loaded in cgi processing [10:16:24]execute_cgi json_proto POST (null) [10:16:24]execute_cgi path=json_proto method=POST [10:16:24]POST find Content-Length [10:16:24]Host: 172.17.46.131:8080 [10:16:24]Content-Length: 800 [10:16:24]Content-Type: application/json [10:16:24] [10:16:24]POST finish read [10:16:24]Found Content-Length = 800 [10:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:24]execute_script... [10:16: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)412416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:24]POST & json_proto [10:16:24]process_json_proto [10:16:24]json parsed OK: [10:16:24]protocol is kg_v1.0 [10:16:24]action value=close_receipt [10:16:24]process_action close_receipt [10:16:24]cmd_close_receipt [10:16:24]MH_GetDate [10:16:24]Write to MH i2c: F0 00 00 14 25 28 [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: F0 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: F0 09 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: F0 09 00 14 25 00 FC 00 B7 67 7E 41 4F 65 BE [10:16:24]GetLastDocTimeStamp 1740046376 [10:16:24]current date 1740046588 [10:16:24]FM_GetShiftState [10:16:24]SAM_PROTO_GetShiftState [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 13 01 00 [10:16:24]Write to MH i2c: E2 08 00 15 25 80 13 01 00 00 00 00 00 B7 [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 0E 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 0E 00 15 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 09 [10:16:24]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:16:24]wFMCommunicate OK [10:16:24]SAM_PROTO_GetShiftState done [10:16:24]FM_GetShiftState done [10:16:24]opened in 1740011697 [10:16:24]opened+sec_in_day 1740098097 [10:16:24]quantity*price = 60036 [10:16:24]sum+1 = 60038 [10:16:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.37 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.37 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 64 20.02.2025 10:16 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187263 ФПД: 232633424440056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T101628&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187263&fm=232633424440056&tin=02508201610067®Number=0000000000091857&sum=60037 [10:16:25]StoreToDocumentArchive [10:16:25]shift 648 fd 187263 [10:16:25]save to /storage/0648/doc_00187263 [10:16:25]save last doc name /storage/0648/doc_00187263 to /storage/kkm_last_doc_name [10:16:25]save OK [10:16:25]Clear old archive folders... [10:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:25]tlvbuf is B6E5F090 [10:16:25]SAM_PROTO_ClearQueue [10:16:25]wFMCommunicate request_size=4 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 09 00 00 [10:16:25]Write to MH i2c: E2 08 00 22 25 80 09 00 00 00 00 00 00 B9 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:25]Read from MH i2c: E2 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 03 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 03 00 22 25 00 90 00 BB [10:16:25]RAPDU: 90 00 [10:16:25]wFMCommunicate OK [10:16:25]SAM_PROTO_ClearQueue done [10:16:25]KKMCreateOFDPacket [10:16:25]OFDProtocolAddRootSTLVToBuf [10:16:25]FM_MakeSignedData [10:16:25]FM_MakeSignedData [10:16:25]SAM_PROTO_SignData [10:16:25]wFMCommunicate request_size=4 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 0D 01 02 [10:16:25]Write to MH i2c: E2 08 00 23 25 80 0D 01 02 00 00 00 00 C1 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:25]Read from MH i2c: E2 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 03 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 03 00 23 25 00 90 00 BC [10:16:25]RAPDU: 90 00 [10:16:25]wFMCommunicate OK [10:16:25]wFMCommunicate request_size=255 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 85 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 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FC 00 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DB 02 00 35 04 06 00 D3 [10:16:25]Write to MH i2c: E2 02 01 24 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 85 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 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FC 00 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DB 02 00 35 04 06 00 D3 00 00 39 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 03 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 03 00 24 25 00 90 00 BD [10:16:26]RAPDU: 90 00 [10:16:26]wFMCommunicate OK [10:16:26]wFMCommunicate request_size=10 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 0D 02 02 05 94 30 A0 6A F8 [10:16:26]Write to MH i2c: E2 0D 00 25 25 80 0D 02 02 05 00 94 30 A0 6A F8 00 00 94 [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 03 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 03 00 25 25 00 90 00 BE [10:16:26]RAPDU: 90 00 [10:16:26]wFMCommunicate OK [10:16:26]wFMCommunicate request_size=4 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 0D 03 02 [10:16:26]Write to MH i2c: E2 08 00 26 25 80 0D 03 02 00 00 00 00 C6 [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 0B 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 0B 00 26 25 00 DC AC 90 89 60 DB 06 C1 90 00 6A [10:16:26]RAPDU: DC AC 90 89 60 DB 06 C1 90 00 [10:16:26]wFMCommunicate OK [10:16:26]SAM_PROTO_SignData done [10:16:26]FM_MakeSignedData done [10:16:26]CreateOFDProtocolMessage [10:16:26]wFMCommunicate request_size=4 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 11 00 00 [10:16:26]Write to MH i2c: E2 08 00 27 25 80 11 00 00 00 00 00 00 C6 [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 17 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 17 00 27 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [10:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:16:26]wFMCommunicate OK [10:16:26]CreateOFDProtocolMessage done [10:16:26]OFDSenderStorePacket 187263 [10:16:26]StoreOFDPacket docnum=187263 [10:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B3 71 07 01 D2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 85 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 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FC 00 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DB 02 00 35 04 06 00 D3 94 30 A0 6A F8 DC AC 90 89 60 DB 06 C1 [10:16:26]CheckFolder [10:16:26]dirname=/storage/ofd_packets [10:16:26]CheckFolder done [10:16:26]ProducePacketName [10:16:26]name=ofd_packets/00187263 [10:16:26]NVStorageSaveData ofd_packets/00187263 [10:16:26]File name is /storage/ofd_packets/00187263 [10:16:26]Write 301 bytes [10:16:26]NVStorageSaveData done [10:16:26]OFDSenderStorePacket done [10:16:26]KKMCreateOFDPacket done [10:16:26]NVStorageSaveData kkm_last_timestamp [10:16:26]File name is /storage/kkm_last_timestamp [10:16:26]Write 4 bytes [10:16:26]NVStorageSaveData done [10:16:26]ExternCall_PrintAddStr [10:16:26]wPrintStart [10:16:26]Write to MH i2c: 01 00 00 28 25 4D [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 07 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 07 00 28 25 00 00 00 00 00 FF 0F 62 [10:16:26]RasterBufferAndPrint [10:16:26]line Счет N : (1)412416 [10:16:26]line ИНН: 02508201610067 [10:16:26]line Контрольно-Кассовый Чек [10:16:26]line ПРОДАЖА [10:16:26]line ТРК (МРК, ГНК) : 43 [10:16:26]line Товар: 2710124500 [10:16:26]line Аи-95-К-5 [10:16:26]line 8.350 * 71.90 [10:16:26]line = 600.37 [10:16:26]line НДС 12% НСП 1% [10:16:26]line > о реализуемом товаре [10:16:26]line ИТОГО: 600.37 [10:16:26]line НСП 1% : 5.31 [10:16:26]line НДС 12% : 63.76 [10:16:26]line Наличными: 0.00 [10:16:26]line Безнал.: 600.37 [10:16:26]line Место: АЗС № 92 "Партнер Нефть" [10:16:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:16:26]line СНО: Общий режим [10:16:26]line Чек 64 20.02.2025 10:16 [10:16:26]line Смена: 648 ФФД: 1.0 [10:16:26]line ЗНМ: 0300000118 [10:16:26]line РНМ: 0000000000091857 [10:16:26]line Версия ККМ: 001 [10:16:26]line Платежная система: O! деньги [10:16:26]line ФМ: 0000000000871826 [10:16:26]line ФД: 187263 [10:16:26]line ФПД: 232633424440056 [10:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T101628&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187263&fm=232633424440056&tin=02508201610067®Number=0000000000091857&sum=60037 [10:16:26]written 0, free lines is 4095 [10:16:26]OFD Sender: Processing packet 187263 [packets to send 49, broken 48] [10:16:26]ProducePacketName [10:16:26]name=ofd_packets/00187263 [10:16:26]OFD Sender: To server: pG, [10:16:26]CommunicateWithHost lk.salyk.kg:30040 [10:16:26]ConnectInit lk.salyk.kg [10:16:26]Write to MH i2c: 01 00 00 52 25 77 [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 07 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 07 00 52 25 00 00 00 00 00 02 0D 8D [10:16:26]RasterBufferAndPrint [10:16:26]line [10:16:26]line [10:16:26]line [10:16:26]line [10:16:26]line [10:16:26]written 0, free lines is 3336 [10:16:26]MH_Cut [10:16:26]Write to MH i2c: D1 01 00 59 25 01 50 [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: D1 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: D1 01 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: D1 01 00 59 25 00 4F [10:16:26]Write to MH i2c: 01 00 00 5A 25 7F [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]Connected sock=7 [10:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B3 71 07 01 D2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 85 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 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FC 00 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DB 02 00 35 04 06 00 D3 94 30 A0 6A F8 DC AC 90 89 60 DB 06 C1 [10:16:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AA F2 47 00 F2 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 31 38 32 36 10 04 04 00 7F DB 02 00 F4 03 04 00 4E A7 B6 67 B6 04 01 00 00 62 B9 33 93 33 F6 D5 63 [10:16:27]CommunicateWithHost err = 0 [10:16:27]CheckOFDResponse [10:16:27]1017 (14) - 77093643461234 [10:16:27]1041 (16) - 0000000000871826 [10:16:27]1040 (4) - 187263 [10:16:27]1012 (4) - 20.02.2025 03:53 [10:16:27]1206 (1) - 0 [10:16:27]OFD Sender: Remove packet 187263 [10:16:27]ProducePacketName [10:16:27]name=ofd_packets/00187263 [10:16:27]NVStorageDeleteData [10:16:27]*** Cut start [10:16:27]*** Partial cut [10:16:27]*** CUTSNS_PIN = 1 [10:16:27]*** CUTSNS_PIN = 0 [10:16:27]OFD Sender: No OFD packet to send [10:16:27]*** Brake cut motor [10:16:28]Read from MH i2c: 01 [10:16:28]MH_I2C_Read... [10:16:28]*** Stop cut motor [10:16:28]*** Cut end [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 5A 25 00 00 00 00 00 FF 0F 94 [10:16:28]process_action close_receipt done [10:16:28]requested_data is exist [10:16:28]produce_requested_data [10:16:28]requested_item fm.sn is exist - process it [10:16:28]wFMCommunicate request_size=4 [10:16:28]MH_SAM_APDU [10:16:28]CAPDU: 80 11 00 00 [10:16:28]Write to MH i2c: E2 08 00 5B 25 80 11 00 00 00 00 00 00 FA [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:28]Read from MH i2c: E2 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 17 00 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 17 00 5B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [10:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:16:28]wFMCommunicate OK [10:16:28]requested_item fd.num is exist - process it [10:16:28]SAM_PROTO_GetFieldsCounters [10:16:28]wFMCommunicate request_size=4 [10:16:28]MH_SAM_APDU [10:16:28]CAPDU: 80 13 00 00 [10:16:28]Write to MH i2c: E2 08 00 5C 25 80 13 00 00 00 00 00 00 FD [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:28]Read from MH i2c: E2 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 62 00 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 62 00 5C 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7F DB 02 00 0E 04 04 00 88 02 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 C9 [10:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7F DB 02 00 0E 04 04 00 88 02 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 [10:16:28]wFMCommunicate OK [10:16:28]SAM_PROTO_GetFieldsCounters done [10:16:28]requested_item shift.num is exist - process it [10:16:28]requested_item shift.opened is exist - process it [10:16:28]req_shift_opened [10:16:28]FM_GetShiftState [10:16:28]SAM_PROTO_GetShiftState [10:16:28]wFMCommunicate request_size=4 [10:16:28]MH_SAM_APDU [10:16:28]CAPDU: 80 13 01 00 [10:16:28]Write to MH i2c: E2 08 00 5D 25 80 13 01 00 00 00 00 00 FF [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:28]Read from MH i2c: E2 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 0E 00 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 0E 00 5D 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 51 [10:16:28]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:16:28]wFMCommunicate OK [10:16:28]SAM_PROTO_GetShiftState done [10:16:28]FM_GetShiftState done [10:16:28]req_shift_opened done [10:16:28]requested_item shift.open_date is exist - process it [10:16:28]req_shift_open_date [10:16:28]req_shift_open_date done [10:16:28]produce_requested_data done [10:16:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187263,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:16:28]process_action_free close_receipt [10:16:28]json_value_free [10:16:28]json_value_free done [10:16:28]process_json_proto returns [10:16:28]Send response to host [10:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187263,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:16:28]free response buf [10:16:28]execute_script done [10:16:28]execute_script returns [10:16:28]free content buf [10:16:28]Sock 9.Close socket [10:16:28]Sock 9.Thread stoped [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:09]accept exits with 10 [10:22:09]New connection [10:22:09]New thread 3066510692 created [10:22:09]Thread 3066654052 joined [10:22:09]Waiting for new connection... [10:22:09] Sock 10.Parse request [10:22:09]Sock 10.Check first char [10:22:09]Sock 10.First char is OK [10:22:09]request: POST /json_proto HTTP/1.0 [10:22:09]Method: POST [10:22:09]URL: /json_proto [10:22:09]Method is POST - this is cgi request [10:22:09]url: /json_proto [10:22:09]query_string will be loaded in cgi processing [10:22:09]execute_cgi json_proto POST (null) [10:22:09]execute_cgi path=json_proto method=POST [10:22:09]POST find Content-Length [10:22:09]Host: 172.17.46.131:8080 [10:22:09]Content-Length: 678 [10:22:09]Content-Type: application/json [10:22:09] [10:22:09]POST finish read [10:22:09]Found Content-Length = 678 [10:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.500, "sum" : 970.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 970.00, "total" : 970.00, "payments": [ { "type": 0, "sum" : 970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:09]execute_script... [10:22: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)412417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.500, "sum" : 970.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 970.00, "total" : 970.00, "payments": [ { "type": 0, "sum" : 970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:09]POST & json_proto [10:22:09]process_json_proto [10:22:09]json parsed OK: [10:22:09]protocol is kg_v1.0 [10:22:09]action value=close_receipt [10:22:09]process_action close_receipt [10:22:09]cmd_close_receipt [10:22:09]MH_GetDate [10:22:09]Write to MH i2c: F0 00 00 5E 25 72 [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 09 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 09 00 5E 25 00 55 02 B7 67 7E 41 4F 65 63 [10:22:09]GetLastDocTimeStamp 1740046588 [10:22:09]current date 1740046933 [10:22:09]FM_GetShiftState [10:22:09]SAM_PROTO_GetShiftState [10:22:09]wFMCommunicate request_size=4 [10:22:09]MH_SAM_APDU [10:22:09]CAPDU: 80 13 01 00 [10:22:09]Write to MH i2c: E2 08 00 5F 25 80 13 01 00 00 00 00 00 01 [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:09]Read from MH i2c: E2 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 0E 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 0E 00 5F 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 53 [10:22:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:22:09]wFMCommunicate OK [10:22:09]SAM_PROTO_GetShiftState done [10:22:09]FM_GetShiftState done [10:22:09]opened in 1740011697 [10:22:09]opened+sec_in_day 1740098097 [10:22:09]quantity*price = 97065 [10:22:09]sum+1 = 97066 [10:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 970.00 Внесено: 970.00 СДАЧА: 0.00 НСП 1% : 8.59 НДС 12% : 103.08 Наличными: 970.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 65 20.02.2025 10:22 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187264 ФПД: 280074274281556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102213&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187264&fm=280074274281556&tin=02508201610067®Number=0000000000091857&sum=97000 [10:22:10]StoreToDocumentArchive [10:22:10]shift 648 fd 187264 [10:22:10]save to /storage/0648/doc_00187264 [10:22:10]save last doc name /storage/0648/doc_00187264 to /storage/kkm_last_doc_name [10:22:10]save OK [10:22:10]Clear old archive folders... [10:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:10]tlvbuf is 0200CC30 [10:22:10]SAM_PROTO_ClearQueue [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 09 00 00 [10:22:10]Write to MH i2c: E2 08 00 6C 25 80 09 00 00 00 00 00 00 03 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 6C 25 00 90 00 05 [10:22:10]RAPDU: 90 00 [10:22:10]wFMCommunicate OK [10:22:10]SAM_PROTO_ClearQueue done [10:22:10]KKMCreateOFDPacket [10:22:10]OFDProtocolAddRootSTLVToBuf [10:22:10]FM_MakeSignedData [10:22:10]FM_MakeSignedData [10:22:10]SAM_PROTO_SignData [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 0D 01 02 [10:22:10]Write to MH i2c: E2 08 00 6D 25 80 0D 01 02 00 00 00 00 0B [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 6D 25 00 90 00 06 [10:22:10]RAPDU: 90 00 [10:22:10]wFMCommunicate OK [10:22:10]wFMCommunicate request_size=255 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 34 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 29 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 28 00 00 00 00 07 04 06 00 E8 7A 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 55 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DB 02 00 35 04 06 00 FE [10:22:10]Write to MH i2c: E2 02 01 6E 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 34 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 29 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 28 00 00 00 00 07 04 06 00 E8 7A 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 55 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DB 02 00 35 04 06 00 FE 00 00 10 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 6E 25 00 90 00 07 [10:22:11]RAPDU: 90 00 [10:22:11]wFMCommunicate OK [10:22:11]wFMCommunicate request_size=10 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 0D 02 02 05 B9 DF A1 18 54 [10:22:11]Write to MH i2c: E2 0D 00 6F 25 80 0D 02 02 05 00 B9 DF A1 18 54 00 00 BD [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 03 00 6F 25 00 90 00 08 [10:22:11]RAPDU: 90 00 [10:22:11]wFMCommunicate OK [10:22:11]wFMCommunicate request_size=4 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 0D 03 02 [10:22:11]Write to MH i2c: E2 08 00 70 25 80 0D 03 02 00 00 00 00 10 [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 0B 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 0B 00 70 25 00 F2 B5 95 1A C4 7A AE AA 90 00 FD [10:22:11]RAPDU: F2 B5 95 1A C4 7A AE AA 90 00 [10:22:11]wFMCommunicate OK [10:22:11]SAM_PROTO_SignData done [10:22:11]FM_MakeSignedData done [10:22:11]CreateOFDProtocolMessage [10:22:11]wFMCommunicate request_size=4 [10:22:11]MH_SAM_APDU [10:22:11]CAPDU: 80 11 00 00 [10:22:11]Write to MH i2c: E2 08 00 71 25 80 11 00 00 00 00 00 00 10 [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 17 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 17 00 71 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 63 [10:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:11]wFMCommunicate OK [10:22:11]CreateOFDProtocolMessage done [10:22:11]OFDSenderStorePacket 187264 [10:22:11]StoreOFDPacket docnum=187264 [10:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B5 C3 07 01 17 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 34 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 29 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 28 00 00 00 00 07 04 06 00 E8 7A 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 55 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DB 02 00 35 04 06 00 FE B9 DF A1 18 54 F2 B5 95 1A C4 7A AE AA [10:22:11]CheckFolder [10:22:11]dirname=/storage/ofd_packets [10:22:11]CheckFolder done [10:22:11]ProducePacketName [10:22:11]name=ofd_packets/00187264 [10:22:11]NVStorageSaveData ofd_packets/00187264 [10:22:11]File name is /storage/ofd_packets/00187264 [10:22:11]Write 301 bytes [10:22:11]NVStorageSaveData done [10:22:11]OFDSenderStorePacket done [10:22:11]KKMCreateOFDPacket done [10:22:11]NVStorageSaveData kkm_last_timestamp [10:22:11]File name is /storage/kkm_last_timestamp [10:22:11]Write 4 bytes [10:22:11]NVStorageSaveData done [10:22:11]ExternCall_PrintAddStr [10:22:11]wPrintStart [10:22:11]Write to MH i2c: 01 00 00 72 25 97 [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: 01 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: 01 07 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: 01 07 00 72 25 00 00 00 00 00 FF 0F AC [10:22:11]RasterBufferAndPrint [10:22:11]line Счет N : (1)412417 [10:22:11]line ИНН: 02508201610067 [10:22:11]line Контрольно-Кассовый Чек [10:22:11]line ПРОДАЖА [10:22:11]line ТРК (МРК, ГНК) : 23 [10:22:11]line Товар: 2710124500 [10:22:11]line Аи-95-К-5 [10:22:11]line 13.500 * 71.90 [10:22:11]line = 970.65 [10:22:11]line НДС 12% НСП 1% [10:22:11]line > о реализуемом товаре [10:22:11]line ОКРУГЛЕНИЕ: -0.65 [10:22:11]line ИТОГО: 970.00 [10:22:11]line Внесено: 970.00 [10:22:11]line СДАЧА: 0.00 [10:22:11]line НСП 1% : 8.59 [10:22:11]line НДС 12% : 103.08 [10:22:11]line Наличными: 970.00 [10:22:11]line Безнал.: 0.00 [10:22:11]line Место: АЗС № 92 "Партнер Нефть" [10:22:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:22:11]line СНО: Общий режим [10:22:11]line Чек 65 20.02.2025 10:22 [10:22:11]line Смена: 648 ФФД: 1.0 [10:22:11]line ЗНМ: 0300000118 [10:22:11]line РНМ: 0000000000091857 [10:22:11]line Версия ККМ: 001 [10:22:11]line ФМ: 0000000000871826 [10:22:11]line ФД: 187264 [10:22:11]line ФПД: 280074274281556 [10:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102213&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187264&fm=280074274281556&tin=02508201610067®Number=0000000000091857&sum=97000 [10:22:11]OFD Sender: Processing packet 187264 [packets to send 49, broken 48] [10:22:11]ProducePacketName [10:22:11]name=ofd_packets/00187264 [10:22:11]OFD Sender: To server: pG, [10:22:11]CommunicateWithHost lk.salyk.kg:30040 [10:22:11]ConnectInit lk.salyk.kg [10:22:11]written 0, free lines is 4095 [10:22:11]Connected sock=9 [10:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B5 C3 07 01 17 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 34 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 29 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 28 00 00 00 00 07 04 06 00 E8 7A 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 55 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DB 02 00 35 04 06 00 FE B9 DF A1 18 54 F2 B5 95 1A C4 7A AE AA [10:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D0 A5 47 00 6E 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DB 02 00 F4 03 04 00 A6 A8 B6 67 B6 04 01 00 00 6B B9 6E 0A 0E 98 E0 CF [10:22:12]CommunicateWithHost err = 0 [10:22:12]CheckOFDResponse [10:22:12]1017 (14) - 77093643461234 [10:22:12]1041 (16) - 0000000000871826 [10:22:12]1040 (4) - 187264 [10:22:12]1012 (4) - 20.02.2025 03:59 [10:22:12]1206 (1) - 0 [10:22:12]OFD Sender: Remove packet 187264 [10:22:12]ProducePacketName [10:22:12]name=ofd_packets/00187264 [10:22:12]NVStorageDeleteData [10:22:12]Write to MH i2c: 01 00 00 9D 25 C2 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 07 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 07 00 9D 25 00 00 00 00 00 FC 0C D1 [10:22:12]RasterBufferAndPrint [10:22:12]line [10:22:12]line [10:22:12]line [10:22:12]line [10:22:12]line [10:22:12]written 0, free lines is 3330 [10:22:12]MH_Cut [10:22:12]Write to MH i2c: D1 01 00 A4 25 01 9B [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: D1 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: D1 01 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: D1 01 00 A4 25 00 9A [10:22:12]Write to MH i2c: 01 00 00 A5 25 CA [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]OFD Sender: No OFD packet to send [10:22:12]*** Cut start [10:22:12]*** Partial cut [10:22:12]*** CUTSNS_PIN = 1 [10:22:12]*** CUTSNS_PIN = 0 [10:22:13]*** Brake cut motor [10:22:13]Read from MH i2c: 01 [10:22:13]MH_I2C_Read... [10:22:13]*** Stop cut motor [10:22:13]*** Cut end [10:22:13]Read from MH i2c: 01 07 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: 01 07 00 A5 25 00 00 00 00 00 FF 0F DF [10:22:13]process_action close_receipt done [10:22:13]requested_data is exist [10:22:13]produce_requested_data [10:22:13]requested_item fm.sn is exist - process it [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 11 00 00 [10:22:13]Write to MH i2c: E2 08 00 A6 25 80 11 00 00 00 00 00 00 45 [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 17 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 17 00 A6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [10:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:13]wFMCommunicate OK [10:22:13]requested_item fd.num is exist - process it [10:22:13]SAM_PROTO_GetFieldsCounters [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 13 00 00 [10:22:13]Write to MH i2c: E2 08 00 A7 25 80 13 00 00 00 00 00 00 48 [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 62 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 62 00 A7 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 80 DB 02 00 0E 04 04 00 88 02 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 18 [10:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 80 DB 02 00 0E 04 04 00 88 02 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 [10:22:13]wFMCommunicate OK [10:22:13]SAM_PROTO_GetFieldsCounters done [10:22:13]requested_item shift.num is exist - process it [10:22:13]requested_item shift.opened is exist - process it [10:22:13]req_shift_opened [10:22:13]FM_GetShiftState [10:22:13]SAM_PROTO_GetShiftState [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 13 01 00 [10:22:13]Write to MH i2c: E2 08 00 A8 25 80 13 01 00 00 00 00 00 4A [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 A8 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9C [10:22:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:22:13]wFMCommunicate OK [10:22:13]SAM_PROTO_GetShiftState done [10:22:13]FM_GetShiftState done [10:22:13]req_shift_opened done [10:22:13]requested_item shift.open_date is exist - process it [10:22:13]req_shift_open_date [10:22:13]req_shift_open_date done [10:22:13]produce_requested_data done [10:22:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187264,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:22:13]process_action_free close_receipt [10:22:13]json_value_free [10:22:13]json_value_free done [10:22:13]process_json_proto returns [10:22:13]Send response to host [10:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187264,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:22:13]free response buf [10:22:13]execute_script done [10:22:13]execute_script returns [10:22:13]free content buf [10:22:13]Sock 10.Close socket [10:22:13]Sock 10.Thread stoped [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:55]accept exits with 7 [10:22:55]New connection [10:22:55]New thread 3066654052 created [10:22:55]Thread 3066510692 joined [10:22:55]Waiting for new connection... [10:22:55] Sock 7.Parse request [10:22:55]Sock 7.Check first char [10:22:55]Sock 7.First char is OK [10:22:55]request: POST /json_proto HTTP/1.0 [10:22:55]Method: POST [10:22:55]URL: /json_proto [10:22:55]Method is POST - this is cgi request [10:22:55]url: /json_proto [10:22:55]query_string will be loaded in cgi processing [10:22:55]execute_cgi json_proto POST (null) [10:22:55]execute_cgi path=json_proto method=POST [10:22:55]POST find Content-Length [10:22:55]Host: 172.17.46.131:8080 [10:22:55]Content-Length: 796 [10:22:55]Content-Type: application/json [10:22:55] [10:22:55]POST finish read [10:22:55]Found Content-Length = 796 [10:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:55]execute_script... [10:22:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:55]POST & json_proto [10:22:55]process_json_proto [10:22:55]json parsed OK: [10:22:55]protocol is kg_v1.0 [10:22:55]action value=close_receipt [10:22:55]process_action close_receipt [10:22:55]cmd_close_receipt [10:22:55]MH_GetDate [10:22:55]Write to MH i2c: F0 00 00 A9 25 BD [10:22:55]Write i2c OK [10:22:55]MH_I2C_Read... [10:22:55]Read from MH i2c: F0 [10:22:55]MH_I2C_Read... [10:22:55]Read from MH i2c: F0 09 00 [10:22:55]MH_I2C_Read... [10:22:55]Read from MH i2c: F0 09 00 A9 25 00 83 02 B7 67 7E 41 4F 65 DC [10:22:55]GetLastDocTimeStamp 1740046933 [10:22:55]current date 1740046979 [10:22:55]FM_GetShiftState [10:22:55]SAM_PROTO_GetShiftState [10:22:55]wFMCommunicate request_size=4 [10:22:55]MH_SAM_APDU [10:22:55]CAPDU: 80 13 01 00 [10:22:55]Write to MH i2c: E2 08 00 AA 25 80 13 01 00 00 00 00 00 4C [10:22:55]Write i2c OK [10:22:55]MH_I2C_Read... [10:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:55]Read from MH i2c: E2 [10:22:55]MH_I2C_Read... [10:22:55]Read from MH i2c: E2 0E 00 [10:22:55]MH_I2C_Read... [10:22:55]Read from MH i2c: E2 0E 00 AA 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9E [10:22:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:22:55]wFMCommunicate OK [10:22:55]SAM_PROTO_GetShiftState done [10:22:55]FM_GetShiftState done [10:22:55]opened in 1740011697 [10:22:55]opened+sec_in_day 1740098097 [10:22:55]quantity*price = 50021 [10:22:55]sum+1 = 50022 [10:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.21 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.21 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 66 20.02.2025 10:23 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187265 ФПД: 20674500489903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102300&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187265&fm=20674500489903&tin=02508201610067®Number=0000000000091857&sum=50021 [10:22:57]StoreToDocumentArchive [10:22:57]shift 648 fd 187265 [10:22:57]save to /storage/0648/doc_00187265 [10:22:57]save last doc name /storage/0648/doc_00187265 to /storage/kkm_last_doc_name [10:22:57]save OK [10:22:57]Clear old archive folders... [10:22:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:22:57]tlvbuf is B6D5F4B0 [10:22:57]SAM_PROTO_ClearQueue [10:22:57]wFMCommunicate request_size=4 [10:22:57]MH_SAM_APDU [10:22:57]CAPDU: 80 09 00 00 [10:22:57]Write to MH i2c: E2 08 00 B7 25 80 09 00 00 00 00 00 00 4E [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:57]Read from MH i2c: E2 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 03 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 03 00 B7 25 00 90 00 50 [10:22:57]RAPDU: 90 00 [10:22:57]wFMCommunicate OK [10:22:57]SAM_PROTO_ClearQueue done [10:22:57]KKMCreateOFDPacket [10:22:57]OFDProtocolAddRootSTLVToBuf [10:22:57]FM_MakeSignedData [10:22:57]FM_MakeSignedData [10:22:57]SAM_PROTO_SignData [10:22:57]wFMCommunicate request_size=4 [10:22:57]MH_SAM_APDU [10:22:57]CAPDU: 80 0D 01 02 [10:22:57]Write to MH i2c: E2 08 00 B8 25 80 0D 01 02 00 00 00 00 56 [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:57]Read from MH i2c: E2 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 03 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 03 00 B8 25 00 90 00 51 [10:22:57]RAPDU: 90 00 [10:22:57]wFMCommunicate OK [10:22:57]wFMCommunicate request_size=255 [10:22:57]MH_SAM_APDU [10:22: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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 84 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DB 02 00 35 04 06 00 12 CD A8 41 [10:22:57]Write to MH i2c: E2 02 01 B9 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 84 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DB 02 00 35 04 06 00 12 CD A8 41 00 00 D2 [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:57]Read from MH i2c: E2 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 03 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 03 00 B9 25 00 90 00 52 [10:22:57]RAPDU: 90 00 [10:22:57]wFMCommunicate OK [10:22:57]wFMCommunicate request_size=7 [10:22:57]MH_SAM_APDU [10:22:57]CAPDU: 80 0D 02 02 02 F2 AF [10:22:57]Write to MH i2c: E2 0A 00 BA 25 80 0D 02 02 02 00 F2 AF 00 00 FE [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:57]Read from MH i2c: E2 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 03 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 03 00 BA 25 00 90 00 53 [10:22:57]RAPDU: 90 00 [10:22:57]wFMCommunicate OK [10:22:57]wFMCommunicate request_size=4 [10:22:57]MH_SAM_APDU [10:22:57]CAPDU: 80 0D 03 02 [10:22:57]Write to MH i2c: E2 08 00 BB 25 80 0D 03 02 00 00 00 00 5B [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:57]Read from MH i2c: E2 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 0B 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 0B 00 BB 25 00 9E D5 D3 00 9B B5 9E 9D 90 00 2D [10:22:57]RAPDU: 9E D5 D3 00 9B B5 9E 9D 90 00 [10:22:57]wFMCommunicate OK [10:22:57]SAM_PROTO_SignData done [10:22:57]FM_MakeSignedData done [10:22:57]CreateOFDProtocolMessage [10:22:57]wFMCommunicate request_size=4 [10:22:57]MH_SAM_APDU [10:22:57]CAPDU: 80 11 00 00 [10:22:57]Write to MH i2c: E2 08 00 BC 25 80 11 00 00 00 00 00 00 5B [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:57]Read from MH i2c: E2 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 17 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: E2 17 00 BC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AE [10:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:57]wFMCommunicate OK [10:22:57]CreateOFDProtocolMessage done [10:22:57]OFDSenderStorePacket 187265 [10:22:57]StoreOFDPacket docnum=187265 [10:22:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 19 81 04 01 D7 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 84 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DB 02 00 35 04 06 00 12 CD A8 41 F2 AF 9E D5 D3 00 9B B5 9E 9D [10:22:57]CheckFolder [10:22:57]dirname=/storage/ofd_packets [10:22:57]CheckFolder done [10:22:57]ProducePacketName [10:22:57]name=ofd_packets/00187265 [10:22:57]NVStorageSaveData ofd_packets/00187265 [10:22:57]File name is /storage/ofd_packets/00187265 [10:22:57]Write 298 bytes [10:22:57]NVStorageSaveData done [10:22:57]OFDSenderStorePacket done [10:22:57]KKMCreateOFDPacket done [10:22:57]NVStorageSaveData kkm_last_timestamp [10:22:57]File name is /storage/kkm_last_timestamp [10:22:57]Write 4 bytes [10:22:57]NVStorageSaveData done [10:22:57]ExternCall_PrintAddStr [10:22:57]wPrintStart [10:22:57]Write to MH i2c: 01 00 00 BD 25 E2 [10:22:57]Write i2c OK [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: 01 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: 01 07 00 [10:22:57]MH_I2C_Read... [10:22:57]Read from MH i2c: 01 07 00 BD 25 00 00 00 00 00 FF 0F F7 [10:22:57]RasterBufferAndPrint [10:22:57]line Счет N : (1)412418 [10:22:57]line ИНН: 02508201610067 [10:22:57]line Контрольно-Кассовый Чек [10:22:57]line ПРОДАЖА [10:22:57]line ТРК (МРК, ГНК) : 5 [10:22:57]line Товар: 2710194210 [10:22:57]line ДТ-К-5 [10:22:57]line 6.890 * 72.60 [10:22:57]line = 500.21 [10:22:57]line НДС 12% НСП 1% [10:22:57]line > о реализуемом товаре [10:22:57]line ИТОГО: 500.21 [10:22:57]line НСП 1% : 4.43 [10:22:57]line НДС 12% : 53.12 [10:22:57]line Наличными: 0.00 [10:22:57]line Безнал.: 500.21 [10:22:57]line Место: АЗС № 92 "Партнер Нефть" [10:22:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:22:57]line СНО: Общий режим [10:22:57]line Чек 66 20.02.2025 10:23 [10:22:57]line Смена: 648 ФФД: 1.0 [10:22:57]line ЗНМ: 0300000118 [10:22:57]line РНМ: 0000000000091857 [10:22:57]line Версия ККМ: 001 [10:22:57]line Платежная система: O! деньги [10:22:57]line ФМ: 0000000000871826 [10:22:57]line ФД: 187265 [10:22:57]line ФПД: 20674500489903 [10:22:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102300&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187265&fm=20674500489903&tin=02508201610067®Number=0000000000091857&sum=50021 [10:22:57]OFD Sender: Processing packet 187265 [packets to send 49, broken 48] [10:22:57]ProducePacketName [10:22:57]name=ofd_packets/00187265 [10:22:57]OFD Sender: To server: pG, [10:22:57]CommunicateWithHost lk.salyk.kg:30040 [10:22:57]ConnectInit lk.salyk.kg [10:22:57]written 0, free lines is 4095 [10:22:58]Connected sock=10 [10:22:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 19 81 04 01 D7 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 84 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DB 02 00 35 04 06 00 12 CD A8 41 F2 AF 9E D5 D3 00 9B B5 9E 9D [10:22:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E2 92 47 00 20 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DB 02 00 F4 03 04 00 D5 A8 B6 67 B6 04 01 00 00 23 BA CE 83 68 92 ED EC [10:22:58]CommunicateWithHost err = 0 [10:22:58]CheckOFDResponse [10:22:58]1017 (14) - 77093643461234 [10:22:58]1041 (16) - 0000000000871826 [10:22:58]1040 (4) - 187265 [10:22:58]1012 (4) - 20.02.2025 04:00 [10:22:58]1206 (1) - 0 [10:22:58]OFD Sender: Remove packet 187265 [10:22:58]ProducePacketName [10:22:58]name=ofd_packets/00187265 [10:22:58]NVStorageDeleteData [10:22:58]Write to MH i2c: 01 00 00 E7 25 0C [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: 01 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: 01 07 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: 01 07 00 E7 25 00 00 00 00 00 11 0D 31 [10:22:58]RasterBufferAndPrint [10:22:58]line [10:22:58]line [10:22:58]line [10:22:58]line [10:22:58]line [10:22:58]written 0, free lines is 3351 [10:22:58]MH_Cut [10:22:58]Write to MH i2c: D1 01 00 EE 25 01 E5 [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: D1 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: D1 01 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: D1 01 00 EE 25 00 E4 [10:22:58]Write to MH i2c: 01 00 00 EF 25 14 [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]OFD Sender: No OFD packet to send [10:22:59]*** Cut start [10:22:59]*** Partial cut [10:22:59]*** CUTSNS_PIN = 1 [10:22:59]*** CUTSNS_PIN = 0 [10:22:59]*** Brake cut motor [10:22:59]Read from MH i2c: 01 [10:22:59]MH_I2C_Read... [10:22:59]*** Stop cut motor [10:22:59]*** Cut end [10:22:59]Read from MH i2c: 01 07 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: 01 07 00 EF 25 00 00 00 00 00 FF 0F 29 [10:22:59]process_action close_receipt done [10:22:59]requested_data is exist [10:22:59]produce_requested_data [10:22:59]requested_item fm.sn is exist - process it [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 11 00 00 [10:22:59]Write to MH i2c: E2 08 00 F0 25 80 11 00 00 00 00 00 00 8F [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 17 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 17 00 F0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [10:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:59]wFMCommunicate OK [10:22:59]requested_item fd.num is exist - process it [10:22:59]SAM_PROTO_GetFieldsCounters [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 13 00 00 [10:22:59]Write to MH i2c: E2 08 00 F1 25 80 13 00 00 00 00 00 00 92 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 62 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 62 00 F1 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 81 DB 02 00 0E 04 04 00 88 02 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 66 [10:22:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 81 DB 02 00 0E 04 04 00 88 02 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 [10:22:59]wFMCommunicate OK [10:22:59]SAM_PROTO_GetFieldsCounters done [10:22:59]requested_item shift.num is exist - process it [10:22:59]requested_item shift.opened is exist - process it [10:22:59]req_shift_opened [10:22:59]FM_GetShiftState [10:22:59]SAM_PROTO_GetShiftState [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 13 01 00 [10:22:59]Write to MH i2c: E2 08 00 F2 25 80 13 01 00 00 00 00 00 94 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0E 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0E 00 F2 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E6 [10:23:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:23:00]wFMCommunicate OK [10:23:00]SAM_PROTO_GetShiftState done [10:23:00]FM_GetShiftState done [10:23:00]req_shift_opened done [10:23:00]requested_item shift.open_date is exist - process it [10:23:00]req_shift_open_date [10:23:00]req_shift_open_date done [10:23:00]produce_requested_data done [10:23:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187265,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:23:00]process_action_free close_receipt [10:23:00]json_value_free [10:23:00]json_value_free done [10:23:00]process_json_proto returns [10:23:00]Send response to host [10:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187265,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:23:00]free response buf [10:23:00]execute_script done [10:23:00]execute_script returns [10:23:00]free content buf [10:23:00]Sock 7.Close socket [10:23:00]Sock 7.Thread stoped [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:37]accept exits with 9 [10:23:37]New connection [10:23:37]New thread 3066510692 created [10:23:37]Thread 3066654052 joined [10:23:37]Waiting for new connection... [10:23:37] Sock 9.Parse request [10:23:37]Sock 9.Check first char [10:23:37]Sock 9.First char is OK [10:23:37]request: POST /json_proto HTTP/1.0 [10:23:37]Method: POST [10:23:37]URL: /json_proto [10:23:37]Method is POST - this is cgi request [10:23:37]url: /json_proto [10:23:37]query_string will be loaded in cgi processing [10:23:37]execute_cgi json_proto POST (null) [10:23:37]execute_cgi path=json_proto method=POST [10:23:37]POST find Content-Length [10:23:37]Host: 172.17.46.131:8080 [10:23:37]Content-Length: 677 [10:23:37]Content-Type: application/json [10:23:37] [10:23:37]POST finish read [10:23:37]Found Content-Length = 677 [10:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.930, "sum" : 509.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 509.00, "total" : 509.00, "payments": [ { "type": 0, "sum" : 509.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:37]execute_script... [10:23: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)412419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.930, "sum" : 509.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 509.00, "total" : 509.00, "payments": [ { "type": 0, "sum" : 509.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:37]POST & json_proto [10:23:37]process_json_proto [10:23:37]json parsed OK: [10:23:37]protocol is kg_v1.0 [10:23:37]action value=close_receipt [10:23:37]process_action close_receipt [10:23:37]cmd_close_receipt [10:23:37]MH_GetDate [10:23:37]Write to MH i2c: F0 00 00 F3 25 07 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: F0 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: F0 09 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: F0 09 00 F3 25 00 AD 02 B7 67 7E 41 4F 65 50 [10:23:37]GetLastDocTimeStamp 1740046980 [10:23:37]current date 1740047021 [10:23:37]FM_GetShiftState [10:23:37]SAM_PROTO_GetShiftState [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 13 01 00 [10:23:37]Write to MH i2c: E2 08 00 F4 25 80 13 01 00 00 00 00 00 96 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0E 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0E 00 F4 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E8 [10:23:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_GetShiftState done [10:23:37]FM_GetShiftState done [10:23:37]opened in 1740011697 [10:23:37]opened+sec_in_day 1740098097 [10:23:37]quantity*price = 50910 [10:23:37]sum+1 = 50912 [10:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 509.00 Внесено: 509.00 СДАЧА: 0.00 НСП 1% : 4.50 НДС 12% : 54.06 Наличными: 509.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 67 20.02.2025 10:23 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187266 ФПД: 67598830045752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102341&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187266&fm=67598830045752&tin=02508201610067®Number=0000000000091857&sum=50900 [10:23:38]StoreToDocumentArchive [10:23:38]shift 648 fd 187266 [10:23:38]save to /storage/0648/doc_00187266 [10:23:38]save last doc name /storage/0648/doc_00187266 to /storage/kkm_last_doc_name [10:23:38]save OK [10:23:38]Clear old archive folders... [10:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:38]tlvbuf is 01F3E0B0 [10:23:38]SAM_PROTO_ClearQueue [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 09 00 00 [10:23:38]Write to MH i2c: E2 08 00 01 26 80 09 00 00 00 00 00 00 99 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 01 26 00 90 00 9B [10:23:38]RAPDU: 90 00 [10:23:38]wFMCommunicate OK [10:23:38]SAM_PROTO_ClearQueue done [10:23:38]KKMCreateOFDPacket [10:23:38]OFDProtocolAddRootSTLVToBuf [10:23:38]FM_MakeSignedData [10:23:38]FM_MakeSignedData [10:23:38]SAM_PROTO_SignData [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 0D 01 02 [10:23:38]Write to MH i2c: E2 08 00 02 26 80 0D 01 02 00 00 00 00 A1 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]OFD Sender: No OFD packet to send [10:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 03 00 02 26 00 90 00 9C [10:23:38]RAPDU: 90 00 [10:23:38]wFMCommunicate OK [10:23:38]wFMCommunicate request_size=255 [10:23:38]MH_SAM_APDU [10:23: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 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 DF C6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 15 00 00 00 00 07 04 06 00 D4 C6 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 AD 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 DB 02 00 35 04 06 00 3D [10:23:38]Write to MH i2c: E2 02 01 03 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 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 DF C6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 15 00 00 00 00 07 04 06 00 D4 C6 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 AD 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 DB 02 00 35 04 06 00 3D 00 00 F7 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 03 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 03 00 03 26 00 90 00 9D [10:23:39]RAPDU: 90 00 [10:23:39]wFMCommunicate OK [10:23:39]wFMCommunicate request_size=10 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 0D 02 02 05 7B 14 40 8A 38 [10:23:39]Write to MH i2c: E2 0D 00 04 26 80 0D 02 02 05 00 7B 14 40 8A 38 00 00 3F [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 03 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 03 00 04 26 00 90 00 9E [10:23:39]RAPDU: 90 00 [10:23:39]wFMCommunicate OK [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 0D 03 02 [10:23:39]Write to MH i2c: E2 08 00 05 26 80 0D 03 02 00 00 00 00 A6 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 0B 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 0B 00 05 26 00 0C 48 55 DF 30 9B A7 CC 90 00 6D [10:23:39]RAPDU: 0C 48 55 DF 30 9B A7 CC 90 00 [10:23:39]wFMCommunicate OK [10:23:39]SAM_PROTO_SignData done [10:23:39]FM_MakeSignedData done [10:23:39]CreateOFDProtocolMessage [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 11 00 00 [10:23:39]Write to MH i2c: E2 08 00 06 26 80 11 00 00 00 00 00 00 A6 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 17 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 17 00 06 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F9 [10:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:23:39]wFMCommunicate OK [10:23:39]CreateOFDProtocolMessage done [10:23:39]OFDSenderStorePacket 187266 [10:23:39]StoreOFDPacket docnum=187266 [10:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E2 FB 07 01 3E 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 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 DF C6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 15 00 00 00 00 07 04 06 00 D4 C6 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 AD 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 DB 02 00 35 04 06 00 3D 7B 14 40 8A 38 0C 48 55 DF 30 9B A7 CC [10:23:39]CheckFolder [10:23:39]dirname=/storage/ofd_packets [10:23:39]CheckFolder done [10:23:39]ProducePacketName [10:23:39]name=ofd_packets/00187266 [10:23:39]NVStorageSaveData ofd_packets/00187266 [10:23:39]File name is /storage/ofd_packets/00187266 [10:23:39]Write 301 bytes [10:23:39]NVStorageSaveData done [10:23:39]OFDSenderStorePacket done [10:23:39]KKMCreateOFDPacket done [10:23:39]NVStorageSaveData kkm_last_timestamp [10:23:39]File name is /storage/kkm_last_timestamp [10:23:39]Write 4 bytes [10:23:39]NVStorageSaveData done [10:23:39]ExternCall_PrintAddStr [10:23:39]wPrintStart [10:23:39]Write to MH i2c: 01 00 00 07 26 2D [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 07 26 00 00 00 00 00 FF 0F 42 [10:23:39]RasterBufferAndPrint [10:23:39]line Счет N : (1)412419 [10:23:39]line ИНН: 02508201610067 [10:23:39]line Контрольно-Кассовый Чек [10:23:39]line ПРОДАЖА [10:23:39]line ТРК (МРК, ГНК) : 42 [10:23:39]line Товар: 2710124130 [10:23:39]line Аи-92-К-2 [10:23:39]line 7.930 * 64.20 [10:23:39]line = 509.11 [10:23:39]line НДС 12% НСП 1% [10:23:39]line > о реализуемом товаре [10:23:39]line ОКРУГЛЕНИЕ: -0.11 [10:23:39]line ИТОГО: 509.00 [10:23:39]line Внесено: 509.00 [10:23:39]line СДАЧА: 0.00 [10:23:39]line НСП 1% : 4.50 [10:23:39]line НДС 12% : 54.06 [10:23:39]line Наличными: 509.00 [10:23:39]line Безнал.: 0.00 [10:23:39]line Место: АЗС № 92 "Партнер Нефть" [10:23:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:23:39]line СНО: Общий режим [10:23:39]line Чек 67 20.02.2025 10:23 [10:23:39]line Смена: 648 ФФД: 1.0 [10:23:39]line ЗНМ: 0300000118 [10:23:39]line РНМ: 0000000000091857 [10:23:39]line Версия ККМ: 001 [10:23:39]line ФМ: 0000000000871826 [10:23:39]line ФД: 187266 [10:23:39]line ФПД: 67598830045752 [10:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102341&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187266&fm=67598830045752&tin=02508201610067®Number=0000000000091857&sum=50900 [10:23:39]OFD Sender: Processing packet 187266 [packets to send 49, broken 48] [10:23:39]ProducePacketName [10:23:39]name=ofd_packets/00187266 [10:23:39]OFD Sender: To server: pG, [10:23:39]CommunicateWithHost lk.salyk.kg:30040 [10:23:39]ConnectInit lk.salyk.kg [10:23:39]written 0, free lines is 4095 [10:23:39]Connected sock=10 [10:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E2 FB 07 01 3E 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 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 DF C6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 15 00 00 00 00 07 04 06 00 D4 C6 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 AD 02 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 DB 02 00 35 04 06 00 3D 7B 14 40 8A 38 0C 48 55 DF 30 9B A7 CC [10:23:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F9 AE 47 00 1A 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 31 38 32 36 10 04 04 00 82 DB 02 00 F4 03 04 00 FF A8 B6 67 B6 04 01 00 00 91 56 A0 CD F0 7D 26 6E [10:23:40]CommunicateWithHost err = 0 [10:23:40]CheckOFDResponse [10:23:40]1017 (14) - 77093643461234 [10:23:40]1041 (16) - 0000000000871826 [10:23:40]1040 (4) - 187266 [10:23:40]1012 (4) - 20.02.2025 04:01 [10:23:40]1206 (1) - 0 [10:23:40]OFD Sender: Remove packet 187266 [10:23:40]ProducePacketName [10:23:40]name=ofd_packets/00187266 [10:23:40]NVStorageDeleteData [10:23:40]Write to MH i2c: 01 00 00 32 26 58 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 07 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 01 0D 6D [10:23:40]RasterBufferAndPrint [10:23:40]line [10:23:40]line [10:23:40]line [10:23:40]line [10:23:40]line [10:23:40]written 0, free lines is 3335 [10:23:40]MH_Cut [10:23:40]Write to MH i2c: D1 01 00 39 26 01 31 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: D1 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: D1 01 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: D1 01 00 39 26 00 30 [10:23:40]Write to MH i2c: 01 00 00 3A 26 60 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]OFD Sender: No OFD packet to send [10:23:40]*** Cut start [10:23:40]*** Partial cut [10:23:40]*** CUTSNS_PIN = 1 [10:23:40]*** CUTSNS_PIN = 0 [10:23:41]*** Brake cut motor [10:23:41]Read from MH i2c: 01 [10:23:41]MH_I2C_Read... [10:23:41]*** Stop cut motor [10:23:41]*** Cut end [10:23:41]Read from MH i2c: 01 07 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: 01 07 00 3A 26 00 00 00 00 00 FF 0F 75 [10:23:41]process_action close_receipt done [10:23:41]requested_data is exist [10:23:41]produce_requested_data [10:23:41]requested_item fm.sn is exist - process it [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 11 00 00 [10:23:41]Write to MH i2c: E2 08 00 3B 26 80 11 00 00 00 00 00 00 DB [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 17 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 17 00 3B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2E [10:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:23:41]wFMCommunicate OK [10:23:41]requested_item fd.num is exist - process it [10:23:41]SAM_PROTO_GetFieldsCounters [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 13 00 00 [10:23:41]Write to MH i2c: E2 08 00 3C 26 80 13 00 00 00 00 00 00 DE [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 62 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 62 00 3C 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 82 DB 02 00 0E 04 04 00 88 02 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 B6 [10:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 82 DB 02 00 0E 04 04 00 88 02 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 [10:23:41]wFMCommunicate OK [10:23:41]SAM_PROTO_GetFieldsCounters done [10:23:41]requested_item shift.num is exist - process it [10:23:41]requested_item shift.opened is exist - process it [10:23:41]req_shift_opened [10:23:41]FM_GetShiftState [10:23:41]SAM_PROTO_GetShiftState [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 13 01 00 [10:23:41]Write to MH i2c: E2 08 00 3D 26 80 13 01 00 00 00 00 00 E0 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 3D 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 32 [10:23:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:23:41]wFMCommunicate OK [10:23:41]SAM_PROTO_GetShiftState done [10:23:41]FM_GetShiftState done [10:23:41]req_shift_opened done [10:23:41]requested_item shift.open_date is exist - process it [10:23:41]req_shift_open_date [10:23:41]req_shift_open_date done [10:23:41]produce_requested_data done [10:23:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187266,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:23:41]process_action_free close_receipt [10:23:41]json_value_free [10:23:41]json_value_free done [10:23:41]process_json_proto returns [10:23:41]Send response to host [10:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187266,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:23:41]free response buf [10:23:41]execute_script done [10:23:41]execute_script returns [10:23:41]free content buf [10:23:41]Sock 9.Close socket [10:23:41]Sock 9.Thread stoped [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:25:59]accept exits with 7 [10:25:59]New connection [10:25:59]New thread 3066654052 created [10:25:59]Thread 3066510692 joined [10:25:59]Waiting for new connection... [10:25:59] Sock 7.Parse request [10:25:59]Sock 7.Check first char [10:25:59]Sock 7.First char is OK [10:25:59]request: POST /json_proto HTTP/1.0 [10:25:59]Method: POST [10:25:59]URL: /json_proto [10:25:59]Method is POST - this is cgi request [10:25:59]url: /json_proto [10:25:59]query_string will be loaded in cgi processing [10:25:59]execute_cgi json_proto POST (null) [10:25:59]execute_cgi path=json_proto method=POST [10:25:59]POST find Content-Length [10:25:59]Host: 172.17.46.131:8080 [10:25:59]Content-Length: 682 [10:25:59]Content-Type: application/json [10:25:59] [10:25:59]POST finish read [10:25:59]Found Content-Length = 682 [10:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:25:59]execute_script... [10:25: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)412420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:25:59]POST & json_proto [10:25:59]process_json_proto [10:25:59]json parsed OK: [10:25:59]protocol is kg_v1.0 [10:25:59]action value=close_receipt [10:25:59]process_action close_receipt [10:25:59]cmd_close_receipt [10:25:59]MH_GetDate [10:25:59]Write to MH i2c: F0 00 00 3E 26 53 [10:25:59]Write i2c OK [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: F0 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: F0 09 00 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: F0 09 00 3E 26 00 3B 03 B7 67 7E 41 4F 65 2B [10:25:59]GetLastDocTimeStamp 1740047021 [10:25:59]current date 1740047163 [10:25:59]FM_GetShiftState [10:25:59]SAM_PROTO_GetShiftState [10:25:59]wFMCommunicate request_size=4 [10:25:59]MH_SAM_APDU [10:25:59]CAPDU: 80 13 01 00 [10:25:59]Write to MH i2c: E2 08 00 3F 26 80 13 01 00 00 00 00 00 E2 [10:25:59]Write i2c OK [10:25:59]MH_I2C_Read... [10:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:59]Read from MH i2c: E2 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 0E 00 [10:25:59]MH_I2C_Read... [10:25:59]Read from MH i2c: E2 0E 00 3F 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 34 [10:25:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:25:59]wFMCommunicate OK [10:25:59]SAM_PROTO_GetShiftState done [10:25:59]FM_GetShiftState done [10:25:59]opened in 1740011697 [10:25:59]opened+sec_in_day 1740098097 [10:25:59]quantity*price = 100023 [10:25:59]sum+1 = 100025 [10:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 68 20.02.2025 10:26 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187267 ФПД: 52441831306680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102603&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187267&fm=52441831306680&tin=02508201610067®Number=0000000000091857&sum=100000 [10:26:00]StoreToDocumentArchive [10:26:00]shift 648 fd 187267 [10:26:00]save to /storage/0648/doc_00187267 [10:26:00]save last doc name /storage/0648/doc_00187267 to /storage/kkm_last_doc_name [10:26:00]save OK [10:26:00]Clear old archive folders... [10:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:00]tlvbuf is 01FA9970 [10:26:00]SAM_PROTO_ClearQueue [10:26:00]wFMCommunicate request_size=4 [10:26:00]MH_SAM_APDU [10:26:00]CAPDU: 80 09 00 00 [10:26:00]Write to MH i2c: E2 08 00 4C 26 80 09 00 00 00 00 00 00 E4 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:00]OFD Sender: No OFD packet to send [10:26:00]Read from MH i2c: E2 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 03 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 03 00 4C 26 00 90 00 E6 [10:26:00]RAPDU: 90 00 [10:26:00]wFMCommunicate OK [10:26:00]SAM_PROTO_ClearQueue done [10:26:00]KKMCreateOFDPacket [10:26:00]OFDProtocolAddRootSTLVToBuf [10:26:00]FM_MakeSignedData [10:26:00]FM_MakeSignedData [10:26:00]SAM_PROTO_SignData [10:26:00]wFMCommunicate request_size=4 [10:26:00]MH_SAM_APDU [10:26:00]CAPDU: 80 0D 01 02 [10:26:00]Write to MH i2c: E2 08 00 4D 26 80 0D 01 02 00 00 00 00 EC [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:00]Read from MH i2c: E2 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 03 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 03 00 4D 26 00 90 00 E7 [10:26:00]RAPDU: 90 00 [10:26:00]wFMCommunicate OK [10:26:00]wFMCommunicate request_size=255 [10:26:00]MH_SAM_APDU [10:26: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3B 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DB 02 00 35 04 06 00 2F [10:26:00]Write to MH i2c: E2 02 01 4E 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3B 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DB 02 00 35 04 06 00 2F 00 00 A2 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 4E 26 00 90 00 E8 [10:26:01]RAPDU: 90 00 [10:26:01]wFMCommunicate OK [10:26:01]wFMCommunicate request_size=10 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 0D 02 02 05 B2 10 B9 F5 B8 [10:26:01]Write to MH i2c: E2 0D 00 4F 26 80 0D 02 02 05 00 B2 10 B9 F5 B8 00 00 21 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 03 00 4F 26 00 90 00 E9 [10:26:01]RAPDU: 90 00 [10:26:01]wFMCommunicate OK [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 0D 03 02 [10:26:01]Write to MH i2c: E2 08 00 50 26 80 0D 03 02 00 00 00 00 F1 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 0B 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 0B 00 50 26 00 B5 69 66 09 8D D8 A6 5E 90 00 E8 [10:26:01]RAPDU: B5 69 66 09 8D D8 A6 5E 90 00 [10:26:01]wFMCommunicate OK [10:26:01]SAM_PROTO_SignData done [10:26:01]FM_MakeSignedData done [10:26:01]CreateOFDProtocolMessage [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 11 00 00 [10:26:01]Write to MH i2c: E2 08 00 51 26 80 11 00 00 00 00 00 00 F1 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 17 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 17 00 51 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [10:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:26:01]wFMCommunicate OK [10:26:01]CreateOFDProtocolMessage done [10:26:01]OFDSenderStorePacket 187267 [10:26:01]StoreOFDPacket docnum=187267 [10:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 38 78 07 01 10 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3B 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DB 02 00 35 04 06 00 2F B2 10 B9 F5 B8 B5 69 66 09 8D D8 A6 5E [10:26:01]CheckFolder [10:26:01]dirname=/storage/ofd_packets [10:26:01]CheckFolder done [10:26:01]ProducePacketName [10:26:01]name=ofd_packets/00187267 [10:26:01]NVStorageSaveData ofd_packets/00187267 [10:26:01]File name is /storage/ofd_packets/00187267 [10:26:01]Write 301 bytes [10:26:01]NVStorageSaveData done [10:26:01]OFDSenderStorePacket done [10:26:01]KKMCreateOFDPacket done [10:26:01]NVStorageSaveData kkm_last_timestamp [10:26:01]File name is /storage/kkm_last_timestamp [10:26:01]Write 4 bytes [10:26:01]NVStorageSaveData done [10:26:01]ExternCall_PrintAddStr [10:26:01]wPrintStart [10:26:01]Write to MH i2c: 01 00 00 52 26 78 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: 01 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: 01 07 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: 01 07 00 52 26 00 00 00 00 00 FF 0F 8D [10:26:01]RasterBufferAndPrint [10:26:01]line Счет N : (1)412420 [10:26:01]line ИНН: 02508201610067 [10:26:01]line Контрольно-Кассовый Чек [10:26:01]line ПРОДАЖА [10:26:01]line ТРК (МРК, ГНК) : 12 [10:26:01]line Товар: 2710124130 [10:26:01]line Аи-92-К-2 [10:26:01]line 15.580 * 64.20 [10:26:01]line = 1000.24 [10:26:01]line НДС 12% НСП 1% [10:26:01]line > о реализуемом товаре [10:26:01]line ОКРУГЛЕНИЕ: -0.24 [10:26:01]line ИТОГО: 1000.00 [10:26:01]line Внесено: 1000.00 [10:26:01]line СДАЧА: 0.00 [10:26:01]line НСП 1% : 8.85 [10:26:01]line НДС 12% : 106.22 [10:26:01]line Наличными: 1000.00 [10:26:01]line Безнал.: 0.00 [10:26:01]line Место: АЗС № 92 "Партнер Нефть" [10:26:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:26:01]line СНО: Общий режим [10:26:01]line Чек 68 20.02.2025 10:26 [10:26:01]line Смена: 648 ФФД: 1.0 [10:26:01]line ЗНМ: 0300000118 [10:26:01]line РНМ: 0000000000091857 [10:26:01]line Версия ККМ: 001 [10:26:01]line ФМ: 0000000000871826 [10:26:01]line ФД: 187267 [10:26:01]line ФПД: 52441831306680 [10:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102603&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187267&fm=52441831306680&tin=02508201610067®Number=0000000000091857&sum=100000 [10:26:01]OFD Sender: Processing packet 187267 [packets to send 49, broken 48] [10:26:01]ProducePacketName [10:26:01]name=ofd_packets/00187267 [10:26:01]OFD Sender: To server: pG, [10:26:01]CommunicateWithHost lk.salyk.kg:30040 [10:26:01]ConnectInit lk.salyk.kg [10:26:01]written 0, free lines is 4095 [10:26:01]Connected sock=10 [10:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 38 78 07 01 10 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3B 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DB 02 00 35 04 06 00 2F B2 10 B9 F5 B8 B5 69 66 09 8D D8 A6 5E [10:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D8 C7 47 00 49 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 31 38 32 36 10 04 04 00 83 DB 02 00 F4 03 04 00 8C A9 B6 67 B6 04 01 00 00 F7 42 72 19 61 D4 85 B4 [10:26:02]CommunicateWithHost err = 0 [10:26:02]CheckOFDResponse [10:26:02]1017 (14) - 77093643461234 [10:26:02]1041 (16) - 0000000000871826 [10:26:02]1040 (4) - 187267 [10:26:02]1012 (4) - 20.02.2025 04:03 [10:26:02]1206 (1) - 0 [10:26:02]OFD Sender: Remove packet 187267 [10:26:02]ProducePacketName [10:26:02]name=ofd_packets/00187267 [10:26:02]NVStorageDeleteData [10:26:02]Write to MH i2c: 01 00 00 7D 26 A3 [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 07 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: 01 07 00 7D 26 00 00 00 00 00 FD 0C B3 [10:26:02]RasterBufferAndPrint [10:26:02]line [10:26:02]line [10:26:02]line [10:26:02]line [10:26:02]line [10:26:02]written 0, free lines is 3331 [10:26:02]MH_Cut [10:26:02]Write to MH i2c: D1 01 00 84 26 01 7C [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: D1 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: D1 01 00 [10:26:02]MH_I2C_Read... [10:26:02]Read from MH i2c: D1 01 00 84 26 00 7B [10:26:02]Write to MH i2c: 01 00 00 85 26 AB [10:26:02]Write i2c OK [10:26:02]MH_I2C_Read... [10:26:02]OFD Sender: No OFD packet to send [10:26:02]*** Cut start [10:26:02]*** Partial cut [10:26:02]*** CUTSNS_PIN = 1 [10:26:02]*** CUTSNS_PIN = 0 [10:26:03]*** Brake cut motor [10:26:03]Read from MH i2c: 01 [10:26:03]MH_I2C_Read... [10:26:03]*** Stop cut motor [10:26:03]*** Cut end [10:26:03]Read from MH i2c: 01 07 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: 01 07 00 85 26 00 00 00 00 00 FF 0F C0 [10:26:03]process_action close_receipt done [10:26:03]requested_data is exist [10:26:03]produce_requested_data [10:26:03]requested_item fm.sn is exist - process it [10:26:03]wFMCommunicate request_size=4 [10:26:03]MH_SAM_APDU [10:26:03]CAPDU: 80 11 00 00 [10:26:03]Write to MH i2c: E2 08 00 86 26 80 11 00 00 00 00 00 00 26 [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:03]Read from MH i2c: E2 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 17 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 17 00 86 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 79 [10:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:26:03]wFMCommunicate OK [10:26:03]requested_item fd.num is exist - process it [10:26:03]SAM_PROTO_GetFieldsCounters [10:26:03]wFMCommunicate request_size=4 [10:26:03]MH_SAM_APDU [10:26:03]CAPDU: 80 13 00 00 [10:26:03]Write to MH i2c: E2 08 00 87 26 80 13 00 00 00 00 00 00 29 [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:03]Read from MH i2c: E2 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 62 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 62 00 87 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 83 DB 02 00 0E 04 04 00 88 02 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 05 [10:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 83 DB 02 00 0E 04 04 00 88 02 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 [10:26:03]wFMCommunicate OK [10:26:03]SAM_PROTO_GetFieldsCounters done [10:26:03]requested_item shift.num is exist - process it [10:26:03]requested_item shift.opened is exist - process it [10:26:03]req_shift_opened [10:26:03]FM_GetShiftState [10:26:03]SAM_PROTO_GetShiftState [10:26:03]wFMCommunicate request_size=4 [10:26:03]MH_SAM_APDU [10:26:03]CAPDU: 80 13 01 00 [10:26:03]Write to MH i2c: E2 08 00 88 26 80 13 01 00 00 00 00 00 2B [10:26:03]Write i2c OK [10:26:03]MH_I2C_Read... [10:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:03]Read from MH i2c: E2 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 0E 00 [10:26:03]MH_I2C_Read... [10:26:03]Read from MH i2c: E2 0E 00 88 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7D [10:26:03]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:26:03]wFMCommunicate OK [10:26:03]SAM_PROTO_GetShiftState done [10:26:03]FM_GetShiftState done [10:26:03]req_shift_opened done [10:26:03]requested_item shift.open_date is exist - process it [10:26:03]req_shift_open_date [10:26:03]req_shift_open_date done [10:26:03]produce_requested_data done [10:26:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187267,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:26:03]process_action_free close_receipt [10:26:03]json_value_free [10:26:03]json_value_free done [10:26:03]process_json_proto returns [10:26:03]Send response to host [10:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187267,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:26:03]free response buf [10:26:03]execute_script done [10:26:03]execute_script returns [10:26:03]free content buf [10:26:03]Sock 7.Close socket [10:26:03]Sock 7.Thread stoped [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]accept exits with 9 [10:26:17]New connection [10:26:17]New thread 3066510692 created [10:26:17]Thread 3066654052 joined [10:26:17]Waiting for new connection... [10:26:17] Sock 9.Parse request [10:26:17]Sock 9.Check first char [10:26:17]Sock 9.First char is OK [10:26:17]request: POST /json_proto HTTP/1.0 [10:26:17]Method: POST [10:26:17]URL: /json_proto [10:26:17]Method is POST - this is cgi request [10:26:17]url: /json_proto [10:26:17]query_string will be loaded in cgi processing [10:26:17]execute_cgi json_proto POST (null) [10:26:17]execute_cgi path=json_proto method=POST [10:26:17]POST find Content-Length [10:26:17]Host: 172.17.46.131:8080 [10:26:17]Content-Length: 682 [10:26:17]Content-Type: application/json [10:26:17] [10:26:17]POST finish read [10:26:17]Found Content-Length = 682 [10:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:26:17]execute_script... [10: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)412421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:26:17]POST & json_proto [10:26:17]process_json_proto [10:26:17]json parsed OK: [10:26:17]protocol is kg_v1.0 [10:26:17]action value=close_receipt [10:26:17]process_action close_receipt [10:26:17]cmd_close_receipt [10:26:17]MH_GetDate [10:26:17]Write to MH i2c: F0 00 00 89 26 9E [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 09 00 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 09 00 89 26 00 4D 03 B7 67 7E 41 4F 65 88 [10:26:17]GetLastDocTimeStamp 1740047163 [10:26:17]current date 1740047181 [10:26:17]FM_GetShiftState [10:26:17]SAM_PROTO_GetShiftState [10:26:17]wFMCommunicate request_size=4 [10:26:17]MH_SAM_APDU [10:26:17]CAPDU: 80 13 01 00 [10:26:17]Write to MH i2c: E2 08 00 8A 26 80 13 01 00 00 00 00 00 2D [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:17]Read from MH i2c: E2 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: E2 0E 00 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: E2 0E 00 8A 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7F [10:26:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:26:17]wFMCommunicate OK [10:26:17]SAM_PROTO_GetShiftState done [10:26:17]FM_GetShiftState done [10:26:17]opened in 1740011697 [10:26:17]opened+sec_in_day 1740098097 [10:26:17]quantity*price = 100023 [10:26:17]sum+1 = 100025 [10:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 69 20.02.2025 10:26 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187268 ФПД: 58465451200967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102621&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187268&fm=58465451200967&tin=02508201610067®Number=0000000000091857&sum=100000 [10:26:18]StoreToDocumentArchive [10:26:18]shift 648 fd 187268 [10:26:18]save to /storage/0648/doc_00187268 [10:26:18]save last doc name /storage/0648/doc_00187268 to /storage/kkm_last_doc_name [10:26:18]save OK [10:26:18]Clear old archive folders... [10:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:18]tlvbuf is B6D5F430 [10:26:18]SAM_PROTO_ClearQueue [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 09 00 00 [10:26:18]Write to MH i2c: E2 08 00 97 26 80 09 00 00 00 00 00 00 2F [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 97 26 00 90 00 31 [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_ClearQueue done [10:26:18]KKMCreateOFDPacket [10:26:18]OFDProtocolAddRootSTLVToBuf [10:26:18]FM_MakeSignedData [10:26:18]FM_MakeSignedData [10:26:18]SAM_PROTO_SignData [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 01 02 [10:26:18]Write to MH i2c: E2 08 00 98 26 80 0D 01 02 00 00 00 00 37 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 98 26 00 90 00 32 [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=255 [10:26:18]MH_SAM_APDU [10: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 4D 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DB 02 00 35 04 06 00 35 [10:26:18]Write to MH i2c: E2 02 01 99 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 4D 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DB 02 00 35 04 06 00 35 00 00 07 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 99 26 00 90 00 33 [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=10 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 02 02 05 2C 8C 73 51 C7 [10:26:18]Write to MH i2c: E2 0D 00 9A 26 80 0D 02 02 05 00 2C 8C 73 51 C7 00 00 87 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 9A 26 00 90 00 34 [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 03 02 [10:26:18]Write to MH i2c: E2 08 00 9B 26 80 0D 03 02 00 00 00 00 3C [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0B 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0B 00 9B 26 00 25 D2 6C D0 C5 80 87 CE 90 00 0A [10:26:18]RAPDU: 25 D2 6C D0 C5 80 87 CE 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_SignData done [10:26:18]FM_MakeSignedData done [10:26:18]CreateOFDProtocolMessage [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 11 00 00 [10:26:18]Write to MH i2c: E2 08 00 9C 26 80 11 00 00 00 00 00 00 3C [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 17 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 17 00 9C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [10:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:26:18]wFMCommunicate OK [10:26:18]CreateOFDProtocolMessage done [10:26:18]OFDSenderStorePacket 187268 [10:26:18]StoreOFDPacket docnum=187268 [10:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 91 CF 07 01 0E F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 4D 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DB 02 00 35 04 06 00 35 2C 8C 73 51 C7 25 D2 6C D0 C5 80 87 CE [10:26:18]CheckFolder [10:26:18]dirname=/storage/ofd_packets [10:26:18]CheckFolder done [10:26:18]ProducePacketName [10:26:18]name=ofd_packets/00187268 [10:26:18]NVStorageSaveData ofd_packets/00187268 [10:26:18]File name is /storage/ofd_packets/00187268 [10:26:18]Write 301 bytes [10:26:18]NVStorageSaveData done [10:26:18]OFDSenderStorePacket done [10:26:18]KKMCreateOFDPacket done [10:26:18]NVStorageSaveData kkm_last_timestamp [10:26:18]File name is /storage/kkm_last_timestamp [10:26:18]Write 4 bytes [10:26:18]NVStorageSaveData done [10:26:18]ExternCall_PrintAddStr [10:26:18]wPrintStart [10:26:18]Write to MH i2c: 01 00 00 9D 26 C3 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 07 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: 01 07 00 9D 26 00 00 00 00 00 FF 0F D8 [10:26:18]RasterBufferAndPrint [10:26:18]line Счет N : (1)412421 [10:26:18]line ИНН: 02508201610067 [10:26:18]line Контрольно-Кассовый Чек [10:26:18]line ПРОДАЖА [10:26:18]line ТРК (МРК, ГНК) : 32 [10:26:18]line Товар: 2710124130 [10:26:18]line Аи-92-К-2 [10:26:18]line 15.580 * 64.20 [10:26:18]line = 1000.24 [10:26:18]line НДС 12% НСП 1% [10:26:18]line > о реализуемом товаре [10:26:18]line ОКРУГЛЕНИЕ: -0.24 [10:26:18]line ИТОГО: 1000.00 [10:26:18]line Внесено: 1000.00 [10:26:18]line СДАЧА: 0.00 [10:26:18]line НСП 1% : 8.85 [10:26:18]line НДС 12% : 106.22 [10:26:18]line Наличными: 1000.00 [10:26:18]line Безнал.: 0.00 [10:26:18]line Место: АЗС № 92 "Партнер Нефть" [10:26:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:26:18]line СНО: Общий режим [10:26:18]line Чек 69 20.02.2025 10:26 [10:26:18]line Смена: 648 ФФД: 1.0 [10:26:18]line ЗНМ: 0300000118 [10:26:18]line РНМ: 0000000000091857 [10:26:18]line Версия ККМ: 001 [10:26:18]line ФМ: 0000000000871826 [10:26:18]line ФД: 187268 [10:26:18]line ФПД: 58465451200967 [10:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102621&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187268&fm=58465451200967&tin=02508201610067®Number=0000000000091857&sum=100000 [10:26:18]written 0, free lines is 4095 [10:26:18]OFD Sender: Processing packet 187268 [packets to send 49, broken 48] [10:26:18]ProducePacketName [10:26:18]name=ofd_packets/00187268 [10:26:18]OFD Sender: To server: pG, [10:26:18]CommunicateWithHost lk.salyk.kg:30040 [10:26:18]ConnectInit lk.salyk.kg [10:26:18]Connected sock=10 [10:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 91 CF 07 01 0E F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 4D 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DB 02 00 35 04 06 00 35 2C 8C 73 51 C7 25 D2 6C D0 C5 80 87 CE [10:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F7 63 47 00 B4 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DB 02 00 F4 03 04 00 9E A9 B6 67 B6 04 01 00 00 C5 19 D3 C0 F6 E4 BF 34 [10:26:19]CommunicateWithHost err = 0 [10:26:19]CheckOFDResponse [10:26:19]1017 (14) - 77093643461234 [10:26:19]1041 (16) - 0000000000871826 [10:26:19]1040 (4) - 187268 [10:26:19]1012 (4) - 20.02.2025 04:03 [10:26:19]1206 (1) - 0 [10:26:19]OFD Sender: Remove packet 187268 [10:26:19]ProducePacketName [10:26:19]name=ofd_packets/00187268 [10:26:19]NVStorageDeleteData [10:26:19]Write to MH i2c: 01 00 00 C8 26 EE [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 C8 26 00 00 00 00 00 03 0D 05 [10:26:19]RasterBufferAndPrint [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]line [10:26:19]written 0, free lines is 3337 [10:26:19]MH_Cut [10:26:19]Write to MH i2c: D1 01 00 CF 26 01 C7 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: D1 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: D1 01 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: D1 01 00 CF 26 00 C6 [10:26:19]Write to MH i2c: 01 00 00 D0 26 F6 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]OFD Sender: No OFD packet to send [10:26:19]*** Cut start [10:26:19]*** Partial cut [10:26:19]*** CUTSNS_PIN = 1 [10:26:19]*** CUTSNS_PIN = 0 [10:26:20]*** Brake cut motor [10:26:20]Read from MH i2c: 01 [10:26:20]MH_I2C_Read... [10:26:20]*** Stop cut motor [10:26:20]*** Cut end [10:26:20]Read from MH i2c: 01 07 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 D0 26 00 00 00 00 00 FF 0F 0B [10:26:20]process_action close_receipt done [10:26:20]requested_data is exist [10:26:20]produce_requested_data [10:26:20]requested_item fm.sn is exist - process it [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 11 00 00 [10:26:20]Write to MH i2c: E2 08 00 D1 26 80 11 00 00 00 00 00 00 71 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 17 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 17 00 D1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [10:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:26:20]wFMCommunicate OK [10:26:20]requested_item fd.num is exist - process it [10:26:20]SAM_PROTO_GetFieldsCounters [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 00 00 [10:26:20]Write to MH i2c: E2 08 00 D2 26 80 13 00 00 00 00 00 00 74 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 62 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 62 00 D2 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 84 DB 02 00 0E 04 04 00 88 02 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 54 [10: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 84 DB 02 00 0E 04 04 00 88 02 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 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetFieldsCounters done [10:26:20]requested_item shift.num is exist - process it [10:26:20]requested_item shift.opened is exist - process it [10:26:20]req_shift_opened [10:26:20]FM_GetShiftState [10:26:20]SAM_PROTO_GetShiftState [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 01 00 [10:26:20]Write to MH i2c: E2 08 00 D3 26 80 13 01 00 00 00 00 00 76 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 D3 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C8 [10:26:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetShiftState done [10:26:20]FM_GetShiftState done [10:26:20]req_shift_opened done [10:26:20]requested_item shift.open_date is exist - process it [10:26:20]req_shift_open_date [10:26:20]req_shift_open_date done [10:26:20]produce_requested_data done [10:26:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187268,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:26:20]process_action_free close_receipt [10:26:20]json_value_free [10:26:20]json_value_free done [10:26:20]process_json_proto returns [10:26:20]Send response to host [10:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187268,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:26:20]free response buf [10:26:20]execute_script done [10:26:20]execute_script returns [10:26:20]free content buf [10:26:20]Sock 9.Close socket [10:26:20]Sock 9.Thread stoped [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:21]accept exits with 7 [10:27:21]New connection [10:27:21]New thread 3066654052 created [10:27:21]Thread 3066510692 joined [10:27:21]Waiting for new connection... [10:27:21] Sock 7.Parse request [10:27:21]Sock 7.Check first char [10:27:21]Sock 7.First char is OK [10:27:21]request: POST /json_proto HTTP/1.0 [10:27:21]Method: POST [10:27:21]URL: /json_proto [10:27:21]Method is POST - this is cgi request [10:27:21]url: /json_proto [10:27:21]query_string will be loaded in cgi processing [10:27:21]execute_cgi json_proto POST (null) [10:27:21]execute_cgi path=json_proto method=POST [10:27:21]POST find Content-Length [10:27:21]Host: 172.17.46.131:8080 [10:27:21]Content-Length: 800 [10:27:21]Content-Type: application/json [10:27:21] [10:27:21]POST finish read [10:27:21]Found Content-Length = 800 [10:27:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:21]execute_script... [10:27: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)412422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:21]POST & json_proto [10:27:21]process_json_proto [10:27:21]json parsed OK: [10:27:21]protocol is kg_v1.0 [10:27:21]action value=close_receipt [10:27:21]process_action close_receipt [10:27:21]cmd_close_receipt [10:27:21]MH_GetDate [10:27:21]Write to MH i2c: F0 00 00 D4 26 E9 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: F0 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: F0 09 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: F0 09 00 D4 26 00 8D 03 B7 67 7E 41 4F 65 13 [10:27:21]GetLastDocTimeStamp 1740047181 [10:27:21]current date 1740047245 [10:27:21]FM_GetShiftState [10:27:21]SAM_PROTO_GetShiftState [10:27:21]wFMCommunicate request_size=4 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 13 01 00 [10:27:21]Write to MH i2c: E2 08 00 D5 26 80 13 01 00 00 00 00 00 78 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 0E 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 0E 00 D5 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CA [10:27:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:27:21]wFMCommunicate OK [10:27:21]SAM_PROTO_GetShiftState done [10:27:21]FM_GetShiftState done [10:27:21]opened in 1740011697 [10:27:21]opened+sec_in_day 1740098097 [10:27:21]quantity*price = 30045 [10:27:21]sum+1 = 30047 [10:27:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.46 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.46 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 70 20.02.2025 10:27 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187269 ФПД: 12412617655948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102725&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187269&fm=12412617655948&tin=02508201610067®Number=0000000000091857&sum=30046 [10:27:22]StoreToDocumentArchive [10:27:22]shift 648 fd 187269 [10:27:22]save to /storage/0648/doc_00187269 [10:27:22]save last doc name /storage/0648/doc_00187269 to /storage/kkm_last_doc_name [10:27:22]save OK [10:27:22]Clear old archive folders... [10:27:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:22]tlvbuf is 01F92EC0 [10:27:22]SAM_PROTO_ClearQueue [10:27:22]wFMCommunicate request_size=4 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 09 00 00 [10:27:22]Write to MH i2c: E2 08 00 E2 26 80 09 00 00 00 00 00 00 7A [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 03 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 03 00 E2 26 00 90 00 7C [10:27:22]RAPDU: 90 00 [10:27:22]wFMCommunicate OK [10:27:22]SAM_PROTO_ClearQueue done [10:27:22]KKMCreateOFDPacket [10:27:22]OFDProtocolAddRootSTLVToBuf [10:27:22]FM_MakeSignedData [10:27:22]FM_MakeSignedData [10:27:22]SAM_PROTO_SignData [10:27:22]wFMCommunicate request_size=4 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 0D 01 02 [10:27:22]Write to MH i2c: E2 08 00 E3 26 80 0D 01 02 00 00 00 00 82 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 03 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [10:27:22]RAPDU: 90 00 [10:27:22]wFMCommunicate OK [10:27:22]wFMCommunicate request_size=255 [10:27:22]MH_SAM_APDU [10:27: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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8D 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DB 02 00 35 04 06 00 0B [10:27:22]Write to MH i2c: E2 02 01 E4 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8D 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DB 02 00 35 04 06 00 0B 00 00 07 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 03 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 03 00 E4 26 00 90 00 7E [10:27:22]RAPDU: 90 00 [10:27:22]wFMCommunicate OK [10:27:22]wFMCommunicate request_size=10 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 0D 02 02 05 4A 09 AA 86 8C [10:27:22]Write to MH i2c: E2 0D 00 E5 26 80 0D 02 02 05 00 4A 09 AA 86 8C 00 00 9E [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 03 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 03 00 E5 26 00 90 00 7F [10:27:22]RAPDU: 90 00 [10:27:22]wFMCommunicate OK [10:27:22]wFMCommunicate request_size=4 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 0D 03 02 [10:27:22]Write to MH i2c: E2 08 00 E6 26 80 0D 03 02 00 00 00 00 87 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 0B 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 0B 00 E6 26 00 A3 0F 4E 56 C3 A7 A3 78 90 00 63 [10:27:22]RAPDU: A3 0F 4E 56 C3 A7 A3 78 90 00 [10:27:22]wFMCommunicate OK [10:27:22]SAM_PROTO_SignData done [10:27:22]FM_MakeSignedData done [10:27:22]CreateOFDProtocolMessage [10:27:22]wFMCommunicate request_size=4 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 11 00 00 [10:27:22]Write to MH i2c: E2 08 00 E7 26 80 11 00 00 00 00 00 00 87 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 17 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 17 00 E7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DA [10:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:27:22]wFMCommunicate OK [10:27:22]CreateOFDProtocolMessage done [10:27:22]OFDSenderStorePacket 187269 [10:27:22]StoreOFDPacket docnum=187269 [10:27:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E9 D2 07 01 D8 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8D 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DB 02 00 35 04 06 00 0B 4A 09 AA 86 8C A3 0F 4E 56 C3 A7 A3 78 [10:27:22]CheckFolder [10:27:22]dirname=/storage/ofd_packets [10:27:22]CheckFolder done [10:27:22]ProducePacketName [10:27:22]name=ofd_packets/00187269 [10:27:22]NVStorageSaveData ofd_packets/00187269 [10:27:22]File name is /storage/ofd_packets/00187269 [10:27:22]Write 301 bytes [10:27:22]NVStorageSaveData done [10:27:22]OFDSenderStorePacket done [10:27:22]KKMCreateOFDPacket done [10:27:22]NVStorageSaveData kkm_last_timestamp [10:27:22]File name is /storage/kkm_last_timestamp [10:27:22]Write 4 bytes [10:27:22]NVStorageSaveData done [10:27:22]ExternCall_PrintAddStr [10:27:22]wPrintStart [10:27:22]Write to MH i2c: 01 00 00 E8 26 0E [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 E8 26 00 00 00 00 00 FF 0F 23 [10:27:22]RasterBufferAndPrint [10:27:22]line Счет N : (1)412422 [10:27:22]line ИНН: 02508201610067 [10:27:22]line Контрольно-Кассовый Чек [10:27:22]line ПРОДАЖА [10:27:22]line ТРК (МРК, ГНК) : 22 [10:27:22]line Товар: 2710124130 [10:27:22]line Аи-92-К-2 [10:27:22]line 4.680 * 64.20 [10:27:22]line = 300.46 [10:27:22]line НДС 12% НСП 1% [10:27:22]line > о реализуемом товаре [10:27:22]line ИТОГО: 300.46 [10:27:22]line НСП 1% : 2.66 [10:27:22]line НДС 12% : 31.91 [10:27:22]line Наличными: 0.00 [10:27:22]line Безнал.: 300.46 [10:27:22]line Место: АЗС № 92 "Партнер Нефть" [10:27:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:27:22]line СНО: Общий режим [10:27:22]line Чек 70 20.02.2025 10:27 [10:27:22]line Смена: 648 ФФД: 1.0 [10:27:22]line ЗНМ: 0300000118 [10:27:22]line РНМ: 0000000000091857 [10:27:22]line Версия ККМ: 001 [10:27:22]line Платежная система: O! деньги [10:27:22]line ФМ: 0000000000871826 [10:27:22]line ФД: 187269 [10:27:22]line ФПД: 12412617655948 [10:27:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102725&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187269&fm=12412617655948&tin=02508201610067®Number=0000000000091857&sum=30046 [10:27:22]written 0, free lines is 4095 [10:27:22]OFD Sender: Processing packet 187269 [packets to send 49, broken 48] [10:27:22]ProducePacketName [10:27:22]name=ofd_packets/00187269 [10:27:22]OFD Sender: To server: pG, [10:27:22]CommunicateWithHost lk.salyk.kg:30040 [10:27:22]ConnectInit lk.salyk.kg [10:27:22]Connected sock=10 [10:27:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E9 D2 07 01 D8 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8D 03 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DB 02 00 35 04 06 00 0B 4A 09 AA 86 8C A3 0F 4E 56 C3 A7 A3 78 [10:27:23]Write to MH i2c: 01 00 00 12 27 39 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 07 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 07 00 12 27 00 00 00 00 00 14 0D 61 [10:27:23]RasterBufferAndPrint [10:27:23]line [10:27:23]line [10:27:23]line [10:27:23]line [10:27:23]line [10:27:23]written 0, free lines is 3354 [10:27:23]MH_Cut [10:27:23]Write to MH i2c: D1 01 00 19 27 01 12 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: D1 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: D1 01 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: D1 01 00 19 27 00 11 [10:27:23]Write to MH i2c: 01 00 00 1A 27 41 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 44 2C 47 00 18 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 31 38 32 36 10 04 04 00 85 DB 02 00 F4 03 04 00 DE A9 B6 67 B6 04 01 00 00 D4 DE 98 D4 E8 F5 58 91 [10:27:23]CommunicateWithHost err = 0 [10:27:23]CheckOFDResponse [10:27:23]1017 (14) - 77093643461234 [10:27:23]1041 (16) - 0000000000871826 [10:27:23]1040 (4) - 187269 [10:27:23]1012 (4) - 20.02.2025 04:04 [10:27:23]1206 (1) - 0 [10:27:23]OFD Sender: Remove packet 187269 [10:27:23]ProducePacketName [10:27:23]name=ofd_packets/00187269 [10:27:23]NVStorageDeleteData [10:27:23]OFD Sender: No OFD packet to send [10:27:23]*** Cut start [10:27:23]*** Partial cut [10:27:23]*** CUTSNS_PIN = 1 [10:27:23]*** CUTSNS_PIN = 0 [10:27:24]*** Brake cut motor [10:27:24]Read from MH i2c: 01 [10:27:24]MH_I2C_Read... [10:27:24]*** Stop cut motor [10:27:24]*** Cut end [10:27:24]Read from MH i2c: 01 07 00 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: 01 07 00 1A 27 00 00 00 00 00 FF 0F 56 [10:27:24]process_action close_receipt done [10:27:24]requested_data is exist [10:27:24]produce_requested_data [10:27:24]requested_item fm.sn is exist - process it [10:27:24]wFMCommunicate request_size=4 [10:27:24]MH_SAM_APDU [10:27:24]CAPDU: 80 11 00 00 [10:27:24]Write to MH i2c: E2 08 00 1B 27 80 11 00 00 00 00 00 00 BC [10:27:24]Write i2c OK [10:27:24]MH_I2C_Read... [10:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:24]Read from MH i2c: E2 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: E2 17 00 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: E2 17 00 1B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [10:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:27:24]wFMCommunicate OK [10:27:24]requested_item fd.num is exist - process it [10:27:24]SAM_PROTO_GetFieldsCounters [10:27:24]wFMCommunicate request_size=4 [10:27:24]MH_SAM_APDU [10:27:24]CAPDU: 80 13 00 00 [10:27:24]Write to MH i2c: E2 08 00 1C 27 80 13 00 00 00 00 00 00 BF [10:27:24]Write i2c OK [10:27:24]MH_I2C_Read... [10:27:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:24]Read from MH i2c: E2 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: E2 62 00 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: E2 62 00 1C 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 85 DB 02 00 0E 04 04 00 88 02 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 A3 [10:27:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 85 DB 02 00 0E 04 04 00 88 02 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 [10:27:24]wFMCommunicate OK [10:27:24]SAM_PROTO_GetFieldsCounters done [10:27:24]requested_item shift.num is exist - process it [10:27:24]requested_item shift.opened is exist - process it [10:27:24]req_shift_opened [10:27:24]FM_GetShiftState [10:27:24]SAM_PROTO_GetShiftState [10:27:24]wFMCommunicate request_size=4 [10:27:24]MH_SAM_APDU [10:27:24]CAPDU: 80 13 01 00 [10:27:24]Write to MH i2c: E2 08 00 1D 27 80 13 01 00 00 00 00 00 C1 [10:27:24]Write i2c OK [10:27:24]MH_I2C_Read... [10:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:24]Read from MH i2c: E2 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: E2 0E 00 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: E2 0E 00 1D 27 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 13 [10:27:24]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:27:24]wFMCommunicate OK [10:27:24]SAM_PROTO_GetShiftState done [10:27:24]FM_GetShiftState done [10:27:24]req_shift_opened done [10:27:24]requested_item shift.open_date is exist - process it [10:27:24]req_shift_open_date [10:27:24]req_shift_open_date done [10:27:24]produce_requested_data done [10:27:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187269,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:27:24]process_action_free close_receipt [10:27:24]json_value_free [10:27:24]json_value_free done [10:27:24]process_json_proto returns [10:27:24]Send response to host [10:27:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187269,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:27:24]free response buf [10:27:24]execute_script done [10:27:24]execute_script returns [10:27:24]free content buf [10:27:24]Sock 7.Close socket [10:27:24]Sock 7.Thread stoped [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:24]accept exits with 9 [10:29:24]New connection [10:29:24]New thread 3066510692 created [10:29:24]Thread 3066654052 joined [10:29:24]Waiting for new connection... [10:29:24] Sock 9.Parse request [10:29:24]Sock 9.Check first char [10:29:24]Sock 9.First char is OK [10:29:24]request: POST /json_proto HTTP/1.0 [10:29:24]Method: POST [10:29:24]URL: /json_proto [10:29:24]Method is POST - this is cgi request [10:29:24]url: /json_proto [10:29:24]query_string will be loaded in cgi processing [10:29:24]execute_cgi json_proto POST (null) [10:29:24]execute_cgi path=json_proto method=POST [10:29:24]POST find Content-Length [10:29:24]Host: 172.17.46.131:8080 [10:29:24]Content-Length: 678 [10:29:24]Content-Type: application/json [10:29:24] [10:29:24]POST finish read [10:29:24]Found Content-Length = 678 [10:29:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:29:24]execute_script... [10:29: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)412424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:29:24]POST & json_proto [10:29:24]process_json_proto [10:29:24]json parsed OK: [10:29:24]protocol is kg_v1.0 [10:29:24]action value=close_receipt [10:29:24]process_action close_receipt [10:29:24]cmd_close_receipt [10:29:24]MH_GetDate [10:29:24]Write to MH i2c: F0 00 00 1E 27 34 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: F0 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: F0 09 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: F0 09 00 1E 27 00 08 04 B7 67 7E 41 4F 65 DA [10:29:24]GetLastDocTimeStamp 1740047245 [10:29:24]current date 1740047368 [10:29:24]FM_GetShiftState [10:29:24]SAM_PROTO_GetShiftState [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 13 01 00 [10:29:24]Write to MH i2c: E2 08 00 1F 27 80 13 01 00 00 00 00 00 C3 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 0E 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 0E 00 1F 27 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 15 [10:29:24]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:29:24]wFMCommunicate OK [10:29:24]SAM_PROTO_GetShiftState done [10:29:24]FM_GetShiftState done [10:29:24]opened in 1740011697 [10:29:24]opened+sec_in_day 1740098097 [10:29:24]quantity*price = 100042 [10:29:24]sum+1 = 100044 [10:29:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 71 20.02.2025 10:29 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187270 ФПД: 153694761847294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102928&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187270&fm=153694761847294&tin=02508201610067®Number=0000000000091857&sum=100000 [10:29:25]StoreToDocumentArchive [10:29:25]shift 648 fd 187270 [10:29:25]save to /storage/0648/doc_00187270 [10:29:25]save last doc name /storage/0648/doc_00187270 to /storage/kkm_last_doc_name [10:29:25]save OK [10:29:25]Clear old archive folders... [10:29:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:25]tlvbuf is B6E91610 [10:29:25]SAM_PROTO_ClearQueue [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 09 00 00 [10:29:25]Write to MH i2c: E2 08 00 2C 27 80 09 00 00 00 00 00 00 C5 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 2C 27 00 90 00 C7 [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_ClearQueue done [10:29:25]KKMCreateOFDPacket [10:29:25]OFDProtocolAddRootSTLVToBuf [10:29:25]FM_MakeSignedData [10:29:25]FM_MakeSignedData [10:29:25]SAM_PROTO_SignData [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 01 02 [10:29:25]Write to MH i2c: E2 08 00 2D 27 80 0D 01 02 00 00 00 00 CD [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 2D 27 00 90 00 C8 [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=255 [10:29:25]MH_SAM_APDU [10:29: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 08 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DB 02 00 35 04 06 00 8B C8 D9 AF [10:29:25]Write to MH i2c: E2 02 01 2E 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 08 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DB 02 00 35 04 06 00 8B C8 D9 AF 00 00 AA [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 2E 27 00 90 00 C9 [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=7 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 02 02 02 09 FE [10:29:25]Write to MH i2c: E2 0A 00 2F 27 80 0D 02 02 02 00 09 FE 00 00 DB [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 2F 27 00 90 00 CA [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 03 02 [10:29:25]Write to MH i2c: E2 08 00 30 27 80 0D 03 02 00 00 00 00 D2 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0B 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0B 00 30 27 00 F7 58 5A 3A 46 EE 8C 44 90 00 BA [10:29:25]RAPDU: F7 58 5A 3A 46 EE 8C 44 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_SignData done [10:29:25]FM_MakeSignedData done [10:29:25]CreateOFDProtocolMessage [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 11 00 00 [10:29:25]Write to MH i2c: E2 08 00 31 27 80 11 00 00 00 00 00 00 D2 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 31 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [10:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:29:25]wFMCommunicate OK [10:29:25]CreateOFDProtocolMessage done [10:29:25]OFDSenderStorePacket 187270 [10:29:25]StoreOFDPacket docnum=187270 [10:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EC 2E 04 01 64 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 08 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DB 02 00 35 04 06 00 8B C8 D9 AF 09 FE F7 58 5A 3A 46 EE 8C 44 [10:29:25]CheckFolder [10:29:25]dirname=/storage/ofd_packets [10:29:25]CheckFolder done [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00187270 [10:29:25]NVStorageSaveData ofd_packets/00187270 [10:29:25]File name is /storage/ofd_packets/00187270 [10:29:25]Write 298 bytes [10:29:25]NVStorageSaveData done [10:29:25]OFDSenderStorePacket done [10:29:25]KKMCreateOFDPacket done [10:29:25]NVStorageSaveData kkm_last_timestamp [10:29:25]File name is /storage/kkm_last_timestamp [10:29:25]Write 4 bytes [10:29:25]NVStorageSaveData done [10:29:25]ExternCall_PrintAddStr [10:29:25]wPrintStart [10:29:25]Write to MH i2c: 01 00 00 32 27 59 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 32 27 00 00 00 00 00 FF 0F 6E [10:29:25]RasterBufferAndPrint [10:29:25]line Счет N : (1)412424 [10:29:25]line ИНН: 02508201610067 [10:29:25]line Контрольно-Кассовый Чек [10:29:25]line ПРОДАЖА [10:29:25]line ТРК (МРК, ГНК) : 5 [10:29:25]line Товар: 2710194210 [10:29:25]line ДТ-К-5 [10:29:25]line 13.780 * 72.60 [10:29:25]line = 1000.43 [10:29:25]line НДС 12% НСП 1% [10:29:25]line > о реализуемом товаре [10:29:25]line ОКРУГЛЕНИЕ: -0.43 [10:29:25]line ИТОГО: 1000.00 [10:29:25]line Внесено: 1000.00 [10:29:25]line СДАЧА: 0.00 [10:29:25]line НСП 1% : 8.85 [10:29:25]line НДС 12% : 106.24 [10:29:25]line Наличными: 1000.00 [10:29:25]line Безнал.: 0.00 [10:29:25]line Место: АЗС № 92 "Партнер Нефть" [10:29:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:29:25]line СНО: Общий режим [10:29:25]line Чек 71 20.02.2025 10:29 [10:29:25]line Смена: 648 ФФД: 1.0 [10:29:25]line ЗНМ: 0300000118 [10:29:25]line РНМ: 0000000000091857 [10:29:25]line Версия ККМ: 001 [10:29:25]line ФМ: 0000000000871826 [10:29:25]line ФД: 187270 [10:29:25]line ФПД: 153694761847294 [10:29:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102928&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187270&fm=153694761847294&tin=02508201610067®Number=0000000000091857&sum=100000 [10:29:26]OFD Sender: Processing packet 187270 [packets to send 49, broken 48] [10:29:26]ProducePacketName [10:29:26]name=ofd_packets/00187270 [10:29:26]OFD Sender: To server: pG, [10:29:26]CommunicateWithHost lk.salyk.kg:30040 [10:29:26]ConnectInit lk.salyk.kg [10:29:26]written 0, free lines is 4095 [10:29:26]Connected sock=10 [10:29:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EC 2E 04 01 64 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 08 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DB 02 00 35 04 06 00 8B C8 D9 AF 09 FE F7 58 5A 3A 46 EE 8C 44 [10:29:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DF 11 47 00 3D 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 31 38 32 36 10 04 04 00 86 DB 02 00 F4 03 04 00 59 AA B6 67 B6 04 01 00 00 C6 C9 0B 45 D1 5D 35 49 [10:29:26]CommunicateWithHost err = 0 [10:29:26]CheckOFDResponse [10:29:26]1017 (14) - 77093643461234 [10:29:26]1041 (16) - 0000000000871826 [10:29:26]1040 (4) - 187270 [10:29:26]1012 (4) - 20.02.2025 04:06 [10:29:26]1206 (1) - 0 [10:29:26]OFD Sender: Remove packet 187270 [10:29:26]ProducePacketName [10:29:26]name=ofd_packets/00187270 [10:29:26]NVStorageDeleteData [10:29:26]Write to MH i2c: 01 00 00 5D 27 84 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 5D 27 00 00 00 00 00 F3 0C 8A [10:29:26]RasterBufferAndPrint [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]written 0, free lines is 3321 [10:29:26]MH_Cut [10:29:26]Write to MH i2c: D1 01 00 64 27 01 5D [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 64 27 00 5C [10:29:26]Write to MH i2c: 01 00 00 65 27 8C [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:27]OFD Sender: No OFD packet to send [10:29:27]*** Cut start [10:29:27]*** Partial cut [10:29:27]*** CUTSNS_PIN = 1 [10:29:27]*** CUTSNS_PIN = 0 [10:29:27]*** Brake cut motor [10:29:27]Read from MH i2c: 01 [10:29:28]MH_I2C_Read... [10:29:28]*** Stop cut motor [10:29:28]*** Cut end [10:29:28]Read from MH i2c: 01 07 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 FF 0F A1 [10:29:28]process_action close_receipt done [10:29:28]requested_data is exist [10:29:28]produce_requested_data [10:29:28]requested_item fm.sn is exist - process it [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 11 00 00 [10:29:28]Write to MH i2c: E2 08 00 66 27 80 11 00 00 00 00 00 00 07 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 17 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 17 00 66 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [10:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:29:28]wFMCommunicate OK [10:29:28]requested_item fd.num is exist - process it [10:29:28]SAM_PROTO_GetFieldsCounters [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 13 00 00 [10:29:28]Write to MH i2c: E2 08 00 67 27 80 13 00 00 00 00 00 00 0A [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 62 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 62 00 67 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 86 DB 02 00 0E 04 04 00 88 02 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 F2 [10:29:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 86 DB 02 00 0E 04 04 00 88 02 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 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_GetFieldsCounters done [10:29:28]requested_item shift.num is exist - process it [10:29:28]requested_item shift.opened is exist - process it [10:29:28]req_shift_opened [10:29:28]FM_GetShiftState [10:29:28]SAM_PROTO_GetShiftState [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 13 01 00 [10:29:28]Write to MH i2c: E2 08 00 68 27 80 13 01 00 00 00 00 00 0C [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 68 27 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5E [10:29:28]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_GetShiftState done [10:29:28]FM_GetShiftState done [10:29:28]req_shift_opened done [10:29:28]requested_item shift.open_date is exist - process it [10:29:28]req_shift_open_date [10:29:28]req_shift_open_date done [10:29:28]produce_requested_data done [10:29:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187270,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:29:28]process_action_free close_receipt [10:29:28]json_value_free [10:29:28]json_value_free done [10:29:28]process_json_proto returns [10:29:28]Send response to host [10:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187270,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:29:28]free response buf [10:29:28]execute_script done [10:29:28]execute_script returns [10:29:28]free content buf [10:29:28]Sock 9.Close socket [10:29:28]Sock 9.Thread stoped [10:29:32]OFD Sender: No OFD packet to send [10:29:32]accept exits with 7 [10:29:32]New connection [10:29:32]New thread 3066654052 created [10:29:32]Thread 3066510692 joined [10:29:32]Waiting for new connection... [10:29:32] Sock 7.Parse request [10:29:32]Sock 7.Check first char [10:29:32]Sock 7.First char is OK [10:29:32]request: POST /json_proto HTTP/1.0 [10:29:32]Method: POST [10:29:32]URL: /json_proto [10:29:32]Method is POST - this is cgi request [10:29:32]url: /json_proto [10:29:32]query_string will be loaded in cgi processing [10:29:32]execute_cgi json_proto POST (null) [10:29:32]execute_cgi path=json_proto method=POST [10:29:32]POST find Content-Length [10:29:32]Host: 172.17.46.131:8080 [10:29:32]Content-Length: 792 [10:29:32]Content-Type: application/json [10:29:32] [10:29:32]POST finish read [10:29:32]Found Content-Length = 792 [10:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 17.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81765", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:32]execute_script... [10:29: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)412423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 17.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81765", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:32]POST & json_proto [10:29:32]process_json_proto [10:29:32]json parsed OK: [10:29:32]protocol is kg_v1.0 [10:29:32]action value=close_receipt [10:29:32]process_action close_receipt [10:29:32]cmd_close_receipt [10:29:32]MH_GetDate [10:29:32]Write to MH i2c: F0 00 00 69 27 7F [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: F0 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: F0 09 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: F0 09 00 69 27 00 10 04 B7 67 7E 41 4F 65 2D [10:29:32]GetLastDocTimeStamp 1740047368 [10:29:32]current date 1740047376 [10:29:32]FM_GetShiftState [10:29:32]SAM_PROTO_GetShiftState [10:29:32]wFMCommunicate request_size=4 [10:29:32]MH_SAM_APDU [10:29:32]CAPDU: 80 13 01 00 [10:29:32]Write to MH i2c: E2 08 00 6A 27 80 13 01 00 00 00 00 00 0E [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:32]Read from MH i2c: E2 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 0E 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 0E 00 6A 27 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 60 [10:29:32]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:29:32]wFMCommunicate OK [10:29:32]SAM_PROTO_GetShiftState done [10:29:32]FM_GetShiftState done [10:29:32]opened in 1740011697 [10:29:32]opened+sec_in_day 1740098097 [10:29:32]quantity*price = 0 [10:29:32]sum+1 = 1 [10:29:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 72 20.02.2025 10:29 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 81765 ФМ: 0000000000871826 ФД: 187271 ФПД: 238129964754839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102936&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187271&fm=238129964754839&tin=02508201610067®Number=0000000000091857&sum=0 [10:29:33]StoreToDocumentArchive [10:29:33]shift 648 fd 187271 [10:29:33]save to /storage/0648/doc_00187271 [10:29:33]save last doc name /storage/0648/doc_00187271 to /storage/kkm_last_doc_name [10:29:33]save OK [10:29:33]Clear old archive folders... [10:29:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:33]tlvbuf is 02020F50 [10:29:33]SAM_PROTO_ClearQueue [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 09 00 00 [10:29:33]Write to MH i2c: E2 08 00 77 27 80 09 00 00 00 00 00 00 10 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 77 27 00 90 00 12 [10:29:33]RAPDU: 90 00 [10:29:33]wFMCommunicate OK [10:29:33]SAM_PROTO_ClearQueue done [10:29:33]KKMCreateOFDPacket [10:29:33]OFDProtocolAddRootSTLVToBuf [10:29:33]FM_MakeSignedData [10:29:33]FM_MakeSignedData [10:29:33]SAM_PROTO_SignData [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 0D 01 02 [10:29:33]Write to MH i2c: E2 08 00 78 27 80 0D 01 02 00 00 00 00 18 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 78 27 00 90 00 13 [10:29:33]RAPDU: 90 00 [10:29:33]wFMCommunicate OK [10:29:33]wFMCommunicate request_size=255 [10:29:33]MH_SAM_APDU [10:29: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 32 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 10 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 DB 02 00 35 04 06 00 D8 [10:29:33]Write to MH i2c: E2 02 01 79 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 32 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 10 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 DB 02 00 35 04 06 00 D8 00 00 0E [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 79 27 00 90 00 14 [10:29:33]RAPDU: 90 00 [10:29:33]wFMCommunicate OK [10:29:33]wFMCommunicate request_size=10 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 0D 02 02 05 93 F3 F5 A7 97 [10:29:33]Write to MH i2c: E2 0D 00 7A 27 80 0D 02 02 05 00 93 F3 F5 A7 97 00 00 DE [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 7A 27 00 90 00 15 [10:29:33]RAPDU: 90 00 [10:29:33]wFMCommunicate OK [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 0D 03 02 [10:29:33]Write to MH i2c: E2 08 00 7B 27 80 0D 03 02 00 00 00 00 1D [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 0B 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 0B 00 7B 27 00 D8 FD 19 30 79 D3 6C EB 90 00 DF [10:29:33]RAPDU: D8 FD 19 30 79 D3 6C EB 90 00 [10:29:33]wFMCommunicate OK [10:29:33]SAM_PROTO_SignData done [10:29:33]FM_MakeSignedData done [10:29:33]CreateOFDProtocolMessage [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 11 00 00 [10:29:33]Write to MH i2c: E2 08 00 7C 27 80 11 00 00 00 00 00 00 1D [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:34]Read from MH i2c: E2 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: E2 17 00 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: E2 17 00 7C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [10:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:29:34]wFMCommunicate OK [10:29:34]CreateOFDProtocolMessage done [10:29:34]OFDSenderStorePacket 187271 [10:29:34]StoreOFDPacket docnum=187271 [10:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6D 95 07 01 31 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 32 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 10 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 DB 02 00 35 04 06 00 D8 93 F3 F5 A7 97 D8 FD 19 30 79 D3 6C EB [10:29:34]CheckFolder [10:29:34]dirname=/storage/ofd_packets [10:29:34]CheckFolder done [10:29:34]ProducePacketName [10:29:34]name=ofd_packets/00187271 [10:29:34]NVStorageSaveData ofd_packets/00187271 [10:29:34]File name is /storage/ofd_packets/00187271 [10:29:34]Write 301 bytes [10:29:34]NVStorageSaveData done [10:29:34]OFDSenderStorePacket done [10:29:34]KKMCreateOFDPacket done [10:29:34]NVStorageSaveData kkm_last_timestamp [10:29:34]File name is /storage/kkm_last_timestamp [10:29:34]Write 4 bytes [10:29:34]NVStorageSaveData done [10:29:34]ExternCall_PrintAddStr [10:29:34]wPrintStart [10:29:34]Write to MH i2c: 01 00 00 7D 27 A4 [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 07 00 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 FF 0F B9 [10:29:34]RasterBufferAndPrint [10:29:34]line Счет N : (1)412423 [10:29:34]line ИНН: 02508201610067 [10:29:34]line Контрольно-Кассовый Чек [10:29:34]line ПРОДАЖА [10:29:34]line ТРК (МРК, ГНК) : 12 [10:29:34]line Товар: 2710124130 [10:29:34]line Аи-92-К-2 [10:29:34]line 17.000 * 0.00 [10:29:34]line = 0.00 [10:29:34]line НДС 12% НСП 1% [10:29:34]line > о реализуемом товаре [10:29:34]line ИТОГО: 0.00 [10:29:34]line НСП 1% : 0.00 [10:29:34]line НДС 12% : 0.00 [10:29:34]line Наличными: 0.00 [10:29:34]line Безнал.: 0.00 [10:29:34]line Место: АЗС № 92 "Партнер Нефть" [10:29:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:29:34]line СНО: Общий режим [10:29:34]line Чек 72 20.02.2025 10:29 [10:29:34]line Смена: 648 ФФД: 1.0 [10:29:34]line ЗНМ: 0300000118 [10:29:34]line РНМ: 0000000000091857 [10:29:34]line Версия ККМ: 001 [10:29:34]line Талоны: Топливная Карта [10:29:34]line 81765 [10:29:34]line ФМ: 0000000000871826 [10:29:34]line ФД: 187271 [10:29:34]OFD Sender: Processing packet 187271 [packets to send 49, broken 48] [10:29:34]ProducePacketName [10:29:34]name=ofd_packets/00187271 [10:29:34]OFD Sender: To server: pG, [10:29:34]CommunicateWithHost lk.salyk.kg:30040 [10:29:34]ConnectInit lk.salyk.kg [10:29:34]line ФПД: 238129964754839 [10:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T102936&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187271&fm=238129964754839&tin=02508201610067®Number=0000000000091857&sum=0 [10:29:34]written 0, free lines is 4095 [10:29:34]Connected sock=10 [10:29:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6D 95 07 01 31 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 32 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 10 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 DB 02 00 35 04 06 00 D8 93 F3 F5 A7 97 D8 FD 19 30 79 D3 6C EB [10:29:34]Write to MH i2c: 01 00 00 A7 27 CE [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 07 00 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 07 00 A7 27 00 00 00 00 00 06 0D E8 [10:29:34]RasterBufferAndPrint [10:29:34]line [10:29:34]line [10:29:34]line [10:29:34]line [10:29:34]line [10:29:34]written 0, free lines is 3344 [10:29:34]MH_Cut [10:29:34]Write to MH i2c: D1 01 00 AE 27 01 A7 [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: D1 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: D1 01 00 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: D1 01 00 AE 27 00 A6 [10:29:34]Write to MH i2c: 01 00 00 AF 27 D6 [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F5 B3 47 00 C4 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 31 38 32 36 10 04 04 00 87 DB 02 00 F4 03 04 00 61 AA B6 67 B6 04 01 00 00 B7 5B 6E 63 6C BA 17 BC [10:29:34]CommunicateWithHost err = 0 [10:29:34]CheckOFDResponse [10:29:34]1017 (14) - 77093643461234 [10:29:34]1041 (16) - 0000000000871826 [10:29:34]1040 (4) - 187271 [10:29:34]1012 (4) - 20.02.2025 04:06 [10:29:34]1206 (1) - 0 [10:29:34]OFD Sender: Remove packet 187271 [10:29:34]ProducePacketName [10:29:34]name=ofd_packets/00187271 [10:29:34]NVStorageDeleteData [10:29:35]*** Cut start [10:29:35]*** Partial cut [10:29:35]*** CUTSNS_PIN = 1 [10:29:35]OFD Sender: No OFD packet to send [10:29:35]*** CUTSNS_PIN = 0 [10:29:35]*** Brake cut motor [10:29:35]Read from MH i2c: 01 [10:29:35]MH_I2C_Read... [10:29:35]*** Stop cut motor [10:29:35]*** Cut end [10:29:35]Read from MH i2c: 01 07 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 FF 0F EB [10:29:35]process_action close_receipt done [10:29:35]requested_data is exist [10:29:35]produce_requested_data [10:29:35]requested_item fm.sn is exist - process it [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 11 00 00 [10:29:35]Write to MH i2c: E2 08 00 B0 27 80 11 00 00 00 00 00 00 51 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 17 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 17 00 B0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A4 [10:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:29:35]wFMCommunicate OK [10:29:35]requested_item fd.num is exist - process it [10:29:35]SAM_PROTO_GetFieldsCounters [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 13 00 00 [10:29:35]Write to MH i2c: E2 08 00 B1 27 80 13 00 00 00 00 00 00 54 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 62 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 62 00 B1 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 87 DB 02 00 0E 04 04 00 88 02 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 40 [10:29:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 87 DB 02 00 0E 04 04 00 88 02 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:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_GetFieldsCounters done [10:29:36]requested_item shift.num is exist - process it [10:29:36]requested_item shift.opened is exist - process it [10:29:36]req_shift_opened [10:29:36]FM_GetShiftState [10:29:36]SAM_PROTO_GetShiftState [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 13 01 00 [10:29:36]Write to MH i2c: E2 08 00 B2 27 80 13 01 00 00 00 00 00 56 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 0E 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 0E 00 B2 27 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A8 [10:29:36]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_GetShiftState done [10:29:36]FM_GetShiftState done [10:29:36]req_shift_opened done [10:29:36]requested_item shift.open_date is exist - process it [10:29:36]req_shift_open_date [10:29:36]req_shift_open_date done [10:29:36]produce_requested_data done [10:29:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187271,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:29:36]process_action_free close_receipt [10:29:36]json_value_free [10:29:36]json_value_free done [10:29:36]process_json_proto returns [10:29:36]Send response to host [10:29:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187271,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:29:36]free response buf [10:29:36]execute_script done [10:29:36]execute_script returns [10:29:36]free content buf [10:29:36]Sock 7.Close socket [10:29:36]Sock 7.Thread stoped [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:19]accept exits with 9 [10:30:19]New connection [10:30:19]New thread 3066510692 created [10:30:19]Thread 3066654052 joined [10:30:19]Waiting for new connection... [10:30:19] Sock 9.Parse request [10:30:19]Sock 9.Check first char [10:30:19]Sock 9.First char is OK [10:30:19]request: POST /json_proto HTTP/1.0 [10:30:19]Method: POST [10:30:19]URL: /json_proto [10:30:19]Method is POST - this is cgi request [10:30:19]url: /json_proto [10:30:19]query_string will be loaded in cgi processing [10:30:19]execute_cgi json_proto POST (null) [10:30:19]execute_cgi path=json_proto method=POST [10:30:19]POST find Content-Length [10:30:19]Host: 172.17.46.131:8080 [10:30:19]Content-Length: 677 [10:30:19]Content-Type: application/json [10:30:19] [10:30:19]POST finish read [10:30:19]Found Content-Length = 677 [10:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:30:19]execute_script... [10:30: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)412425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:30:19]POST & json_proto [10:30:19]process_json_proto [10:30:19]json parsed OK: [10:30:19]protocol is kg_v1.0 [10:30:19]action value=close_receipt [10:30:19]process_action close_receipt [10:30:19]cmd_close_receipt [10:30:19]MH_GetDate [10:30:19]Write to MH i2c: F0 00 00 B3 27 C9 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: F0 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: F0 09 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: F0 09 00 B3 27 00 3F 04 B7 67 7E 41 4F 65 A6 [10:30:19]GetLastDocTimeStamp 1740047376 [10:30:19]current date 1740047423 [10:30:19]FM_GetShiftState [10:30:19]SAM_PROTO_GetShiftState [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 13 01 00 [10:30:19]Write to MH i2c: E2 08 00 B4 27 80 13 01 00 00 00 00 00 58 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 0E 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 0E 00 B4 27 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AA [10:30:19]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:30:19]wFMCommunicate OK [10:30:19]SAM_PROTO_GetShiftState done [10:30:19]FM_GetShiftState done [10:30:19]opened in 1740011697 [10:30:19]opened+sec_in_day 1740098097 [10:30:19]quantity*price = 50011 [10:30:19]sum+1 = 50013 [10:30:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 73 20.02.2025 10:30 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187272 ФПД: 273174759320678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T103023&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187272&fm=273174759320678&tin=02508201610067®Number=0000000000091857&sum=50000 [10:30:20]StoreToDocumentArchive [10:30:20]shift 648 fd 187272 [10:30:20]save to /storage/0648/doc_00187272 [10:30:20]save last doc name /storage/0648/doc_00187272 to /storage/kkm_last_doc_name [10:30:20]save OK [10:30:20]Clear old archive folders... [10:30:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:20]tlvbuf is 01F49280 [10:30:20]SAM_PROTO_ClearQueue [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 09 00 00 [10:30:20]Write to MH i2c: E2 08 00 C1 27 80 09 00 00 00 00 00 00 5A [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 03 00 [10:30:20]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 03 00 C1 27 00 90 00 5C [10:30:21]RAPDU: 90 00 [10:30:21]wFMCommunicate OK [10:30:21]SAM_PROTO_ClearQueue done [10:30:21]KKMCreateOFDPacket [10:30:21]OFDProtocolAddRootSTLVToBuf [10:30:21]FM_MakeSignedData [10:30:21]FM_MakeSignedData [10:30:21]SAM_PROTO_SignData [10:30:21]wFMCommunicate request_size=4 [10:30:21]MH_SAM_APDU [10:30:21]CAPDU: 80 0D 01 02 [10:30:21]Write to MH i2c: E2 08 00 C2 27 80 0D 01 02 00 00 00 00 62 [10:30:21]Write i2c OK [10:30:21]MH_I2C_Read... [10:30:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:21]Read from MH i2c: E2 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 03 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 03 00 C2 27 00 90 00 5D [10:30:21]RAPDU: 90 00 [10:30:21]wFMCommunicate OK [10:30:21]wFMCommunicate request_size=255 [10:30:21]MH_SAM_APDU [10:30: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 3F 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DB 02 00 35 04 06 00 F8 [10:30:21]Write to MH i2c: E2 02 01 C3 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 3F 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DB 02 00 35 04 06 00 F8 00 00 8C [10:30:21]Write i2c OK [10:30:21]MH_I2C_Read... [10:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:21]Read from MH i2c: E2 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 03 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 03 00 C3 27 00 90 00 5E [10:30:21]RAPDU: 90 00 [10:30:21]wFMCommunicate OK [10:30:21]wFMCommunicate request_size=10 [10:30:21]MH_SAM_APDU [10:30:21]CAPDU: 80 0D 02 02 05 73 74 7D AC 66 [10:30:21]Write to MH i2c: E2 0D 00 C4 27 80 0D 02 02 05 00 73 74 7D AC 66 00 00 E5 [10:30:21]Write i2c OK [10:30:21]MH_I2C_Read... [10:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:21]Read from MH i2c: E2 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 03 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 03 00 C4 27 00 90 00 5F [10:30:21]RAPDU: 90 00 [10:30:21]wFMCommunicate OK [10:30:21]wFMCommunicate request_size=4 [10:30:21]MH_SAM_APDU [10:30:21]CAPDU: 80 0D 03 02 [10:30:21]Write to MH i2c: E2 08 00 C5 27 80 0D 03 02 00 00 00 00 67 [10:30:21]Write i2c OK [10:30:21]MH_I2C_Read... [10:30:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:21]Read from MH i2c: E2 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 0B 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 0B 00 C5 27 00 7B 81 70 75 0D 9F 86 48 90 00 C3 [10:30:21]RAPDU: 7B 81 70 75 0D 9F 86 48 90 00 [10:30:21]wFMCommunicate OK [10:30:21]SAM_PROTO_SignData done [10:30:21]FM_MakeSignedData done [10:30:21]CreateOFDProtocolMessage [10:30:21]wFMCommunicate request_size=4 [10:30:21]MH_SAM_APDU [10:30:21]CAPDU: 80 11 00 00 [10:30:21]Write to MH i2c: E2 08 00 C6 27 80 11 00 00 00 00 00 00 67 [10:30:21]Write i2c OK [10:30:21]MH_I2C_Read... [10:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:21]Read from MH i2c: E2 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 17 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 17 00 C6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [10:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:30:21]wFMCommunicate OK [10:30:21]CreateOFDProtocolMessage done [10:30:21]OFDSenderStorePacket 187272 [10:30:21]StoreOFDPacket docnum=187272 [10:30:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 33 C7 07 01 45 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 3F 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DB 02 00 35 04 06 00 F8 73 74 7D AC 66 7B 81 70 75 0D 9F 86 48 [10:30:21]CheckFolder [10:30:21]dirname=/storage/ofd_packets [10:30:21]CheckFolder done [10:30:21]ProducePacketName [10:30:21]name=ofd_packets/00187272 [10:30:21]NVStorageSaveData ofd_packets/00187272 [10:30:21]File name is /storage/ofd_packets/00187272 [10:30:21]Write 301 bytes [10:30:21]NVStorageSaveData done [10:30:21]OFDSenderStorePacket done [10:30:21]KKMCreateOFDPacket done [10:30:21]NVStorageSaveData kkm_last_timestamp [10:30:21]File name is /storage/kkm_last_timestamp [10:30:21]Write 4 bytes [10:30:21]NVStorageSaveData done [10:30:21]ExternCall_PrintAddStr [10:30:21]wPrintStart [10:30:21]Write to MH i2c: 01 00 00 C7 27 EE [10:30:21]Write i2c OK [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: 01 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: 01 07 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: 01 07 00 C7 27 00 00 00 00 00 FF 0F 03 [10:30:21]RasterBufferAndPrint [10:30:21]line Счет N : (1)412425 [10:30:21]line ИНН: 02508201610067 [10:30:21]line Контрольно-Кассовый Чек [10:30:21]line ПРОДАЖА [10:30:21]line ТРК (МРК, ГНК) : 22 [10:30:21]line Товар: 2710124130 [10:30:21]line Аи-92-К-2 [10:30:21]line 7.790 * 64.20 [10:30:21]line = 500.12 [10:30:21]line НДС 12% НСП 1% [10:30:21]line > о реализуемом товаре [10:30:21]line ОКРУГЛЕНИЕ: -0.12 [10:30:21]line ИТОГО: 500.00 [10:30:21]line Внесено: 500.00 [10:30:21]line СДАЧА: 0.00 [10:30:21]line НСП 1% : 4.43 [10:30:21]line НДС 12% : 53.11 [10:30:21]line Наличными: 500.00 [10:30:21]line Безнал.: 0.00 [10:30:21]line Место: АЗС № 92 "Партнер Нефть" [10:30:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:30:21]line СНО: Общий режим [10:30:21]line Чек 73 20.02.2025 10:30 [10:30:21]line Смена: 648 ФФД: 1.0 [10:30:21]line ЗНМ: 0300000118 [10:30:21]line РНМ: 0000000000091857 [10:30:21]line Версия ККМ: 001 [10:30:21]line ФМ: 0000000000871826 [10:30:21]line ФД: 187272 [10:30:21]line ФПД: 273174759320678 [10:30:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T103023&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187272&fm=273174759320678&tin=02508201610067®Number=0000000000091857&sum=50000 [10:30:21]OFD Sender: Processing packet 187272 [packets to send 49, broken 48] [10:30:21]ProducePacketName [10:30:21]name=ofd_packets/00187272 [10:30:21]OFD Sender: To server: pG, [10:30:21]CommunicateWithHost lk.salyk.kg:30040 [10:30:21]ConnectInit lk.salyk.kg [10:30:21]written 0, free lines is 4095 [10:30:21]Connected sock=10 [10:30:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 33 C7 07 01 45 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 3F 04 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DB 02 00 35 04 06 00 F8 73 74 7D AC 66 7B 81 70 75 0D 9F 86 48 [10:30:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 89 03 47 00 53 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 31 38 32 36 10 04 04 00 88 DB 02 00 F4 03 04 00 91 AA B6 67 B6 04 01 00 00 90 32 7D B4 EE CF 7C 0C [10:30:22]CommunicateWithHost err = 0 [10:30:22]CheckOFDResponse [10:30:22]1017 (14) - 77093643461234 [10:30:22]1041 (16) - 0000000000871826 [10:30:22]1040 (4) - 187272 [10:30:22]1012 (4) - 20.02.2025 04:07 [10:30:22]1206 (1) - 0 [10:30:22]OFD Sender: Remove packet 187272 [10:30:22]ProducePacketName [10:30:22]name=ofd_packets/00187272 [10:30:22]NVStorageDeleteData [10:30:22]Write to MH i2c: 01 00 00 F2 27 19 [10:30:22]Write i2c OK [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: 01 [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: 01 07 00 [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: 01 07 00 F2 27 00 00 00 00 00 FB 0C 27 [10:30:22]RasterBufferAndPrint [10:30:22]line [10:30:22]line [10:30:22]line [10:30:22]line [10:30:22]line [10:30:22]written 0, free lines is 3329 [10:30:22]MH_Cut [10:30:22]Write to MH i2c: D1 01 00 F9 27 01 F2 [10:30:22]Write i2c OK [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: D1 [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: D1 01 00 [10:30:22]MH_I2C_Read... [10:30:22]Read from MH i2c: D1 01 00 F9 27 00 F1 [10:30:22]Write to MH i2c: 01 00 00 FA 27 21 [10:30:22]Write i2c OK [10:30:22]MH_I2C_Read... [10:30:22]OFD Sender: No OFD packet to send [10:30:22]*** Cut start [10:30:22]*** Partial cut [10:30:22]*** CUTSNS_PIN = 1 [10:30:23]*** CUTSNS_PIN = 0 [10:30:23]*** Brake cut motor [10:30:23]Read from MH i2c: 01 [10:30:23]MH_I2C_Read... [10:30:23]*** Stop cut motor [10:30:23]*** Cut end [10:30:23]Read from MH i2c: 01 07 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: 01 07 00 FA 27 00 00 00 00 00 FF 0F 36 [10:30:23]process_action close_receipt done [10:30:23]requested_data is exist [10:30:23]produce_requested_data [10:30:23]requested_item fm.sn is exist - process it [10:30:23]wFMCommunicate request_size=4 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 11 00 00 [10:30:23]Write to MH i2c: E2 08 00 FB 27 80 11 00 00 00 00 00 00 9C [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:23]Read from MH i2c: E2 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 17 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 17 00 FB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EF [10:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:30:23]wFMCommunicate OK [10:30:23]requested_item fd.num is exist - process it [10:30:23]SAM_PROTO_GetFieldsCounters [10:30:23]wFMCommunicate request_size=4 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 13 00 00 [10:30:23]Write to MH i2c: E2 08 00 FC 27 80 13 00 00 00 00 00 00 9F [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:23]Read from MH i2c: E2 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 62 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 62 00 FC 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 88 DB 02 00 0E 04 04 00 88 02 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 8F [10:30:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 88 DB 02 00 0E 04 04 00 88 02 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:30:23]wFMCommunicate OK [10:30:23]SAM_PROTO_GetFieldsCounters done [10:30:23]requested_item shift.num is exist - process it [10:30:23]requested_item shift.opened is exist - process it [10:30:23]req_shift_opened [10:30:23]FM_GetShiftState [10:30:23]SAM_PROTO_GetShiftState [10:30:23]wFMCommunicate request_size=4 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 13 01 00 [10:30:23]Write to MH i2c: E2 08 00 FD 27 80 13 01 00 00 00 00 00 A1 [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:23]Read from MH i2c: E2 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 0E 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 0E 00 FD 27 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F3 [10:30:23]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:30:23]wFMCommunicate OK [10:30:23]SAM_PROTO_GetShiftState done [10:30:23]FM_GetShiftState done [10:30:23]req_shift_opened done [10:30:23]requested_item shift.open_date is exist - process it [10:30:23]req_shift_open_date [10:30:23]req_shift_open_date done [10:30:23]produce_requested_data done [10:30:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187272,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:30:23]process_action_free close_receipt [10:30:23]json_value_free [10:30:23]json_value_free done [10:30:23]process_json_proto returns [10:30:23]Send response to host [10:30:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187272,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:30:23]free response buf [10:30:23]execute_script done [10:30:23]execute_script returns [10:30:23]free content buf [10:30:23]Sock 9.Close socket [10:30:23]Sock 9.Thread stoped [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34: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:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:15]accept exits with 7 [10:37:15]New connection [10:37:15]New thread 3066654052 created [10:37:15]Thread 3066510692 joined [10:37:15]Waiting for new connection... [10:37:15] Sock 7.Parse request [10:37:15]Sock 7.Check first char [10:37:15]Sock 7.First char is OK [10:37:15]request: POST /json_proto HTTP/1.0 [10:37:15]Method: POST [10:37:15]URL: /json_proto [10:37:15]Method is POST - this is cgi request [10:37:15]url: /json_proto [10:37:15]query_string will be loaded in cgi processing [10:37:15]execute_cgi json_proto POST (null) [10:37:15]execute_cgi path=json_proto method=POST [10:37:15]POST find Content-Length [10:37:15]Host: 172.17.46.131:8080 [10:37:15]Content-Length: 682 [10:37:15]Content-Type: application/json [10:37:15] [10:37:15]POST finish read [10:37:15]Found Content-Length = 682 [10:37:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [10:37:15]execute_script... [10:37: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)412426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [10:37:15]POST & json_proto [10:37:15]process_json_proto [10:37:15]json parsed OK: [10:37:15]protocol is kg_v1.0 [10:37:15]action value=close_receipt [10:37:15]process_action close_receipt [10:37:15]cmd_close_receipt [10:37:15]MH_GetDate [10:37:15]Write to MH i2c: F0 00 00 FE 27 14 [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: F0 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: F0 09 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: F0 09 00 FE 27 00 DF 05 B7 67 7E 41 4F 65 92 [10:37:15]GetLastDocTimeStamp 1740047423 [10:37:15]current date 1740047839 [10:37:15]FM_GetShiftState [10:37:15]SAM_PROTO_GetShiftState [10:37:15]wFMCommunicate request_size=4 [10:37:15]MH_SAM_APDU [10:37:15]CAPDU: 80 13 01 00 [10:37:15]Write to MH i2c: E2 08 00 FF 27 80 13 01 00 00 00 00 00 A3 [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:15]Read from MH i2c: E2 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: E2 0E 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: E2 0E 00 FF 27 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F5 [10:37:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:37:15]wFMCommunicate OK [10:37:15]SAM_PROTO_GetShiftState done [10:37:15]FM_GetShiftState done [10:37:15]opened in 1740011697 [10:37:15]opened+sec_in_day 1740098097 [10:37:15]quantity*price = 150055 [10:37:15]sum+1 = 150056 [10:37:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 74 20.02.2025 10:37 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187273 ФПД: 249011809623772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T103719&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187273&fm=249011809623772&tin=02508201610067®Number=0000000000091857&sum=150000 [10:37:16]StoreToDocumentArchive [10:37:16]shift 648 fd 187273 [10:37:16]save to /storage/0648/doc_00187273 [10:37:16]save last doc name /storage/0648/doc_00187273 to /storage/kkm_last_doc_name [10:37:16]save OK [10:37:16]Clear old archive folders... [10:37:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:16]tlvbuf is 0203DA90 [10:37:16]SAM_PROTO_ClearQueue [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 09 00 00 [10:37:16]Write to MH i2c: E2 08 00 0C 28 80 09 00 00 00 00 00 00 A6 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 0C 28 00 90 00 A8 [10:37:16]RAPDU: 90 00 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_ClearQueue done [10:37:16]KKMCreateOFDPacket [10:37:16]OFDProtocolAddRootSTLVToBuf [10:37:16]FM_MakeSignedData [10:37:16]FM_MakeSignedData [10:37:16]SAM_PROTO_SignData [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 0D 01 02 [10:37:16]Write to MH i2c: E2 08 00 0D 28 80 0D 01 02 00 00 00 00 AE [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 0D 28 00 90 00 A9 [10:37:16]RAPDU: 90 00 [10:37:16]wFMCommunicate OK [10:37:16]wFMCommunicate request_size=255 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 DF 05 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DB 02 00 35 04 06 00 E2 [10:37:16]Write to MH i2c: E2 02 01 0E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 DF 05 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DB 02 00 35 04 06 00 E2 00 00 83 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [10:37:16]RAPDU: 90 00 [10:37:16]wFMCommunicate OK [10:37:16]wFMCommunicate request_size=10 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 0D 02 02 05 79 94 75 1E DC [10:37:16]Write to MH i2c: E2 0D 00 0F 28 80 0D 02 02 05 00 79 94 75 1E DC 00 00 37 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 03 00 0F 28 00 90 00 AB [10:37:16]RAPDU: 90 00 [10:37:16]wFMCommunicate OK [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 0D 03 02 [10:37:16]Write to MH i2c: E2 08 00 10 28 80 0D 03 02 00 00 00 00 B3 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0B 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0B 00 10 28 00 BC C0 52 68 66 66 15 08 90 00 D3 [10:37:16]RAPDU: BC C0 52 68 66 66 15 08 90 00 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_SignData done [10:37:16]FM_MakeSignedData done [10:37:16]CreateOFDProtocolMessage [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 11 00 00 [10:37:16]Write to MH i2c: E2 08 00 11 28 80 11 00 00 00 00 00 00 B3 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 11 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [10:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:37:16]wFMCommunicate OK [10:37:16]CreateOFDProtocolMessage done [10:37:16]OFDSenderStorePacket 187273 [10:37:16]StoreOFDPacket docnum=187273 [10:37:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 58 90 07 01 D6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 DF 05 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DB 02 00 35 04 06 00 E2 79 94 75 1E DC BC C0 52 68 66 66 15 08 [10:37:16]CheckFolder [10:37:16]dirname=/storage/ofd_packets [10:37:16]CheckFolder done [10:37:16]ProducePacketName [10:37:16]name=ofd_packets/00187273 [10:37:16]NVStorageSaveData ofd_packets/00187273 [10:37:16]File name is /storage/ofd_packets/00187273 [10:37:16]Write 301 bytes [10:37:16]NVStorageSaveData done [10:37:16]OFDSenderStorePacket done [10:37:16]KKMCreateOFDPacket done [10:37:16]NVStorageSaveData kkm_last_timestamp [10:37:16]File name is /storage/kkm_last_timestamp [10:37:16]Write 4 bytes [10:37:16]NVStorageSaveData done [10:37:16]ExternCall_PrintAddStr [10:37:16]wPrintStart [10:37:16]Write to MH i2c: 01 00 00 12 28 3A [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 07 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 07 00 12 28 00 00 00 00 00 FF 0F 4F [10:37:16]RasterBufferAndPrint [10:37:16]line Счет N : (1)412426 [10:37:16]line ИНН: 02508201610067 [10:37:16]line Контрольно-Кассовый Чек [10:37:16]line ПРОДАЖА [10:37:16]line ТРК (МРК, ГНК) : 13 [10:37:16]line Товар: 2710124500 [10:37:16]line Аи-95-К-5 [10:37:16]line 20.870 * 71.90 [10:37:16]line = 1500.55 [10:37:16]line НДС 12% НСП 1% [10:37:16]line > о реализуемом товаре [10:37:16]line ОКРУГЛЕНИЕ: -0.55 [10:37:16]line ИТОГО: 1500.00 [10:37:16]line Внесено: 1500.00 [10:37:16]line СДАЧА: 0.00 [10:37:16]line НСП 1% : 13.28 [10:37:16]line НДС 12% : 159.35 [10:37:16]line Наличными: 1500.00 [10:37:16]line Безнал.: 0.00 [10:37:16]line Место: АЗС № 92 "Партнер Нефть" [10:37:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:37:16]line СНО: Общий режим [10:37:16]line Чек 74 20.02.2025 10:37 [10:37:16]line Смена: 648 ФФД: 1.0 [10:37:16]line ЗНМ: 0300000118 [10:37:16]line РНМ: 0000000000091857 [10:37:16]line Версия ККМ: 001 [10:37:16]line ФМ: 0000000000871826 [10:37:16]line ФД: 187273 [10:37:16]line ФПД: 249011809623772 [10:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T103719&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187273&fm=249011809623772&tin=02508201610067®Number=0000000000091857&sum=150000 [10:37:17]OFD Sender: Processing packet 187273 [packets to send 49, broken 48] [10:37:17]ProducePacketName [10:37:17]name=ofd_packets/00187273 [10:37:17]OFD Sender: To server: pG, [10:37:17]CommunicateWithHost lk.salyk.kg:30040 [10:37:17]ConnectInit lk.salyk.kg [10:37:17]written 0, free lines is 4095 [10:37:17]Connected sock=10 [10:37:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 58 90 07 01 D6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 DF 05 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DB 02 00 35 04 06 00 E2 79 94 75 1E DC BC C0 52 68 66 66 15 08 [10:37:17]Write to MH i2c: 01 00 00 3D 28 65 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 [10:37:17]MH_I2C_Read... [10:37:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6C 19 47 00 BA 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 31 38 32 36 10 04 04 00 89 DB 02 00 F4 03 04 00 30 AC B6 67 B6 04 01 00 00 5C 52 FE 2C AD 53 21 A8 [10:37:17]CommunicateWithHost err = 0 [10:37:17]CheckOFDResponse [10:37:17]1017 (14) - 77093643461234 [10:37:17]1041 (16) - 0000000000871826 [10:37:17]1040 (4) - 187273 [10:37:17]1012 (4) - 20.02.2025 04:14 [10:37:17]1206 (1) - 0 [10:37:17]OFD Sender: Remove packet 187273 [10:37:17]ProducePacketName [10:37:17]name=ofd_packets/00187273 [10:37:17]NVStorageDeleteData [10:37:17]Read from MH i2c: 01 07 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 07 00 3D 28 00 00 00 00 00 FC 0C 74 [10:37:17]RasterBufferAndPrint [10:37:17]line [10:37:17]line [10:37:17]line [10:37:17]line [10:37:17]line [10:37:17]written 0, free lines is 3345 [10:37:17]MH_Cut [10:37:17]Write to MH i2c: D1 01 00 44 28 01 3E [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: D1 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: D1 01 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: D1 01 00 44 28 00 3D [10:37:17]Write to MH i2c: 01 00 00 45 28 6D [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:18]OFD Sender: No OFD packet to send [10:37:18]*** Cut start [10:37:18]*** Partial cut [10:37:18]*** CUTSNS_PIN = 1 [10:37:18]*** CUTSNS_PIN = 0 [10:37:18]*** Brake cut motor [10:37:18]Read from MH i2c: 01 [10:37:19]MH_I2C_Read... [10:37:19]*** Stop cut motor [10:37:19]*** Cut end [10:37:19]Read from MH i2c: 01 07 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: 01 07 00 45 28 00 00 00 00 00 FF 0F 82 [10:37:19]process_action close_receipt done [10:37:19]requested_data is exist [10:37:19]produce_requested_data [10:37:19]requested_item fm.sn is exist - process it [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 11 00 00 [10:37:19]Write to MH i2c: E2 08 00 46 28 80 11 00 00 00 00 00 00 E8 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 17 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 17 00 46 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [10:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:37:19]wFMCommunicate OK [10:37:19]requested_item fd.num is exist - process it [10:37:19]SAM_PROTO_GetFieldsCounters [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 13 00 00 [10:37:19]Write to MH i2c: E2 08 00 47 28 80 13 00 00 00 00 00 00 EB [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 62 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 62 00 47 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 89 DB 02 00 0E 04 04 00 88 02 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 DF [10:37:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 89 DB 02 00 0E 04 04 00 88 02 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:37:19]wFMCommunicate OK [10:37:19]SAM_PROTO_GetFieldsCounters done [10:37:19]requested_item shift.num is exist - process it [10:37:19]requested_item shift.opened is exist - process it [10:37:19]req_shift_opened [10:37:19]FM_GetShiftState [10:37:19]SAM_PROTO_GetShiftState [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 13 01 00 [10:37:19]Write to MH i2c: E2 08 00 48 28 80 13 01 00 00 00 00 00 ED [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 0E 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 0E 00 48 28 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3F [10:37:19]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:37:19]wFMCommunicate OK [10:37:19]SAM_PROTO_GetShiftState done [10:37:19]FM_GetShiftState done [10:37:19]req_shift_opened done [10:37:19]requested_item shift.open_date is exist - process it [10:37:19]req_shift_open_date [10:37:19]req_shift_open_date done [10:37:19]produce_requested_data done [10:37:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187273,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:37:19]process_action_free close_receipt [10:37:19]json_value_free [10:37:19]json_value_free done [10:37:19]process_json_proto returns [10:37:19]Send response to host [10:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187273,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:37:19]free response buf [10:37:19]execute_script done [10:37:19]execute_script returns [10:37:19]free content buf [10:37:19]Sock 7.Close socket [10:37:19]Sock 7.Thread stoped [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:00]accept exits with 9 [10:40:00]New connection [10:40:00]New thread 3066510692 created [10:40:00]Thread 3066654052 joined [10:40:00]Waiting for new connection... [10:40:00] Sock 9.Parse request [10:40:00]Sock 9.Check first char [10:40:00]Sock 9.First char is OK [10:40:00]request: POST /json_proto HTTP/1.0 [10:40:00]Method: POST [10:40:00]URL: /json_proto [10:40:00]Method is POST - this is cgi request [10:40:00]url: /json_proto [10:40:00]query_string will be loaded in cgi processing [10:40:00]execute_cgi json_proto POST (null) [10:40:00]execute_cgi path=json_proto method=POST [10:40:00]POST find Content-Length [10:40:00]Host: 172.17.46.131:8080 [10:40:00]Content-Length: 792 [10:40:00]Content-Type: application/json [10:40:00] [10:40:00]POST finish read [10:40:00]Found Content-Length = 792 [10:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:00]execute_script... [10:40: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)412427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:00]POST & json_proto [10:40:00]process_json_proto [10:40:00]json parsed OK: [10:40:00]protocol is kg_v1.0 [10:40:00]action value=close_receipt [10:40:00]process_action close_receipt [10:40:00]cmd_close_receipt [10:40:00]MH_GetDate [10:40:00]Write to MH i2c: F0 00 00 49 28 60 [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: F0 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: F0 09 00 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: F0 09 00 49 28 00 84 06 B7 67 7E 41 4F 65 84 [10:40:00]GetLastDocTimeStamp 1740047839 [10:40:00]current date 1740048004 [10:40:00]FM_GetShiftState [10:40:00]SAM_PROTO_GetShiftState [10:40:00]wFMCommunicate request_size=4 [10:40:00]MH_SAM_APDU [10:40:00]CAPDU: 80 13 01 00 [10:40:00]Write to MH i2c: E2 08 00 4A 28 80 13 01 00 00 00 00 00 EF [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:00]Read from MH i2c: E2 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: E2 0E 00 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: E2 0E 00 4A 28 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 41 [10:40:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:40:00]wFMCommunicate OK [10:40:00]SAM_PROTO_GetShiftState done [10:40:00]FM_GetShiftState done [10:40:00]opened in 1740011697 [10:40:00]opened+sec_in_day 1740098097 [10:40:00]quantity*price = 0 [10:40:00]sum+1 = 1 [10:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 75 20.02.2025 10:40 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 187274 ФПД: 259164080161242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104004&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187274&fm=259164080161242&tin=02508201610067®Number=0000000000091857&sum=0 [10:40:01]StoreToDocumentArchive [10:40:01]shift 648 fd 187274 [10:40:01]save to /storage/0648/doc_00187274 [10:40:01]save last doc name /storage/0648/doc_00187274 to /storage/kkm_last_doc_name [10:40:01]save OK [10:40:01]Clear old archive folders... [10:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:01]tlvbuf is 01FEB330 [10:40:01]SAM_PROTO_ClearQueue [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 09 00 00 [10:40:01]Write to MH i2c: E2 08 00 57 28 80 09 00 00 00 00 00 00 F1 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 57 28 00 90 00 F3 [10:40:01]RAPDU: 90 00 [10:40:01]wFMCommunicate OK [10:40:01]SAM_PROTO_ClearQueue done [10:40:01]KKMCreateOFDPacket [10:40:01]OFDProtocolAddRootSTLVToBuf [10:40:01]FM_MakeSignedData [10:40:01]FM_MakeSignedData [10:40:01]SAM_PROTO_SignData [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 0D 01 02 [10:40:01]Write to MH i2c: E2 08 00 58 28 80 0D 01 02 00 00 00 00 F9 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 58 28 00 90 00 F4 [10:40:01]RAPDU: 90 00 [10:40:01]wFMCommunicate OK [10:40:01]wFMCommunicate request_size=255 [10:40:01]MH_SAM_APDU [10:40: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 84 06 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DB 02 00 35 04 06 00 EB [10:40:01]Write to MH i2c: E2 02 01 59 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 84 06 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DB 02 00 35 04 06 00 EB 00 00 0B [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 59 28 00 90 00 F5 [10:40:01]RAPDU: 90 00 [10:40:01]wFMCommunicate OK [10:40:01]wFMCommunicate request_size=10 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 0D 02 02 05 B5 56 EF C1 DA [10:40:01]Write to MH i2c: E2 0D 00 5A 28 80 0D 02 02 05 00 B5 56 EF C1 DA 00 00 9B [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 5A 28 00 90 00 F6 [10:40:01]RAPDU: 90 00 [10:40:01]wFMCommunicate OK [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 0D 03 02 [10:40:01]Write to MH i2c: E2 08 00 5B 28 80 0D 03 02 00 00 00 00 FE [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 0B 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 0B 00 5B 28 00 40 D4 FC 59 88 81 25 4C 90 00 E2 [10:40:01]RAPDU: 40 D4 FC 59 88 81 25 4C 90 00 [10:40:01]wFMCommunicate OK [10:40:01]SAM_PROTO_SignData done [10:40:01]FM_MakeSignedData done [10:40:01]CreateOFDProtocolMessage [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 11 00 00 [10:40:01]Write to MH i2c: E2 08 00 5C 28 80 11 00 00 00 00 00 00 FE [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 17 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 17 00 5C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [10:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:40:02]wFMCommunicate OK [10:40:02]CreateOFDProtocolMessage done [10:40:02]OFDSenderStorePacket 187274 [10:40:02]StoreOFDPacket docnum=187274 [10:40:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B0 5A 07 01 ED B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 84 06 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DB 02 00 35 04 06 00 EB B5 56 EF C1 DA 40 D4 FC 59 88 81 25 4C [10:40:02]CheckFolder [10:40:02]dirname=/storage/ofd_packets [10:40:02]CheckFolder done [10:40:02]ProducePacketName [10:40:02]name=ofd_packets/00187274 [10:40:02]NVStorageSaveData ofd_packets/00187274 [10:40:02]File name is /storage/ofd_packets/00187274 [10:40:02]Write 301 bytes [10:40:02]NVStorageSaveData done [10:40:02]OFDSenderStorePacket done [10:40:02]KKMCreateOFDPacket done [10:40:02]NVStorageSaveData kkm_last_timestamp [10:40:02]File name is /storage/kkm_last_timestamp [10:40:02]Write 4 bytes [10:40:02]NVStorageSaveData done [10:40:02]ExternCall_PrintAddStr [10:40:02]wPrintStart [10:40:02]Write to MH i2c: 01 00 00 5D 28 85 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 5D 28 00 00 00 00 00 FF 0F 9A [10:40:02]RasterBufferAndPrint [10:40:02]line Счет N : (1)412427 [10:40:02]line ИНН: 02508201610067 [10:40:02]line Контрольно-Кассовый Чек [10:40:02]line ПРОДАЖА [10:40:02]line ТРК (МРК, ГНК) : 22 [10:40:02]line Товар: 2710124130 [10:40:02]line Аи-92-К-2 [10:40:02]line 10.000 * 0.00 [10:40:02]line = 0.00 [10:40:02]line НДС 12% НСП 1% [10:40:02]line > о реализуемом товаре [10:40:02]line ИТОГО: 0.00 [10:40:02]line НСП 1% : 0.00 [10:40:02]line НДС 12% : 0.00 [10:40:02]line Наличными: 0.00 [10:40:02]line Безнал.: 0.00 [10:40:02]line Место: АЗС № 92 "Партнер Нефть" [10:40:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:40:02]line СНО: Общий режим [10:40:02]line Чек 75 20.02.2025 10:40 [10:40:02]line Смена: 648 ФФД: 1.0 [10:40:02]line ЗНМ: 0300000118 [10:40:02]line РНМ: 0000000000091857 [10:40:02]line Версия ККМ: 001 [10:40:02]line Талоны: Топливная Карта [10:40:02]line 03821 [10:40:02]line ФМ: 0000000000871826 [10:40:02]line ФД: 187274 [10:40:02]line ФПД: 259164080161242 [10:40:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104004&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187274&fm=259164080161242&tin=02508201610067®Number=0000000000091857&sum=0 [10:40:02]written 0, free lines is 4095 [10:40:02]OFD Sender: Processing packet 187274 [packets to send 49, broken 48] [10:40:02]ProducePacketName [10:40:02]name=ofd_packets/00187274 [10:40:02]OFD Sender: To server: pG, [10:40:02]CommunicateWithHost lk.salyk.kg:30040 [10:40:02]ConnectInit lk.salyk.kg [10:40:02]Connected sock=7 [10:40:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B0 5A 07 01 ED B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 84 06 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DB 02 00 35 04 06 00 EB B5 56 EF C1 DA 40 D4 FC 59 88 81 25 4C [10:40:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BD DF 47 00 4B 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 31 38 32 36 10 04 04 00 8A DB 02 00 F4 03 04 00 D5 AC B6 67 B6 04 01 00 00 DB 8D FC 2C 1B 74 9A 95 [10:40:02]CommunicateWithHost err = 0 [10:40:02]CheckOFDResponse [10:40:02]1017 (14) - 77093643461234 [10:40:02]1041 (16) - 0000000000871826 [10:40:02]1040 (4) - 187274 [10:40:02]1012 (4) - 20.02.2025 04:17 [10:40:02]1206 (1) - 0 [10:40:02]OFD Sender: Remove packet 187274 [10:40:02]ProducePacketName [10:40:02]name=ofd_packets/00187274 [10:40:02]NVStorageDeleteData [10:40:02]Write to MH i2c: 01 00 00 87 28 AF [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 09 0D CC [10:40:02]RasterBufferAndPrint [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]written 0, free lines is 3344 [10:40:02]MH_Cut [10:40:02]Write to MH i2c: D1 01 00 8E 28 01 88 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 01 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 01 00 8E 28 00 87 [10:40:02]Write to MH i2c: 01 00 00 8F 28 B7 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]OFD Sender: No OFD packet to send [10:40:03]*** Cut start [10:40:03]*** Partial cut [10:40:03]*** CUTSNS_PIN = 1 [10:40:03]*** CUTSNS_PIN = 0 [10:40:03]*** Brake cut motor [10:40:03]Read from MH i2c: 01 [10:40:03]MH_I2C_Read... [10:40:03]*** Stop cut motor [10:40:03]*** Cut end [10:40:03]Read from MH i2c: 01 07 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: 01 07 00 8F 28 00 00 00 00 00 FF 0F CC [10:40:03]process_action close_receipt done [10:40:03]requested_data is exist [10:40:03]produce_requested_data [10:40:03]requested_item fm.sn is exist - process it [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 11 00 00 [10:40:03]Write to MH i2c: E2 08 00 90 28 80 11 00 00 00 00 00 00 32 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 17 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 17 00 90 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [10:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:40:03]wFMCommunicate OK [10:40:03]requested_item fd.num is exist - process it [10:40:03]SAM_PROTO_GetFieldsCounters [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 13 00 00 [10:40:03]Write to MH i2c: E2 08 00 91 28 80 13 00 00 00 00 00 00 35 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 62 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 62 00 91 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8A DB 02 00 0E 04 04 00 88 02 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 2D [10:40:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8A DB 02 00 0E 04 04 00 88 02 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:40:04]wFMCommunicate OK [10:40:04]SAM_PROTO_GetFieldsCounters done [10:40:04]requested_item shift.num is exist - process it [10:40:04]requested_item shift.opened is exist - process it [10:40:04]req_shift_opened [10:40:04]FM_GetShiftState [10:40:04]SAM_PROTO_GetShiftState [10:40:04]wFMCommunicate request_size=4 [10:40:04]MH_SAM_APDU [10:40:04]CAPDU: 80 13 01 00 [10:40:04]Write to MH i2c: E2 08 00 92 28 80 13 01 00 00 00 00 00 37 [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 0E 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 0E 00 92 28 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 89 [10:40:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:40:04]wFMCommunicate OK [10:40:04]SAM_PROTO_GetShiftState done [10:40:04]FM_GetShiftState done [10:40:04]req_shift_opened done [10:40:04]requested_item shift.open_date is exist - process it [10:40:04]req_shift_open_date [10:40:04]req_shift_open_date done [10:40:04]produce_requested_data done [10:40:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187274,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:40:04]process_action_free close_receipt [10:40:04]json_value_free [10:40:04]json_value_free done [10:40:04]process_json_proto returns [10:40:04]Send response to host [10:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187274,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:40:04]free response buf [10:40:04]execute_script done [10:40:04]execute_script returns [10:40:04]free content buf [10:40:04]Sock 9.Close socket [10:40:04]Sock 9.Thread stoped [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:16]accept exits with 10 [10:40:16]New connection [10:40:16]New thread 3066654052 created [10:40:16]Thread 3066510692 joined [10:40:16]Waiting for new connection... [10:40:16] Sock 10.Parse request [10:40:16]Sock 10.Check first char [10:40:16]Sock 10.First char is OK [10:40:16]request: POST /json_proto HTTP/1.0 [10:40:16]Method: POST [10:40:16]URL: /json_proto [10:40:16]Method is POST - this is cgi request [10:40:16]url: /json_proto [10:40:16]query_string will be loaded in cgi processing [10:40:16]execute_cgi json_proto POST (null) [10:40:16]execute_cgi path=json_proto method=POST [10:40:16]POST find Content-Length [10:40:16]Host: 172.17.46.131:8080 [10:40:16]Content-Length: 677 [10:40:16]Content-Type: application/json [10:40:16] [10:40:16]POST finish read [10:40:16]Found Content-Length = 677 [10:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "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:40:16]execute_script... [10:40: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)412428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "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:40:16]POST & json_proto [10:40:16]process_json_proto [10:40:16]json parsed OK: [10:40:16]protocol is kg_v1.0 [10:40:16]action value=close_receipt [10:40:16]process_action close_receipt [10:40:16]cmd_close_receipt [10:40:16]MH_GetDate [10:40:16]Write to MH i2c: F0 00 00 93 28 AA [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 09 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 09 00 93 28 00 94 06 B7 67 7E 41 4F 65 DE [10:40:16]GetLastDocTimeStamp 1740048004 [10:40:16]current date 1740048020 [10:40:16]FM_GetShiftState [10:40:16]SAM_PROTO_GetShiftState [10:40:16]wFMCommunicate request_size=4 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 13 01 00 [10:40:16]Write to MH i2c: E2 08 00 94 28 80 13 01 00 00 00 00 00 39 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 0E 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 0E 00 94 28 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8B [10:40:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:40:16]wFMCommunicate OK [10:40:16]SAM_PROTO_GetShiftState done [10:40:16]FM_GetShiftState done [10:40:16]opened in 1740011697 [10:40:16]opened+sec_in_day 1740098097 [10:40:16]quantity*price = 40060 [10:40:16]sum+1 = 40062 [10:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 76 20.02.2025 10:40 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187275 ФПД: 51246667812174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104020&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187275&fm=51246667812174&tin=02508201610067®Number=0000000000091857&sum=40000 [10:40:17]StoreToDocumentArchive [10:40:17]shift 648 fd 187275 [10:40:17]save to /storage/0648/doc_00187275 [10:40:17]save last doc name /storage/0648/doc_00187275 to /storage/kkm_last_doc_name [10:40:17]save OK [10:40:17]Clear old archive folders... [10:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:17]tlvbuf is B6E783B0 [10:40:17]SAM_PROTO_ClearQueue [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 09 00 00 [10:40:17]Write to MH i2c: E2 08 00 A1 28 80 09 00 00 00 00 00 00 3B [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 A1 28 00 90 00 3D [10:40:17]RAPDU: 90 00 [10:40:17]wFMCommunicate OK [10:40:17]SAM_PROTO_ClearQueue done [10:40:17]KKMCreateOFDPacket [10:40:17]OFDProtocolAddRootSTLVToBuf [10:40:17]FM_MakeSignedData [10:40:17]FM_MakeSignedData [10:40:17]SAM_PROTO_SignData [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 0D 01 02 [10:40:17]Write to MH i2c: E2 08 00 A2 28 80 0D 01 02 00 00 00 00 43 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:17]OFD Sender: No OFD packet to send [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 03 00 A2 28 00 90 00 3E [10:40:17]RAPDU: 90 00 [10:40:17]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=255 [10:40:18]MH_SAM_APDU [10:40: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 4C 00 00 00 F4 03 04 00 94 06 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DB 02 00 35 04 06 00 2E [10:40:18]Write to MH i2c: E2 02 01 A3 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 4C 00 00 00 F4 03 04 00 94 06 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DB 02 00 35 04 06 00 2E 00 00 FA [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 A3 28 00 90 00 3F [10:40:18]RAPDU: 90 00 [10:40:18]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=10 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 0D 02 02 05 9B CB 6E 4D 4E [10:40:18]Write to MH i2c: E2 0D 00 A4 28 80 0D 02 02 05 00 9B CB 6E 4D 4E 00 00 BF [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [10:40:18]RAPDU: 90 00 [10:40:18]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 0D 03 02 [10:40:18]Write to MH i2c: E2 08 00 A5 28 80 0D 03 02 00 00 00 00 48 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0B 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0B 00 A5 28 00 D3 51 5A 53 B6 54 91 76 90 00 2B [10:40:18]RAPDU: D3 51 5A 53 B6 54 91 76 90 00 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_SignData done [10:40:18]FM_MakeSignedData done [10:40:18]CreateOFDProtocolMessage [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 11 00 00 [10:40:18]Write to MH i2c: E2 08 00 A6 28 80 11 00 00 00 00 00 00 48 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 A6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [10:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:40:18]wFMCommunicate OK [10:40:18]CreateOFDProtocolMessage done [10:40:18]OFDSenderStorePacket 187275 [10:40:18]StoreOFDPacket docnum=187275 [10:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DA F6 07 01 EC E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 4C 00 00 00 F4 03 04 00 94 06 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DB 02 00 35 04 06 00 2E 9B CB 6E 4D 4E D3 51 5A 53 B6 54 91 76 [10:40:18]CheckFolder [10:40:18]dirname=/storage/ofd_packets [10:40:18]CheckFolder done [10:40:18]ProducePacketName [10:40:18]name=ofd_packets/00187275 [10:40:18]NVStorageSaveData ofd_packets/00187275 [10:40:18]File name is /storage/ofd_packets/00187275 [10:40:18]Write 301 bytes [10:40:18]NVStorageSaveData done [10:40:18]OFDSenderStorePacket done [10:40:18]KKMCreateOFDPacket done [10:40:18]NVStorageSaveData kkm_last_timestamp [10:40:18]File name is /storage/kkm_last_timestamp [10:40:18]Write 4 bytes [10:40:18]NVStorageSaveData done [10:40:18]ExternCall_PrintAddStr [10:40:18]wPrintStart [10:40:18]Write to MH i2c: 01 00 00 A7 28 CF [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 A7 28 00 00 00 00 00 FF 0F E4 [10:40:18]RasterBufferAndPrint [10:40:18]line Счет N : (1)412428 [10:40:18]line ИНН: 02508201610067 [10:40:18]line Контрольно-Кассовый Чек [10:40:18]line ПРОДАЖА [10:40:18]line ТРК (МРК, ГНК) : 12 [10:40:18]line Товар: 2710124130 [10:40:18]line Аи-92-К-2 [10:40:18]line 6.240 * 64.20 [10:40:18]line = 400.61 [10:40:18]line НДС 12% НСП 1% [10:40:18]line > о реализуемом товаре [10:40:18]line ОКРУГЛЕНИЕ: -0.61 [10:40:18]line ИТОГО: 400.00 [10:40:18]line Внесено: 400.00 [10:40:18]line СДАЧА: 0.00 [10:40:18]line НСП 1% : 3.54 [10:40:18]line НДС 12% : 42.54 [10:40:18]line Наличными: 400.00 [10:40:18]line Безнал.: 0.00 [10:40:18]line Место: АЗС № 92 "Партнер Нефть" [10:40:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:40:18]line СНО: Общий режим [10:40:18]line Чек 76 20.02.2025 10:40 [10:40:18]line Смена: 648 ФФД: 1.0 [10:40:18]line ЗНМ: 0300000118 [10:40:18]line РНМ: 0000000000091857 [10:40:18]line Версия ККМ: 001 [10:40:18]line ФМ: 0000000000871826 [10:40:18]line ФД: 187275 [10:40:18]line ФПД: 51246667812174 [10:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104020&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187275&fm=51246667812174&tin=02508201610067®Number=0000000000091857&sum=40000 [10:40:18]OFD Sender: Processing packet 187275 [packets to send 49, broken 48] [10:40:18]ProducePacketName [10:40:18]name=ofd_packets/00187275 [10:40:18]OFD Sender: To server: pG, [10:40:18]CommunicateWithHost lk.salyk.kg:30040 [10:40:18]ConnectInit lk.salyk.kg [10:40:18]written 0, free lines is 4095 [10:40:18]Connected sock=7 [10:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DA F6 07 01 EC E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 4C 00 00 00 F4 03 04 00 94 06 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DB 02 00 35 04 06 00 2E 9B CB 6E 4D 4E D3 51 5A 53 B6 54 91 76 [10:40:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 42 0E 47 00 F9 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DB 02 00 F4 03 04 00 E6 AC B6 67 B6 04 01 00 00 A0 8C 86 4D 6B B1 F1 C0 [10:40:19]CommunicateWithHost err = 0 [10:40:19]CheckOFDResponse [10:40:19]1017 (14) - 77093643461234 [10:40:19]1041 (16) - 0000000000871826 [10:40:19]1040 (4) - 187275 [10:40:19]1012 (4) - 20.02.2025 04:17 [10:40:19]1206 (1) - 0 [10:40:19]OFD Sender: Remove packet 187275 [10:40:19]ProducePacketName [10:40:19]name=ofd_packets/00187275 [10:40:19]NVStorageDeleteData [10:40:19]Write to MH i2c: 01 00 00 D2 28 FA [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 F7 0C 04 [10:40:19]RasterBufferAndPrint [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]written 0, free lines is 3325 [10:40:19]MH_Cut [10:40:19]Write to MH i2c: D1 01 00 D9 28 01 D3 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 01 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 01 00 D9 28 00 D2 [10:40:19]Write to MH i2c: 01 00 00 DA 28 02 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]OFD Sender: No OFD packet to send [10:40:19]*** Cut start [10:40:19]*** Partial cut [10:40:19]*** CUTSNS_PIN = 1 [10:40:19]*** CUTSNS_PIN = 0 [10:40:20]*** Brake cut motor [10:40:20]Read from MH i2c: 01 [10:40:20]MH_I2C_Read... [10:40:20]*** Stop cut motor [10:40:20]*** Cut end [10:40:20]Read from MH i2c: 01 07 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 DA 28 00 00 00 00 00 FF 0F 17 [10:40:20]process_action close_receipt done [10:40:20]requested_data is exist [10:40:20]produce_requested_data [10:40:20]requested_item fm.sn is exist - process it [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 11 00 00 [10:40:20]Write to MH i2c: E2 08 00 DB 28 80 11 00 00 00 00 00 00 7D [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 DB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [10:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:40:20]wFMCommunicate OK [10:40:20]requested_item fd.num is exist - process it [10:40:20]SAM_PROTO_GetFieldsCounters [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 13 00 00 [10:40:20]Write to MH i2c: E2 08 00 DC 28 80 13 00 00 00 00 00 00 80 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 62 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 62 00 DC 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8B DB 02 00 0E 04 04 00 88 02 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 7C [10:40:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8B DB 02 00 0E 04 04 00 88 02 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:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_GetFieldsCounters done [10:40:20]requested_item shift.num is exist - process it [10:40:20]requested_item shift.opened is exist - process it [10:40:20]req_shift_opened [10:40:20]FM_GetShiftState [10:40:20]SAM_PROTO_GetShiftState [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 13 01 00 [10:40:20]Write to MH i2c: E2 08 00 DD 28 80 13 01 00 00 00 00 00 82 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0E 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0E 00 DD 28 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D4 [10:40:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_GetShiftState done [10:40:20]FM_GetShiftState done [10:40:20]req_shift_opened done [10:40:20]requested_item shift.open_date is exist - process it [10:40:20]req_shift_open_date [10:40:20]req_shift_open_date done [10:40:20]produce_requested_data done [10:40:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187275,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:40:20]process_action_free close_receipt [10:40:20]json_value_free [10:40:20]json_value_free done [10:40:20]process_json_proto returns [10:40:20]Send response to host [10:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187275,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:40:20]free response buf [10:40:20]execute_script done [10:40:20]execute_script returns [10:40:20]free content buf [10:40:20]Sock 10.Close socket [10:40:20]Sock 10.Thread stoped [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:26]accept exits with 9 [10:43:26]New connection [10:43:26]New thread 3066510692 created [10:43:26]Thread 3066654052 joined [10:43:26]Waiting for new connection... [10:43:26] Sock 9.Parse request [10:43:26]Sock 9.Check first char [10:43:26]Sock 9.First char is OK [10:43:26]request: POST /json_proto HTTP/1.0 [10:43:26]Method: POST [10:43:26]URL: /json_proto [10:43:26]Method is POST - this is cgi request [10:43:26]url: /json_proto [10:43:26]query_string will be loaded in cgi processing [10:43:26]execute_cgi json_proto POST (null) [10:43:26]execute_cgi path=json_proto method=POST [10:43:26]POST find Content-Length [10:43:26]Host: 172.17.46.131:8080 [10:43:26]Content-Length: 754 [10:43:26]Content-Type: application/json [10:43:26] [10:43:26]POST finish read [10:43:26]Found Content-Length = 754 [10:43:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107207", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:26]execute_script... [10:43: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)412429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107207", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:26]POST & json_proto [10:43:26]process_json_proto [10:43:26]json parsed OK: [10:43:26]protocol is kg_v1.0 [10:43:26]action value=close_receipt [10:43:26]process_action close_receipt [10:43:26]cmd_close_receipt [10:43:26]MH_GetDate [10:43:26]Write to MH i2c: F0 00 00 DE 28 F5 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: F0 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: F0 09 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: F0 09 00 DE 28 00 52 07 B7 67 7E 41 4F 65 E8 [10:43:26]GetLastDocTimeStamp 1740048020 [10:43:26]current date 1740048210 [10:43:26]FM_GetShiftState [10:43:26]SAM_PROTO_GetShiftState [10:43:26]wFMCommunicate request_size=4 [10:43:26]MH_SAM_APDU [10:43:26]CAPDU: 80 13 01 00 [10:43:26]Write to MH i2c: E2 08 00 DF 28 80 13 01 00 00 00 00 00 84 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:26]Read from MH i2c: E2 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 0E 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 0E 00 DF 28 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D6 [10:43:26]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:43:26]wFMCommunicate OK [10:43:26]SAM_PROTO_GetShiftState done [10:43:26]FM_GetShiftState done [10:43:26]opened in 1740011697 [10:43:26]opened+sec_in_day 1740098097 [10:43:26]quantity*price = 0 [10:43:26]sum+1 = 1 [10:43:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 77 20.02.2025 10:43 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107207 ФМ: 0000000000871826 ФД: 187276 ФПД: 186420189736115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104330&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187276&fm=186420189736115&tin=02508201610067®Number=0000000000091857&sum=0 [10:43:27]StoreToDocumentArchive [10:43:27]shift 648 fd 187276 [10:43:27]save to /storage/0648/doc_00187276 [10:43:27]save last doc name /storage/0648/doc_00187276 to /storage/kkm_last_doc_name [10:43:27]save OK [10:43:27]Clear old archive folders... [10:43:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:27]tlvbuf is 01F9E530 [10:43:27]SAM_PROTO_ClearQueue [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 09 00 00 [10:43:27]Write to MH i2c: E2 08 00 EC 28 80 09 00 00 00 00 00 00 86 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 03 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 03 00 EC 28 00 90 00 88 [10:43:27]RAPDU: 90 00 [10:43:27]wFMCommunicate OK [10:43:27]SAM_PROTO_ClearQueue done [10:43:27]KKMCreateOFDPacket [10:43:27]OFDProtocolAddRootSTLVToBuf [10:43:27]FM_MakeSignedData [10:43:27]FM_MakeSignedData [10:43:27]SAM_PROTO_SignData [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 0D 01 02 [10:43:27]Write to MH i2c: E2 08 00 ED 28 80 0D 01 02 00 00 00 00 8E [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 03 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [10:43:27]RAPDU: 90 00 [10:43:27]wFMCommunicate OK [10:43:27]wFMCommunicate request_size=255 [10:43:27]MH_SAM_APDU [10:43: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 52 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DB 02 00 35 04 06 00 A9 [10:43:27]Write to MH i2c: E2 02 01 EE 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 52 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DB 02 00 35 04 06 00 A9 00 00 31 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 03 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [10:43:27]RAPDU: 90 00 [10:43:27]wFMCommunicate OK [10:43:27]wFMCommunicate request_size=10 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 0D 02 02 05 8C 55 30 2C B3 [10:43:27]Write to MH i2c: E2 0D 00 EF 28 80 0D 02 02 05 00 8C 55 30 2C B3 00 00 8B [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 03 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [10:43:27]RAPDU: 90 00 [10:43:27]wFMCommunicate OK [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 0D 03 02 [10:43:27]Write to MH i2c: E2 08 00 F0 28 80 0D 03 02 00 00 00 00 93 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 0B 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 0B 00 F0 28 00 E9 D1 59 53 C5 62 01 8F 90 00 B1 [10:43:27]RAPDU: E9 D1 59 53 C5 62 01 8F 90 00 [10:43:27]wFMCommunicate OK [10:43:27]SAM_PROTO_SignData done [10:43:27]FM_MakeSignedData done [10:43:27]CreateOFDProtocolMessage [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 11 00 00 [10:43:27]Write to MH i2c: E2 08 00 F1 28 80 11 00 00 00 00 00 00 93 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 17 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 17 00 F1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [10:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:43:27]wFMCommunicate OK [10:43:27]CreateOFDProtocolMessage done [10:43:27]OFDSenderStorePacket 187276 [10:43:27]StoreOFDPacket docnum=187276 [10:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FE 1E 07 01 4E 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 52 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DB 02 00 35 04 06 00 A9 8C 55 30 2C B3 E9 D1 59 53 C5 62 01 8F [10:43:27]CheckFolder [10:43:27]dirname=/storage/ofd_packets [10:43:27]CheckFolder done [10:43:27]ProducePacketName [10:43:27]name=ofd_packets/00187276 [10:43:27]NVStorageSaveData ofd_packets/00187276 [10:43:27]File name is /storage/ofd_packets/00187276 [10:43:27]Write 301 bytes [10:43:27]NVStorageSaveData done [10:43:27]OFDSenderStorePacket done [10:43:27]KKMCreateOFDPacket done [10:43:27]NVStorageSaveData kkm_last_timestamp [10:43:27]File name is /storage/kkm_last_timestamp [10:43:27]Write 4 bytes [10:43:27]NVStorageSaveData done [10:43:27]ExternCall_PrintAddStr [10:43:27]wPrintStart [10:43:27]Write to MH i2c: 01 00 00 F2 28 1A [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: 01 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: 01 07 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: 01 07 00 F2 28 00 00 00 00 00 FF 0F 2F [10:43:27]RasterBufferAndPrint [10:43:27]line Счет N : (1)412429 [10:43:27]line ИНН: 02508201610067 [10:43:27]line Контрольно-Кассовый Чек [10:43:27]line ПРОДАЖА [10:43:27]line ТРК (МРК, ГНК) : 32 [10:43:27]line Товар: 2710124130 [10:43:27]line Аи-92-К-2 [10:43:27]line 10.000 * 0.00 [10:43:27]line = 0.00 [10:43:27]line НДС 12% НСП 1% [10:43:27]line > о реализуемом товаре [10:43:27]line ИТОГО: 0.00 [10:43:27]line НСП 1% : 0.00 [10:43:27]line НДС 12% : 0.00 [10:43:27]line Наличными: 0.00 [10:43:27]line Безнал.: 0.00 [10:43:27]line Место: АЗС № 92 "Партнер Нефть" [10:43:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:43:27]line СНО: Общий режим [10:43:27]line Чек 77 20.02.2025 10:43 [10:43:27]line Смена: 648 ФФД: 1.0 [10:43:27]line ЗНМ: 0300000118 [10:43:27]line РНМ: 0000000000091857 [10:43:27]line Версия ККМ: 001 [10:43:27]line Талоны: ТК ГПНА Online [10:43:27]line 30107207 [10:43:27]line ФМ: 0000000000871826 [10:43:27]line ФД: 187276 [10:43:27]line ФПД: 186420189736115 [10:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104330&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187276&fm=186420189736115&tin=02508201610067®Number=0000000000091857&sum=0 [10:43:27]written 0, free lines is 4095 [10:43:27]OFD Sender: Processing packet 187276 [packets to send 49, broken 48] [10:43:27]ProducePacketName [10:43:27]name=ofd_packets/00187276 [10:43:28]OFD Sender: To server: pG, [10:43:28]CommunicateWithHost lk.salyk.kg:30040 [10:43:28]ConnectInit lk.salyk.kg [10:43:28]Write to MH i2c: 01 00 00 1C 29 45 [10:43:28]Write i2c OK [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: 01 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: 01 07 00 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: 01 07 00 1C 29 00 00 00 00 00 F9 0C 51 [10:43:28]RasterBufferAndPrint [10:43:28]line [10:43:28]line [10:43:28]line [10:43:28]line [10:43:28]line [10:43:28]written 0, free lines is 3327 [10:43:28]MH_Cut [10:43:28]Write to MH i2c: D1 01 00 23 29 01 1E [10:43:28]Write i2c OK [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: D1 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: D1 01 00 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: D1 01 00 23 29 00 1D [10:43:28]Write to MH i2c: 01 00 00 24 29 4D [10:43:28]Write i2c OK [10:43:28]MH_I2C_Read... [10:43:28]Connected sock=10 [10:43:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FE 1E 07 01 4E 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 52 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DB 02 00 35 04 06 00 A9 8C 55 30 2C B3 E9 D1 59 53 C5 62 01 8F [10:43:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AD 77 47 00 80 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DB 02 00 F4 03 04 00 A3 AD B6 67 B6 04 01 00 00 94 A5 C9 44 DE 16 DA 75 [10:43:28]CommunicateWithHost err = 0 [10:43:28]CheckOFDResponse [10:43:28]1017 (14) - 77093643461234 [10:43:28]1041 (16) - 0000000000871826 [10:43:28]1040 (4) - 187276 [10:43:28]1012 (4) - 20.02.2025 04:20 [10:43:28]1206 (1) - 0 [10:43:28]OFD Sender: Remove packet 187276 [10:43:28]ProducePacketName [10:43:28]name=ofd_packets/00187276 [10:43:28]NVStorageDeleteData [10:43:28]*** Cut start [10:43:28]*** Partial cut [10:43:28]*** CUTSNS_PIN = 1 [10:43:29]*** CUTSNS_PIN = 0 [10:43:29]OFD Sender: No OFD packet to send [10:43:29]*** Brake cut motor [10:43:29]Read from MH i2c: 01 [10:43:29]MH_I2C_Read... [10:43:29]*** Stop cut motor [10:43:29]*** Cut end [10:43:29]Read from MH i2c: 01 07 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: 01 07 00 24 29 00 00 00 00 00 FF 0F 62 [10:43:29]process_action close_receipt done [10:43:29]requested_data is exist [10:43:29]produce_requested_data [10:43:29]requested_item fm.sn is exist - process it [10:43:29]wFMCommunicate request_size=4 [10:43:29]MH_SAM_APDU [10:43:29]CAPDU: 80 11 00 00 [10:43:29]Write to MH i2c: E2 08 00 25 29 80 11 00 00 00 00 00 00 C8 [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 17 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 17 00 25 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1B [10:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:43:29]wFMCommunicate OK [10:43:29]requested_item fd.num is exist - process it [10:43:29]SAM_PROTO_GetFieldsCounters [10:43:29]wFMCommunicate request_size=4 [10:43:29]MH_SAM_APDU [10:43:29]CAPDU: 80 13 00 00 [10:43:29]Write to MH i2c: E2 08 00 26 29 80 13 00 00 00 00 00 00 CB [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 62 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 62 00 26 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8C DB 02 00 0E 04 04 00 88 02 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 CB [10:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8C DB 02 00 0E 04 04 00 88 02 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:43:29]wFMCommunicate OK [10:43:29]SAM_PROTO_GetFieldsCounters done [10:43:29]requested_item shift.num is exist - process it [10:43:29]requested_item shift.opened is exist - process it [10:43:29]req_shift_opened [10:43:29]FM_GetShiftState [10:43:29]SAM_PROTO_GetShiftState [10:43:29]wFMCommunicate request_size=4 [10:43:29]MH_SAM_APDU [10:43:29]CAPDU: 80 13 01 00 [10:43:29]Write to MH i2c: E2 08 00 27 29 80 13 01 00 00 00 00 00 CD [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0E 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0E 00 27 29 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1F [10:43:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:43:29]wFMCommunicate OK [10:43:29]SAM_PROTO_GetShiftState done [10:43:29]FM_GetShiftState done [10:43:29]req_shift_opened done [10:43:29]requested_item shift.open_date is exist - process it [10:43:29]req_shift_open_date [10:43:29]req_shift_open_date done [10:43:29]produce_requested_data done [10:43:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187276,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:43:29]process_action_free close_receipt [10:43:29]json_value_free [10:43:29]json_value_free done [10:43:29]process_json_proto returns [10:43:29]Send response to host [10:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187276,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:43:29]free response buf [10:43:29]execute_script done [10:43:29]execute_script returns [10:43:29]free content buf [10:43:29]Sock 9.Close socket [10:43:29]Sock 9.Thread stoped [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:17]accept exits with 7 [10:44:17]New connection [10:44:17]New thread 3066654052 created [10:44:17]Thread 3066510692 joined [10:44:17]Waiting for new connection... [10:44:17] Sock 7.Parse request [10:44:17]Sock 7.Check first char [10:44:17]Sock 7.First char is OK [10:44:17]request: POST /json_proto HTTP/1.0 [10:44:17]Method: POST [10:44:17]URL: /json_proto [10:44:17]Method is POST - this is cgi request [10:44:17]url: /json_proto [10:44:17]query_string will be loaded in cgi processing [10:44:17]execute_cgi json_proto POST (null) [10:44:17]execute_cgi path=json_proto method=POST [10:44:17]POST find Content-Length [10:44:17]Host: 172.17.46.131:8080 [10:44:17]Content-Length: 677 [10:44:17]Content-Type: application/json [10:44:17] [10:44:17]POST finish read [10:44:17]Found Content-Length = 677 [10:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "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:44:17]execute_script... [10:44: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)412430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "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:44:17]POST & json_proto [10:44:17]process_json_proto [10:44:17]json parsed OK: [10:44:17]protocol is kg_v1.0 [10:44:17]action value=close_receipt [10:44:17]process_action close_receipt [10:44:17]cmd_close_receipt [10:44:17]MH_GetDate [10:44:17]Write to MH i2c: F0 00 00 28 29 40 [10:44:17]Write i2c OK [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: F0 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: F0 09 00 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: F0 09 00 28 29 00 85 07 B7 67 7E 41 4F 65 66 [10:44:17]GetLastDocTimeStamp 1740048210 [10:44:17]current date 1740048261 [10:44:17]FM_GetShiftState [10:44:17]SAM_PROTO_GetShiftState [10:44:17]wFMCommunicate request_size=4 [10:44:17]MH_SAM_APDU [10:44:17]CAPDU: 80 13 01 00 [10:44:17]Write to MH i2c: E2 08 00 29 29 80 13 01 00 00 00 00 00 CF [10:44:17]Write i2c OK [10:44:17]MH_I2C_Read... [10:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:17]Read from MH i2c: E2 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: E2 0E 00 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: E2 0E 00 29 29 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 21 [10:44:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:44:17]wFMCommunicate OK [10:44:17]SAM_PROTO_GetShiftState done [10:44:17]FM_GetShiftState done [10:44:17]opened in 1740011697 [10:44:17]opened+sec_in_day 1740098097 [10:44:17]quantity*price = 60027 [10:44:17]sum+1 = 60028 [10:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 78 20.02.2025 10:44 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187277 ФПД: 237832985258906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104421&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187277&fm=237832985258906&tin=02508201610067®Number=0000000000091857&sum=60000 [10:44:18]StoreToDocumentArchive [10:44:18]shift 648 fd 187277 [10:44:18]save to /storage/0648/doc_00187277 [10:44:18]save last doc name /storage/0648/doc_00187277 to /storage/kkm_last_doc_name [10:44:18]save OK [10:44:18]Clear old archive folders... [10:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:18]tlvbuf is 01F5E280 [10:44:18]SAM_PROTO_ClearQueue [10:44:18]wFMCommunicate request_size=4 [10:44:18]MH_SAM_APDU [10:44:18]CAPDU: 80 09 00 00 [10:44:18]Write to MH i2c: E2 08 00 36 29 80 09 00 00 00 00 00 00 D1 [10:44:18]Write i2c OK [10:44:18]MH_I2C_Read... [10:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:18]Read from MH i2c: E2 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 03 00 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 03 00 36 29 00 90 00 D3 [10:44:18]RAPDU: 90 00 [10:44:18]wFMCommunicate OK [10:44:18]SAM_PROTO_ClearQueue done [10:44:18]KKMCreateOFDPacket [10:44:18]OFDProtocolAddRootSTLVToBuf [10:44:18]FM_MakeSignedData [10:44:18]FM_MakeSignedData [10:44:18]SAM_PROTO_SignData [10:44:18]wFMCommunicate request_size=4 [10:44:18]MH_SAM_APDU [10:44:18]CAPDU: 80 0D 01 02 [10:44:18]Write to MH i2c: E2 08 00 37 29 80 0D 01 02 00 00 00 00 D9 [10:44:18]Write i2c OK [10:44:18]MH_I2C_Read... [10:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:18]Read from MH i2c: E2 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 03 00 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [10:44:18]RAPDU: 90 00 [10:44:18]wFMCommunicate OK [10:44:18]wFMCommunicate request_size=255 [10:44:18]MH_SAM_APDU [10:44: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 85 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D DB 02 00 35 04 06 00 D8 [10:44:18]Write to MH i2c: E2 02 01 38 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 85 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D DB 02 00 35 04 06 00 D8 00 00 8C [10:44:18]Write i2c OK [10:44:18]MH_I2C_Read... [10:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:18]Read from MH i2c: E2 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 03 00 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [10:44:18]RAPDU: 90 00 [10:44:18]wFMCommunicate OK [10:44:18]wFMCommunicate request_size=10 [10:44:18]MH_SAM_APDU [10:44:18]CAPDU: 80 0D 02 02 05 4E CE 9A 2B 9A [10:44:18]Write to MH i2c: E2 0D 00 39 29 80 0D 02 02 05 00 4E CE 9A 2B 9A 00 00 61 [10:44:18]Write i2c OK [10:44:18]MH_I2C_Read... [10:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:18]Read from MH i2c: E2 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 03 00 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 03 00 39 29 00 90 00 D6 [10:44:18]RAPDU: 90 00 [10:44:18]wFMCommunicate OK [10:44:18]wFMCommunicate request_size=4 [10:44:18]MH_SAM_APDU [10:44:18]CAPDU: 80 0D 03 02 [10:44:18]Write to MH i2c: E2 08 00 3A 29 80 0D 03 02 00 00 00 00 DE [10:44:18]Write i2c OK [10:44:18]MH_I2C_Read... [10:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:18]Read from MH i2c: E2 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 0B 00 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 0B 00 3A 29 00 36 17 69 DE EC D1 6A 90 90 00 2A [10:44:18]RAPDU: 36 17 69 DE EC D1 6A 90 90 00 [10:44:18]wFMCommunicate OK [10:44:18]SAM_PROTO_SignData done [10:44:18]FM_MakeSignedData done [10:44:18]CreateOFDProtocolMessage [10:44:18]wFMCommunicate request_size=4 [10:44:18]MH_SAM_APDU [10:44:18]CAPDU: 80 11 00 00 [10:44:18]Write to MH i2c: E2 08 00 3B 29 80 11 00 00 00 00 00 00 DE [10:44:18]Write i2c OK [10:44:18]MH_I2C_Read... [10:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:18]Read from MH i2c: E2 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 17 00 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: E2 17 00 3B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 31 [10:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:44:18]wFMCommunicate OK [10:44:18]CreateOFDProtocolMessage done [10:44:18]OFDSenderStorePacket 187277 [10:44:18]StoreOFDPacket docnum=187277 [10:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6C B5 07 01 20 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 85 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D DB 02 00 35 04 06 00 D8 4E CE 9A 2B 9A 36 17 69 DE EC D1 6A 90 [10:44:18]CheckFolder [10:44:18]dirname=/storage/ofd_packets [10:44:18]CheckFolder done [10:44:18]ProducePacketName [10:44:18]name=ofd_packets/00187277 [10:44:18]NVStorageSaveData ofd_packets/00187277 [10:44:18]File name is /storage/ofd_packets/00187277 [10:44:18]Write 301 bytes [10:44:18]NVStorageSaveData done [10:44:18]OFDSenderStorePacket done [10:44:18]KKMCreateOFDPacket done [10:44:18]NVStorageSaveData kkm_last_timestamp [10:44:18]File name is /storage/kkm_last_timestamp [10:44:18]Write 4 bytes [10:44:18]NVStorageSaveData done [10:44:18]ExternCall_PrintAddStr [10:44:18]wPrintStart [10:44:18]Write to MH i2c: 01 00 00 3C 29 65 [10:44:18]Write i2c OK [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: 01 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: 01 07 00 [10:44:18]MH_I2C_Read... [10:44:18]Read from MH i2c: 01 07 00 3C 29 00 00 00 00 00 FF 0F 7A [10:44:18]RasterBufferAndPrint [10:44:18]line Счет N : (1)412430 [10:44:18]line ИНН: 02508201610067 [10:44:18]line Контрольно-Кассовый Чек [10:44:18]line ПРОДАЖА [10:44:18]line ТРК (МРК, ГНК) : 12 [10:44:18]line Товар: 2710124130 [10:44:18]line Аи-92-К-2 [10:44:18]line 9.350 * 64.20 [10:44:18]line = 600.27 [10:44:18]line НДС 12% НСП 1% [10:44:18]line > о реализуемом товаре [10:44:18]line ОКРУГЛЕНИЕ: -0.27 [10:44:18]line ИТОГО: 600.00 [10:44:18]line Внесено: 600.00 [10:44:18]line СДАЧА: 0.00 [10:44:18]line НСП 1% : 5.31 [10:44:18]line НДС 12% : 63.74 [10:44:18]line Наличными: 600.00 [10:44:18]line Безнал.: 0.00 [10:44:18]line Место: АЗС № 92 "Партнер Нефть" [10:44:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:44:18]line СНО: Общий режим [10:44:18]line Чек 78 20.02.2025 10:44 [10:44:18]line Смена: 648 ФФД: 1.0 [10:44:18]line ЗНМ: 0300000118 [10:44:18]line РНМ: 0000000000091857 [10:44:18]line Версия ККМ: 001 [10:44:18]line ФМ: 0000000000871826 [10:44:18]line ФД: 187277 [10:44:18]line ФПД: 237832985258906 [10:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104421&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187277&fm=237832985258906&tin=02508201610067®Number=0000000000091857&sum=60000 [10:44:19]OFD Sender: Processing packet 187277 [packets to send 49, broken 48] [10:44:19]ProducePacketName [10:44:19]name=ofd_packets/00187277 [10:44:19]OFD Sender: To server: pG, [10:44:19]CommunicateWithHost lk.salyk.kg:30040 [10:44:19]ConnectInit lk.salyk.kg [10:44:19]written 0, free lines is 4095 [10:44:19]Connected sock=10 [10:44:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6C B5 07 01 20 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 85 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D DB 02 00 35 04 06 00 D8 4E CE 9A 2B 9A 36 17 69 DE EC D1 6A 90 [10:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 34 30 47 00 4E 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D DB 02 00 F4 03 04 00 D6 AD B6 67 B6 04 01 00 00 CE E5 CA 25 C4 ED 0C DF [10:44:19]CommunicateWithHost err = 0 [10:44:19]CheckOFDResponse [10:44:19]1017 (14) - 77093643461234 [10:44:19]1041 (16) - 0000000000871826 [10:44:19]1040 (4) - 187277 [10:44:19]1012 (4) - 20.02.2025 04:21 [10:44:19]1206 (1) - 0 [10:44:19]OFD Sender: Remove packet 187277 [10:44:19]ProducePacketName [10:44:19]name=ofd_packets/00187277 [10:44:19]NVStorageDeleteData [10:44:19]Write to MH i2c: 01 00 00 67 29 90 [10:44:19]Write i2c OK [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: 01 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: 01 07 00 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: 01 07 00 67 29 00 00 00 00 00 05 0D A9 [10:44:19]RasterBufferAndPrint [10:44:19]line [10:44:19]line [10:44:19]line [10:44:19]line [10:44:19]line [10:44:19]written 0, free lines is 3339 [10:44:19]MH_Cut [10:44:19]Write to MH i2c: D1 01 00 6E 29 01 69 [10:44:19]Write i2c OK [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: D1 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: D1 01 00 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: D1 01 00 6E 29 00 68 [10:44:19]Write to MH i2c: 01 00 00 6F 29 98 [10:44:19]Write i2c OK [10:44:19]MH_I2C_Read... [10:44:20]OFD Sender: No OFD packet to send [10:44:20]*** Cut start [10:44:20]*** Partial cut [10:44:20]*** CUTSNS_PIN = 1 [10:44:20]*** CUTSNS_PIN = 0 [10:44:20]*** Brake cut motor [10:44:21]Read from MH i2c: 01 [10:44:21]MH_I2C_Read... [10:44:21]*** Stop cut motor [10:44:21]*** Cut end [10:44:21]Read from MH i2c: 01 07 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 07 00 6F 29 00 00 00 00 00 FF 0F AD [10:44:21]process_action close_receipt done [10:44:21]requested_data is exist [10:44:21]produce_requested_data [10:44:21]requested_item fm.sn is exist - process it [10:44:21]wFMCommunicate request_size=4 [10:44:21]MH_SAM_APDU [10:44:21]CAPDU: 80 11 00 00 [10:44:21]Write to MH i2c: E2 08 00 70 29 80 11 00 00 00 00 00 00 13 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 17 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 17 00 70 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [10:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:44:21]wFMCommunicate OK [10:44:21]requested_item fd.num is exist - process it [10:44:21]SAM_PROTO_GetFieldsCounters [10:44:21]wFMCommunicate request_size=4 [10:44:21]MH_SAM_APDU [10:44:21]CAPDU: 80 13 00 00 [10:44:21]Write to MH i2c: E2 08 00 71 29 80 13 00 00 00 00 00 00 16 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 62 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 62 00 71 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8D DB 02 00 0E 04 04 00 88 02 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 1A [10:44:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8D DB 02 00 0E 04 04 00 88 02 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:44:21]wFMCommunicate OK [10:44:21]SAM_PROTO_GetFieldsCounters done [10:44:21]requested_item shift.num is exist - process it [10:44:21]requested_item shift.opened is exist - process it [10:44:21]req_shift_opened [10:44:21]FM_GetShiftState [10:44:21]SAM_PROTO_GetShiftState [10:44:21]wFMCommunicate request_size=4 [10:44:21]MH_SAM_APDU [10:44:21]CAPDU: 80 13 01 00 [10:44:21]Write to MH i2c: E2 08 00 72 29 80 13 01 00 00 00 00 00 18 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:21]Read from MH i2c: E2 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 0E 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: E2 0E 00 72 29 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6A [10:44:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:44:21]wFMCommunicate OK [10:44:21]SAM_PROTO_GetShiftState done [10:44:21]FM_GetShiftState done [10:44:21]req_shift_opened done [10:44:21]requested_item shift.open_date is exist - process it [10:44:21]req_shift_open_date [10:44:21]req_shift_open_date done [10:44:21]produce_requested_data done [10:44:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187277,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:44:21]process_action_free close_receipt [10:44:21]json_value_free [10:44:21]json_value_free done [10:44:21]process_json_proto returns [10:44:21]Send response to host [10:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187277,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:44:21]free response buf [10:44:21]execute_script done [10:44:21]execute_script returns [10:44:21]free content buf [10:44:21]Sock 7.Close socket [10:44:21]Sock 7.Thread stoped [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:02]accept exits with 9 [10:46:02]New connection [10:46:02]New thread 3066510692 created [10:46:02]Thread 3066654052 joined [10:46:02]Waiting for new connection... [10:46:02] Sock 9.Parse request [10:46:02]Sock 9.Check first char [10:46:02]Sock 9.First char is OK [10:46:02]request: POST /json_proto HTTP/1.0 [10:46:02]Method: POST [10:46:02]URL: /json_proto [10:46:02]Method is POST - this is cgi request [10:46:02]url: /json_proto [10:46:02]query_string will be loaded in cgi processing [10:46:02]execute_cgi json_proto POST (null) [10:46:02]execute_cgi path=json_proto method=POST [10:46:02]POST find Content-Length [10:46:02]Host: 172.17.46.131:8080 [10:46:02]Content-Length: 678 [10:46:02]Content-Type: application/json [10:46:02] [10:46:02]POST finish read [10:46:02]Found Content-Length = 678 [10:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:02]execute_script... [10: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)412431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:02]POST & json_proto [10:46:02]process_json_proto [10:46:02]json parsed OK: [10:46:02]protocol is kg_v1.0 [10:46:02]action value=close_receipt [10:46:02]process_action close_receipt [10:46:02]cmd_close_receipt [10:46:02]MH_GetDate [10:46:02]Write to MH i2c: F0 00 00 73 29 8B [10:46:02]Write i2c OK [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: F0 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: F0 09 00 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: F0 09 00 73 29 00 EE 07 B7 67 7E 41 4F 65 1A [10:46:02]GetLastDocTimeStamp 1740048261 [10:46:02]current date 1740048366 [10:46:02]FM_GetShiftState [10:46:02]SAM_PROTO_GetShiftState [10:46:02]wFMCommunicate request_size=4 [10:46:02]MH_SAM_APDU [10:46:02]CAPDU: 80 13 01 00 [10:46:02]Write to MH i2c: E2 08 00 74 29 80 13 01 00 00 00 00 00 1A [10:46:02]Write i2c OK [10:46:02]MH_I2C_Read... [10:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:02]Read from MH i2c: E2 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 0E 00 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 0E 00 74 29 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6C [10:46:02]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:46:02]wFMCommunicate OK [10:46:02]SAM_PROTO_GetShiftState done [10:46:02]FM_GetShiftState done [10:46:02]opened in 1740011697 [10:46:02]opened+sec_in_day 1740098097 [10:46:02]quantity*price = 100042 [10:46:02]sum+1 = 100044 [10:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 79 20.02.2025 10:46 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187278 ФПД: 142523668983694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104606&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187278&fm=142523668983694&tin=02508201610067®Number=0000000000091857&sum=100000 [10:46:03]StoreToDocumentArchive [10:46:03]shift 648 fd 187278 [10:46:03]save to /storage/0648/doc_00187278 [10:46:03]save last doc name /storage/0648/doc_00187278 to /storage/kkm_last_doc_name [10:46:03]save OK [10:46:03]Clear old archive folders... [10:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:46:03]tlvbuf is 01F48CB0 [10:46:03]SAM_PROTO_ClearQueue [10:46:03]wFMCommunicate request_size=4 [10:46:03]MH_SAM_APDU [10:46:03]CAPDU: 80 09 00 00 [10:46:03]Write to MH i2c: E2 08 00 81 29 80 09 00 00 00 00 00 00 1C [10:46:03]Write i2c OK [10:46:03]MH_I2C_Read... [10:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:03]Read from MH i2c: E2 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: E2 03 00 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: E2 03 00 81 29 00 90 00 1E [10:46:03]RAPDU: 90 00 [10:46:03]wFMCommunicate OK [10:46:03]SAM_PROTO_ClearQueue done [10:46:03]KKMCreateOFDPacket [10:46:03]OFDProtocolAddRootSTLVToBuf [10:46:03]FM_MakeSignedData [10:46:03]FM_MakeSignedData [10:46:03]SAM_PROTO_SignData [10:46:03]wFMCommunicate request_size=4 [10:46:03]MH_SAM_APDU [10:46:03]CAPDU: 80 0D 01 02 [10:46:03]Write to MH i2c: E2 08 00 82 29 80 0D 01 02 00 00 00 00 24 [10:46:03]Write i2c OK [10:46:03]MH_I2C_Read... [10:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:03]Read from MH i2c: E2 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: E2 03 00 [10:46:03]MH_I2C_Read... [10:46:03]Read from MH i2c: E2 03 00 82 29 00 90 00 1F [10:46:03]RAPDU: 90 00 [10:46:03]wFMCommunicate OK [10:46:03]wFMCommunicate request_size=255 [10:46:03]MH_SAM_APDU [10:46:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 EE 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DB 02 00 35 04 06 00 81 9F E0 A9 [10:46:03]Write to MH i2c: E2 02 01 83 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 EE 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DB 02 00 35 04 06 00 81 9F E0 A9 00 00 C8 [10:46:03]Write i2c OK [10:46:03]MH_I2C_Read... [10:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:04]Read from MH i2c: E2 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 03 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [10:46:04]RAPDU: 90 00 [10:46:04]wFMCommunicate OK [10:46:04]wFMCommunicate request_size=7 [10:46:04]MH_SAM_APDU [10:46:04]CAPDU: 80 0D 02 02 02 6F 8E [10:46:04]Write to MH i2c: E2 0A 00 84 29 80 0D 02 02 02 00 6F 8E 00 00 28 [10:46:04]Write i2c OK [10:46:04]MH_I2C_Read... [10:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:04]Read from MH i2c: E2 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 03 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [10:46:04]RAPDU: 90 00 [10:46:04]wFMCommunicate OK [10:46:04]wFMCommunicate request_size=4 [10:46:04]MH_SAM_APDU [10:46:04]CAPDU: 80 0D 03 02 [10:46:04]Write to MH i2c: E2 08 00 85 29 80 0D 03 02 00 00 00 00 29 [10:46:04]Write i2c OK [10:46:04]MH_I2C_Read... [10:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:04]Read from MH i2c: E2 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 0B 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 0B 00 85 29 00 1D 58 A4 8A 7C 40 33 FF 90 00 BB [10:46:04]RAPDU: 1D 58 A4 8A 7C 40 33 FF 90 00 [10:46:04]wFMCommunicate OK [10:46:04]SAM_PROTO_SignData done [10:46:04]FM_MakeSignedData done [10:46:04]CreateOFDProtocolMessage [10:46:04]wFMCommunicate request_size=4 [10:46:04]MH_SAM_APDU [10:46:04]CAPDU: 80 11 00 00 [10:46:04]Write to MH i2c: E2 08 00 86 29 80 11 00 00 00 00 00 00 29 [10:46:04]Write i2c OK [10:46:04]MH_I2C_Read... [10:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:04]Read from MH i2c: E2 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 17 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: E2 17 00 86 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [10:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:46:04]wFMCommunicate OK [10:46:04]CreateOFDProtocolMessage done [10:46:04]OFDSenderStorePacket 187278 [10:46:04]StoreOFDPacket docnum=187278 [10:46:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AE 27 04 01 C6 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 EE 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DB 02 00 35 04 06 00 81 9F E0 A9 6F 8E 1D 58 A4 8A 7C 40 33 FF [10:46:04]CheckFolder [10:46:04]dirname=/storage/ofd_packets [10:46:04]CheckFolder done [10:46:04]ProducePacketName [10:46:04]name=ofd_packets/00187278 [10:46:04]NVStorageSaveData ofd_packets/00187278 [10:46:04]File name is /storage/ofd_packets/00187278 [10:46:04]Write 298 bytes [10:46:04]NVStorageSaveData done [10:46:04]OFDSenderStorePacket done [10:46:04]KKMCreateOFDPacket done [10:46:04]NVStorageSaveData kkm_last_timestamp [10:46:04]File name is /storage/kkm_last_timestamp [10:46:04]Write 4 bytes [10:46:04]NVStorageSaveData done [10:46:04]ExternCall_PrintAddStr [10:46:04]wPrintStart [10:46:04]Write to MH i2c: 01 00 00 87 29 B0 [10:46:04]Write i2c OK [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: 01 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: 01 07 00 [10:46:04]MH_I2C_Read... [10:46:04]Read from MH i2c: 01 07 00 87 29 00 00 00 00 00 FF 0F C5 [10:46:04]RasterBufferAndPrint [10:46:04]line Счет N : (1)412431 [10:46:04]line ИНН: 02508201610067 [10:46:04]line Контрольно-Кассовый Чек [10:46:04]line ПРОДАЖА [10:46:04]line ТРК (МРК, ГНК) : 5 [10:46:04]line Товар: 2710194210 [10:46:04]line ДТ-К-5 [10:46:04]line 13.780 * 72.60 [10:46:04]line = 1000.43 [10:46:04]line НДС 12% НСП 1% [10:46:04]line > о реализуемом товаре [10:46:04]line ОКРУГЛЕНИЕ: -0.43 [10:46:04]line ИТОГО: 1000.00 [10:46:04]line Внесено: 1000.00 [10:46:04]line СДАЧА: 0.00 [10:46:04]line НСП 1% : 8.85 [10:46:04]line НДС 12% : 106.24 [10:46:04]line Наличными: 1000.00 [10:46:04]line Безнал.: 0.00 [10:46:04]line Место: АЗС № 92 "Партнер Нефть" [10:46:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:46:04]line СНО: Общий режим [10:46:04]line Чек 79 20.02.2025 10:46 [10:46:04]line Смена: 648 ФФД: 1.0 [10:46:04]line ЗНМ: 0300000118 [10:46:04]line РНМ: 0000000000091857 [10:46:04]line Версия ККМ: 001 [10:46:04]line ФМ: 0000000000871826 [10:46:04]line ФД: 187278 [10:46:04]line ФПД: 142523668983694 [10:46:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T104606&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187278&fm=142523668983694&tin=02508201610067®Number=0000000000091857&sum=100000 [10:46:04]written 0, free lines is 4095 [10:46:04]OFD Sender: Processing packet 187278 [packets to send 49, broken 48] [10:46:04]ProducePacketName [10:46:04]name=ofd_packets/00187278 [10:46:04]OFD Sender: To server: pG, [10:46:04]CommunicateWithHost lk.salyk.kg:30040 [10:46:04]ConnectInit lk.salyk.kg [10:46:04]Connected sock=7 [10: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 31 38 32 36 0C 01 00 00 AE 27 04 01 C6 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 EE 07 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DB 02 00 35 04 06 00 81 9F E0 A9 6F 8E 1D 58 A4 8A 7C 40 33 FF [10:46:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 95 92 47 00 07 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 31 38 32 36 10 04 04 00 8E DB 02 00 F4 03 04 00 3F AE B6 67 B6 04 01 00 00 E8 7B DF 0C 4A 53 C8 97 [10:46:05]CommunicateWithHost err = 0 [10:46:05]CheckOFDResponse [10:46:05]1017 (14) - 77093643461234 [10:46:05]1041 (16) - 0000000000871826 [10:46:05]1040 (4) - 187278 [10:46:05]1012 (4) - 20.02.2025 04:23 [10:46:05]1206 (1) - 0 [10:46:05]OFD Sender: Remove packet 187278 [10:46:05]ProducePacketName [10:46:05]name=ofd_packets/00187278 [10:46:05]NVStorageDeleteData [10:46:05]Write to MH i2c: 01 00 00 B2 29 DB [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: 01 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: 01 07 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: 01 07 00 B2 29 00 00 00 00 00 FA 0C E8 [10:46:05]RasterBufferAndPrint [10:46:05]line [10:46:05]line [10:46:05]line [10:46:05]line [10:46:05]line [10:46:05]written 0, free lines is 3328 [10:46:05]MH_Cut [10:46:05]Write to MH i2c: D1 01 00 B9 29 01 B4 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: D1 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: D1 01 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: D1 01 00 B9 29 00 B3 [10:46:05]Write to MH i2c: 01 00 00 BA 29 E3 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]OFD Sender: No OFD packet to send [10:46:05]*** Cut start [10:46:05]*** Partial cut [10:46:05]*** CUTSNS_PIN = 1 [10:46:05]*** CUTSNS_PIN = 0 [10:46:06]*** Brake cut motor [10:46:06]Read from MH i2c: 01 [10:46:06]MH_I2C_Read... [10:46:06]*** Stop cut motor [10:46:06]*** Cut end [10:46:06]Read from MH i2c: 01 07 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: 01 07 00 BA 29 00 00 00 00 00 FF 0F F8 [10:46:06]process_action close_receipt done [10:46:06]requested_data is exist [10:46:06]produce_requested_data [10:46:06]requested_item fm.sn is exist - process it [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 11 00 00 [10:46:06]Write to MH i2c: E2 08 00 BB 29 80 11 00 00 00 00 00 00 5E [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 17 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 17 00 BB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [10:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:46:06]wFMCommunicate OK [10:46:06]requested_item fd.num is exist - process it [10:46:06]SAM_PROTO_GetFieldsCounters [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 13 00 00 [10:46:06]Write to MH i2c: E2 08 00 BC 29 80 13 00 00 00 00 00 00 61 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 62 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 62 00 BC 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8E DB 02 00 0E 04 04 00 88 02 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 69 [10: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8E DB 02 00 0E 04 04 00 88 02 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:46:06]wFMCommunicate OK [10:46:06]SAM_PROTO_GetFieldsCounters done [10:46:06]requested_item shift.num is exist - process it [10:46:06]requested_item shift.opened is exist - process it [10:46:06]req_shift_opened [10:46:06]FM_GetShiftState [10:46:06]SAM_PROTO_GetShiftState [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 13 01 00 [10:46:06]Write to MH i2c: E2 08 00 BD 29 80 13 01 00 00 00 00 00 63 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 0E 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 0E 00 BD 29 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B5 [10:46:06]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:46:06]wFMCommunicate OK [10:46:06]SAM_PROTO_GetShiftState done [10:46:06]FM_GetShiftState done [10:46:06]req_shift_opened done [10:46:06]requested_item shift.open_date is exist - process it [10:46:06]req_shift_open_date [10:46:06]req_shift_open_date done [10:46:06]produce_requested_data done [10:46:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187278,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:46:06]process_action_free close_receipt [10:46:06]json_value_free [10:46:06]json_value_free done [10:46:06]process_json_proto returns [10:46:06]Send response to host [10:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187278,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:46:06]free response buf [10:46:06]execute_script done [10:46:06]execute_script returns [10:46:06]free content buf [10:46:06]Sock 9.Close socket [10:46:06]Sock 9.Thread stoped [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:20]accept exits with 10 [10:50:20]New connection [10:50:20]New thread 3066654052 created [10:50:20]Thread 3066510692 joined [10:50:20]Waiting for new connection... [10:50:20] Sock 10.Parse request [10:50:20]Sock 10.Check first char [10:50:20]Sock 10.First char is OK [10:50:20]request: POST /json_proto HTTP/1.0 [10:50:20]Method: POST [10:50:20]URL: /json_proto [10:50:20]Method is POST - this is cgi request [10:50:20]url: /json_proto [10:50:20]query_string will be loaded in cgi processing [10:50:20]execute_cgi json_proto POST (null) [10:50:20]execute_cgi path=json_proto method=POST [10:50:20]POST find Content-Length [10:50:20]Host: 172.17.46.131:8080 [10:50:20]Content-Length: 677 [10:50:20]Content-Type: application/json [10:50:20] [10:50:20]POST finish read [10:50:20]Found Content-Length = 677 [10:50:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.740, "sum" : 240.11, "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" ] } } [10:50:20]execute_script... [10:50: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)412432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.740, "sum" : 240.11, "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" ] } } [10:50:20]POST & json_proto [10:50:20]process_json_proto [10:50:20]json parsed OK: [10:50:20]protocol is kg_v1.0 [10:50:20]action value=close_receipt [10:50:20]process_action close_receipt [10:50:20]cmd_close_receipt [10:50:20]MH_GetDate [10:50:20]Write to MH i2c: F0 00 00 BE 29 D6 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: F0 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: F0 09 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: F0 09 00 BE 29 00 F1 08 B7 67 7E 41 4F 65 69 [10:50:20]GetLastDocTimeStamp 1740048366 [10:50:20]current date 1740048625 [10:50:20]FM_GetShiftState [10:50:20]SAM_PROTO_GetShiftState [10:50:20]wFMCommunicate request_size=4 [10:50:20]MH_SAM_APDU [10:50:20]CAPDU: 80 13 01 00 [10:50:20]Write to MH i2c: E2 08 00 BF 29 80 13 01 00 00 00 00 00 65 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:20]Read from MH i2c: E2 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 0E 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 0E 00 BF 29 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B7 [10:50:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:50:20]wFMCommunicate OK [10:50:20]SAM_PROTO_GetShiftState done [10:50:20]FM_GetShiftState done [10:50:20]opened in 1740011697 [10:50:20]opened+sec_in_day 1740098097 [10:50:20]quantity*price = 24010 [10:50:20]sum+1 = 24012 [10:50:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 80 20.02.2025 10:50 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187279 ФПД: 75088972203398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T105025&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187279&fm=75088972203398&tin=02508201610067®Number=0000000000091857&sum=24000 [10:50:21]StoreToDocumentArchive [10:50:21]shift 648 fd 187279 [10:50:21]save to /storage/0648/doc_00187279 [10:50:21]save last doc name /storage/0648/doc_00187279 to /storage/kkm_last_doc_name [10:50:21]save OK [10:50:21]Clear old archive folders... [10:50:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:21]tlvbuf is 01F605F0 [10:50:21]SAM_PROTO_ClearQueue [10:50:21]wFMCommunicate request_size=4 [10:50:21]MH_SAM_APDU [10:50:21]CAPDU: 80 09 00 00 [10:50:21]Write to MH i2c: E2 08 00 CC 29 80 09 00 00 00 00 00 00 67 [10:50:21]Write i2c OK [10:50:21]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 03 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [10:50:22]RAPDU: 90 00 [10:50:22]wFMCommunicate OK [10:50:22]SAM_PROTO_ClearQueue done [10:50:22]KKMCreateOFDPacket [10:50:22]OFDProtocolAddRootSTLVToBuf [10:50:22]FM_MakeSignedData [10:50:22]FM_MakeSignedData [10:50:22]SAM_PROTO_SignData [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 0D 01 02 [10:50:22]Write to MH i2c: E2 08 00 CD 29 80 0D 01 02 00 00 00 00 6F [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 03 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [10:50:22]RAPDU: 90 00 [10:50:22]wFMCommunicate OK [10:50:22]wFMCommunicate request_size=255 [10:50:22]MH_SAM_APDU [10:50: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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB 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 50 00 00 00 F4 03 04 00 F1 08 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DB 02 00 35 04 06 00 44 [10:50:22]Write to MH i2c: E2 02 01 CE 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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB 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 50 00 00 00 F4 03 04 00 F1 08 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DB 02 00 35 04 06 00 44 00 00 28 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 03 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [10:50:22]RAPDU: 90 00 [10:50:22]wFMCommunicate OK [10:50:22]wFMCommunicate request_size=10 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 0D 02 02 05 4B 03 83 C5 86 [10:50:22]Write to MH i2c: E2 0D 00 CF 29 80 0D 02 02 05 00 4B 03 83 C5 86 00 00 98 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 03 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [10:50:22]RAPDU: 90 00 [10:50:22]wFMCommunicate OK [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 0D 03 02 [10:50:22]Write to MH i2c: E2 08 00 D0 29 80 0D 03 02 00 00 00 00 74 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0B 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0B 00 D0 29 00 C1 A1 F4 CC 6F 53 AD 1C 90 00 22 [10:50:22]RAPDU: C1 A1 F4 CC 6F 53 AD 1C 90 00 [10:50:22]wFMCommunicate OK [10:50:22]SAM_PROTO_SignData done [10:50:22]FM_MakeSignedData done [10:50:22]CreateOFDProtocolMessage [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 11 00 00 [10:50:22]Write to MH i2c: E2 08 00 D1 29 80 11 00 00 00 00 00 00 74 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 17 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 17 00 D1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [10:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:50:22]wFMCommunicate OK [10:50:22]CreateOFDProtocolMessage done [10:50:22]OFDSenderStorePacket 187279 [10:50:22]StoreOFDPacket docnum=187279 [10:50:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5E 47 07 01 F9 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB 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 50 00 00 00 F4 03 04 00 F1 08 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DB 02 00 35 04 06 00 44 4B 03 83 C5 86 C1 A1 F4 CC 6F 53 AD 1C [10:50:22]CheckFolder [10:50:22]dirname=/storage/ofd_packets [10:50:22]CheckFolder done [10:50:22]ProducePacketName [10:50:22]name=ofd_packets/00187279 [10:50:22]NVStorageSaveData ofd_packets/00187279 [10:50:22]File name is /storage/ofd_packets/00187279 [10:50:22]Write 301 bytes [10:50:22]NVStorageSaveData done [10:50:22]OFDSenderStorePacket done [10:50:22]KKMCreateOFDPacket done [10:50:22]NVStorageSaveData kkm_last_timestamp [10:50:22]File name is /storage/kkm_last_timestamp [10:50:22]Write 4 bytes [10:50:22]NVStorageSaveData done [10:50:22]ExternCall_PrintAddStr [10:50:22]wPrintStart [10:50:22]Write to MH i2c: 01 00 00 D2 29 FB [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: 01 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: 01 07 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: 01 07 00 D2 29 00 00 00 00 00 FF 0F 10 [10:50:22]RasterBufferAndPrint [10:50:22]line Счет N : (1)412432 [10:50:22]line ИНН: 02508201610067 [10:50:22]line Контрольно-Кассовый Чек [10:50:22]line ПРОДАЖА [10:50:22]line ТРК (МРК, ГНК) : 22 [10:50:22]line Товар: 2710124130 [10:50:22]line Аи-92-К-2 [10:50:22]line 3.740 * 64.20 [10:50:22]line = 240.11 [10:50:22]line НДС 12% НСП 1% [10:50:22]line > о реализуемом товаре [10:50:22]line ОКРУГЛЕНИЕ: -0.11 [10:50:22]line ИТОГО: 240.00 [10:50:22]line Внесено: 240.00 [10:50:22]line СДАЧА: 0.00 [10:50:22]line НСП 1% : 2.12 [10:50:22]line НДС 12% : 25.50 [10:50:22]line Наличными: 240.00 [10:50:22]line Безнал.: 0.00 [10:50:22]line Место: АЗС № 92 "Партнер Нефть" [10:50:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:50:22]line СНО: Общий режим [10:50:22]line Чек 80 20.02.2025 10:50 [10:50:22]line Смена: 648 ФФД: 1.0 [10:50:22]line ЗНМ: 0300000118 [10:50:22]line РНМ: 0000000000091857 [10:50:22]line Версия ККМ: 001 [10:50:22]line ФМ: 0000000000871826 [10:50:22]line ФД: 187279 [10:50:22]line ФПД: 75088972203398 [10:50:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T105025&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187279&fm=75088972203398&tin=02508201610067®Number=0000000000091857&sum=24000 [10:50:22]OFD Sender: Processing packet 187279 [packets to send 49, broken 48] [10:50:22]ProducePacketName [10:50:22]name=ofd_packets/00187279 [10:50:22]OFD Sender: To server: pG, [10:50:22]CommunicateWithHost lk.salyk.kg:30040 [10:50:22]ConnectInit lk.salyk.kg [10:50:22]written 0, free lines is 4095 [10:50:22]Connected sock=9 [10:50:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5E 47 07 01 F9 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB 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 50 00 00 00 F4 03 04 00 F1 08 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DB 02 00 35 04 06 00 44 4B 03 83 C5 86 C1 A1 F4 CC 6F 53 AD 1C [10:50:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EA 41 47 00 18 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 31 38 32 36 10 04 04 00 8F DB 02 00 F4 03 04 00 42 AF B6 67 B6 04 01 00 00 3F E8 11 B9 94 4C 8C A2 [10:50:23]CommunicateWithHost err = 0 [10:50:23]CheckOFDResponse [10:50:23]1017 (14) - 77093643461234 [10:50:23]1041 (16) - 0000000000871826 [10:50:23]1040 (4) - 187279 [10:50:23]1012 (4) - 20.02.2025 04:27 [10:50:23]1206 (1) - 0 [10:50:23]OFD Sender: Remove packet 187279 [10:50:23]ProducePacketName [10:50:23]name=ofd_packets/00187279 [10:50:23]NVStorageDeleteData [10:50:23]Write to MH i2c: 01 00 00 FD 29 26 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 07 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 07 00 FD 29 00 00 00 00 00 04 0D 3E [10:50:23]RasterBufferAndPrint [10:50:23]line [10:50:23]line [10:50:23]line [10:50:23]line [10:50:23]line [10:50:23]written 0, free lines is 3338 [10:50:23]MH_Cut [10:50:23]Write to MH i2c: D1 01 00 04 2A 01 00 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: D1 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: D1 01 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: D1 01 00 04 2A 00 FF [10:50:23]Write to MH i2c: 01 00 00 05 2A 2F [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]OFD Sender: No OFD packet to send [10:50:23]*** Cut start [10:50:23]*** Partial cut [10:50:23]*** CUTSNS_PIN = 1 [10:50:24]*** CUTSNS_PIN = 0 [10:50:24]*** Brake cut motor [10:50:24]Read from MH i2c: 01 [10:50:24]MH_I2C_Read... [10:50:24]*** Stop cut motor [10:50:24]*** Cut end [10:50:24]Read from MH i2c: 01 07 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 05 2A 00 00 00 00 00 FF 0F 44 [10:50:24]process_action close_receipt done [10:50:24]requested_data is exist [10:50:24]produce_requested_data [10:50:24]requested_item fm.sn is exist - process it [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 11 00 00 [10:50:24]Write to MH i2c: E2 08 00 06 2A 80 11 00 00 00 00 00 00 AA [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 17 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 17 00 06 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [10:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:50:24]wFMCommunicate OK [10:50:24]requested_item fd.num is exist - process it [10:50:24]SAM_PROTO_GetFieldsCounters [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 13 00 00 [10:50:24]Write to MH i2c: E2 08 00 07 2A 80 13 00 00 00 00 00 00 AD [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 62 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 62 00 07 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8F DB 02 00 0E 04 04 00 88 02 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 B9 [10:50:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8F DB 02 00 0E 04 04 00 88 02 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:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_GetFieldsCounters done [10:50:24]requested_item shift.num is exist - process it [10:50:24]requested_item shift.opened is exist - process it [10:50:24]req_shift_opened [10:50:24]FM_GetShiftState [10:50:24]SAM_PROTO_GetShiftState [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 13 01 00 [10:50:24]Write to MH i2c: E2 08 00 08 2A 80 13 01 00 00 00 00 00 AF [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0E 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0E 00 08 2A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 01 [10:50:24]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_GetShiftState done [10:50:24]FM_GetShiftState done [10:50:24]req_shift_opened done [10:50:24]requested_item shift.open_date is exist - process it [10:50:24]req_shift_open_date [10:50:24]req_shift_open_date done [10:50:24]produce_requested_data done [10:50:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187279,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:50:24]process_action_free close_receipt [10:50:24]json_value_free [10:50:24]json_value_free done [10:50:24]process_json_proto returns [10:50:24]Send response to host [10:50:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187279,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:50:24]free response buf [10:50:24]execute_script done [10:50:24]execute_script returns [10:50:24]free content buf [10:50:24]Sock 10.Close socket [10:50:24]Sock 10.Thread stoped [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:00]accept exits with 7 [10:53:00]New connection [10:53:00]New thread 3066510692 created [10:53:00]Thread 3066654052 joined [10:53:00]Waiting for new connection... [10:53:00] Sock 7.Parse request [10:53:00]Sock 7.Check first char [10:53:00]Sock 7.First char is OK [10:53:00]request: POST /json_proto HTTP/1.0 [10:53:00]Method: POST [10:53:00]URL: /json_proto [10:53:00]Method is POST - this is cgi request [10:53:00]url: /json_proto [10:53:00]query_string will be loaded in cgi processing [10:53:00]execute_cgi json_proto POST (null) [10:53:00]execute_cgi path=json_proto method=POST [10:53:00]POST find Content-Length [10:53:00]Host: 172.17.46.131:8080 [10:53:00]Content-Length: 677 [10:53:00]Content-Type: application/json [10:53:00] [10:53:00]POST finish read [10:53:00]Found Content-Length = 677 [10:53:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:53:00]execute_script... [10: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)412433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:53:00]POST & json_proto [10:53:00]process_json_proto [10:53:00]json parsed OK: [10:53:00]protocol is kg_v1.0 [10:53:00]action value=close_receipt [10:53:00]process_action close_receipt [10:53:00]cmd_close_receipt [10:53:00]MH_GetDate [10:53:00]Write to MH i2c: F0 00 00 09 2A 22 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: F0 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: F0 09 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: F0 09 00 09 2A 00 90 09 B7 67 7E 41 4F 65 55 [10:53:00]GetLastDocTimeStamp 1740048625 [10:53:00]current date 1740048784 [10:53:00]FM_GetShiftState [10:53:00]SAM_PROTO_GetShiftState [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 13 01 00 [10:53:00]Write to MH i2c: E2 08 00 0A 2A 80 13 01 00 00 00 00 00 B1 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 0E 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 0E 00 0A 2A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 03 [10:53:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:53:00]wFMCommunicate OK [10:53:00]SAM_PROTO_GetShiftState done [10:53:00]FM_GetShiftState done [10:53:00]opened in 1740011697 [10:53:00]opened+sec_in_day 1740098097 [10:53:00]quantity*price = 50011 [10:53:00]sum+1 = 50013 [10:53:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 81 20.02.2025 10:53 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187280 ФПД: 102126206912033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T105304&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187280&fm=102126206912033&tin=02508201610067®Number=0000000000091857&sum=50000 [10:53:01]StoreToDocumentArchive [10:53:01]shift 648 fd 187280 [10:53:01]save to /storage/0648/doc_00187280 [10:53:01]save last doc name /storage/0648/doc_00187280 to /storage/kkm_last_doc_name [10:53:01]save OK [10:53:01]Clear old archive folders... [10:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:01]tlvbuf is 01F9BA80 [10:53:01]SAM_PROTO_ClearQueue [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 09 00 00 [10:53:01]Write to MH i2c: E2 08 00 17 2A 80 09 00 00 00 00 00 00 B3 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]SAM_PROTO_ClearQueue done [10:53:01]KKMCreateOFDPacket [10:53:01]OFDProtocolAddRootSTLVToBuf [10:53:01]FM_MakeSignedData [10:53:01]FM_MakeSignedData [10:53:01]SAM_PROTO_SignData [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 01 02 [10:53:01]Write to MH i2c: E2 08 00 18 2A 80 0D 01 02 00 00 00 00 BB [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=255 [10:53:01]MH_SAM_APDU [10:53: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 90 09 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DB 02 00 35 04 06 00 5C [10:53:01]Write to MH i2c: E2 02 01 19 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 90 09 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DB 02 00 35 04 06 00 5C 00 00 AF [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=10 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 02 02 05 E2 1C 49 06 21 [10:53:01]Write to MH i2c: E2 0D 00 1A 2A 80 0D 02 02 05 00 E2 1C 49 06 21 00 00 36 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 03 02 [10:53:01]Write to MH i2c: E2 08 00 1B 2A 80 0D 03 02 00 00 00 00 C0 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 0B 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 0B 00 1B 2A 00 24 10 6A E0 DF 85 77 29 90 00 43 [10:53:01]RAPDU: 24 10 6A E0 DF 85 77 29 90 00 [10:53:01]wFMCommunicate OK [10:53:01]SAM_PROTO_SignData done [10:53:01]FM_MakeSignedData done [10:53:01]CreateOFDProtocolMessage [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 11 00 00 [10:53:01]Write to MH i2c: E2 08 00 1C 2A 80 11 00 00 00 00 00 00 C0 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 17 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 17 00 1C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [10:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:53:01]wFMCommunicate OK [10:53:01]CreateOFDProtocolMessage done [10:53:01]OFDSenderStorePacket 187280 [10:53:01]StoreOFDPacket docnum=187280 [10:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0E B1 07 01 EA 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 90 09 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DB 02 00 35 04 06 00 5C E2 1C 49 06 21 24 10 6A E0 DF 85 77 29 [10:53:01]CheckFolder [10:53:01]dirname=/storage/ofd_packets [10:53:01]CheckFolder done [10:53:01]ProducePacketName [10:53:01]name=ofd_packets/00187280 [10:53:01]NVStorageSaveData ofd_packets/00187280 [10:53:01]File name is /storage/ofd_packets/00187280 [10:53:01]Write 301 bytes [10:53:01]NVStorageSaveData done [10:53:01]OFDSenderStorePacket done [10:53:01]KKMCreateOFDPacket done [10:53:01]NVStorageSaveData kkm_last_timestamp [10:53:01]File name is /storage/kkm_last_timestamp [10:53:01]Write 4 bytes [10:53:01]NVStorageSaveData done [10:53:01]ExternCall_PrintAddStr [10:53:01]wPrintStart [10:53:01]Write to MH i2c: 01 00 00 1D 2A 47 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 07 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 07 00 1D 2A 00 00 00 00 00 FF 0F 5C [10:53:01]RasterBufferAndPrint [10:53:01]line Счет N : (1)412433 [10:53:01]line ИНН: 02508201610067 [10:53:01]line Контрольно-Кассовый Чек [10:53:01]line ПРОДАЖА [10:53:01]line ТРК (МРК, ГНК) : 22 [10:53:01]line Товар: 2710124130 [10:53:01]line Аи-92-К-2 [10:53:01]line 7.790 * 64.20 [10:53:01]line = 500.12 [10:53:01]line НДС 12% НСП 1% [10:53:01]line > о реализуемом товаре [10:53:01]line ОКРУГЛЕНИЕ: -0.12 [10:53:01]line ИТОГО: 500.00 [10:53:01]line Внесено: 500.00 [10:53:01]line СДАЧА: 0.00 [10:53:01]line НСП 1% : 4.43 [10:53:01]line НДС 12% : 53.11 [10:53:01]line Наличными: 500.00 [10:53:01]line Безнал.: 0.00 [10:53:01]line Место: АЗС № 92 "Партнер Нефть" [10:53:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:53:01]line СНО: Общий режим [10:53:01]line Чек 81 20.02.2025 10:53 [10:53:01]line Смена: 648 ФФД: 1.0 [10:53:01]line ЗНМ: 0300000118 [10:53:01]line РНМ: 0000000000091857 [10:53:01]line Версия ККМ: 001 [10:53:01]line ФМ: 0000000000871826 [10:53:01]line ФД: 187280 [10:53:01]line ФПД: 102126206912033 [10:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T105304&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187280&fm=102126206912033&tin=02508201610067®Number=0000000000091857&sum=50000 [10:53:02]written 0, free lines is 4095 [10:53:02]OFD Sender: Processing packet 187280 [packets to send 49, broken 48] [10:53:02]ProducePacketName [10:53:02]name=ofd_packets/00187280 [10:53:02]OFD Sender: To server: pG, [10:53:02]CommunicateWithHost lk.salyk.kg:30040 [10:53:02]ConnectInit lk.salyk.kg [10:53:02]Connected sock=10 [10: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 31 38 32 36 0F 01 00 00 0E B1 07 01 EA 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 90 09 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DB 02 00 35 04 06 00 5C E2 1C 49 06 21 24 10 6A E0 DF 85 77 29 [10:53:02]Write to MH i2c: 01 00 00 48 2A 72 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 07 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 07 00 48 2A 00 00 00 00 00 F0 0C 75 [10:53:02]RasterBufferAndPrint [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7E 15 47 00 F4 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DB 02 00 F4 03 04 00 E1 AF B6 67 B6 04 01 00 00 01 CC FF 1A 3F 89 66 26 [10:53:02]CommunicateWithHost err = 0 [10:53:02]CheckOFDResponse [10:53:02]1017 (14) - 77093643461234 [10:53:02]1041 (16) - 0000000000871826 [10:53:02]1040 (4) - 187280 [10:53:02]1012 (4) - 20.02.2025 04:30 [10:53:02]1206 (1) - 0 [10:53:02]OFD Sender: Remove packet 187280 [10:53:02]ProducePacketName [10:53:02]name=ofd_packets/00187280 [10:53:02]NVStorageDeleteData [10:53:02]written 0, free lines is 3333 [10:53:02]MH_Cut [10:53:02]Write to MH i2c: D1 01 00 4F 2A 01 4B [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 01 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 01 00 4F 2A 00 4A [10:53:02]Write to MH i2c: 01 00 00 50 2A 7A [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:03]OFD Sender: No OFD packet to send [10:53:03]*** Cut start [10:53:03]*** Partial cut [10:53:03]*** CUTSNS_PIN = 1 [10:53:03]*** CUTSNS_PIN = 0 [10:53:03]*** Brake cut motor [10:53:04]Read from MH i2c: 01 [10:53:04]MH_I2C_Read... [10:53:04]*** Stop cut motor [10:53:04]*** Cut end [10:53:04]Read from MH i2c: 01 07 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: 01 07 00 50 2A 00 00 00 00 00 FF 0F 8F [10:53:04]process_action close_receipt done [10:53:04]requested_data is exist [10:53:04]produce_requested_data [10:53:04]requested_item fm.sn is exist - process it [10:53:04]wFMCommunicate request_size=4 [10:53:04]MH_SAM_APDU [10:53:04]CAPDU: 80 11 00 00 [10:53:04]Write to MH i2c: E2 08 00 51 2A 80 11 00 00 00 00 00 00 F5 [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:04]Read from MH i2c: E2 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 17 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 17 00 51 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [10:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:53:04]wFMCommunicate OK [10:53:04]requested_item fd.num is exist - process it [10:53:04]SAM_PROTO_GetFieldsCounters [10:53:04]wFMCommunicate request_size=4 [10:53:04]MH_SAM_APDU [10:53:04]CAPDU: 80 13 00 00 [10:53:04]Write to MH i2c: E2 08 00 52 2A 80 13 00 00 00 00 00 00 F8 [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:04]Read from MH i2c: E2 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 62 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 62 00 52 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 90 DB 02 00 0E 04 04 00 88 02 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 08 [10: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 90 DB 02 00 0E 04 04 00 88 02 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:53:04]wFMCommunicate OK [10:53:04]SAM_PROTO_GetFieldsCounters done [10:53:04]requested_item shift.num is exist - process it [10:53:04]requested_item shift.opened is exist - process it [10:53:04]req_shift_opened [10:53:04]FM_GetShiftState [10:53:04]SAM_PROTO_GetShiftState [10:53:04]wFMCommunicate request_size=4 [10:53:04]MH_SAM_APDU [10:53:04]CAPDU: 80 13 01 00 [10:53:04]Write to MH i2c: E2 08 00 53 2A 80 13 01 00 00 00 00 00 FA [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:04]Read from MH i2c: E2 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 0E 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: E2 0E 00 53 2A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4C [10:53:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:53:04]wFMCommunicate OK [10:53:04]SAM_PROTO_GetShiftState done [10:53:04]FM_GetShiftState done [10:53:04]req_shift_opened done [10:53:04]requested_item shift.open_date is exist - process it [10:53:04]req_shift_open_date [10:53:04]req_shift_open_date done [10:53:04]produce_requested_data done [10:53:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187280,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:53:04]process_action_free close_receipt [10:53:04]json_value_free [10:53:04]json_value_free done [10:53:04]process_json_proto returns [10:53:04]Send response to host [10:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187280,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:53:04]free response buf [10:53:04]execute_script done [10:53:04]execute_script returns [10:53:04]free content buf [10:53:04]Sock 7.Close socket [10:53:04]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [10:55:43]accept exits with 9 [10:55:43]New connection [10:55:43]New thread 3066654052 created [10:55:43]Thread 3066510692 joined [10:55:43]Waiting for new connection... [10:55:43] Sock 9.Parse request [10:55:43]Sock 9.Check first char [10:55:43]Sock 9.First char is OK [10:55:43]request: POST /json_proto HTTP/1.0 [10:55:43]Method: POST [10:55:43]URL: /json_proto [10:55:43]Method is POST - this is cgi request [10:55:43]url: /json_proto [10:55:43]query_string will be loaded in cgi processing [10:55:43]execute_cgi json_proto POST (null) [10:55:43]execute_cgi path=json_proto method=POST [10:55:43]POST find Content-Length [10:55:43]Host: 172.17.46.131:8080 [10:55:43]Content-Length: 754 [10:55:43]Content-Type: application/json [10:55:43] [10:55:43]POST finish read [10:55:43]Found Content-Length = 754 [10:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:43]execute_script... [10:55: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)412434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:43]POST & json_proto [10:55:43]process_json_proto [10:55:43]json parsed OK: [10:55:43]protocol is kg_v1.0 [10:55:43]action value=close_receipt [10:55:43]process_action close_receipt [10:55:43]cmd_close_receipt [10:55:43]MH_GetDate [10:55:43]Write to MH i2c: F0 00 00 54 2A 6D [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: F0 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: F0 09 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: F0 09 00 54 2A 00 33 0A B7 67 7E 41 4F 65 44 [10:55:43]GetLastDocTimeStamp 1740048784 [10:55:43]current date 1740048947 [10:55:43]FM_GetShiftState [10:55:43]SAM_PROTO_GetShiftState [10:55:43]wFMCommunicate request_size=4 [10:55:43]MH_SAM_APDU [10:55:43]CAPDU: 80 13 01 00 [10:55:43]Write to MH i2c: E2 08 00 55 2A 80 13 01 00 00 00 00 00 FC [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 0E 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 0E 00 55 2A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4E [10:55:43]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:55:43]wFMCommunicate OK [10:55:43]SAM_PROTO_GetShiftState done [10:55:43]FM_GetShiftState done [10:55:43]opened in 1740011697 [10:55:43]opened+sec_in_day 1740098097 [10:55:43]quantity*price = 0 [10:55:43]sum+1 = 1 [10:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 82 20.02.2025 10:55 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30159190 ФМ: 0000000000871826 ФД: 187281 ФПД: 261209023496737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T105547&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187281&fm=261209023496737&tin=02508201610067®Number=0000000000091857&sum=0 [10:55:44]StoreToDocumentArchive [10:55:44]shift 648 fd 187281 [10:55:44]save to /storage/0648/doc_00187281 [10:55:44]save last doc name /storage/0648/doc_00187281 to /storage/kkm_last_doc_name [10:55:44]save OK [10:55:44]Clear old archive folders... [10:55:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:44]tlvbuf is 01F5E1D0 [10:55:44]SAM_PROTO_ClearQueue [10:55:44]wFMCommunicate request_size=4 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 09 00 00 [10:55:44]Write to MH i2c: E2 08 00 62 2A 80 09 00 00 00 00 00 00 FE [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 62 2A 00 90 00 00 [10:55:44]RAPDU: 90 00 [10:55:44]wFMCommunicate OK [10:55:44]SAM_PROTO_ClearQueue done [10:55:44]KKMCreateOFDPacket [10:55:44]OFDProtocolAddRootSTLVToBuf [10:55:44]FM_MakeSignedData [10:55:44]FM_MakeSignedData [10:55:44]SAM_PROTO_SignData [10:55:44]wFMCommunicate request_size=4 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 0D 01 02 [10:55:44]Write to MH i2c: E2 08 00 63 2A 80 0D 01 02 00 00 00 00 06 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [10:55:44]RAPDU: 90 00 [10:55:44]wFMCommunicate OK [10:55:44]wFMCommunicate request_size=255 [10:55:44]MH_SAM_APDU [10:55: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 33 0A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DB 02 00 35 04 06 00 ED [10:55:44]Write to MH i2c: E2 02 01 64 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 33 0A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DB 02 00 35 04 06 00 ED 00 00 12 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [10:55:44]RAPDU: 90 00 [10:55:44]wFMCommunicate OK [10:55:44]wFMCommunicate request_size=10 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 0D 02 02 05 91 77 0E C2 21 [10:55:44]Write to MH i2c: E2 0D 00 65 2A 80 0D 02 02 05 00 91 77 0E C2 21 00 00 0C [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [10:55:44]RAPDU: 90 00 [10:55:44]wFMCommunicate OK [10:55:44]wFMCommunicate request_size=4 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 0D 03 02 [10:55:44]Write to MH i2c: E2 08 00 66 2A 80 0D 03 02 00 00 00 00 0B [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 0B 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 0B 00 66 2A 00 56 A7 02 D2 93 39 C6 94 90 00 03 [10:55:44]RAPDU: 56 A7 02 D2 93 39 C6 94 90 00 [10:55:44]wFMCommunicate OK [10:55:44]SAM_PROTO_SignData done [10:55:44]FM_MakeSignedData done [10:55:44]CreateOFDProtocolMessage [10:55:44]wFMCommunicate request_size=4 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 11 00 00 [10:55:44]Write to MH i2c: E2 08 00 67 2A 80 11 00 00 00 00 00 00 0B [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 17 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 17 00 67 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [10:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:55:44]wFMCommunicate OK [10:55:44]CreateOFDProtocolMessage done [10:55:44]OFDSenderStorePacket 187281 [10:55:44]StoreOFDPacket docnum=187281 [10:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 F8 07 01 4C 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 33 0A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DB 02 00 35 04 06 00 ED 91 77 0E C2 21 56 A7 02 D2 93 39 C6 94 [10:55:44]CheckFolder [10:55:44]dirname=/storage/ofd_packets [10:55:44]CheckFolder done [10:55:44]ProducePacketName [10:55:44]name=ofd_packets/00187281 [10:55:44]NVStorageSaveData ofd_packets/00187281 [10:55:44]File name is /storage/ofd_packets/00187281 [10:55:44]Write 301 bytes [10:55:44]NVStorageSaveData done [10:55:44]OFDSenderStorePacket done [10:55:44]KKMCreateOFDPacket done [10:55:44]NVStorageSaveData kkm_last_timestamp [10:55:44]File name is /storage/kkm_last_timestamp [10:55:44]Write 4 bytes [10:55:44]NVStorageSaveData done [10:55:44]ExternCall_PrintAddStr [10:55:44]wPrintStart [10:55:44]Write to MH i2c: 01 00 00 68 2A 92 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: 01 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: 01 07 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: 01 07 00 68 2A 00 00 00 00 00 FF 0F A7 [10:55:44]RasterBufferAndPrint [10:55:44]line Счет N : (1)412434 [10:55:44]line ИНН: 02508201610067 [10:55:44]line Контрольно-Кассовый Чек [10:55:44]line ПРОДАЖА [10:55:44]line ТРК (МРК, ГНК) : 42 [10:55:44]line Товар: 2710124130 [10:55:44]line Аи-92-К-2 [10:55:44]line 20.000 * 0.00 [10:55:44]line = 0.00 [10:55:44]line НДС 12% НСП 1% [10:55:44]line > о реализуемом товаре [10:55:44]line ИТОГО: 0.00 [10:55:44]line НСП 1% : 0.00 [10:55:44]line НДС 12% : 0.00 [10:55:44]line Наличными: 0.00 [10:55:44]line Безнал.: 0.00 [10:55:44]line Место: АЗС № 92 "Партнер Нефть" [10:55:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:55:44]line СНО: Общий режим [10:55:44]line Чек 82 20.02.2025 10:55 [10:55:44]line Смена: 648 ФФД: 1.0 [10:55:44]line ЗНМ: 0300000118 [10:55:44]line РНМ: 0000000000091857 [10:55:44]line Версия ККМ: 001 [10:55:44]line Талоны: ТК ГПНА Online [10:55:44]line 30159190 [10:55:44]line ФМ: 0000000000871826 [10:55:44]line ФД: 187281 [10:55:44]line ФПД: 261209023496737 [10:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T105547&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187281&fm=261209023496737&tin=02508201610067®Number=0000000000091857&sum=0 [10:55:44]written 0, free lines is 4095 [10:55:44]OFD Sender: Processing packet 187281 [packets to send 49, broken 48] [10:55:44]ProducePacketName [10:55:44]name=ofd_packets/00187281 [10:55:45]OFD Sender: To server: pG, [10:55:45]CommunicateWithHost lk.salyk.kg:30040 [10:55:45]ConnectInit lk.salyk.kg [10:55:45]Write to MH i2c: 01 00 00 92 2A BC [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: 01 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: 01 07 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: 01 07 00 92 2A 00 00 00 00 00 F6 0C C5 [10:55:45]RasterBufferAndPrint [10:55:45]line [10:55:45]line [10:55:45]line [10:55:45]line [10:55:45]line [10:55:45]written 0, free lines is 3324 [10:55:45]MH_Cut [10:55:45]Write to MH i2c: D1 01 00 99 2A 01 95 [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: D1 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: D1 01 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: D1 01 00 99 2A 00 94 [10:55:45]Write to MH i2c: 01 00 00 9A 2A C4 [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]Connected sock=10 [10:55:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 F8 07 01 4C 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 33 0A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DB 02 00 35 04 06 00 ED 91 77 0E C2 21 56 A7 02 D2 93 39 C6 94 [10:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 42 16 47 00 89 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DB 02 00 F4 03 04 00 84 B0 B6 67 B6 04 01 00 00 3C 30 30 13 F3 F1 42 08 [10:55:45]CommunicateWithHost err = 0 [10:55:45]CheckOFDResponse [10:55:45]1017 (14) - 77093643461234 [10:55:45]1041 (16) - 0000000000871826 [10:55:45]1040 (4) - 187281 [10:55:45]1012 (4) - 20.02.2025 04:33 [10:55:45]1206 (1) - 0 [10:55:45]OFD Sender: Remove packet 187281 [10:55:45]ProducePacketName [10:55:45]name=ofd_packets/00187281 [10:55:45]NVStorageDeleteData [10:55:45]*** Cut start [10:55:45]*** Partial cut [10:55:45]*** CUTSNS_PIN = 1 [10:55:46]*** CUTSNS_PIN = 0 [10:55:46]OFD Sender: No OFD packet to send [10:55:46]*** Brake cut motor [10:55:46]Read from MH i2c: 01 [10:55:46]MH_I2C_Read... [10:55:46]*** Stop cut motor [10:55:46]*** Cut end [10:55:46]Read from MH i2c: 01 07 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: 01 07 00 9A 2A 00 00 00 00 00 FF 0F D9 [10:55:46]process_action close_receipt done [10:55:46]requested_data is exist [10:55:46]produce_requested_data [10:55:46]requested_item fm.sn is exist - process it [10:55:46]wFMCommunicate request_size=4 [10:55:46]MH_SAM_APDU [10:55:46]CAPDU: 80 11 00 00 [10:55:46]Write to MH i2c: E2 08 00 9B 2A 80 11 00 00 00 00 00 00 3F [10:55:46]Write i2c OK [10:55:46]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 17 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 17 00 9B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [10:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:55:46]wFMCommunicate OK [10:55:46]requested_item fd.num is exist - process it [10:55:46]SAM_PROTO_GetFieldsCounters [10:55:46]wFMCommunicate request_size=4 [10:55:46]MH_SAM_APDU [10:55:46]CAPDU: 80 13 00 00 [10:55:46]Write to MH i2c: E2 08 00 9C 2A 80 13 00 00 00 00 00 00 42 [10:55:46]Write i2c OK [10:55:46]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 62 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 62 00 9C 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 91 DB 02 00 0E 04 04 00 88 02 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 56 [10:55:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 91 DB 02 00 0E 04 04 00 88 02 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:55:46]wFMCommunicate OK [10:55:46]SAM_PROTO_GetFieldsCounters done [10:55:46]requested_item shift.num is exist - process it [10:55:46]requested_item shift.opened is exist - process it [10:55:46]req_shift_opened [10:55:46]FM_GetShiftState [10:55:46]SAM_PROTO_GetShiftState [10:55:46]wFMCommunicate request_size=4 [10:55:46]MH_SAM_APDU [10:55:46]CAPDU: 80 13 01 00 [10:55:46]Write to MH i2c: E2 08 00 9D 2A 80 13 01 00 00 00 00 00 44 [10:55:46]Write i2c OK [10:55:46]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 0E 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 0E 00 9D 2A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 96 [10:55:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [10:55:46]wFMCommunicate OK [10:55:46]SAM_PROTO_GetShiftState done [10:55:46]FM_GetShiftState done [10:55:46]req_shift_opened done [10:55:46]requested_item shift.open_date is exist - process it [10:55:46]req_shift_open_date [10:55:46]req_shift_open_date done [10:55:46]produce_requested_data done [10:55:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187281,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [10:55:46]process_action_free close_receipt [10:55:46]json_value_free [10:55:46]json_value_free done [10:55:46]process_json_proto returns [10:55:46]Send response to host [10:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187281,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [10:55:46]free response buf [10:55:46]execute_script done [10:55:46]execute_script returns [10:55:46]free content buf [10:55:46]Sock 9.Close socket [10:55:46]Sock 9.Thread stoped [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:34:07]Read from MH i2c: E2 03 00 26 00 00 90 00 9A [11:34:07]RAPDU: 90 00 [11:34:07]wFMCommunicate OK [11:34:07]wFMCommunicate request_size=13 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 15 02 00 08 F4 03 04 00 2F 13 B7 67 [11:34:07]Write to MH i2c: E2 10 00 27 00 80 15 02 00 08 00 F4 03 04 00 2F 13 B7 67 00 00 12 [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:34:07]Read from MH i2c: E2 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 27 00 00 90 00 9B [11:34:07]RAPDU: 90 00 [11:34:07]wFMCommunicate OK [11:34:07]wFMCommunicate request_size=25 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [11:34:07]Write to MH i2c: E2 1C 00 28 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 0F [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:34:07]Read from MH i2c: E2 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [11:34:07]RAPDU: 90 00 [11:34:07]wFMCommunicate OK [11:34:07]wFMCommunicate request_size=4 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 15 03 00 [11:34:07]Write to MH i2c: E2 08 00 29 00 80 15 03 00 00 00 00 00 AA [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:07]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [11:34:07]Read from MH i2c: E2 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 40 00 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 40 00 29 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 63 00 00 00 35 04 06 00 44 16 58 26 FA 2E 90 00 0C [11:34:07]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 63 00 00 00 35 04 06 00 44 16 58 26 FA 2E 90 00 [11:34:07]wFMCommunicate OK [11:34:07]SAM_PROTO_ProcessDocument answer len = 59 [11:34:07]SAM_PROTO_ProcessDocument done [11:34:07]SetTLVBufToDocument [11:34:07]Processing tag 1209 (04B9) [11:34:07]Malloc new data [11:34:07]Processing tag 1041 (0411) [11:34:07]Processing tag 1040 (0410) [11:34:07]Malloc new data [11:34:07]Processing tag 1038 (040E) [11:34:07]Malloc new data [11:34:07]Processing tag 1042 (0412) [11:34:07]Malloc new data [11:34:07]Processing tag 1077 (0435) [11:34:07]Malloc new data [11:34:07]SetTLVBufToDocument err=0 [11:34:07]KKMLoadAndSignReceiptData store KKM data [11:34:07]KKMLoadAndSignReceiptData err=0 [11:34:07]wFMCommunicate request_size=4 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 11 00 00 [11:34:07]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:07]Read from MH i2c: E2 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 17 00 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [11:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:34:07]wFMCommunicate OK [11:34:07]Счет N : (1)412452 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 32 Товар: 2710124130 Аи-92-К-2 10.000 * 64.20 = 642.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 642.00 НСП 1% : 5.68 НДС 12% : 68.18 Наличными: 0.00 Безнал.: 642.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 99 20.02.2025 11:34 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187298 ФПД: 74862758918702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T113407&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187298&fm=74862758918702&tin=02508201610067®Number=0000000000091857&sum=64200 [11:34:07]StoreToDocumentArchive [11:34:07]shift 648 fd 187298 [11:34:07]save to /storage/0648/doc_00187298 [11:34:07]save last doc name /storage/0648/doc_00187298 to /storage/kkm_last_doc_name [11:34:07]save OK [11:34:07]Clear old archive folders... [11:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:07]tlvbuf is 001182B0 [11:34:07]SAM_PROTO_ClearQueue [11:34:07]wFMCommunicate request_size=4 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 09 00 00 [11:34:07]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:07]Read from MH i2c: E2 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:34:07]RAPDU: 90 00 [11:34:07]wFMCommunicate OK [11:34:07]SAM_PROTO_ClearQueue done [11:34:07]KKMCreateOFDPacket [11:34:07]OFDProtocolAddRootSTLVToBuf [11:34:07]FM_MakeSignedData [11:34:07]FM_MakeSignedData [11:34:07]SAM_PROTO_SignData [11:34:07]wFMCommunicate request_size=4 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 0D 01 02 [11:34:07]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:07]Read from MH i2c: E2 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:34:07]RAPDU: 90 00 [11:34:07]wFMCommunicate OK [11:34:07]wFMCommunicate request_size=255 [11:34:07]MH_SAM_APDU [11:34: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C8 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 2F 13 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DB 02 00 35 04 06 00 44 [11:34:07]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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C8 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 2F 13 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DB 02 00 35 04 06 00 44 00 00 61 [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:08]Read from MH i2c: E2 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 03 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:34:08]RAPDU: 90 00 [11:34:08]wFMCommunicate OK [11:34:08]wFMCommunicate request_size=10 [11:34:08]MH_SAM_APDU [11:34:08]CAPDU: 80 0D 02 02 05 16 58 26 FA 2E [11:34:08]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 16 58 26 FA 2E 00 00 6E [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:08]Read from MH i2c: E2 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 03 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:34:08]RAPDU: 90 00 [11:34:08]wFMCommunicate OK [11:34:08]wFMCommunicate request_size=4 [11:34:08]MH_SAM_APDU [11:34:08]CAPDU: 80 0D 03 02 [11:34:08]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:08]Read from MH i2c: E2 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 0B 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 0B 00 2F 00 00 EF B4 DB C6 3A 5B DD 0D 90 00 6E [11:34:08]RAPDU: EF B4 DB C6 3A 5B DD 0D 90 00 [11:34:08]wFMCommunicate OK [11:34:08]SAM_PROTO_SignData done [11:34:08]FM_MakeSignedData done [11:34:08]CreateOFDProtocolMessage [11:34:08]wFMCommunicate request_size=4 [11:34:08]MH_SAM_APDU [11:34:08]CAPDU: 80 11 00 00 [11:34:08]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:08]Read from MH i2c: E2 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 17 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [11:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:34:08]wFMCommunicate OK [11:34:08]CreateOFDProtocolMessage done [11:34:08]OFDSenderStorePacket 187298 [12:36:03]ConnectInit Can't connect to host [12:36:07]OFD Sender: Processing packet 187282 [packets to send 86, broken 48] [12:36:07]ProducePacketName [12:36:07]name=ofd_packets/00187282 [12:36:07]OFD Sender: To server: pG, [12:36:07]CommunicateWithHost lk.salyk.kg:30040 [12:36:07]ConnectInit lk.salyk.kg [12:36:08]Connected sock=9 [12:36:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 35 73 07 01 BC 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 24 0D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 DB 02 00 35 04 06 00 C2 AC 1D 31 BC B8 C5 29 00 16 D0 E4 DA F8 [12:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B E3 47 00 D7 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 31 38 32 36 10 04 04 00 92 DB 02 00 F4 03 04 00 07 C8 B6 67 B6 04 01 00 00 3D AE 84 F6 84 8F 8C DF [12:36:08]CommunicateWithHost err = 0 [12:36:08]CheckOFDResponse [12:36:08]1017 (14) - 77093643461234 [12:36:08]1041 (16) - 0000000000871826 [12:36:08]1040 (4) - 187282 [12:36:08]1012 (4) - 20.02.2025 06:13 [12:36:08]1206 (1) - 0 [12:36:08]OFD Sender: Remove packet 187282 [12:36:08]ProducePacketName [12:36:08]name=ofd_packets/00187282 [12:36:08]NVStorageDeleteData [12:36:08]OFD Sender: Processing packet 187283 [packets to send 85, broken 48] [12:36:08]ProducePacketName [12:36:08]name=ofd_packets/00187283 [12:36:08]OFD Sender: To server: pG, [12:36:08]CommunicateWithHost lk.salyk.kg:30040 [12:36:08]ConnectInit lk.salyk.kg [12:36:09]Connected sock=9 [12:36:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 19 3F 07 01 81 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6A 0D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 DB 02 00 35 04 06 00 BD 32 F5 E0 E9 4B 6F 7F C5 D1 FA BA 85 FA [12:36:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 25 EE 47 00 B4 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 DB 02 00 F4 03 04 00 08 C8 B6 67 B6 04 01 00 00 E6 49 4D 35 68 EA 70 67 [12:36:09]CommunicateWithHost err = 0 [12:36:09]CheckOFDResponse [12:36:09]1017 (14) - 77093643461234 [12:36:09]1041 (16) - 0000000000871826 [12:36:09]1040 (4) - 187283 [12:36:09]1012 (4) - 20.02.2025 06:13 [12:36:09]1206 (1) - 0 [12:36:09]OFD Sender: Remove packet 187283 [12:36:09]ProducePacketName [12:36:09]name=ofd_packets/00187283 [12:36:09]NVStorageDeleteData [12:36:09]OFD Sender: Processing packet 187284 [packets to send 84, broken 48] [12:36:09]ProducePacketName [12:36:09]name=ofd_packets/00187284 [12:36:09]OFD Sender: To server: pG, [12:36:09]CommunicateWithHost lk.salyk.kg:30040 [12:36:09]ConnectInit lk.salyk.kg [12:36:10]Connected sock=9 [12:36:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 25 17 07 01 63 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 97 0D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 DB 02 00 35 04 06 00 0B 3A 7E 5B A1 A8 54 A1 78 F9 E3 5E C0 2B [12:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D5 E4 47 00 07 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 DB 02 00 F4 03 04 00 09 C8 B6 67 B6 04 01 00 00 5D 58 5C 51 F1 BC 87 92 [12:36:10]CommunicateWithHost err = 0 [12:36:10]CheckOFDResponse [12:36:10]1017 (14) - 77093643461234 [12:36:10]1041 (16) - 0000000000871826 [12:36:10]1040 (4) - 187284 [12:36:10]1012 (4) - 20.02.2025 06:13 [12:36:10]1206 (1) - 0 [12:36:10]OFD Sender: Remove packet 187284 [12:36:10]ProducePacketName [12:36:10]name=ofd_packets/00187284 [12:36:10]NVStorageDeleteData [12:36:10]OFD Sender: Processing packet 187285 [packets to send 83, broken 48] [12:36:10]ProducePacketName [12:36:10]name=ofd_packets/00187285 [12:36:10]OFD Sender: To server: pG, [12:36:10]CommunicateWithHost lk.salyk.kg:30040 [12:36:10]ConnectInit lk.salyk.kg [12:36:11]Connected sock=9 [12:36:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 54 03 07 01 B9 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 C3 0D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 DB 02 00 35 04 06 00 BB F9 D7 DF 31 12 6E C4 FA 1D 68 D8 8F F6 [12:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9F 91 47 00 2A 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 31 38 32 36 10 04 04 00 95 DB 02 00 F4 03 04 00 0A C8 B6 67 B6 04 01 00 00 1D 90 73 13 85 58 A5 94 [12:36:11]CommunicateWithHost err = 0 [12:36:11]CheckOFDResponse [12:36:11]1017 (14) - 77093643461234 [12:36:11]1041 (16) - 0000000000871826 [12:36:11]1040 (4) - 187285 [12:36:11]1012 (4) - 20.02.2025 06:13 [12:36:11]1206 (1) - 0 [12:36:11]OFD Sender: Remove packet 187285 [12:36:11]ProducePacketName [12:36:11]name=ofd_packets/00187285 [12:36:11]NVStorageDeleteData [12:36:11]OFD Sender: Processing packet 187286 [packets to send 82, broken 48] [12:36:11]ProducePacketName [12:36:11]name=ofd_packets/00187286 [12:36:11]OFD Sender: To server: pG, [12:36:11]CommunicateWithHost lk.salyk.kg:30040 [12:36:11]ConnectInit lk.salyk.kg [12:36:12]Connected sock=9 [12:36:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E9 12 07 01 ED D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E9 0D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 DB 02 00 35 04 06 00 D4 62 D4 7F 32 D3 8D F6 59 11 2B 96 9E 21 [12:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 70 BB 47 00 13 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 31 38 32 36 10 04 04 00 96 DB 02 00 F4 03 04 00 0B C8 B6 67 B6 04 01 00 00 B7 5E 2A 70 44 A3 83 90 [12:36:12]CommunicateWithHost err = 0 [12:36:12]CheckOFDResponse [12:36:12]1017 (14) - 77093643461234 [12:36:12]1041 (16) - 0000000000871826 [12:36:12]1040 (4) - 187286 [12:36:12]1012 (4) - 20.02.2025 06:13 [12:36:12]1206 (1) - 0 [12:36:12]OFD Sender: Remove packet 187286 [12:36:12]ProducePacketName [12:36:12]name=ofd_packets/00187286 [12:36:12]NVStorageDeleteData [12:36:12]OFD Sender: Processing packet 187287 [packets to send 81, broken 48] [12:36:12]ProducePacketName [12:36:12]name=ofd_packets/00187287 [12:36:12]OFD Sender: To server: pG, [12:36:12]CommunicateWithHost lk.salyk.kg:30040 [12:36:13]ConnectInit lk.salyk.kg [12:36:13]Connected sock=9 [12:36:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3A 79 07 01 D1 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 44 0E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 DB 02 00 35 04 06 00 AF F4 1E 45 5C 21 9B EB 72 F3 69 42 9E 2E [12:36:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5C D6 47 00 DE 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 DB 02 00 F4 03 04 00 0C C8 B6 67 B6 04 01 00 00 B9 B0 C8 76 C6 2A E0 6D [12:36:13]CommunicateWithHost err = 0 [12:36:13]CheckOFDResponse [12:36:13]1017 (14) - 77093643461234 [12:36:13]1041 (16) - 0000000000871826 [12:36:13]1040 (4) - 187287 [12:36:13]1012 (4) - 20.02.2025 06:13 [12:36:13]1206 (1) - 0 [12:36:13]OFD Sender: Remove packet 187287 [12:36:13]ProducePacketName [12:36:13]name=ofd_packets/00187287 [12:36:13]NVStorageDeleteData [12:36:14]OFD Sender: Processing packet 187288 [packets to send 80, broken 48] [12:36:14]ProducePacketName [12:36:14]name=ofd_packets/00187288 [12:36:14]OFD Sender: To server: pG, [12:36:14]CommunicateWithHost lk.salyk.kg:30040 [12:36:14]ConnectInit lk.salyk.kg [12:36:14]Connected sock=10 [12:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 2D 07 01 00 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 98 0E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 DB 02 00 35 04 06 00 81 90 17 A6 C6 CD DD 18 B1 37 F6 04 C9 50 [12:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 96 64 47 00 F2 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 DB 02 00 F4 03 04 00 0D C8 B6 67 B6 04 01 00 00 04 E6 15 82 B9 5E D2 CE [12:36:14]CommunicateWithHost err = 0 [12:36:14]CheckOFDResponse [12:36:14]1017 (14) - 77093643461234 [12:36:14]1041 (16) - 0000000000871826 [12:36:14]1040 (4) - 187288 [12:36:14]1012 (4) - 20.02.2025 06:13 [12:36:14]1206 (1) - 0 [12:36:14]OFD Sender: Remove packet 187288 [12:36:14]ProducePacketName [12:36:14]name=ofd_packets/00187288 [12:36:14]NVStorageDeleteData [12:36:15]OFD Sender: Processing packet 187289 [packets to send 79, broken 48] [12:36:15]ProducePacketName [12:36:15]name=ofd_packets/00187289 [12:36:15]OFD Sender: To server: pG, [12:36:15]CommunicateWithHost lk.salyk.kg:30040 [12:36:15]ConnectInit lk.salyk.kg [12:36:15]Connected sock=9 [12:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 79 07 01 8D 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 0E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 DB 02 00 35 04 06 00 64 2B 1E 53 58 CA 72 3E 92 73 1A 5A DC EE [12:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DE 38 47 00 11 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 31 38 32 36 10 04 04 00 99 DB 02 00 F4 03 04 00 0E C8 B6 67 B6 04 01 00 00 BF 7A FA D1 F5 B1 92 76 [12:36:15]CommunicateWithHost err = 0 [12:36:15]CheckOFDResponse [12:36:15]1017 (14) - 77093643461234 [12:36:15]1041 (16) - 0000000000871826 [12:36:15]1040 (4) - 187289 [12:36:15]1012 (4) - 20.02.2025 06:13 [12:36:15]1206 (1) - 0 [12:36:15]OFD Sender: Remove packet 187289 [12:36:15]ProducePacketName [12:36:15]name=ofd_packets/00187289 [12:36:15]NVStorageDeleteData [12:36:16]OFD Sender: Processing packet 187290 [packets to send 78, broken 48] [12:36:16]ProducePacketName [12:36:16]name=ofd_packets/00187290 [12:36:16]OFD Sender: To server: pG, [12:36:16]CommunicateWithHost lk.salyk.kg:30040 [12:36:16]ConnectInit lk.salyk.kg [12:36:16]Connected sock=9 [12:36:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B5 0C 04 01 21 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C5 0F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A DB 02 00 35 04 06 00 FC 7F 38 D4 CD 30 8E F9 A4 55 80 2A BE 4E [12:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B6 B2 47 00 61 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A DB 02 00 F4 03 04 00 0F C8 B6 67 B6 04 01 00 00 89 CD 77 57 DB 94 62 49 [12:36:16]CommunicateWithHost err = 0 [12:36:16]CheckOFDResponse [12:36:16]1017 (14) - 77093643461234 [12:36:16]1041 (16) - 0000000000871826 [12:36:16]1040 (4) - 187290 [12:36:16]1012 (4) - 20.02.2025 06:13 [12:36:16]1206 (1) - 0 [12:36:16]OFD Sender: Remove packet 187290 [12:36:16]ProducePacketName [12:36:16]name=ofd_packets/00187290 [12:36:16]NVStorageDeleteData [12:36:17]OFD Sender: Processing packet 187291 [packets to send 77, broken 48] [12:36:17]ProducePacketName [12:36:17]name=ofd_packets/00187291 [12:36:17]OFD Sender: To server: pG, [12:36:17]CommunicateWithHost lk.salyk.kg:30040 [12:36:17]ConnectInit lk.salyk.kg [12:36:17]Connected sock=9 [12:36:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AD 5C 07 01 A7 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 16 10 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B DB 02 00 35 04 06 00 0E 8C D8 BA 4D D7 05 48 C6 F3 40 55 52 5A [12:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 23 A3 47 00 62 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B DB 02 00 F4 03 04 00 11 C8 B6 67 B6 04 01 00 00 EB D4 14 3D B5 43 13 CC [12:36:17]CommunicateWithHost err = 0 [12:36:17]CheckOFDResponse [12:36:17]1017 (14) - 77093643461234 [12:36:17]1041 (16) - 0000000000871826 [12:36:17]1040 (4) - 187291 [12:36:17]1012 (4) - 20.02.2025 06:13 [12:36:17]1206 (1) - 0 [12:36:17]OFD Sender: Remove packet 187291 [12:36:17]ProducePacketName [12:36:17]name=ofd_packets/00187291 [12:36:17]NVStorageDeleteData [12:36:18]OFD Sender: Processing packet 187292 [packets to send 76, broken 48] [12:36:18]ProducePacketName [12:36:18]name=ofd_packets/00187292 [12:36:18]OFD Sender: To server: pG, [12:36:18]CommunicateWithHost lk.salyk.kg:30040 [12:36:18]ConnectInit lk.salyk.kg [12:36:18]Connected sock=9 [12:36:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 5E 55 04 01 B6 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 96 10 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C DB 02 00 35 04 06 00 BF 69 64 DC 06 15 12 F7 DB EE AA E4 06 20 [12:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5C CE 47 00 8D 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 31 38 32 36 10 04 04 00 9C DB 02 00 F4 03 04 00 11 C8 B6 67 B6 04 01 00 00 D6 2B D0 0D AD F6 8A 2E [12:36:18]CommunicateWithHost err = 0 [12:36:18]CheckOFDResponse [12:36:18]1017 (14) - 77093643461234 [12:36:18]1041 (16) - 0000000000871826 [12:36:18]1040 (4) - 187292 [12:36:18]1012 (4) - 20.02.2025 06:13 [12:36:18]1206 (1) - 0 [12:36:18]OFD Sender: Remove packet 187292 [12:36:18]ProducePacketName [12:36:18]name=ofd_packets/00187292 [12:36:18]NVStorageDeleteData [12:36:19]OFD Sender: Processing packet 187293 [packets to send 75, broken 48] [12:36:19]ProducePacketName [12:36:19]name=ofd_packets/00187293 [12:36:19]OFD Sender: To server: pG, [12:36:19]CommunicateWithHost lk.salyk.kg:30040 [12:36:19]ConnectInit lk.salyk.kg [12:36:19]Connected sock=10 [12:36:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0C 25 04 01 F2 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B8 10 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D DB 02 00 35 04 06 00 EA 99 38 CE 0A 90 EB 0B DE 1F E8 D7 9B 0A [12:36:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5D C3 47 00 A6 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D DB 02 00 F4 03 04 00 13 C8 B6 67 B6 04 01 00 00 A9 81 88 56 4D E1 C8 51 [12:36:20]CommunicateWithHost err = 0 [12:36:20]CheckOFDResponse [12:36:20]1017 (14) - 77093643461234 [12:36:20]1041 (16) - 0000000000871826 [12:36:20]1040 (4) - 187293 [12:36:20]1012 (4) - 20.02.2025 06:13 [12:36:20]1206 (1) - 0 [12:36:20]OFD Sender: Remove packet 187293 [12:36:20]ProducePacketName [12:36:20]name=ofd_packets/00187293 [12:36:20]NVStorageDeleteData [12:36:20]OFD Sender: Processing packet 187294 [packets to send 74, broken 48] [12:36:20]ProducePacketName [12:36:20]name=ofd_packets/00187294 [12:36:20]OFD Sender: To server: pG, [12:36:20]CommunicateWithHost lk.salyk.kg:30040 [12:36:20]ConnectInit lk.salyk.kg [12:36:20]Connected sock=9 [12:36:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B1 38 07 01 86 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 11 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E DB 02 00 35 04 06 00 30 CE 93 94 E6 9A FE B8 C4 34 AD 66 68 F9 [12:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B4 15 47 00 75 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 31 38 32 36 10 04 04 00 9E DB 02 00 F4 03 04 00 14 C8 B6 67 B6 04 01 00 00 DA AF AF 88 D3 FD BD 5F [12:36:21]CommunicateWithHost err = 0 [12:36:21]CheckOFDResponse [12:36:21]1017 (14) - 77093643461234 [12:36:21]1041 (16) - 0000000000871826 [12:36:21]1040 (4) - 187294 [12:36:21]1012 (4) - 20.02.2025 06:13 [12:36:21]1206 (1) - 0 [12:36:21]OFD Sender: Remove packet 187294 [12:36:21]ProducePacketName [12:36:21]name=ofd_packets/00187294 [12:36:21]NVStorageDeleteData [12:36:21]OFD Sender: Processing packet 187295 [packets to send 73, broken 48] [12:36:21]ProducePacketName [12:36:21]name=ofd_packets/00187295 [12:36:21]OFD Sender: To server: pG, [12:36:21]CommunicateWithHost lk.salyk.kg:30040 [12:36:21]ConnectInit lk.salyk.kg [12:36:21]accept exits with 8 [12:36:21]New connection [12:36:21]New thread 3066985828 created [12:36:21]Thread 3066842468 joined [12:36:21]Waiting for new connection... [12:36:21] Sock 8.Parse request [12:36:21]Sock 8.Check first char [12:36:21]Sock 8.First char is OK [12:36:21]request: POST /json_proto HTTP/1.0 [12:36:21]Method: POST [12:36:21]URL: /json_proto [12:36:21]Method is POST - this is cgi request [12:36:21]url: /json_proto [12:36:21]query_string will be loaded in cgi processing [12:36:21]execute_cgi json_proto POST (null) [12:36:21]execute_cgi path=json_proto method=POST [12:36:21]POST find Content-Length [12:36:21]Host: 172.17.46.131:8080 [12:36:21]Content-Length: 678 [12:36:21]Content-Type: application/json [12:36:21] [12:36:21]POST finish read [12:36:21]Found Content-Length = 678 [12:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "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:36:21]execute_script... [12:36: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)412475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "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:36:21]POST & json_proto [12:36:21]process_json_proto [12:36:21]json parsed OK: [12:36:21]protocol is kg_v1.0 [12:36:21]action value=close_receipt [12:36:21]process_action close_receipt [12:36:21]cmd_close_receipt [12:36:21]MH_GetDate [12:36:21]Write to MH i2c: F0 00 00 1D 00 0C [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: F0 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: F0 09 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: F0 09 00 1D 00 00 C6 21 B7 67 7E 41 4F 65 8D [12:36:21]GetLastDocTimeStamp 1740054650 [12:36:21]current date 1740054982 [12:36:21]FM_GetShiftState [12:36:21]SAM_PROTO_GetShiftState [12:36:21]wFMCommunicate request_size=4 [12:36:21]MH_SAM_APDU [12:36:21]CAPDU: 80 13 01 00 [12:36:21]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:21]Connected sock=9 [12:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1F D2 04 01 9D 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 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 22 11 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F DB 02 00 35 04 06 00 9E 66 8F C1 3B F7 3C 07 F1 EF AE 5A AF B9 [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 0E 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 ED [12:36:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [12:36:21]wFMCommunicate OK [12:36:21]SAM_PROTO_GetShiftState done [12:36:21]FM_GetShiftState done [12:36:21]opened in 1740011697 [12:36:21]opened+sec_in_day 1740098097 [12:36:21]quantity*price = 70042 [12:36:21]sum+1 = 70043 [12:36:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 121 20.02.2025 12:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187320 ФПД: 277332305289048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T123622&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187320&fm=277332305289048&tin=02508201610067®Number=0000000000091857&sum=70000 [12:36:22]StoreToDocumentArchive [12:36:22]shift 648 fd 187320 [12:36:22]save to /storage/0648/doc_00187320 [12:36:22]save last doc name /storage/0648/doc_00187320 to /storage/kkm_last_doc_name [12:36:22]save OK [12:36:22]Clear old archive folders... [12:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:22]tlvbuf is 0100D900 [12:36:22]SAM_PROTO_ClearQueue [12:36:22]wFMCommunicate request_size=4 [12:36:22]MH_SAM_APDU [12:36:22]CAPDU: 80 09 00 00 [12:36:22]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:36:23]RAPDU: 90 00 [12:36:23]wFMCommunicate OK [12:36:23]SAM_PROTO_ClearQueue done [12:36:23]KKMCreateOFDPacket [12:36:23]OFDProtocolAddRootSTLVToBuf [12:36:23]FM_MakeSignedData [12:36:23]FM_MakeSignedData [12:36:23]SAM_PROTO_SignData [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 0D 01 02 [12:36:23]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:36:23]RAPDU: 90 00 [12:36:23]wFMCommunicate OK [12:36:23]wFMCommunicate request_size=255 [12:36:23]MH_SAM_APDU [12:36: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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C6 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DB 02 00 35 04 06 00 FC [12:36:23]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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C6 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DB 02 00 35 04 06 00 FC 00 00 88 [12:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 36 97 47 00 79 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 31 38 32 36 10 04 04 00 A0 DB 02 00 F4 03 04 00 16 C8 B6 67 B6 04 01 00 00 F3 21 8E 95 03 F9 4E A6 [12:36:23]CommunicateWithHost err = 0 [12:36:23]CheckOFDResponse [12:36:23]1017 (14) - 77093643461234 [12:36:23]1041 (16) - 0000000000871826 [12:36:23]1040 (4) - 187296 [12:36:23]1012 (4) - 20.02.2025 06:13 [12:36:23]1206 (1) - 0 [12:36:23]OFD Sender: Remove packet 187296 [12:36:23]ProducePacketName [12:36:23]name=ofd_packets/00187296 [12:36:23]NVStorageDeleteData [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:36:23]RAPDU: 90 00 [12:36:23]wFMCommunicate OK [12:36:23]wFMCommunicate request_size=10 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 0D 02 02 05 3B 75 8A 9F 58 [12:36:23]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 3B 75 8A 9F 58 00 00 E3 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:36:23]RAPDU: 90 00 [12:36:23]wFMCommunicate OK [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 0D 03 02 [12:36:23]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0B 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0B 00 2F 00 00 F9 57 A8 4F 9F 3F 7A 38 90 00 82 [12:36:23]RAPDU: F9 57 A8 4F 9F 3F 7A 38 90 00 [12:36:23]wFMCommunicate OK [12:36:23]SAM_PROTO_SignData done [12:36:23]FM_MakeSignedData done [12:36:23]CreateOFDProtocolMessage [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 11 00 00 [12:36:23]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 17 00 [12:36:23]MH_I2C_Read... [12:36: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 31 38 32 36 90 00 FD [12:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:36:23]wFMCommunicate OK [12:36:23]CreateOFDProtocolMessage done [12:36:23]OFDSenderStorePacket 187320 [12:36:23]StoreOFDPacket docnum=187320 [12:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 A6 07 01 61 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C6 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DB 02 00 35 04 06 00 FC 3B 75 8A 9F 58 F9 57 A8 4F 9F 3F 7A 38 [12:36:23]CheckFolder [12:36:23]dirname=/storage/ofd_packets [12:36:23]CheckFolder done [12:36:23]ProducePacketName [12:36:23]name=ofd_packets/00187320 [12:36:23]NVStorageSaveData ofd_packets/00187320 [12:36:23]File name is /storage/ofd_packets/00187320 [12:36:23]Write 301 bytes [12:36:23]NVStorageSaveData done [12:36:23]OFDSenderStorePacket done [12:36:23]KKMCreateOFDPacket done [12:36:23]NVStorageSaveData kkm_last_timestamp [12:36:23]File name is /storage/kkm_last_timestamp [12:36:23]Write 4 bytes [12:36:23]NVStorageSaveData done [12:36:23]ExternCall_PrintAddStr [12:36:23]wPrintStart [12:36:23]Write to MH i2c: 01 00 00 31 00 31 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: 01 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: 01 07 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:36:23]RasterBufferAndPrint [12:36:23]line Счет N : (1)412475 [12:36:23]line ИНН: 02508201610067 [12:36:23]line Контрольно-Кассовый Чек [12:36:23]line ПРОДАЖА [12:36:23]line ТРК (МРК, ГНК) : 12 [12:36:23]line Товар: 2710124130 [12:36:23]line Аи-92-К-2 [12:36:23]line 10.910 * 64.20 [12:36:23]line = 700.42 [12:36:23]line НДС 12% НСП 1% [12:36:23]line > о реализуемом товаре [12:36:23]line ОКРУГЛЕНИЕ: -0.42 [12:36:23]line ИТОГО: 700.00 [12:36:23]line Внесено: 700.00 [12:36:23]line СДАЧА: 0.00 [12:36:23]line НСП 1% : 6.20 [12:36:23]line НДС 12% : 74.38 [12:36:23]line Наличными: 700.00 [12:36:23]line Безнал.: 0.00 [12:36:23]line Место: АЗС № 92 "Партнер Нефть" [12:36:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:36:23]line СНО: Общий режим [12:36:23]line Чек 121 20.02.2025 12:36 [12:36:23]line Смена: 648 ФФД: 1.0 [12:36:23]line ЗНМ: 0300000118 [12:36:23]line РНМ: 0000000000091857 [12:36:23]line Версия ККМ: 001 [12:36:23]line ФМ: 0000000000871826 [12:36:23]line ФД: 187320 [12:36:23]line ФПД: 277332305289048 [12:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T123622&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187320&fm=277332305289048&tin=02508201610067®Number=0000000000091857&sum=70000 [12:36:23]written 0, free lines is 4095 [12:36:23]OFD Sender: Processing packet 187297 [packets to send 72, broken 48] [12:36:23]ProducePacketName [12:36:23]name=ofd_packets/00187297 [12:36:23]OFD Sender: To server: pG, [12:36:23]CommunicateWithHost lk.salyk.kg:30040 [12:36:23]ConnectInit lk.salyk.kg [12:36:24]Connected sock=9 [12:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CF 19 07 01 8E 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 11 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 DB 02 00 35 04 06 00 A9 38 9F 46 35 12 7C F0 F8 E6 A6 B9 9D B9 [12:36:24]Write to MH i2c: 01 00 00 5C 00 5C [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 01 0D 71 [12:36:24]RasterBufferAndPrint [12:36:24]line [12:36:24]line [12:36:24]line [12:36:24]line [12:36:24]line [12:36:24]written 0, free lines is 3341 [12:36:24]MH_Cut [12:36:24]Write to MH i2c: D1 01 00 63 00 01 35 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: D1 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: D1 01 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: D1 01 00 63 00 00 34 [12:36:24]Write to MH i2c: 01 00 00 64 00 64 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 30 91 47 00 D9 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 DB 02 00 F4 03 04 00 17 C8 B6 67 B6 04 01 00 00 94 53 3B C5 1F 6B D9 34 [12:36:24]CommunicateWithHost err = 0 [12:36:24]CheckOFDResponse [12:36:24]1017 (14) - 77093643461234 [12:36:24]1041 (16) - 0000000000871826 [12:36:24]1040 (4) - 187297 [12:36:24]1012 (4) - 20.02.2025 06:13 [12:36:24]1206 (1) - 0 [12:36:24]OFD Sender: Remove packet 187297 [12:36:24]ProducePacketName [12:36:24]name=ofd_packets/00187297 [12:36:24]NVStorageDeleteData [12:36:24]OFD Sender: Processing packet 187298 [packets to send 71, broken 48] [12:36:24]ProducePacketName [12:36:24]name=ofd_packets/00187298 [12:36:24]OFD Sender: To server: pG, [12:36:24]CommunicateWithHost lk.salyk.kg:30040 [12:36:24]ConnectInit lk.salyk.kg [12:36:24]*** Cut start [12:36:24]*** Partial cut [12:36:24]*** CUTSNS_PIN = 1 [12:36:25]*** CUTSNS_PIN = 0 [12:36:25]Connected sock=11 [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 31 38 32 36 0F 01 00 00 42 2F 07 01 0B 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C8 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 2F 13 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DB 02 00 35 04 06 00 44 16 58 26 FA 2E EF B4 DB C6 3A 5B DD 0D [12:36:25]*** Brake cut motor [12:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1F D7 47 00 7B 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 31 38 32 36 10 04 04 00 A2 DB 02 00 F4 03 04 00 18 C8 B6 67 B6 04 01 00 00 E2 62 67 E0 F4 5D 90 84 [12:36:25]CommunicateWithHost err = 0 [12:36:25]CheckOFDResponse [12:36:25]1017 (14) - 77093643461234 [12:36:25]1041 (16) - 0000000000871826 [12:36:25]1040 (4) - 187298 [12:36:25]1012 (4) - 20.02.2025 06:13 [12:36:25]1206 (1) - 0 [12:36:25]OFD Sender: Remove packet 187298 [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00187298 [12:36:25]NVStorageDeleteData [12:36:25]Read from MH i2c: 01 [12:36:25]MH_I2C_Read... [12:36:25]*** Stop cut motor [12:36:25]*** Cut end [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 64 00 00 00 00 00 00 FF 0F 79 [12:36:25]process_action close_receipt done [12:36:25]requested_data is exist [12:36:25]produce_requested_data [12:36:25]requested_item fm.sn is exist - process it [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 65 00 80 11 00 00 00 00 00 00 DF [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 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [12:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:36:25]wFMCommunicate OK [12:36:25]requested_item fd.num is exist - process it [12:36:25]SAM_PROTO_GetFieldsCounters [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 13 00 00 [12:36:25]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 62 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B8 DB 02 00 0E 04 04 00 88 02 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 92 [12:36:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B8 DB 02 00 0E 04 04 00 88 02 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 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_GetFieldsCounters done [12:36:25]requested_item shift.num is exist - process it [12:36:25]requested_item shift.opened is exist - process it [12:36:25]req_shift_opened [12:36:25]FM_GetShiftState [12:36:25]SAM_PROTO_GetShiftState [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 13 01 00 [12:36:25]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 36 [12:36:25]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_GetShiftState done [12:36:25]FM_GetShiftState done [12:36:25]req_shift_opened done [12:36:25]requested_item shift.open_date is exist - process it [12:36:25]req_shift_open_date [12:36:25]req_shift_open_date done [12:36:25]produce_requested_data done [12:36:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187320,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [12:36:25]process_action_free close_receipt [12:36:25]json_value_free [12:36:25]json_value_free done [12:36:25]process_json_proto returns [12:36:25]Send response to host [12:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187320,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [12:36:25]free response buf [12:36:25]execute_script done [12:36:25]execute_script returns [12:36:25]free content buf [12:36:25]Sock 8.Close socket [12:36:26]Sock 8.Thread stoped [12:36:26]OFD Sender: Processing packet 187299 [packets to send 70, broken 48] [12:36:26]ProducePacketName [12:36:26]name=ofd_packets/00187299 [12:36:26]OFD Sender: To server: pG, [12:36:26]CommunicateWithHost lk.salyk.kg:30040 [12:36:26]ConnectInit lk.salyk.kg [12:36:26]Connected sock=8 [12:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 53 80 04 01 D7 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7C 14 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 DB 02 00 35 04 06 00 7B A0 18 29 7C FB 3D 37 2A A4 F9 AC DD 84 [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 31 38 32 36 4F 00 00 00 3F EF 47 00 8F 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 DB 02 00 F4 03 04 00 19 C8 B6 67 B6 04 01 00 00 A8 D3 39 79 56 5E 0A B3 [12:36:26]CommunicateWithHost err = 0 [12:36:26]CheckOFDResponse [12:36:26]1017 (14) - 77093643461234 [12:36:26]1041 (16) - 0000000000871826 [12:36:26]1040 (4) - 187299 [12:36:26]1012 (4) - 20.02.2025 06:13 [12:36:26]1206 (1) - 0 [12:36:26]OFD Sender: Remove packet 187299 [12:36:26]ProducePacketName [12:36:26]name=ofd_packets/00187299 [12:36:26]NVStorageDeleteData [12:36:27]OFD Sender: Processing packet 187300 [packets to send 69, broken 48] [12:36:27]ProducePacketName [12:36:27]name=ofd_packets/00187300 [12:36:27]OFD Sender: To server: pG, [12:36:27]CommunicateWithHost lk.salyk.kg:30040 [12:36:27]ConnectInit lk.salyk.kg [12:36:27]Connected sock=8 [12:36:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7B 52 04 01 F3 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 52 BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 35 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 81 14 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 DB 02 00 35 04 06 00 51 D2 E3 7E 8C 6C E8 1D FE 94 7A A5 00 4B [12:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 21 D6 47 00 66 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 31 38 32 36 10 04 04 00 A4 DB 02 00 F4 03 04 00 1A C8 B6 67 B6 04 01 00 00 B1 57 F1 0F C4 E3 E1 B3 [12:36:27]CommunicateWithHost err = 0 [12:36:27]CheckOFDResponse [12:36:27]1017 (14) - 77093643461234 [12:36:27]1041 (16) - 0000000000871826 [12:36:27]1040 (4) - 187300 [12:36:27]1012 (4) - 20.02.2025 06:13 [12:36:27]1206 (1) - 0 [12:36:27]OFD Sender: Remove packet 187300 [12:36:27]ProducePacketName [12:36:27]name=ofd_packets/00187300 [12:36:27]NVStorageDeleteData [12:36:28]OFD Sender: Processing packet 187301 [packets to send 68, broken 48] [12:36:28]ProducePacketName [12:36:28]name=ofd_packets/00187301 [12:36:28]OFD Sender: To server: pG, [12:36:28]CommunicateWithHost lk.salyk.kg:30040 [12:36:28]ConnectInit lk.salyk.kg [12:36:28]Connected sock=8 [12:36:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 35 68 07 01 0A 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 85 14 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 DB 02 00 35 04 06 00 88 99 E2 28 6D E7 B8 30 89 7D B4 BA E9 9F [12:36:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 78 F1 47 00 4D 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 DB 02 00 F4 03 04 00 1B C8 B6 67 B6 04 01 00 00 FB 7A 27 0F A5 5F DC DC [12:36:28]CommunicateWithHost err = 0 [12:36:28]CheckOFDResponse [12:36:28]1017 (14) - 77093643461234 [12:36:28]1041 (16) - 0000000000871826 [12:36:28]1040 (4) - 187301 [12:36:28]1012 (4) - 20.02.2025 06:13 [12:36:28]1206 (1) - 0 [12:36:28]OFD Sender: Remove packet 187301 [12:36:28]ProducePacketName [12:36:28]name=ofd_packets/00187301 [12:36:28]NVStorageDeleteData [12:36:29]OFD Sender: Processing packet 187302 [packets to send 67, broken 48] [12:36:29]ProducePacketName [12:36:29]name=ofd_packets/00187302 [12:36:29]OFD Sender: To server: pG, [12:36:29]CommunicateWithHost lk.salyk.kg:30040 [12:36:29]ConnectInit lk.salyk.kg [12:36:29]Connected sock=8 [12:36:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 16 99 04 01 9E 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 D9 14 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 DB 02 00 35 04 06 00 F4 AD 23 82 50 1E 61 A3 F3 97 6D 1F 75 DB [12:36:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D 92 47 00 B6 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 31 38 32 36 10 04 04 00 A6 DB 02 00 F4 03 04 00 1C C8 B6 67 B6 04 01 00 00 70 64 56 9F 26 05 5C 66 [12:36:29]CommunicateWithHost err = 0 [12:36:29]CheckOFDResponse [12:36:29]1017 (14) - 77093643461234 [12:36:29]1041 (16) - 0000000000871826 [12:36:29]1040 (4) - 187302 [12:36:29]1012 (4) - 20.02.2025 06:13 [12:36:29]1206 (1) - 0 [12:36:29]OFD Sender: Remove packet 187302 [12:36:29]ProducePacketName [12:36:29]name=ofd_packets/00187302 [12:36:29]NVStorageDeleteData [12:36:30]OFD Sender: Processing packet 187303 [packets to send 66, broken 48] [12:36:30]ProducePacketName [12:36:30]name=ofd_packets/00187303 [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=8 [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 31 38 32 36 0F 01 00 00 75 E1 07 01 F7 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 85 15 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 DB 02 00 35 04 06 00 53 12 09 0E F9 F5 4F DC 3E FD C0 5A 29 3B [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 31 38 32 36 4F 00 00 00 23 AC 47 00 8D 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 31 38 32 36 10 04 04 00 A7 DB 02 00 F4 03 04 00 1D C8 B6 67 B6 04 01 00 00 B7 7A 21 AA 6E 98 44 F1 [12:36:30]CommunicateWithHost err = 0 [12:36:30]CheckOFDResponse [12:36:30]1017 (14) - 77093643461234 [12:36:30]1041 (16) - 0000000000871826 [12:36:30]1040 (4) - 187303 [12:36:30]1012 (4) - 20.02.2025 06:13 [12:36:30]1206 (1) - 0 [12:36:30]OFD Sender: Remove packet 187303 [12:36:30]ProducePacketName [12:36:30]name=ofd_packets/00187303 [12:36:30]NVStorageDeleteData [12:36:31]OFD Sender: Processing packet 187304 [packets to send 65, broken 48] [12:36:31]ProducePacketName [12:36:31]name=ofd_packets/00187304 [12:36:31]OFD Sender: To server: pG, [12:36:31]CommunicateWithHost lk.salyk.kg:30040 [12:36:31]ConnectInit lk.salyk.kg [12:36:31]Connected sock=8 [12:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E0 EB 04 01 D0 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 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 69 00 00 00 F4 03 04 00 B3 16 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 DB 02 00 35 04 06 00 37 CE C9 06 7F EF 44 8C 9C DA 69 90 F8 EA [12:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 93 2A 47 00 11 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 DB 02 00 F4 03 04 00 1E C8 B6 67 B6 04 01 00 00 14 C1 7D 62 62 A0 63 09 [12:36:31]CommunicateWithHost err = 0 [12:36:31]CheckOFDResponse [12:36:31]1017 (14) - 77093643461234 [12:36:31]1041 (16) - 0000000000871826 [12:36:31]1040 (4) - 187304 [12:36:31]1012 (4) - 20.02.2025 06:13 [12:36:31]1206 (1) - 0 [12:36:31]OFD Sender: Remove packet 187304 [12:36:31]ProducePacketName [12:36:31]name=ofd_packets/00187304 [12:36:31]NVStorageDeleteData [12:36:32]OFD Sender: Processing packet 187305 [packets to send 64, broken 48] [12:36:32]ProducePacketName [12:36:32]name=ofd_packets/00187305 [12:36:32]OFD Sender: To server: pG, [12:36:32]CommunicateWithHost lk.salyk.kg:30040 [12:36:32]ConnectInit lk.salyk.kg [12:36:32]Connected sock=8 [12:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BF 5A 07 01 E8 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 8D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E F8 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E F8 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E F8 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4C 17 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 DB 02 00 35 04 06 00 9B 3F 1D AB D1 DA AB B0 A1 AE 7A 35 88 0F [12:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 23 E7 47 00 FB 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 31 38 32 36 10 04 04 00 A9 DB 02 00 F4 03 04 00 1F C8 B6 67 B6 04 01 00 00 7D F2 FF D9 40 12 20 2E [12:36:32]CommunicateWithHost err = 0 [12:36:32]CheckOFDResponse [12:36:32]1017 (14) - 77093643461234 [12:36:32]1041 (16) - 0000000000871826 [12:36:32]1040 (4) - 187305 [12:36:32]1012 (4) - 20.02.2025 06:13 [12:36:32]1206 (1) - 0 [12:36:32]OFD Sender: Remove packet 187305 [12:36:32]ProducePacketName [12:36:32]name=ofd_packets/00187305 [12:36:32]NVStorageDeleteData [12:36:33]OFD Sender: Processing packet 187306 [packets to send 63, broken 48] [12:36:33]ProducePacketName [12:36:33]name=ofd_packets/00187306 [12:36:33]OFD Sender: To server: pG, [12:36:33]CommunicateWithHost lk.salyk.kg:30040 [12:36:33]ConnectInit lk.salyk.kg [12:36:33]Connected sock=8 [12:36:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BF 7B 07 01 C3 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 46 18 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA DB 02 00 35 04 06 00 6A CB 43 E2 A7 D0 F2 27 F6 C4 62 E7 CB 21 [12:36:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2F D1 47 00 A8 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA DB 02 00 F4 03 04 00 20 C8 B6 67 B6 04 01 00 00 01 72 C2 93 B5 51 4D 9F [12:36:33]CommunicateWithHost err = 0 [12:36:33]CheckOFDResponse [12:36:33]1017 (14) - 77093643461234 [12:36:33]1041 (16) - 0000000000871826 [12:36:33]1040 (4) - 187306 [12:36:33]1012 (4) - 20.02.2025 06:13 [12:36:33]1206 (1) - 0 [12:36:33]OFD Sender: Remove packet 187306 [12:36:33]ProducePacketName [12:36:33]name=ofd_packets/00187306 [12:36:33]NVStorageDeleteData [12:36:34]OFD Sender: Processing packet 187307 [packets to send 62, broken 48] [12:36:34]ProducePacketName [12:36:34]name=ofd_packets/00187307 [12:36:34]OFD Sender: To server: pG, [12:36:34]CommunicateWithHost lk.salyk.kg:30040 [12:36:34]ConnectInit lk.salyk.kg [12:36:34]Connected sock=8 [12:36:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 93 46 07 01 6F 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 19 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB DB 02 00 35 04 06 00 92 C0 CF AE 51 75 47 33 AB A1 75 D4 0B 0F [12:36:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 17 8A 47 00 FC 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB DB 02 00 F4 03 04 00 21 C8 B6 67 B6 04 01 00 00 F7 A6 75 B2 AC 36 F6 A4 [12:36:34]CommunicateWithHost err = 0 [12:36:34]CheckOFDResponse [12:36:34]1017 (14) - 77093643461234 [12:36:34]1041 (16) - 0000000000871826 [12:36:34]1040 (4) - 187307 [12:36:34]1012 (4) - 20.02.2025 06:13 [12:36:34]1206 (1) - 0 [12:36:34]OFD Sender: Remove packet 187307 [12:36:34]ProducePacketName [12:36:34]name=ofd_packets/00187307 [12:36:34]NVStorageDeleteData [12:36:35]OFD Sender: Processing packet 187308 [packets to send 61, broken 48] [12:36:35]ProducePacketName [12:36:35]name=ofd_packets/00187308 [12:36:35]OFD Sender: To server: pG, [12:36:35]CommunicateWithHost lk.salyk.kg:30040 [12:36:35]ConnectInit lk.salyk.kg [12:36:35]Connected sock=8 [12:36:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F 16 04 01 3A 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 12 19 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC DB 02 00 35 04 06 00 D9 A3 B3 D9 36 BA DA 29 28 55 AF DA B1 E5 [12:36:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A8 E4 47 00 DA 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 31 38 32 36 10 04 04 00 AC DB 02 00 F4 03 04 00 22 C8 B6 67 B6 04 01 00 00 74 6F ED DF 27 D8 19 14 [12:36:35]CommunicateWithHost err = 0 [12:36:35]CheckOFDResponse [12:36:35]1017 (14) - 77093643461234 [12:36:35]1041 (16) - 0000000000871826 [12:36:35]1040 (4) - 187308 [12:36:35]1012 (4) - 20.02.2025 06:13 [12:36:35]1206 (1) - 0 [12:36:35]OFD Sender: Remove packet 187308 [12:36:35]ProducePacketName [12:36:35]name=ofd_packets/00187308 [12:36:35]NVStorageDeleteData [12:36:36]OFD Sender: Processing packet 187309 [packets to send 60, broken 48] [12:36:36]ProducePacketName [12:36:36]name=ofd_packets/00187309 [12:36:36]OFD Sender: To server: pG, [12:36:36]CommunicateWithHost lk.salyk.kg:30040 [12:36:36]ConnectInit lk.salyk.kg [12:36:36]Connected sock=8 [12:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C0 0E 07 01 69 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 45 19 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD DB 02 00 35 04 06 00 8B 81 08 9A 13 9F B4 30 B3 38 FB 6D D4 AD [12:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 B3 47 00 2E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD DB 02 00 F4 03 04 00 24 C8 B6 67 B6 04 01 00 00 D4 F6 5F 44 84 18 94 D3 [12:36:36]CommunicateWithHost err = 0 [12:36:36]CheckOFDResponse [12:36:36]1017 (14) - 77093643461234 [12:36:36]1041 (16) - 0000000000871826 [12:36:36]1040 (4) - 187309 [12:36:36]1012 (4) - 20.02.2025 06:13 [12:36:36]1206 (1) - 0 [12:36:36]OFD Sender: Remove packet 187309 [12:36:36]ProducePacketName [12:36:36]name=ofd_packets/00187309 [12:36:36]NVStorageDeleteData [12:36:37]OFD Sender: Processing packet 187310 [packets to send 59, broken 48] [12:36:37]ProducePacketName [12:36:37]name=ofd_packets/00187310 [12:36:37]OFD Sender: To server: pG, [12:36:37]CommunicateWithHost lk.salyk.kg:30040 [12:36:37]ConnectInit lk.salyk.kg [12:36:37]Connected sock=8 [12:36:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 64 8E 07 01 FD CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 40 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2C CD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 CC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 30 00 00 00 00 07 04 06 00 F0 CC 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 BD 1A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE DB 02 00 35 04 06 00 D3 20 B6 76 CC 8C AC C3 FD 85 12 73 8A 70 [12:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0B 5F 47 00 12 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE DB 02 00 F4 03 04 00 25 C8 B6 67 B6 04 01 00 00 8A 9E BE 87 B9 4B 21 8D [12:36:37]CommunicateWithHost err = 0 [12:36:37]CheckOFDResponse [12:36:37]1017 (14) - 77093643461234 [12:36:37]1041 (16) - 0000000000871826 [12:36:37]1040 (4) - 187310 [12:36:37]1012 (4) - 20.02.2025 06:13 [12:36:37]1206 (1) - 0 [12:36:37]OFD Sender: Remove packet 187310 [12:36:37]ProducePacketName [12:36:37]name=ofd_packets/00187310 [12:36:37]NVStorageDeleteData [12:36:38]OFD Sender: Processing packet 187311 [packets to send 58, broken 48] [12:36:38]ProducePacketName [12:36:38]name=ofd_packets/00187311 [12:36:38]OFD Sender: To server: pG, [12:36:38]CommunicateWithHost lk.salyk.kg:30040 [12:36:38]ConnectInit lk.salyk.kg [12:36:38]Connected sock=8 [12:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AE FF 07 01 BF 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 36 1B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF DB 02 00 35 04 06 00 F8 14 BB D6 77 7F 9B 5C AB 2B 60 0C C1 A2 [12:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 50 BF 47 00 D6 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF DB 02 00 F4 03 04 00 26 C8 B6 67 B6 04 01 00 00 CA 1F 87 B6 C2 6F 8F 16 [12:36:38]CommunicateWithHost err = 0 [12:36:38]CheckOFDResponse [12:36:39]1017 (14) - 77093643461234 [12:36:39]1041 (16) - 0000000000871826 [12:36:39]1040 (4) - 187311 [12:36:39]1012 (4) - 20.02.2025 06:13 [12:36:39]1206 (1) - 0 [12:36:39]OFD Sender: Remove packet 187311 [12:36:39]ProducePacketName [12:36:39]name=ofd_packets/00187311 [12:36:39]NVStorageDeleteData [12:36:39]OFD Sender: Processing packet 187312 [packets to send 57, broken 48] [12:36:39]ProducePacketName [12:36:39]name=ofd_packets/00187312 [12:36:39]OFD Sender: To server: pG, [12:36:39]CommunicateWithHost lk.salyk.kg:30040 [12:36:39]ConnectInit lk.salyk.kg [12:36:39]Connected sock=8 [12:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8A 9A 04 01 CC 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 5E 1B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 DB 02 00 35 04 06 00 EA 0F 14 26 0C A6 C6 32 31 C7 E1 A7 8B 69 [12:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0C 58 47 00 A1 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 31 38 32 36 10 04 04 00 B0 DB 02 00 F4 03 04 00 27 C8 B6 67 B6 04 01 00 00 B6 E8 57 DE D9 25 A1 BD [12:36:40]CommunicateWithHost err = 0 [12:36:40]CheckOFDResponse [12:36:40]1017 (14) - 77093643461234 [12:36:40]1041 (16) - 0000000000871826 [12:36:40]1040 (4) - 187312 [12:36:40]1012 (4) - 20.02.2025 06:13 [12:36:40]1206 (1) - 0 [12:36:40]OFD Sender: Remove packet 187312 [12:36:40]ProducePacketName [12:36:40]name=ofd_packets/00187312 [12:36:40]NVStorageDeleteData [12:36:40]OFD Sender: Processing packet 187313 [packets to send 56, broken 48] [12:36:40]ProducePacketName [12:36:40]name=ofd_packets/00187313 [12:36:40]OFD Sender: To server: pG, [12:36:40]CommunicateWithHost lk.salyk.kg:30040 [12:36:40]ConnectInit lk.salyk.kg [12:36:40]Connected sock=8 [12:36:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC C3 07 01 82 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 E4 1C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 DB 02 00 35 04 06 00 74 53 9F 7F 45 B4 2E 85 6F 8A 64 5B 5A C1 [12:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 22 23 47 00 02 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 DB 02 00 F4 03 04 00 28 C8 B6 67 B6 04 01 00 00 D9 CD A5 A0 64 36 99 B5 [12:36:41]CommunicateWithHost err = 0 [12:36:41]CheckOFDResponse [12:36:41]1017 (14) - 77093643461234 [12:36:41]1041 (16) - 0000000000871826 [12:36:41]1040 (4) - 187313 [12:36:41]1012 (4) - 20.02.2025 06:14 [12:36:41]1206 (1) - 0 [12:36:41]OFD Sender: Remove packet 187313 [12:36:41]ProducePacketName [12:36:41]name=ofd_packets/00187313 [12:36:41]NVStorageDeleteData [12:36:41]OFD Sender: Processing packet 187314 [packets to send 55, broken 48] [12:36:41]ProducePacketName [12:36:41]name=ofd_packets/00187314 [12:36:41]OFD Sender: To server: pG, [12:36:41]CommunicateWithHost lk.salyk.kg:30040 [12:36:41]ConnectInit lk.salyk.kg [12:36:41]Connected sock=9 [12:36:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A5 91 07 01 86 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E9 1C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 DB 02 00 35 04 06 00 2B D5 1D B7 98 06 51 38 81 66 EB 18 75 7B [12:36:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E0 AC 47 00 52 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 DB 02 00 F4 03 04 00 29 C8 B6 67 B6 04 01 00 00 A8 D7 B8 8C 73 1D E7 6F [12:36:42]CommunicateWithHost err = 0 [12:36:42]CheckOFDResponse [12:36:42]1017 (14) - 77093643461234 [12:36:42]1041 (16) - 0000000000871826 [12:36:42]1040 (4) - 187314 [12:36:42]1012 (4) - 20.02.2025 06:14 [12:36:42]1206 (1) - 0 [12:36:42]OFD Sender: Remove packet 187314 [12:36:42]ProducePacketName [12:36:42]name=ofd_packets/00187314 [12:36:42]NVStorageDeleteData [12:36:42]accept exits with 10 [12:36:42]New connection [12:36:42]New thread 3066842468 created [12:36:42]Thread 3066985828 joined [12:36:42]Waiting for new connection... [12:36:42] Sock 10.Parse request [12:36:42]Sock 10.Check first char [12:36:42]Sock 10.First char is OK [12:36:42]request: POST /json_proto HTTP/1.0 [12:36:42]Method: POST [12:36:42]URL: /json_proto [12:36:42]Method is POST - this is cgi request [12:36:42]url: /json_proto [12:36:42]query_string will be loaded in cgi processing [12:36:42]execute_cgi json_proto POST (null) [12:36:42]execute_cgi path=json_proto method=POST [12:36:42]POST find Content-Length [12:36:42]Host: 172.17.46.131:8080 [12:36:42]Content-Length: 800 [12:36:42]Content-Type: application/json [12:36:42] [12:36:42]POST finish read [12:36:42]Found Content-Length = 800 [12:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997478", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:42]execute_script... [12: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)412477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997478", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:42]POST & json_proto [12:36:42]process_json_proto [12:36:42]json parsed OK: [12:36:42]protocol is kg_v1.0 [12:36:42]action value=close_receipt [12:36:42]process_action close_receipt [12:36:42]cmd_close_receipt [12:36:42]MH_GetDate [12:36:42]Write to MH i2c: F0 00 00 68 00 57 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 68 00 00 DA 21 B7 67 7E 41 4F 65 EC [12:36:42]GetLastDocTimeStamp 1740054982 [12:36:42]current date 1740055002 [12:36:42]FM_GetShiftState [12:36:42]SAM_PROTO_GetShiftState [12:36:42]wFMCommunicate request_size=4 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 13 01 00 [12:36:42]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 38 [12:36:42]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [12:36:42]wFMCommunicate OK [12:36:42]SAM_PROTO_GetShiftState done [12:36:42]FM_GetShiftState done [12:36:42]opened in 1740011697 [12:36:42]opened+sec_in_day 1740098097 [12:36:42]quantity*price = 0 [12:36:42]sum+1 = 1 [12:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 122 20.02.2025 12:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4997478 ФМ: 0000000000871826 ФД: 187321 ФПД: 172644706988152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T123643&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187321&fm=172644706988152&tin=02508201610067®Number=0000000000091857&sum=0 [12:36:43]StoreToDocumentArchive [12:36:43]shift 648 fd 187321 [12:36:43]save to /storage/0648/doc_00187321 [12:36:43]save last doc name /storage/0648/doc_00187321 to /storage/kkm_last_doc_name [12:36:43]save OK [12:36:43]Clear old archive folders... [12:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:43]tlvbuf is 01012380 [12:36:43]SAM_PROTO_ClearQueue [12:36:43]wFMCommunicate request_size=4 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 09 00 00 [12:36:43]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:43]Read from MH i2c: E2 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:36:43]RAPDU: 90 00 [12:36:43]wFMCommunicate OK [12:36:43]SAM_PROTO_ClearQueue done [12:36:43]KKMCreateOFDPacket [12:36:43]OFDProtocolAddRootSTLVToBuf [12:36:43]FM_MakeSignedData [12:36:43]FM_MakeSignedData [12:36:43]SAM_PROTO_SignData [12:36:43]wFMCommunicate request_size=4 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 0D 01 02 [12:36:43]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:43]Read from MH i2c: E2 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [12:36:43]RAPDU: 90 00 [12:36:43]wFMCommunicate OK [12:36:43]wFMCommunicate request_size=255 [12:36:43]MH_SAM_APDU [12:36:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 DB 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 DB 02 00 35 04 06 00 9D [12:36:43]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 DB 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 DB 02 00 35 04 06 00 9D 00 00 84 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:44]OFD Sender: Processing packet 187316 [packets to send 53, broken 48] [12:36:44]ProducePacketName [12:36:44]name=ofd_packets/00187316 [12:36:44]OFD Sender: To server: pG, [12:36:44]CommunicateWithHost lk.salyk.kg:30040 [12:36:44]ConnectInit lk.salyk.kg [12:36:44]Connected sock=9 [12:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 00 1F 07 01 E5 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:44]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 9E 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 75 00 00 00 F4 03 04 00 07 1F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 Read from MH i2c: 01 E2 0D [12:36:44]04 MH_I2C_Read... [12:36:44]10 Read from MH i2c: 00 E2 30 03 30 00 30 [12:36:44]30 MH_I2C_Read... [12:36:44]30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 Read from MH i2c: 04 E2 00 03 B4 00 DB 78 02 00 00 00 35 90 04 00 06 EC 00 [12:36:44]DA RAPDU: 87 90 9A 00 EF [12:36:44]wFMCommunicate OK [12:36:44]B8 wFMCommunicate request_size=10 [12:36:44]5D MH_SAM_APDU [12:36:44]2D CAPDU: 8B 80 F1 0D A5 02 A5 02 45 05 FE 04 A2 FA [12:36:44]6E B0 78 [12:36:44]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 04 FA 6E B0 78 00 00 91 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 03 02 [12:36:44]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0B 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0B 00 7A 00 00 94 5A 5B 5E 15 C7 0E AF 90 00 36 [12:36:44]RAPDU: 94 5A 5B 5E 15 C7 0E AF 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_SignData done [12:36:44]FM_MakeSignedData done [12:36:44]CreateOFDProtocolMessage [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 11 00 00 [12:36:44]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [12:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:36:44]wFMCommunicate OK [12:36:44]CreateOFDProtocolMessage done [12:36:44]OFDSenderStorePacket 187321 [12:36:44]StoreOFDPacket docnum=187321 [12:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7F 72 07 01 E7 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 DB 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 DB 02 00 35 04 06 00 9D 04 FA 6E B0 78 94 5A 5B 5E 15 C7 0E AF [12:36:44]CheckFolder [12:36:44]dirname=/storage/ofd_packets [12:36:44]CheckFolder done [12:36:44]ProducePacketName [12:36:44]name=ofd_packets/00187321 [12:36:44]NVStorageSaveData ofd_packets/00187321 [12:36:44]File name is /storage/ofd_packets/00187321 [12:36:44]Write 301 bytes [12:36:44]NVStorageSaveData done [12:36:44]OFDSenderStorePacket done [12:36:44]KKMCreateOFDPacket done [12:36:44]NVStorageSaveData kkm_last_timestamp [12:36:44]File name is /storage/kkm_last_timestamp [12:36:44]Write 4 bytes [12:36:44]NVStorageSaveData done [12:36:44]ExternCall_PrintAddStr [12:36:44]wPrintStart [12:36:44]Write to MH i2c: 01 00 00 7C 00 7C [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [12:36:44]RasterBufferAndPrint [12:36:44]line Счет N : (1)412477 [12:36:44]line ИНН: 02508201610067 [12:36:44]line Контрольно-Кассовый Чек [12:36:44]line ПРОДАЖА [12:36:44]line ТРК (МРК, ГНК) : 32 [12:36:44]line Товар: 2710124130 [12:36:44]line Аи-92-К-2 [12:36:44]line 10.000 * 0.00 [12:36:44]line = 0.00 [12:36:44]line НДС 12% НСП 1% [12:36:44]line > о реализуемом товаре [12:36:44]line ИТОГО: 0.00 [12:36:44]line НСП 1% : 0.00 [12:36:44]line НДС 12% : 0.00 [12:36:44]line Наличными: 0.00 [12:36:44]line Безнал.: 0.00 [12:36:44]line Место: АЗС № 92 "Партнер Нефть" [12:36:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:36:44]line СНО: Общий режим [12:36:44]line Чек 122 20.02.2025 12:36 [12:36:44]line Смена: 648 ФФД: 1.0 [12:36:44]line ЗНМ: 0300000118 [12:36:44]line РНМ: 0000000000091857 [12:36:44]line Версия ККМ: 001 [12:36:44]line Талоны: Топливные Талоны [12:36:44]line 4997478 [12:36:44]line ФМ: 0000000000871826 [12:36:44]line ФД: 187321 [12:36:44]line ФПД: 172644706988152 [12:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T123643&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187321&fm=172644706988152&tin=02508201610067®Number=0000000000091857&sum=0 [12:36:44]written 0, free lines is 4095 [12:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F9 1F 47 00 26 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 DB 02 00 F4 03 04 00 2B C8 B6 67 B6 04 01 00 00 16 60 B2 0C 67 61 4D C8 [12:36:44]CommunicateWithHost err = 0 [12:36:44]CheckOFDResponse [12:36:44]1017 (14) - 77093643461234 [12:36:44]1041 (16) - 0000000000871826 [12:36:44]1040 (4) - 187316 [12:36:44]1012 (4) - 20.02.2025 06:14 [12:36:44]1206 (1) - 0 [12:36:44]OFD Sender: Remove packet 187316 [12:36:44]ProducePacketName [12:36:44]name=ofd_packets/00187316 [12:36:44]NVStorageDeleteData [12:36:45]Write to MH i2c: 01 00 00 A6 00 A6 [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 00 0D BA [12:36:45]RasterBufferAndPrint [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]written 0, free lines is 3355 [12:36:45]MH_Cut [12:36:45]Write to MH i2c: D1 01 00 AD 00 01 7F [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 01 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 01 00 AD 00 00 7E [12:36:45]Write to MH i2c: 01 00 00 AE 00 AE [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]OFD Sender: Processing packet 187317 [packets to send 53, broken 48] [12:36:45]ProducePacketName [12:36:45]name=ofd_packets/00187317 [12:36:45]OFD Sender: To server: pG, [12:36:45]CommunicateWithHost lk.salyk.kg:30040 [12:36:45]ConnectInit lk.salyk.kg [12:36:45]Connected sock=9 [12: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 31 38 32 36 0C 01 00 00 44 07 04 01 AC BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 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 52 1F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 DB 02 00 35 04 06 00 8A 3E AC CA 87 D2 54 E0 2C 54 F6 EC A3 38 [12:36:45]*** Cut start [12:36:45]*** Partial cut [12:36:45]*** CUTSNS_PIN = 1 [12:36:45]*** CUTSNS_PIN = 0 [12:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0D AF 47 00 C0 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 DB 02 00 F4 03 04 00 2D C8 B6 67 B6 04 01 00 00 5A 40 DC 0F 37 4E AE 69 [12:36:46]CommunicateWithHost err = 0 [12:36:46]CheckOFDResponse [12:36:46]1017 (14) - 77093643461234 [12:36:46]1041 (16) - 0000000000871826 [12:36:46]1040 (4) - 187317 [12:36:46]1012 (4) - 20.02.2025 06:14 [12:36:46]1206 (1) - 0 [12:36:46]OFD Sender: Remove packet 187317 [12:36:46]ProducePacketName [12:36:46]name=ofd_packets/00187317 [12:36:46]NVStorageDeleteData [12:36:46]*** Brake cut motor [12:36:46]Read from MH i2c: *** Stop cut motor [12:36:46]01 *** Cut end [12:36:46] [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: 01 07 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [12:36:46]process_action close_receipt done [12:36:46]requested_data is exist [12:36:46]produce_requested_data [12:36:46]requested_item fm.sn is exist - process it [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 11 00 00 [12:36:46]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 17 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [12:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:36:46]wFMCommunicate OK [12:36:46]requested_item fd.num is exist - process it [12:36:46]SAM_PROTO_GetFieldsCounters [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 13 00 00 [12:36:46]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [12:36:46]OFD Sender: Processing packet 187318 [packets to send 52, broken 48] [12:36:46]ProducePacketName [12:36:46]name=ofd_packets/00187318 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]OFD Sender: To server: pG, [12:36:46]CommunicateWithHost lk.salyk.kg:30040 [12:36:46]ConnectInit lk.salyk.kg [12:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B9 DB 02 00 0E 04 04 00 88 02 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 E0 [12: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B9 DB 02 00 0E 04 04 00 88 02 00 00 12 Connected sock=9 [12:36:46]04 Data to sent: 04 87 00 95 7A F6 00 70 00 47 00 5E 04 04 00 7A 00 00 00 57 2C 04 01 04 00 00 30 7B 30 00 30 00 30 00 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D0 74 04 01 53 88 5A 03 01 00 03 19 00 04 F8 04 00 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 00 39 34 00 32 00 31 00 90 00 [12:36:46]wFMCommunicate OK [12:36:46]SAM_PROTO_GetFieldsCounters done [12:36:46]requested_item shift.num is exist - process it [12:36:46]requested_item shift.opened is exist - process it [12:36:46]req_shift_opened [12:36:46]FM_GetShiftState [12:36:46]SAM_PROTO_GetShiftState [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 30 13 06 01 04 00 [12:36:46]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [12:36:46]09 00 D0 Write i2c OK [12:36:46]94 MH_I2C_Read... [12:36:46]D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 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 Read from MH i2c: 0D E2 03 [12:36:47]00 MH_I2C_Read... [12:36:47]00 Read from MH i2c: 00 E2 EB 03 0E 26 00 00 [12:36:47]EF MH_I2C_Read... [12:36:47]03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 Read from MH i2c: EE E2 03 0E 0F 00 00 B1 F2 00 03 00 01 09 00 00 01 01 F3 B1 03 78 06 B6 00 F8 52 00 00 00 00 07 04 06 00 40 0D 67 03 00 00 00 00 00 00 00 39 90 04 00 06 80 [12:36:47]RAPDU: 09 00 01 B1 78 B6 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:47]67 00 00 00 00 00 00 00 00 00 00 90 00 00 [12:36:47]wFMCommunicate OK [12:36:47]SAM_PROTO_GetShiftState done [12:36:47]FM_GetShiftState done [12:36:47]req_shift_opened done [12:36:47]requested_item shift.open_date is exist - process it [12:36:47]req_shift_open_date [12:36:47]1F req_shift_open_date done [12:36:47]04 produce_requested_data done [12:36:47]02 produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187321,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [12:36:47]00 process_action_free close_receipt [12:36:47]01 json_value_free [12:36:47]00 json_value_free done [12:36:47]12 process_json_proto returns [12:36:47]Send response to host [12:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187321,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [12:36:47]free response buf [12:36:47]execute_script done [12:36:47]04 execute_script returns [12:36:47]04 free content buf [12:36:47]00 Sock 10.Close socket [12:36:47]77 Sock 10.Thread stoped [12:36:47]00 00 00 F4 03 04 00 CA 1F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 DB 02 00 35 04 06 00 D1 7F 8D EE 43 81 A4 AC 26 15 19 9E EE 65 [12:36:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2C 6F 47 00 99 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 DB 02 00 F4 03 04 00 2E C8 B6 67 B6 04 01 00 00 B3 C8 CD AC D7 29 18 66 [12:36:47]CommunicateWithHost err = 0 [12:36:47]CheckOFDResponse [12:36:47]1017 (14) - 77093643461234 [12:36:47]1041 (16) - 0000000000871826 [12:36:47]1040 (4) - 187318 [12:36:47]1012 (4) - 20.02.2025 06:14 [12:36:47]1206 (1) - 0 [12:36:47]OFD Sender: Remove packet 187318 [12:36:47]ProducePacketName [12:36:47]name=ofd_packets/00187318 [12:36:47]NVStorageDeleteData [12:36:48]OFD Sender: Processing packet 187319 [packets to send 51, broken 48] [12:36:48]ProducePacketName [12:36:48]name=ofd_packets/00187319 [12:36:48]OFD Sender: To server: pG, [12:36:48]CommunicateWithHost lk.salyk.kg:30040 [12:36:48]ConnectInit lk.salyk.kg [12:36:48]Connected sock=9 [12:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 21 07 01 D3 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 78 00 00 00 F4 03 04 00 7A 20 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 DB 02 00 35 04 06 00 54 9D 61 69 99 0B 85 58 A4 BF 44 7B D1 E3 [12:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F9 85 47 00 B4 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 31 38 32 36 10 04 04 00 B7 DB 02 00 F4 03 04 00 2F C8 B6 67 B6 04 01 00 00 F5 CD 58 9E 43 39 59 78 [12:36:48]CommunicateWithHost err = 0 [12:36:48]CheckOFDResponse [12:36:48]1017 (14) - 77093643461234 [12:36:48]1041 (16) - 0000000000871826 [12:36:48]1040 (4) - 187319 [12:36:48]1012 (4) - 20.02.2025 06:14 [12:36:48]1206 (1) - 0 [12:36:48]OFD Sender: Remove packet 187319 [12:36:48]ProducePacketName [12:36:48]name=ofd_packets/00187319 [12:36:48]NVStorageDeleteData [12:36:49]OFD Sender: Processing packet 187320 [packets to send 50, broken 48] [12:36:49]ProducePacketName [12:36:49]name=ofd_packets/00187320 [12:36:49]OFD Sender: To server: pG, [12:36:49]CommunicateWithHost lk.salyk.kg:30040 [12:36:49]ConnectInit lk.salyk.kg [12:36:49]Connected sock=9 [12:36:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 A6 07 01 61 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C6 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DB 02 00 35 04 06 00 FC 3B 75 8A 9F 58 F9 57 A8 4F 9F 3F 7A 38 [12:36:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9E 06 47 00 93 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DB 02 00 F4 03 04 00 30 C8 B6 67 B6 04 01 00 00 FB A8 A2 04 AB AE 10 6C [12:36:49]CommunicateWithHost err = 0 [12:36:49]CheckOFDResponse [12:36:49]1017 (14) - 77093643461234 [12:36:49]1041 (16) - 0000000000871826 [12:36:49]1040 (4) - 187320 [12:36:49]1012 (4) - 20.02.2025 06:14 [12:36:49]1206 (1) - 0 [12:36:49]OFD Sender: Remove packet 187320 [12:36:49]ProducePacketName [12:36:49]name=ofd_packets/00187320 [12:36:49]NVStorageDeleteData [12:36:50]OFD Sender: Processing packet 187321 [packets to send 49, broken 48] [12:36:50]ProducePacketName [12:36:50]name=ofd_packets/00187321 [12:36:50]OFD Sender: To server: pG, [12:36:50]CommunicateWithHost lk.salyk.kg:30040 [12:36:50]ConnectInit lk.salyk.kg [12:36:50]Connected sock=9 [12:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7F 72 07 01 E7 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 DB 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 DB 02 00 35 04 06 00 9D 04 FA 6E B0 78 94 5A 5B 5E 15 C7 0E AF [12:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B7 31 47 00 B3 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 31 38 32 36 10 04 04 00 B9 DB 02 00 F4 03 04 00 32 C8 B6 67 B6 04 01 00 00 81 60 F8 8E C7 A0 9D 96 [12:36:50]CommunicateWithHost err = 0 [12:36:50]CheckOFDResponse [12:36:50]1017 (14) - 77093643461234 [12:36:50]1041 (16) - 0000000000871826 [12:36:50]1040 (4) - 187321 [12:36:50]1012 (4) - 20.02.2025 06:14 [12:36:50]1206 (1) - 0 [12:36:50]OFD Sender: Remove packet 187321 [12:36:50]ProducePacketName [12:36:50]name=ofd_packets/00187321 [12:36:50]NVStorageDeleteData [12:36:51]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:53]accept exits with 8 [12:36:53]New connection [12:36:53]New thread 3066985828 created [12:36:53]Thread 3066842468 joined [12:36:53]Waiting for new connection... [12:36:53] Sock 8.Parse request [12:36:53]Sock 8.Check first char [12:36:53]Sock 8.First char is OK [12:36:53]request: POST /json_proto HTTP/1.0 [12:36:53]Method: POST [12:36:53]URL: /json_proto [12:36:53]Method is POST - this is cgi request [12:36:53]url: /json_proto [12:36:53]query_string will be loaded in cgi processing [12:36:53]execute_cgi json_proto POST (null) [12:36:53]execute_cgi path=json_proto method=POST [12:36:53]POST find Content-Length [12:36:53]Host: 172.17.46.131:8080 [12:36:53]Content-Length: 682 [12:36:53]Content-Type: application/json [12:36:53] [12:36:53]POST finish read [12:36:53]Found Content-Length = 682 [12:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [12:36:53]execute_script... [12:36:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [12:36:53]POST & json_proto [12:36:53]process_json_proto [12:36:53]json parsed OK: [12:36:53]protocol is kg_v1.0 [12:36:53]action value=close_receipt [12:36:53]process_action close_receipt [12:36:53]cmd_close_receipt [12:36:53]MH_GetDate [12:36:53]Write to MH i2c: F0 00 00 B2 00 A1 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: F0 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: F0 09 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: F0 09 00 B2 00 00 E6 21 B7 67 7E 41 4F 65 42 [12:36:53]GetLastDocTimeStamp 1740055003 [12:36:53]current date 1740055014 [12:36:53]FM_GetShiftState [12:36:53]SAM_PROTO_GetShiftState [12:36:53]wFMCommunicate request_size=4 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 13 01 00 [12:36:53]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 0E 00 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 82 [12:36:54]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [12:36:54]wFMCommunicate OK [12:36:54]SAM_PROTO_GetShiftState done [12:36:54]FM_GetShiftState done [12:36:54]opened in 1740011697 [12:36:54]opened+sec_in_day 1740098097 [12:36:54]quantity*price = 200025 [12:36:54]sum+1 = 200027 [12:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 123 20.02.2025 12:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187322 ФПД: 129716062479338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T123654&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187322&fm=129716062479338&tin=02508201610067®Number=0000000000091857&sum=200000 [12:36:55]StoreToDocumentArchive [12:36:55]shift 648 fd 187322 [12:36:55]save to /storage/0648/doc_00187322 [12:36:55]save last doc name /storage/0648/doc_00187322 to /storage/kkm_last_doc_name [12:36:55]save OK [12:36:55]Clear old archive folders... [12:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:55]tlvbuf is 0104F9A0 [12:36:55]SAM_PROTO_ClearQueue [12:36:55]wFMCommunicate request_size=4 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 09 00 00 [12:36:55]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [12:36:55]Write i2c OK [12:36:55]MH_I2C_Read... [12:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:55]Read from MH i2c: E2 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 03 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [12:36:55]RAPDU: 90 00 [12:36:55]wFMCommunicate OK [12:36:55]SAM_PROTO_ClearQueue done [12:36:55]KKMCreateOFDPacket [12:36:55]OFDProtocolAddRootSTLVToBuf [12:36:55]FM_MakeSignedData [12:36:55]FM_MakeSignedData [12:36:55]SAM_PROTO_SignData [12:36:55]wFMCommunicate request_size=4 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 0D 01 02 [12:36:55]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [12:36:55]Write i2c OK [12:36:55]MH_I2C_Read... [12:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:55]Read from MH i2c: E2 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 03 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [12:36:55]RAPDU: 90 00 [12:36:55]wFMCommunicate OK [12:36:55]wFMCommunicate request_size=255 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 7B 00 00 00 F4 03 04 00 E6 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA DB 02 00 35 04 06 00 75 [12:36:55]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 E6 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA DB 02 00 35 04 06 00 75 00 00 13 [12:36:55]Write i2c OK [12:36:55]MH_I2C_Read... [12:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:55]Read from MH i2c: E2 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 03 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [12:36:55]RAPDU: 90 00 [12:36:55]wFMCommunicate OK [12:36:55]wFMCommunicate request_size=10 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 0D 02 02 05 F9 DF D3 63 EA [12:36:55]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 F9 DF D3 63 EA 00 00 3F [12:36:55]Write i2c OK [12:36:55]MH_I2C_Read... [12:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:55]Read from MH i2c: E2 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 03 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [12:36:55]RAPDU: 90 00 [12:36:55]wFMCommunicate OK [12:36:55]wFMCommunicate request_size=4 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 0D 03 02 [12:36:55]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [12:36:55]Write i2c OK [12:36:55]MH_I2C_Read... [12:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:55]Read from MH i2c: E2 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 0B 00 [12:36:55]MH_I2C_Read... [12:36:55]Read from MH i2c: E2 0B 00 C4 00 00 05 83 98 8A B4 9D 04 9C 90 00 DB [12:36:55]RAPDU: 05 83 98 8A B4 9D 04 9C 90 00 [12:36:55]wFMCommunicate OK [12:36:55]SAM_PROTO_SignData done [12:36:55]FM_MakeSignedData done [12:36:55]CreateOFDProtocolMessage [12:36:55]wFMCommunicate request_size=4 [12:36:55]MH_SAM_APDU [12:36:55]CAPDU: 80 11 00 00 [12:36:56]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [12:36:56]Write i2c OK [12:36:56]MH_I2C_Read... [12:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:56]Read from MH i2c: E2 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: E2 17 00 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [12:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:36:56]wFMCommunicate OK [12:36:56]CreateOFDProtocolMessage done [12:36:56]OFDSenderStorePacket 187322 [12:36:56]StoreOFDPacket docnum=187322 [12:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB 36 07 01 51 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 7B 00 00 00 F4 03 04 00 E6 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA DB 02 00 35 04 06 00 75 F9 DF D3 63 EA 05 83 98 8A B4 9D 04 9C [12:36:56]CheckFolder [12:36:56]dirname=/storage/ofd_packets [12:36:56]CheckFolder done [12:36:56]ProducePacketName [12:36:56]name=ofd_packets/00187322 [12:36:56]NVStorageSaveData ofd_packets/00187322 [12:36:56]File name is /storage/ofd_packets/00187322 [12:36:56]Write 301 bytes [12:36:56]NVStorageSaveData done [12:36:56]OFDSenderStorePacket done [12:36:56]KKMCreateOFDPacket done [12:36:56]NVStorageSaveData kkm_last_timestamp [12:36:56]File name is /storage/kkm_last_timestamp [12:36:56]Write 4 bytes [12:36:56]NVStorageSaveData done [12:36:56]ExternCall_PrintAddStr [12:36:56]wPrintStart [12:36:56]Write to MH i2c: 01 00 00 C6 00 C6 [12:36:56]Write i2c OK [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: 01 [12:36:56]MH_I2C_Read... [12:36:56]OFD Sender: Processing packet 187322 [packets to send 49, broken 48] [12:36:56]ProducePacketName [12:36:56]name=ofd_packets/00187322 [12:36:56]OFD Sender: To server: pG, [12:36:56]CommunicateWithHost lk.salyk.kg:30040 [12:36:56]ConnectInit lk.salyk.kg [12:36:56]Read from MH i2c: 01 07 00 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [12:36:56]RasterBufferAndPrint [12:36:56]line Счет N : (1)412476 [12:36:56]line ИНН: 02508201610067 [12:36:56]line Контрольно-Кассовый Чек [12:36:56]line ПРОДАЖА [12:36:56]line ТРК (МРК, ГНК) : 23 [12:36:56]line Товар: 2710124500 [12:36:56]line Аи-95-К-5 [12:36:56]line 27.820 * 71.90 [12:36:56]line = 2000.26 [12:36:56]line НДС 12% НСП 1% [12:36:56]line > о реализуемом товаре [12:36:56]line ОКРУГЛЕНИЕ: -0.26 [12:36:56]line ИТОГО: 2000.00 [12:36:56]line Внесено: 2000.00 [12:36:56]line СДАЧА: 0.00 [12:36:56]line НСП 1% : 17.70 [12:36:56]line НДС 12% : 212.42 [12:36:56]line Наличными: 2000.00 [12:36:56]line Безнал.: 0.00 [12:36:56]line Место: АЗС № 92 "Партнер Нефть" [12:36:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:36:56]line СНО: Общий режим [12:36:56]line Чек 123 20.02.2025 12:36 [12:36:56]line Смена: 648 ФФД: 1.0 [12:36:56]line ЗНМ: 0300000118 [12:36:56]line РНМ: 0000000000091857 [12:36:56]line Версия ККМ: 001 [12:36:56]line ФМ: 0000000000871826 [12:36:56]line ФД: 187322 [12:36:56]line ФПД: 129716062479338 [12:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T123654&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187322&fm=129716062479338&tin=02508201610067®Number=0000000000091857&sum=200000 [12:36:56]written 0, free lines is 4095 [12:36:56]Connected sock=10 [12:36:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB 36 07 01 51 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 7B 00 00 00 F4 03 04 00 E6 21 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA DB 02 00 35 04 06 00 75 F9 DF D3 63 EA 05 83 98 8A B4 9D 04 9C [12:36:56]Write to MH i2c: 01 00 00 F1 00 F1 [12:36:56]Write i2c OK [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: 01 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: 01 07 00 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 08 0D 0D [12:36:56]RasterBufferAndPrint [12:36:56]line [12:36:56]line [12:36:56]line [12:36:56]line [12:36:56]line [12:36:56]written 0, free lines is 3367 [12:36:56]MH_Cut [12:36:56]Write to MH i2c: D1 01 00 F8 00 01 CA [12:36:56]Write i2c OK [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: D1 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: D1 01 00 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: D1 01 00 F8 00 00 C9 [12:36:56]Write to MH i2c: 01 00 00 F9 00 F9 [12:36:56]Write i2c OK [12:36:56]MH_I2C_Read... [12:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 82 F4 47 00 AD 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 31 38 32 36 10 04 04 00 BA DB 02 00 F4 03 04 00 37 C8 B6 67 B6 04 01 00 00 5E 9E 70 17 CA 6C C4 21 [12:36:56]CommunicateWithHost err = 0 [12:36:56]CheckOFDResponse [12:36:56]1017 (14) - 77093643461234 [12:36:56]1041 (16) - 0000000000871826 [12:36:56]1040 (4) - 187322 [12:36:56]1012 (4) - 20.02.2025 06:14 [12:36:56]1206 (1) - 0 [12:36:56]OFD Sender: Remove packet 187322 [12:36:56]ProducePacketName [12:36:56]name=ofd_packets/00187322 [12:36:56]NVStorageDeleteData [12:36:57]*** Cut start [12:36:57]*** Partial cut [12:36:57]*** CUTSNS_PIN = 1 [12:36:57]*** CUTSNS_PIN = 0 [12:36:57]OFD Sender: No OFD packet to send [12:36:57]*** Brake cut motor [12:36:58]Read from MH i2c: 01 [12:36:58]MH_I2C_Read... [12:36:58]*** Stop cut motor [12:36:58]*** Cut end [12:36:58]Read from MH i2c: 01 07 00 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [12:36:58]process_action close_receipt done [12:36:58]requested_data is exist [12:36:58]produce_requested_data [12:36:58]requested_item fm.sn is exist - process it [12:36:58]wFMCommunicate request_size=4 [12:36:58]MH_SAM_APDU [12:36:58]CAPDU: 80 11 00 00 [12:36:58]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [12:36:58]Write i2c OK [12:36:58]MH_I2C_Read... [12:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:58]Read from MH i2c: E2 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: E2 17 00 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [12:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:36:58]wFMCommunicate OK [12:36:58]requested_item fd.num is exist - process it [12:36:58]SAM_PROTO_GetFieldsCounters [12:36:58]wFMCommunicate request_size=4 [12:36:58]MH_SAM_APDU [12:36:58]CAPDU: 80 13 00 00 [12:36:58]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [12:36:58]Write i2c OK [12:36:58]MH_I2C_Read... [12:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:58]Read from MH i2c: E2 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: E2 62 00 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BA DB 02 00 0E 04 04 00 88 02 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 2F [12: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BA DB 02 00 0E 04 04 00 88 02 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 [12:36:58]wFMCommunicate OK [12:36:58]SAM_PROTO_GetFieldsCounters done [12:36:58]requested_item shift.num is exist - process it [12:36:58]requested_item shift.opened is exist - process it [12:36:58]req_shift_opened [12:36:58]FM_GetShiftState [12:36:58]SAM_PROTO_GetShiftState [12:36:58]wFMCommunicate request_size=4 [12:36:58]MH_SAM_APDU [12:36:58]CAPDU: 80 13 01 00 [12:36:58]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [12:36:58]Write i2c OK [12:36:58]MH_I2C_Read... [12:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:58]Read from MH i2c: E2 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: E2 0E 00 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CB [12:36:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [12:36:58]wFMCommunicate OK [12:36:58]SAM_PROTO_GetShiftState done [12:36:58]FM_GetShiftState done [12:36:58]req_shift_opened done [12:36:58]requested_item shift.open_date is exist - process it [12:36:58]req_shift_open_date [12:36:58]req_shift_open_date done [12:36:58]produce_requested_data done [12:36:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187322,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [12:36:58]process_action_free close_receipt [12:36:58]json_value_free [12:36:58]json_value_free done [12:36:58]process_json_proto returns [12:36:58]Send response to host [12:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187322,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [12:36:58]free response buf [12:36:58]execute_script done [12:36:58]execute_script returns [12:36:58]free content buf [12:36:58]Sock 8.Close socket [12:36:58]Sock 8.Thread stoped [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [13:10:02]ConnectInit Can't connect to host [13:10:07]ConnectInit Can't take IP for lk.salyk.kg [13:10:07]CommunicateWithHost connect error [13:10:07]CommunicateWithHost err = -1 [13:10:07]OFD Sender: Server communicate error [13:10:07]accept exits with 7 [13:10:07]New connection [13:10:07]New thread 3067276644 created [13:10:07]Thread 3067420004 joined [13:10:07]Waiting for new connection... [13:10:07] Sock 7.Parse request [13:10:07]Sock 7.Check first char [13:10:07]Sock 7.First char is OK [13:10:07]request: POST /json_proto HTTP/1.0 [13:10:07]Method: POST [13:10:07]URL: /json_proto [13:10:07]Method is POST - this is cgi request [13:10:07]url: /json_proto [13:10:07]query_string will be loaded in cgi processing [13:10:07]execute_cgi json_proto POST (null) [13:10:07]execute_cgi path=json_proto method=POST [13:10:07]POST find Content-Length [13:10:07]Host: 172.17.46.131:8080 [13:10:07]Content-Length: 753 [13:10:07]Content-Type: application/json [13:10:07] [13:10:07]POST finish read [13:10:07]Found Content-Length = 753 [13:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 4.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116786", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:07]execute_script... [13:10: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)412486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 4.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116786", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:07]POST & json_proto [13:10:07]process_json_proto [13:10:07]json parsed OK: [13:10:07]protocol is kg_v1.0 [13:10:07]action value=close_receipt [13:10:07]process_action close_receipt [13:10:07]cmd_close_receipt [13:10:07]MH_GetDate [13:10:07]Write to MH i2c: F0 00 00 51 00 40 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: F0 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: F0 09 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: F0 09 00 51 00 00 B0 29 B7 67 7E 41 4F 65 B3 [13:10:07]GetLastDocTimeStamp 1740056703 [13:10:07]current date 1740057008 [13:10:07]FM_GetShiftState [13:10:07]SAM_PROTO_GetShiftState [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 13 01 00 [13:10:07]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:07]Read from MH i2c: E2 0E 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 21 [13:10:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:10:07]wFMCommunicate OK [13:10:07]SAM_PROTO_GetShiftState done [13:10:07]FM_GetShiftState done [13:10:07]opened in 1740011697 [13:10:07]opened+sec_in_day 1740098097 [13:10:07]quantity*price = 0 [13:10:07]sum+1 = 1 [13:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 130 20.02.2025 13:10 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116786 ФМ: 0000000000871826 ФД: 187329 ФПД: 239434434812902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131008&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187329&fm=239434434812902&tin=02508201610067®Number=0000000000091857&sum=0 [13:10:09]StoreToDocumentArchive [13:10:09]shift 648 fd 187329 [13:10:09]save to /storage/0648/doc_00187329 [13:10:09]save last doc name /storage/0648/doc_00187329 to /storage/kkm_last_doc_name [13:10:09]save OK [13:10:09]Clear old archive folders... [13:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:09]tlvbuf is 00E56670 [13:10:09]SAM_PROTO_ClearQueue [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 09 00 00 [13:10:09]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [13:10:09]RAPDU: 90 00 [13:10:09]wFMCommunicate OK [13:10:09]SAM_PROTO_ClearQueue done [13:10:09]KKMCreateOFDPacket [13:10:09]OFDProtocolAddRootSTLVToBuf [13:10:09]FM_MakeSignedData [13:10:09]FM_MakeSignedData [13:10:09]SAM_PROTO_SignData [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 0D 01 02 [13:10:09]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [13:10:09]RAPDU: 90 00 [13:10:09]wFMCommunicate OK [13:10:09]wFMCommunicate request_size=255 [13:10:09]MH_SAM_APDU [13:10: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 32 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B0 29 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DB 02 00 35 04 06 00 D9 [13:10:09]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B0 29 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DB 02 00 35 04 06 00 D9 00 00 0E [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [13:10:09]RAPDU: 90 00 [13:10:09]wFMCommunicate OK [13:10:09]wFMCommunicate request_size=10 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 0D 02 02 05 C3 AC 6F 1B E6 [13:10:09]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 C3 AC 6F 1B E6 00 00 C5 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [13:10:09]RAPDU: 90 00 [13:10:09]wFMCommunicate OK [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 0D 03 02 [13:10:09]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 0B 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 0B 00 63 00 00 09 E9 A1 29 49 B3 D7 52 90 00 C0 [13:10:09]RAPDU: 09 E9 A1 29 49 B3 D7 52 90 00 [13:10:09]wFMCommunicate OK [13:10:09]SAM_PROTO_SignData done [13:10:09]FM_MakeSignedData done [13:10:09]CreateOFDProtocolMessage [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 11 00 00 [13:10:09]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 17 00 [13:10:09]MH_I2C_Read... [13:10:09]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 31 38 32 36 90 00 31 [13:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:10:09]wFMCommunicate OK [13:10:09]CreateOFDProtocolMessage done [13:10:09]OFDSenderStorePacket 187329 [13:10:09]StoreOFDPacket docnum=187329 [13:10:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C9 61 07 01 91 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B0 29 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DB 02 00 35 04 06 00 D9 C3 AC 6F 1B E6 09 E9 A1 29 49 B3 D7 52 [13:10:09]CheckFolder [13:10:09]dirname=/storage/ofd_packets [13:10:09]CheckFolder done [13:10:09]ProducePacketName [13:10:09]name=ofd_packets/00187329 [13:10:09]NVStorageSaveData ofd_packets/00187329 [13:10:09]File name is /storage/ofd_packets/00187329 [13:10:09]Write 301 bytes [13:10:09]NVStorageSaveData done [13:10:09]OFDSenderStorePacket done [13:10:09]KKMCreateOFDPacket done [13:10:09]NVStorageSaveData kkm_last_timestamp [13:10:09]File name is /storage/kkm_last_timestamp [13:10:09]Write 4 bytes [13:10:09]NVStorageSaveData done [13:10:09]ExternCall_PrintAddStr [13:10:09]wPrintStart [13:10:09]Write to MH i2c: 01 00 00 65 00 65 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 07 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [13:10:09]RasterBufferAndPrint [13:10:09]line Счет N : (1)412486 [13:10:09]line ИНН: 02508201610067 [13:10:09]line Контрольно-Кассовый Чек [13:10:09]line ПРОДАЖА [13:10:09]line ТРК (МРК, ГНК) : 12 [13:10:09]line Товар: 2710124130 [13:10:09]line Аи-92-К-2 [13:10:09]line 4.000 * 0.00 [13:10:09]line = 0.00 [13:10:09]line НДС 12% НСП 1% [13:10:09]line > о реализуемом товаре [13:10:09]line ИТОГО: 0.00 [13:10:09]line НСП 1% : 0.00 [13:10:09]line НДС 12% : 0.00 [13:10:09]line Наличными: 0.00 [13:10:09]line Безнал.: 0.00 [13:10:09]line Место: АЗС № 92 "Партнер Нефть" [13:10:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:10:09]line СНО: Общий режим [13:10:09]line Чек 130 20.02.2025 13:10 [13:10:09]line Смена: 648 ФФД: 1.0 [13:10:09]line ЗНМ: 0300000118 [13:10:09]line РНМ: 0000000000091857 [13:10:09]line Версия ККМ: 001 [13:10:09]line Талоны: ТК ГПНА Online [13:10:09]line 30116786 [13:10:09]line ФМ: 0000000000871826 [13:10:09]line ФД: 187329 [13:10:09]line ФПД: 239434434812902 [13:10:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131008&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187329&fm=239434434812902&tin=02508201610067®Number=0000000000091857&sum=0 [13:10:09]written 0, free lines is 4095 [13:10:09]OFD Sender: Processing packet 187323 [packets to send 54, broken 48] [13:10:09]ProducePacketName [13:10:09]name=ofd_packets/00187323 [13:10:09]OFD Sender: To server: pG, [13:10:09]CommunicateWithHost lk.salyk.kg:30040 [13:10:09]ConnectInit lk.salyk.kg [13:10:09]Connected sock=9 [13:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AB 7E 04 01 66 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 45 24 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB DB 02 00 35 04 06 00 82 1F 8C 8C 19 18 C4 A9 12 6A 9E 0B A1 39 [13:10:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E3 A0 47 00 88 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 31 38 32 36 10 04 04 00 BB DB 02 00 F4 03 04 00 01 D0 B6 67 B6 04 01 00 00 EE 49 0F E8 3D 2E B4 89 [13:10:10]CommunicateWithHost err = 0 [13:10:10]CheckOFDResponse [13:10:10]1017 (14) - 77093643461234 [13:10:10]1041 (16) - 0000000000871826 [13:10:10]1040 (4) - 187323 [13:10:10]1012 (4) - 20.02.2025 06:47 [13:10:10]1206 (1) - 0 [13:10:10]OFD Sender: Remove packet 187323 [13:10:10]ProducePacketName [13:10:10]name=ofd_packets/00187323 [13:10:10]NVStorageDeleteData [13:10:10]Write to MH i2c: 01 00 00 8F 00 8F [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 FF 0C A1 [13:10:10]RasterBufferAndPrint [13:10:10]line [13:10:10]line [13:10:10]line [13:10:10]line [13:10:10]line [13:10:10]written 0, free lines is 3333 [13:10:10]MH_Cut [13:10:10]Write to MH i2c: D1 01 00 96 00 01 68 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D1 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D1 01 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D1 01 00 96 00 00 67 [13:10:10]Write to MH i2c: 01 00 00 97 00 97 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]OFD Sender: Processing packet 187324 [packets to send 53, broken 48] [13:10:10]ProducePacketName [13:10:10]name=ofd_packets/00187324 [13:10:10]OFD Sender: To server: pG, [13:10:10]CommunicateWithHost lk.salyk.kg:30040 [13:10:10]ConnectInit lk.salyk.kg [13:10:10]Connected sock=9 [13:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 89 07 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 7D 00 00 00 F4 03 04 00 F7 24 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC DB 02 00 35 04 06 00 22 FE 63 F4 49 72 D4 38 E4 54 03 1E E5 1B [13:10:10]*** Cut start [13:10:10]*** Partial cut [13:10:10]*** CUTSNS_PIN = 1 [13:10:10]*** CUTSNS_PIN = 0 [13:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 94 72 47 00 F9 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 31 38 32 36 10 04 04 00 BC DB 02 00 F4 03 04 00 02 D0 B6 67 B6 04 01 00 00 51 55 7A 6A 51 9A FA 42 [13:10:11]CommunicateWithHost err = 0 [13:10:11]CheckOFDResponse [13:10:11]1017 (14) - 77093643461234 [13:10:11]1041 (16) - 0000000000871826 [13:10:11]1040 (4) - 187324 [13:10:11]1012 (4) - 20.02.2025 06:47 [13:10:11]1206 (1) - 0 [13:10:11]OFD Sender: Remove packet 187324 [13:10:11]ProducePacketName [13:10:11]name=ofd_packets/00187324 [13:10:11]NVStorageDeleteData [13:10:11]*** Brake cut motor [13:10:11]Read from MH i2c: 01 [13:10:11]MH_I2C_Read... [13:10:11]*** Stop cut motor [13:10:11]*** Cut end [13:10:11]Read from MH i2c: 01 07 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [13:10:11]process_action close_receipt done [13:10:11]requested_data is exist [13:10:11]produce_requested_data [13:10:11]requested_item fm.sn is exist - process it [13:10:11]wFMCommunicate request_size=4 [13:10:11]MH_SAM_APDU [13:10:11]CAPDU: 80 11 00 00 [13:10:11]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]OFD Sender: Processing packet 187325 [packets to send 52, broken 48] [13:10:11]ProducePacketName [13:10:11]name=ofd_packets/00187325 [13:10:11]OFD Sender: To server: pG, [13:10:11]CommunicateWithHost lk.salyk.kg:30040 [13:10:11]ConnectInit lk.salyk.kg [13:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:11]Read from MH i2c: E2 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 17 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 65 [13:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:10:11]wFMCommunicate OK [13:10:11]requested_item fd.num is exist - process it [13:10:11]SAM_PROTO_GetFieldsCounters [13:10:11]wFMCommunicate request_size=4 [13:10:11]MH_SAM_APDU [13:10:11]CAPDU: 80 13 00 00 [13:10:11]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]Connected sock=9 [13: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 31 38 32 36 0F 01 00 00 68 A3 07 01 7C 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 46 25 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD DB 02 00 35 04 06 00 30 D2 0E FF EF E6 A4 99 70 09 03 38 AF 15 [13:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:11]Read from MH i2c: E2 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 62 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C1 DB 02 00 0E 04 04 00 88 02 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 E9 [13:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C1 DB 02 00 0E 04 04 00 88 02 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 [13:10:11]wFMCommunicate OK [13:10:11]SAM_PROTO_GetFieldsCounters done [13:10:11]requested_item shift.num is exist - process it [13:10:11]requested_item shift.opened is exist - process it [13:10:11]req_shift_opened [13:10:11]FM_GetShiftState [13:10:11]SAM_PROTO_GetShiftState [13:10:11]wFMCommunicate request_size=4 [13:10:11]MH_SAM_APDU [13:10:11]CAPDU: 80 13 01 00 [13:10:11]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:11]Read from MH i2c: E2 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 0E 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 69 [13:10:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:10:11]wFMCommunicate OK [13:10:11]SAM_PROTO_GetShiftState done [13:10:11]FM_GetShiftState done [13:10:11]req_shift_opened done [13:10:11]requested_item shift.open_date is exist - process it [13:10:11]req_shift_open_date [13:10:11]req_shift_open_date done [13:10:11]produce_requested_data done [13:10:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187329,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:10:11]process_action_free close_receipt [13:10:11]json_value_free [13:10:11]json_value_free done [13:10:11]process_json_proto returns [13:10:11]Send response to host [13:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187329,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:10:11]free response buf [13:10:11]execute_script done [13:10:11]execute_script returns [13:10:11]free content buf [13:10:11]Sock 7.Close socket [13:10:11]Sock 7.Thread stoped [13:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 F1 47 00 D6 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD DB 02 00 F4 03 04 00 02 D0 B6 67 B6 04 01 00 00 68 DB 91 07 87 E4 FC BB [13:10:11]CommunicateWithHost err = 0 [13:10:11]CheckOFDResponse [13:10:11]1017 (14) - 77093643461234 [13:10:11]1041 (16) - 0000000000871826 [13:10:11]1040 (4) - 187325 [13:10:11]1012 (4) - 20.02.2025 06:47 [13:10:11]1206 (1) - 0 [13:10:11]OFD Sender: Remove packet 187325 [13:10:11]ProducePacketName [13:10:11]name=ofd_packets/00187325 [13:10:11]NVStorageDeleteData [13:10:12]OFD Sender: Processing packet 187326 [packets to send 51, broken 48] [13:10:12]ProducePacketName [13:10:12]name=ofd_packets/00187326 [13:10:12]OFD Sender: To server: pG, [13:10:12]CommunicateWithHost lk.salyk.kg:30040 [13:10:12]ConnectInit lk.salyk.kg [13:10:12]Connected sock=7 [13:10:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7A AF 04 01 A8 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CD 26 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE DB 02 00 35 04 06 00 5F E8 BB BD 6F 97 7C E7 92 7A 65 F9 75 97 [13:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C9 DC 47 00 59 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE DB 02 00 F4 03 04 00 03 D0 B6 67 B6 04 01 00 00 4D 87 3C 0F D9 49 8C 91 [13:10:12]CommunicateWithHost err = 0 [13:10:12]CheckOFDResponse [13:10:12]1017 (14) - 77093643461234 [13:10:12]1041 (16) - 0000000000871826 [13:10:12]1040 (4) - 187326 [13:10:12]1012 (4) - 20.02.2025 06:47 [13:10:12]1206 (1) - 0 [13:10:12]OFD Sender: Remove packet 187326 [13:10:12]ProducePacketName [13:10:12]name=ofd_packets/00187326 [13:10:12]NVStorageDeleteData [13:10:13]OFD Sender: Processing packet 187327 [packets to send 50, broken 48] [13:10:13]ProducePacketName [13:10:13]name=ofd_packets/00187327 [13:10:13]OFD Sender: To server: pG, [13:10:13]CommunicateWithHost lk.salyk.kg:30040 [13:10:13]ConnectInit lk.salyk.kg [13:10:13]Connected sock=9 [13:10:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FC D0 04 01 DC 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 28 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF DB 02 00 35 04 06 00 FD B0 16 82 2D 05 72 4A 6E 71 FE 31 9B 63 [13:10:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0E 84 47 00 E9 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF DB 02 00 F4 03 04 00 04 D0 B6 67 B6 04 01 00 00 B0 23 04 0D DC C1 20 B9 [13:10:13]CommunicateWithHost err = 0 [13:10:13]CheckOFDResponse [13:10:13]1017 (14) - 77093643461234 [13:10:13]1041 (16) - 0000000000871826 [13:10:13]1040 (4) - 187327 [13:10:13]1012 (4) - 20.02.2025 06:47 [13:10:13]1206 (1) - 0 [13:10:13]OFD Sender: Remove packet 187327 [13:10:13]ProducePacketName [13:10:13]name=ofd_packets/00187327 [13:10:13]NVStorageDeleteData [13:10:14]OFD Sender: Processing packet 187329 [packets to send 49, broken 48] [13:10:14]ProducePacketName [13:10:14]name=ofd_packets/00187329 [13:10:14]OFD Sender: To server: pG, [13:10:14]CommunicateWithHost lk.salyk.kg:30040 [13:10:14]ConnectInit lk.salyk.kg [13:10:14]Connected sock=7 [13:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C9 61 07 01 91 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B0 29 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DB 02 00 35 04 06 00 D9 C3 AC 6F 1B E6 09 E9 A1 29 49 B3 D7 52 [13:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9F 20 47 00 35 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 31 38 32 36 10 04 04 00 C1 DB 02 00 F4 03 04 00 05 D0 B6 67 B6 04 01 00 00 91 60 7D A4 30 1D 89 FC [13:10:14]CommunicateWithHost err = 0 [13:10:14]CheckOFDResponse [13:10:14]1017 (14) - 77093643461234 [13:10:14]1041 (16) - 0000000000871826 [13:10:14]1040 (4) - 187329 [13:10:14]1012 (4) - 20.02.2025 06:47 [13:10:14]1206 (1) - 0 [13:10:14]OFD Sender: Remove packet 187329 [13:10:14]ProducePacketName [13:10:14]name=ofd_packets/00187329 [13:10:14]NVStorageDeleteData [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:33]accept exits with 10 [13:11:33]New connection [13:11:33]New thread 3067420004 created [13:11:33]Thread 3067276644 joined [13:11:33]Waiting for new connection... [13:11:33] Sock 10.Parse request [13:11:33]Sock 10.Check first char [13:11:33]Sock 10.First char is OK [13:11:33]request: POST /json_proto HTTP/1.0 [13:11:33]Method: POST [13:11:33]URL: /json_proto [13:11:33]Method is POST - this is cgi request [13:11:33]url: /json_proto [13:11:33]query_string will be loaded in cgi processing [13:11:33]execute_cgi json_proto POST (null) [13:11:33]execute_cgi path=json_proto method=POST [13:11:33]POST find Content-Length [13:11:33]Host: 172.17.46.131:8080 [13:11:33]Content-Length: 678 [13:11:33]Content-Type: application/json [13:11:33] [13:11:33]POST finish read [13:11:33]Found Content-Length = 678 [13:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:33]execute_script... [13:11: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)412488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:33]POST & json_proto [13:11:33]process_json_proto [13:11:33]json parsed OK: [13:11:33]protocol is kg_v1.0 [13:11:33]action value=close_receipt [13:11:33]process_action close_receipt [13:11:33]cmd_close_receipt [13:11:33]MH_GetDate [13:11:33]Write to MH i2c: F0 00 00 9B 00 8A [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: F0 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: F0 09 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: F0 09 00 9B 00 00 05 2A B7 67 7E 41 4F 65 53 [13:11:33]GetLastDocTimeStamp 1740057008 [13:11:33]current date 1740057093 [13:11:33]FM_GetShiftState [13:11:33]SAM_PROTO_GetShiftState [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 13 01 00 [13:11:33]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 0E 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6B [13:11:33]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:11:33]wFMCommunicate OK [13:11:33]SAM_PROTO_GetShiftState done [13:11:33]FM_GetShiftState done [13:11:33]opened in 1740011697 [13:11:33]opened+sec_in_day 1740098097 [13:11:33]quantity*price = 80024 [13:11:33]sum+1 = 80026 [13:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 131 20.02.2025 13:11 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187330 ФПД: 200231087504353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131134&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187330&fm=200231087504353&tin=02508201610067®Number=0000000000091857&sum=80000 [13:11:34]StoreToDocumentArchive [13:11:34]shift 648 fd 187330 [13:11:34]save to /storage/0648/doc_00187330 [13:11:34]save last doc name /storage/0648/doc_00187330 to /storage/kkm_last_doc_name [13:11:34]save OK [13:11:34]Clear old archive folders... [13:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:34]tlvbuf is 00E4CBE0 [13:11:34]SAM_PROTO_ClearQueue [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 09 00 00 [13:11:34]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_ClearQueue done [13:11:34]KKMCreateOFDPacket [13:11:34]OFDProtocolAddRootSTLVToBuf [13:11:34]FM_MakeSignedData [13:11:34]FM_MakeSignedData [13:11:34]SAM_PROTO_SignData [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 01 02 [13:11:34]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]wFMCommunicate request_size=255 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 83 00 00 00 F4 03 04 00 06 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DB 02 00 35 04 06 00 B6 [13:11:34]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 83 00 00 00 F4 03 04 00 06 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DB 02 00 35 04 06 00 B6 00 00 1A [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [13:11:34]RAPDU: 90 00 [13:11:34]wFMCommunicate OK [13:11:34]wFMCommunicate request_size=10 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 0D 02 02 05 1B EE D7 FB E1 [13:11:34]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 1B EE D7 FB E1 00 00 EC [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [13:11:34]RAPDU: 90 00 [13:11:35]wFMCommunicate OK [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 0D 03 02 [13:11:35]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0B 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0B 00 AD 00 00 B5 49 64 00 99 75 04 DC 90 00 79 [13:11:35]RAPDU: B5 49 64 00 99 75 04 DC 90 00 [13:11:35]wFMCommunicate OK [13:11:35]SAM_PROTO_SignData done [13:11:35]FM_MakeSignedData done [13:11:35]CreateOFDProtocolMessage [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 11 00 00 [13:11:35]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 17 00 [13:11:35]MH_I2C_Read... [13:11:35]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 31 38 32 36 90 00 7B [13:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:11:35]wFMCommunicate OK [13:11:35]CreateOFDProtocolMessage done [13:11:35]OFDSenderStorePacket 187330 [13:11:35]StoreOFDPacket docnum=187330 [13:11:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 96 07 01 BA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 83 00 00 00 F4 03 04 00 06 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DB 02 00 35 04 06 00 B6 1B EE D7 FB E1 B5 49 64 00 99 75 04 DC [13:11:35]CheckFolder [13:11:35]dirname=/storage/ofd_packets [13:11:35]CheckFolder done [13:11:35]ProducePacketName [13:11:35]name=ofd_packets/00187330 [13:11:35]NVStorageSaveData ofd_packets/00187330 [13:11:35]File name is /storage/ofd_packets/00187330 [13:11:35]Write 301 bytes [13:11:35]NVStorageSaveData done [13:11:35]OFDSenderStorePacket done [13:11:35]KKMCreateOFDPacket done [13:11:35]NVStorageSaveData kkm_last_timestamp [13:11:35]File name is /storage/kkm_last_timestamp [13:11:35]Write 4 bytes [13:11:35]NVStorageSaveData done [13:11:35]ExternCall_PrintAddStr [13:11:35]wPrintStart [13:11:35]Write to MH i2c: 01 00 00 AF 00 AF [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 07 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [13:11:35]RasterBufferAndPrint [13:11:35]line Счет N : (1)412488 [13:11:35]line ИНН: 02508201610067 [13:11:35]line Контрольно-Кассовый Чек [13:11:35]line ПРОДАЖА [13:11:35]line ТРК (МРК, ГНК) : 13 [13:11:35]line Товар: 2710124500 [13:11:35]line Аи-95-К-5 [13:11:35]line 11.130 * 71.90 [13:11:35]line = 800.25 [13:11:35]line НДС 12% НСП 1% [13:11:35]line > о реализуемом товаре [13:11:35]line ОКРУГЛЕНИЕ: -0.25 [13:11:35]line ИТОГО: 800.00 [13:11:35]line Внесено: 800.00 [13:11:35]line СДАЧА: 0.00 [13:11:35]line НСП 1% : 7.08 [13:11:35]line НДС 12% : 84.98 [13:11:35]line Наличными: 800.00 [13:11:35]line Безнал.: 0.00 [13:11:35]line Место: АЗС № 92 "Партнер Нефть" [13:11:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:11:35]line СНО: Общий режим [13:11:35]line Чек 131 20.02.2025 13:11 [13:11:35]line Смена: 648 ФФД: 1.0 [13:11:35]line ЗНМ: 0300000118 [13:11:35]line РНМ: 0000000000091857 [13:11:35]line Версия ККМ: 001 [13:11:35]line ФМ: 0000000000871826 [13:11:35]line ФД: 187330 [13:11:35]line ФПД: 200231087504353 [13:11:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131134&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187330&fm=200231087504353&tin=02508201610067®Number=0000000000091857&sum=80000 [13:11:35]written 0, free lines is 4095 [13:11:35]OFD Sender: Processing packet 187330 [packets to send 49, broken 48] [13:11:35]ProducePacketName [13:11:35]name=ofd_packets/00187330 [13:11:35]OFD Sender: To server: pG, [13:11:35]CommunicateWithHost lk.salyk.kg:30040 [13:11:35]ConnectInit lk.salyk.kg [13:11:35]Connected sock=9 [13:11:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 96 07 01 BA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 83 00 00 00 F4 03 04 00 06 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DB 02 00 35 04 06 00 B6 1B EE D7 FB E1 B5 49 64 00 99 75 04 DC [13:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F9 13 47 00 1E F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DB 02 00 F4 03 04 00 56 D0 B6 67 B6 04 01 00 00 B0 31 C7 25 D1 DE 23 4D [13:11:35]CommunicateWithHost err = 0 [13:11:35]CheckOFDResponse [13:11:35]1017 (14) - 77093643461234 [13:11:35]1041 (16) - 0000000000871826 [13:11:35]1040 (4) - 187330 [13:11:35]1012 (4) - 20.02.2025 06:48 [13:11:35]1206 (1) - 0 [13:11:35]OFD Sender: Remove packet 187330 [13:11:35]ProducePacketName [13:11:35]name=ofd_packets/00187330 [13:11:35]NVStorageDeleteData [13:11:35]Write to MH i2c: 01 00 00 DA 00 DA [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 07 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 F0 0C DD [13:11:35]RasterBufferAndPrint [13:11:35]line [13:11:35]line [13:11:35]line [13:11:35]line [13:11:35]line [13:11:35]written 0, free lines is 3319 [13:11:35]MH_Cut [13:11:35]Write to MH i2c: D1 01 00 E1 00 01 B3 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: D1 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: D1 01 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: D1 01 00 E1 00 00 B2 [13:11:35]Write to MH i2c: 01 00 00 E2 00 E2 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:36]OFD Sender: No OFD packet to send [13:11:36]*** Cut start [13:11:36]*** Partial cut [13:11:36]*** CUTSNS_PIN = 1 [13:11:36]*** CUTSNS_PIN = 0 [13:11:36]*** Brake cut motor [13:11:37]Read from MH i2c: 01 [13:11:37]MH_I2C_Read... [13:11:37]*** Stop cut motor [13:11:37]*** Cut end [13:11:37]Read from MH i2c: 01 07 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [13:11:37]process_action close_receipt done [13:11:37]requested_data is exist [13:11:37]produce_requested_data [13:11:37]requested_item fm.sn is exist - process it [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 11 00 00 [13:11:37]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 17 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B0 [13:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:11:37]wFMCommunicate OK [13:11:37]requested_item fd.num is exist - process it [13:11:37]SAM_PROTO_GetFieldsCounters [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 13 00 00 [13:11:37]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 62 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C2 DB 02 00 0E 04 04 00 88 02 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 38 [13:11:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C2 DB 02 00 0E 04 04 00 88 02 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 [13:11:37]wFMCommunicate OK [13:11:37]SAM_PROTO_GetFieldsCounters done [13:11:37]requested_item shift.num is exist - process it [13:11:37]requested_item shift.opened is exist - process it [13:11:37]req_shift_opened [13:11:37]FM_GetShiftState [13:11:37]SAM_PROTO_GetShiftState [13:11:37]wFMCommunicate request_size=4 [13:11:37]MH_SAM_APDU [13:11:37]CAPDU: 80 13 01 00 [13:11:37]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [13:11:37]Write i2c OK [13:11:37]MH_I2C_Read... [13:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:37]Read from MH i2c: E2 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 0E 00 [13:11:37]MH_I2C_Read... [13:11:37]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B4 [13:11:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:11:37]wFMCommunicate OK [13:11:37]SAM_PROTO_GetShiftState done [13:11:37]FM_GetShiftState done [13:11:37]req_shift_opened done [13:11:37]requested_item shift.open_date is exist - process it [13:11:37]req_shift_open_date [13:11:37]req_shift_open_date done [13:11:37]produce_requested_data done [13:11:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187330,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:11:37]process_action_free close_receipt [13:11:37]json_value_free [13:11:37]json_value_free done [13:11:37]process_json_proto returns [13:11:37]Send response to host [13:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187330,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:11:37]free response buf [13:11:37]execute_script done [13:11:37]execute_script returns [13:11:37]free content buf [13:11:37]Sock 10.Close socket [13:11:37]Sock 10.Thread stoped [13:11:38]accept exits with 7 [13:11:38]New connection [13:11:38]New thread 3067276644 created [13:11:38]Thread 3067420004 joined [13:11:38]Waiting for new connection... [13:11:38] Sock 7.Parse request [13:11:38]Sock 7.Check first char [13:11:38]Sock 7.First char is OK [13:11:38]request: POST /json_proto HTTP/1.0 [13:11:38]Method: POST [13:11:38]URL: /json_proto [13:11:38]Method is POST - this is cgi request [13:11:38]url: /json_proto [13:11:38]query_string will be loaded in cgi processing [13:11:38]execute_cgi json_proto POST (null) [13:11:38]execute_cgi path=json_proto method=POST [13:11:38]POST find Content-Length [13:11:38]Host: 172.17.46.131:8080 [13:11:38]Content-Length: 803 [13:11:38]Content-Type: application/json [13:11:38] [13:11:38]POST finish read [13:11:38]Found Content-Length = 803 [13:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:38]execute_script... [13:11: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)412487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:38]POST & json_proto [13:11:38]process_json_proto [13:11:38]json parsed OK: [13:11:38]protocol is kg_v1.0 [13:11:38]action value=close_receipt [13:11:38]process_action close_receipt [13:11:38]cmd_close_receipt [13:11:38]MH_GetDate [13:11:38]Write to MH i2c: F0 00 00 E6 00 D5 [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: F0 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: F0 09 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: F0 09 00 E6 00 00 0B 2A B7 67 7E 41 4F 65 A4 [13:11:38]GetLastDocTimeStamp 1740057094 [13:11:38]current date 1740057099 [13:11:38]FM_GetShiftState [13:11:38]SAM_PROTO_GetShiftState [13:11:38]wFMCommunicate request_size=4 [13:11:38]MH_SAM_APDU [13:11:38]CAPDU: 80 13 01 00 [13:11:38]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:38]Read from MH i2c: E2 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 0E 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B6 [13:11:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:11:38]wFMCommunicate OK [13:11:38]SAM_PROTO_GetShiftState done [13:11:38]FM_GetShiftState done [13:11:38]opened in 1740011697 [13:11:38]opened+sec_in_day 1740098097 [13:11:38]quantity*price = 100023 [13:11:38]sum+1 = 100025 [13:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 132 20.02.2025 13:11 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187331 ФПД: 180912140951359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131139&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187331&fm=180912140951359&tin=02508201610067®Number=0000000000091857&sum=100024 [13:11:40]StoreToDocumentArchive [13:11:40]shift 648 fd 187331 [13:11:40]save to /storage/0648/doc_00187331 [13:11:40]save last doc name /storage/0648/doc_00187331 to /storage/kkm_last_doc_name [13:11:40]save OK [13:11:40]Clear old archive folders... [13:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:40]tlvbuf is 00DDCA70 [13:11:40]SAM_PROTO_ClearQueue [13:11:40]wFMCommunicate request_size=4 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 09 00 00 [13:11:40]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 03 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [13:11:40]RAPDU: 90 00 [13:11:40]wFMCommunicate OK [13:11:40]SAM_PROTO_ClearQueue done [13:11:40]KKMCreateOFDPacket [13:11:40]OFDProtocolAddRootSTLVToBuf [13:11:40]FM_MakeSignedData [13:11:40]FM_MakeSignedData [13:11:40]SAM_PROTO_SignData [13:11:40]wFMCommunicate request_size=4 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 0D 01 02 [13:11:40]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 03 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [13:11:40]RAPDU: 90 00 [13:11:40]wFMCommunicate OK [13:11:40]wFMCommunicate request_size=255 [13:11:40]MH_SAM_APDU [13:11: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 0B 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DB 02 00 35 04 06 00 A4 [13:11:40]Write to MH i2c: E2 02 01 F6 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 0B 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DB 02 00 35 04 06 00 A4 00 00 40 [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 03 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [13:11:40]RAPDU: 90 00 [13:11:40]wFMCommunicate OK [13:11:40]wFMCommunicate request_size=10 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 0D 02 02 05 89 E3 E5 9F 3F [13:11:40]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 89 E3 E5 9F 3F 00 00 AA [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 03 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [13:11:40]RAPDU: 90 00 [13:11:40]wFMCommunicate OK [13:11:40]wFMCommunicate request_size=4 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 0D 03 02 [13:11:40]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 0B 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 0B 00 F8 00 00 30 59 CA FE 14 15 4A 20 90 00 58 [13:11:40]RAPDU: 30 59 CA FE 14 15 4A 20 90 00 [13:11:40]wFMCommunicate OK [13:11:40]SAM_PROTO_SignData done [13:11:40]FM_MakeSignedData done [13:11:40]CreateOFDProtocolMessage [13:11:40]wFMCommunicate request_size=4 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 11 00 00 [13:11:40]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 17 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C6 [13:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:11:40]wFMCommunicate OK [13:11:40]CreateOFDProtocolMessage done [13:11:40]OFDSenderStorePacket 187331 [13:11:40]StoreOFDPacket docnum=187331 [13:11:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 19 B4 07 01 B8 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 0B 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DB 02 00 35 04 06 00 A4 89 E3 E5 9F 3F 30 59 CA FE 14 15 4A 20 [13:11:40]CheckFolder [13:11:40]dirname=/storage/ofd_packets [13:11:40]CheckFolder done [13:11:40]ProducePacketName [13:11:40]name=ofd_packets/00187331 [13:11:40]NVStorageSaveData ofd_packets/00187331 [13:11:40]File name is /storage/ofd_packets/00187331 [13:11:40]Write 301 bytes [13:11:40]NVStorageSaveData done [13:11:40]OFDSenderStorePacket done [13:11:40]KKMCreateOFDPacket done [13:11:40]NVStorageSaveData kkm_last_timestamp [13:11:40]File name is /storage/kkm_last_timestamp [13:11:40]Write 4 bytes [13:11:40]NVStorageSaveData done [13:11:40]ExternCall_PrintAddStr [13:11:40]wPrintStart [13:11:40]Write to MH i2c: 01 00 00 FA 00 FA [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: 01 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: 01 07 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [13:11:40]RasterBufferAndPrint [13:11:40]line Счет N : (1)412487 [13:11:40]line ИНН: 02508201610067 [13:11:40]line Контрольно-Кассовый Чек [13:11:40]line ПРОДАЖА [13:11:40]line ТРК (МРК, ГНК) : 32 [13:11:40]line Товар: 2710124130 [13:11:40]line Аи-92-К-2 [13:11:40]line 15.580 * 64.20 [13:11:40]line = 1000.24 [13:11:40]line НДС 12% НСП 1% [13:11:40]line > о реализуемом товаре [13:11:40]line ИТОГО: 1000.24 [13:11:40]line НСП 1% : 8.85 [13:11:40]line НДС 12% : 106.22 [13:11:40]line Наличными: 0.00 [13:11:40]line Безнал.: 1000.24 [13:11:40]line Место: АЗС № 92 "Партнер Нефть" [13:11:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:11:40]line СНО: Общий режим [13:11:40]line Чек 132 20.02.2025 13:11 [13:11:40]line Смена: 648 ФФД: 1.0 [13:11:40]line ЗНМ: 0300000118 [13:11:40]line РНМ: 0000000000091857 [13:11:40]line Версия ККМ: 001 [13:11:40]line Платежная система: O! деньги [13:11:40]line ФМ: 0000000000871826 [13:11:40]line ФД: 187331 [13:11:40]line ФПД: 180912140951359 [13:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131139&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187331&fm=180912140951359&tin=02508201610067®Number=0000000000091857&sum=100024 [13:11:40]written 0, free lines is 4095 [13:11:40]OFD Sender: Processing packet 187331 [packets to send 49, broken 48] [13:11:40]ProducePacketName [13:11:40]name=ofd_packets/00187331 [13:11:40]OFD Sender: To server: pG, [13:11:40]CommunicateWithHost lk.salyk.kg:30040 [13:11:40]ConnectInit lk.salyk.kg [13:11:40]Connected sock=10 [13:11:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 19 B4 07 01 B8 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 0B 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DB 02 00 35 04 06 00 A4 89 E3 E5 9F 3F 30 59 CA FE 14 15 4A 20 [13:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D4 9D 47 00 BC 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 31 38 32 36 10 04 04 00 C3 DB 02 00 F4 03 04 00 5C D0 B6 67 B6 04 01 00 00 6E B6 3B C6 4A 27 16 44 [13:11:41]CommunicateWithHost err = 0 [13:11:41]CheckOFDResponse [13:11:41]1017 (14) - 77093643461234 [13:11:41]1041 (16) - 0000000000871826 [13:11:41]1040 (4) - 187331 [13:11:41]1012 (4) - 20.02.2025 06:49 [13:11:41]1206 (1) - 0 [13:11:41]OFD Sender: Remove packet 187331 [13:11:41]ProducePacketName [13:11:41]name=ofd_packets/00187331 [13:11:41]NVStorageDeleteData [13:11:41]Write to MH i2c: 01 00 00 24 01 25 [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: 01 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: 01 07 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 26 0D 5F [13:11:41]RasterBufferAndPrint [13:11:41]line [13:11:41]line [13:11:41]line [13:11:41]line [13:11:41]line [13:11:41]written 0, free lines is 3378 [13:11:41]MH_Cut [13:11:41]Write to MH i2c: D1 01 00 2B 01 01 FE [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: D1 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: D1 01 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: D1 01 00 2B 01 00 FD [13:11:41]Write to MH i2c: 01 00 00 2C 01 2D [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]OFD Sender: No OFD packet to send [13:11:41]*** Cut start [13:11:41]*** Partial cut [13:11:41]*** CUTSNS_PIN = 1 [13:11:41]*** CUTSNS_PIN = 0 [13:11:42]*** Brake cut motor [13:11:42]Read from MH i2c: 01 [13:11:42]MH_I2C_Read... [13:11:42]*** Stop cut motor [13:11:42]*** Cut end [13:11:42]Read from MH i2c: 01 07 00 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [13:11:42]process_action close_receipt done [13:11:42]requested_data is exist [13:11:42]produce_requested_data [13:11:42]requested_item fm.sn is exist - process it [13:11:42]wFMCommunicate request_size=4 [13:11:42]MH_SAM_APDU [13:11:42]CAPDU: 80 11 00 00 [13:11:42]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [13:11:42]Write i2c OK [13:11:42]MH_I2C_Read... [13:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:42]Read from MH i2c: E2 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: E2 17 00 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [13:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:11:42]wFMCommunicate OK [13:11:42]requested_item fd.num is exist - process it [13:11:42]SAM_PROTO_GetFieldsCounters [13:11:42]wFMCommunicate request_size=4 [13:11:42]MH_SAM_APDU [13:11:42]CAPDU: 80 13 00 00 [13:11:42]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [13:11:42]Write i2c OK [13:11:42]MH_I2C_Read... [13:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:42]Read from MH i2c: E2 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: E2 62 00 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: E2 62 00 2E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C3 DB 02 00 0E 04 04 00 88 02 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 87 [13:11:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C3 DB 02 00 0E 04 04 00 88 02 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 [13:11:42]wFMCommunicate OK [13:11:42]SAM_PROTO_GetFieldsCounters done [13:11:42]requested_item shift.num is exist - process it [13:11:42]requested_item shift.opened is exist - process it [13:11:42]req_shift_opened [13:11:42]FM_GetShiftState [13:11:42]SAM_PROTO_GetShiftState [13:11:42]wFMCommunicate request_size=4 [13:11:42]MH_SAM_APDU [13:11:42]CAPDU: 80 13 01 00 [13:11:42]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [13:11:42]Write i2c OK [13:11:42]MH_I2C_Read... [13:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:42]Read from MH i2c: E2 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: E2 0E 00 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FF [13:11:42]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:11:42]wFMCommunicate OK [13:11:42]SAM_PROTO_GetShiftState done [13:11:42]FM_GetShiftState done [13:11:42]req_shift_opened done [13:11:42]requested_item shift.open_date is exist - process it [13:11:42]req_shift_open_date [13:11:42]req_shift_open_date done [13:11:42]produce_requested_data done [13:11:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187331,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:11:42]process_action_free close_receipt [13:11:42]json_value_free [13:11:42]json_value_free done [13:11:42]process_json_proto returns [13:11:42]Send response to host [13:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187331,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:11:42]free response buf [13:11:42]execute_script done [13:11:42]execute_script returns [13:11:42]free content buf [13:11:42]Sock 7.Close socket [13:11:42]Sock 7.Thread stoped [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:49]accept exits with 9 [13:12:49]New connection [13:12:49]New thread 3067420004 created [13:12:49]Thread 3067276644 joined [13:12:49]Waiting for new connection... [13:12:49] Sock 9.Parse request [13:12:49]Sock 9.Check first char [13:12:49]Sock 9.First char is OK [13:12:49]request: POST /json_proto HTTP/1.0 [13:12:49]Method: POST [13:12:49]URL: /json_proto [13:12:49]Method is POST - this is cgi request [13:12:49]url: /json_proto [13:12:49]query_string will be loaded in cgi processing [13:12:49]execute_cgi json_proto POST (null) [13:12:49]execute_cgi path=json_proto method=POST [13:12:49]POST find Content-Length [13:12:49]Host: 172.17.46.131:8080 [13:12:49]Content-Length: 801 [13:12:49]Content-Type: application/json [13:12:49] [13:12:49]POST finish read [13:12:49]Found Content-Length = 801 [13:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 14.020, "sum" : 900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:49]execute_script... [13:12: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)412489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 14.020, "sum" : 900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:49]POST & json_proto [13:12:49]process_json_proto [13:12:49]json parsed OK: [13:12:49]protocol is kg_v1.0 [13:12:49]action value=close_receipt [13:12:49]process_action close_receipt [13:12:49]cmd_close_receipt [13:12:49]MH_GetDate [13:12:49]Write to MH i2c: F0 00 00 30 01 20 [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 09 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 09 00 30 01 00 51 2A B7 67 7E 41 4F 65 35 [13:12:49]GetLastDocTimeStamp 1740057099 [13:12:49]current date 1740057169 [13:12:49]FM_GetShiftState [13:12:49]SAM_PROTO_GetShiftState [13:12:49]wFMCommunicate request_size=4 [13:12:49]MH_SAM_APDU [13:12:49]CAPDU: 80 13 01 00 [13:12:49]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:49]Read from MH i2c: E2 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 0E 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 01 [13:12:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:12:49]wFMCommunicate OK [13:12:49]SAM_PROTO_GetShiftState done [13:12:49]FM_GetShiftState done [13:12:49]opened in 1740011697 [13:12:49]opened+sec_in_day 1740098097 [13:12:49]quantity*price = 90008 [13:12:49]sum+1 = 90009 [13:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.08 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 0.00 Безнал.: 900.08 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 133 20.02.2025 13:12 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187332 ФПД: 34844014803948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187332&fm=34844014803948&tin=02508201610067®Number=0000000000091857&sum=90008 [13:12:50]StoreToDocumentArchive [13:12:50]shift 648 fd 187332 [13:12:50]save to /storage/0648/doc_00187332 [13:12:50]save last doc name /storage/0648/doc_00187332 to /storage/kkm_last_doc_name [13:12:50]save OK [13:12:50]Clear old archive folders... [13:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:50]tlvbuf is B6F1A770 [13:12:50]SAM_PROTO_ClearQueue [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 09 00 00 [13:12:50]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]SAM_PROTO_ClearQueue done [13:12:50]KKMCreateOFDPacket [13:12:50]OFDProtocolAddRootSTLVToBuf [13:12:50]FM_MakeSignedData [13:12:50]FM_MakeSignedData [13:12:50]SAM_PROTO_SignData [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 01 02 [13:12:50]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]wFMCommunicate request_size=255 [13:12:50]MH_SAM_APDU [13:12: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 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 51 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 DB 02 00 35 04 06 00 1F [13:12:50]Write to MH i2c: E2 02 01 40 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 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 51 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 DB 02 00 35 04 06 00 1F 00 00 D6 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]wFMCommunicate request_size=10 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 02 02 05 B0 C1 1F FB EC [13:12:50]Write to MH i2c: E2 0D 00 41 01 80 0D 02 02 05 00 B0 C1 1F FB EC 00 00 3D [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 03 02 [13:12:50]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 0B 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 0B 00 42 01 00 99 34 4E C1 3A 73 9E BD 90 00 A3 [13:12:50]RAPDU: 99 34 4E C1 3A 73 9E BD 90 00 [13:12:50]wFMCommunicate OK [13:12:50]SAM_PROTO_SignData done [13:12:50]FM_MakeSignedData done [13:12:50]CreateOFDProtocolMessage [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 11 00 00 [13:12:50]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 17 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [13:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:50]wFMCommunicate OK [13:12:50]CreateOFDProtocolMessage done [13:12:50]OFDSenderStorePacket 187332 [13:12:50]StoreOFDPacket docnum=187332 [13:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FA 70 07 01 F5 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 51 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 DB 02 00 35 04 06 00 1F B0 C1 1F FB EC 99 34 4E C1 3A 73 9E BD [13:12:50]CheckFolder [13:12:50]dirname=/storage/ofd_packets [13:12:50]CheckFolder done [13:12:50]ProducePacketName [13:12:50]name=ofd_packets/00187332 [13:12:50]NVStorageSaveData ofd_packets/00187332 [13:12:50]File name is /storage/ofd_packets/00187332 [13:12:50]Write 301 bytes [13:12:50]NVStorageSaveData done [13:12:50]OFDSenderStorePacket done [13:12:50]KKMCreateOFDPacket done [13:12:50]NVStorageSaveData kkm_last_timestamp [13:12:50]File name is /storage/kkm_last_timestamp [13:12:50]Write 4 bytes [13:12:50]NVStorageSaveData done [13:12:50]ExternCall_PrintAddStr [13:12:50]wPrintStart [13:12:50]Write to MH i2c: 01 00 00 44 01 45 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: 01 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: 01 07 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [13:12:50]RasterBufferAndPrint [13:12:50]line Счет N : (1)412489 [13:12:50]line ИНН: 02508201610067 [13:12:50]line Контрольно-Кассовый Чек [13:12:50]line ПРОДАЖА [13:12:50]line ТРК (МРК, ГНК) : 42 [13:12:50]line Товар: 2710124130 [13:12:50]line Аи-92-К-2 [13:12:50]line 14.020 * 64.20 [13:12:50]line = 900.08 [13:12:50]line НДС 12% НСП 1% [13:12:50]line > о реализуемом товаре [13:12:50]line ИТОГО: 900.08 [13:12:50]line НСП 1% : 7.96 [13:12:50]line НДС 12% : 95.58 [13:12:50]line Наличными: 0.00 [13:12:50]line Безнал.: 900.08 [13:12:50]line Место: АЗС № 92 "Партнер Нефть" [13:12:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:12:50]line СНО: Общий режим [13:12:50]line Чек 133 20.02.2025 13:12 [13:12:50]line Смена: 648 ФФД: 1.0 [13:12:50]line ЗНМ: 0300000118 [13:12:50]line РНМ: 0000000000091857 [13:12:50]line Версия ККМ: 001 [13:12:50]line Платежная система: O! деньги [13:12:50]line ФМ: 0000000000871826 [13:12:50]line ФД: 187332 [13:12:50]line ФПД: 34844014803948 [13:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187332&fm=34844014803948&tin=02508201610067®Number=0000000000091857&sum=90008 [13:12:51]OFD Sender: Processing packet 187332 [packets to send 49, broken 48] [13:12:51]ProducePacketName [13:12:51]name=ofd_packets/00187332 [13:12:51]OFD Sender: To server: pG, [13:12:51]CommunicateWithHost lk.salyk.kg:30040 [13:12:51]ConnectInit lk.salyk.kg [13:12:51]written 0, free lines is 4095 [13:12:51]Connected sock=10 [13:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FA 70 07 01 F5 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 51 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 DB 02 00 35 04 06 00 1F B0 C1 1F FB EC 99 34 4E C1 3A 73 9E BD [13:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4B 5D 47 00 C4 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 31 38 32 36 10 04 04 00 C4 DB 02 00 F4 03 04 00 A2 D0 B6 67 B6 04 01 00 00 46 22 FD 4E A9 C6 D9 EF [13:12:51]CommunicateWithHost err = 0 [13:12:51]CheckOFDResponse [13:12:51]1017 (14) - 77093643461234 [13:12:51]1041 (16) - 0000000000871826 [13:12:51]1040 (4) - 187332 [13:12:51]1012 (4) - 20.02.2025 06:50 [13:12:51]1206 (1) - 0 [13:12:51]OFD Sender: Remove packet 187332 [13:12:51]ProducePacketName [13:12:51]name=ofd_packets/00187332 [13:12:51]NVStorageDeleteData [13:12:51]Write to MH i2c: 01 00 00 6E 01 6F [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 07 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 07 0D 8A [13:12:51]RasterBufferAndPrint [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]written 0, free lines is 3342 [13:12:51]MH_Cut [13:12:51]Write to MH i2c: D1 01 00 75 01 01 48 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 01 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 01 00 75 01 00 47 [13:12:51]Write to MH i2c: 01 00 00 76 01 77 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:52]OFD Sender: No OFD packet to send [13:12:52]*** Cut start [13:12:52]*** Partial cut [13:12:52]*** CUTSNS_PIN = 1 [13:12:52]*** CUTSNS_PIN = 0 [13:12:52]*** Brake cut motor [13:12:53]Read from MH i2c: 01 [13:12:53]MH_I2C_Read... [13:12:53]*** Stop cut motor [13:12:53]*** Cut end [13:12:53]Read from MH i2c: 01 07 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 FF 0F 8C [13:12:53]process_action close_receipt done [13:12:53]requested_data is exist [13:12:53]produce_requested_data [13:12:53]requested_item fm.sn is exist - process it [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 11 00 00 [13:12:53]Write to MH i2c: E2 08 00 77 01 80 11 00 00 00 00 00 00 F2 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 17 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 17 00 77 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [13:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:53]wFMCommunicate OK [13:12:53]requested_item fd.num is exist - process it [13:12:53]SAM_PROTO_GetFieldsCounters [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 00 00 [13:12:53]Write to MH i2c: E2 08 00 78 01 80 13 00 00 00 00 00 00 F5 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 62 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 62 00 78 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C4 DB 02 00 0E 04 04 00 88 02 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 D5 [13:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C4 DB 02 00 0E 04 04 00 88 02 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 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetFieldsCounters done [13:12:53]requested_item shift.num is exist - process it [13:12:53]requested_item shift.opened is exist - process it [13:12:53]req_shift_opened [13:12:53]FM_GetShiftState [13:12:53]SAM_PROTO_GetShiftState [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 01 00 [13:12:53]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 49 [13:12:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetShiftState done [13:12:53]FM_GetShiftState done [13:12:53]req_shift_opened done [13:12:53]requested_item shift.open_date is exist - process it [13:12:53]req_shift_open_date [13:12:53]req_shift_open_date done [13:12:53]produce_requested_data done [13:12:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187332,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:12:53]process_action_free close_receipt [13:12:53]json_value_free [13:12:53]json_value_free done [13:12:53]process_json_proto returns [13:12:53]Send response to host [13:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187332,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:12:53]free response buf [13:12:53]execute_script done [13:12:53]execute_script returns [13:12:53]free content buf [13:12:53]Sock 9.Close socket [13:12:53]Sock 9.Thread stoped [13:12:53]accept exits with 7 [13:12:53]New connection [13:12:53]New thread 3067276644 created [13:12:53]Thread 3067420004 joined [13:12:53]Waiting for new connection... [13:12:53] Sock 7.Parse request [13:12:53]Sock 7.Check first char [13:12:53]Sock 7.First char is OK [13:12:53]request: POST /json_proto HTTP/1.0 [13:12:53]Method: POST [13:12:53]URL: /json_proto [13:12:53]Method is POST - this is cgi request [13:12:53]url: /json_proto [13:12:53]query_string will be loaded in cgi processing [13:12:53]execute_cgi json_proto POST (null) [13:12:53]execute_cgi path=json_proto method=POST [13:12:53]POST find Content-Length [13:12:53]Host: 172.17.46.131:8080 [13:12:53]Content-Length: 677 [13:12:53]Content-Type: application/json [13:12:53] [13:12:53]POST finish read [13:12:53]Found Content-Length = 677 [13:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:53]execute_script... [13:12: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)412490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:53]POST & json_proto [13:12:53]process_json_proto [13:12:53]json parsed OK: [13:12:53]protocol is kg_v1.0 [13:12:53]action value=close_receipt [13:12:53]process_action close_receipt [13:12:53]cmd_close_receipt [13:12:53]MH_GetDate [13:12:53]Write to MH i2c: F0 00 00 7A 01 6A [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 09 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 09 00 7A 01 00 56 2A B7 67 7E 41 4F 65 84 [13:12:53]GetLastDocTimeStamp 1740057169 [13:12:53]current date 1740057174 [13:12:53]FM_GetShiftState [13:12:53]SAM_PROTO_GetShiftState [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 01 00 [13:12:53]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4B [13:12:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetShiftState done [13:12:53]FM_GetShiftState done [13:12:53]opened in 1740011697 [13:12:53]opened+sec_in_day 1740098097 [13:12:53]quantity*price = 50011 [13:12:53]sum+1 = 50013 [13:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 134 20.02.2025 13:12 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187333 ФПД: 152759299766570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187333&fm=152759299766570&tin=02508201610067®Number=0000000000091857&sum=50000 [13:12:55]StoreToDocumentArchive [13:12:55]shift 648 fd 187333 [13:12:55]save to /storage/0648/doc_00187333 [13:12:55]save last doc name /storage/0648/doc_00187333 to /storage/kkm_last_doc_name [13:12:55]save OK [13:12:55]Clear old archive folders... [13:12:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:55]tlvbuf is B6FC7830 [13:12:55]SAM_PROTO_ClearQueue [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 09 00 00 [13:12:55]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [13:12:55]RAPDU: 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_ClearQueue done [13:12:55]KKMCreateOFDPacket [13:12:55]OFDProtocolAddRootSTLVToBuf [13:12:55]FM_MakeSignedData [13:12:55]FM_MakeSignedData [13:12:55]SAM_PROTO_SignData [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 0D 01 02 [13:12:55]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [13:12:55]RAPDU: 90 00 [13:12:55]wFMCommunicate OK [13:12:55]wFMCommunicate request_size=255 [13:12:55]MH_SAM_APDU [13:12: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 56 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DB 02 00 35 04 06 00 8A [13:12:55]Write to MH i2c: E2 02 01 8A 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 56 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DB 02 00 35 04 06 00 8A 00 00 76 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [13:12:55]RAPDU: 90 00 [13:12:55]wFMCommunicate OK [13:12:55]wFMCommunicate request_size=10 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 0D 02 02 05 EF 0B CC 79 2A [13:12:55]Write to MH i2c: E2 0D 00 8B 01 80 0D 02 02 05 00 EF 0B CC 79 2A 00 00 79 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [13:12:55]RAPDU: 90 00 [13:12:55]wFMCommunicate OK [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 0D 03 02 [13:12:55]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0B 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0B 00 8C 01 00 60 09 90 A4 2F FE E9 46 90 00 02 [13:12:55]RAPDU: 60 09 90 A4 2F FE E9 46 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_SignData done [13:12:55]FM_MakeSignedData done [13:12:55]CreateOFDProtocolMessage [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 11 00 00 [13:12:55]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 17 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [13:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:55]wFMCommunicate OK [13:12:55]CreateOFDProtocolMessage done [13:12:55]OFDSenderStorePacket 187333 [13:12:55]StoreOFDPacket docnum=187333 [13:12:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 B9 07 01 97 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 56 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DB 02 00 35 04 06 00 8A EF 0B CC 79 2A 60 09 90 A4 2F FE E9 46 [13:12:55]CheckFolder [13:12:55]dirname=/storage/ofd_packets [13:12:55]CheckFolder done [13:12:55]ProducePacketName [13:12:55]name=ofd_packets/00187333 [13:12:55]NVStorageSaveData ofd_packets/00187333 [13:12:55]File name is /storage/ofd_packets/00187333 [13:12:55]Write 301 bytes [13:12:55]NVStorageSaveData done [13:12:55]OFDSenderStorePacket done [13:12:55]KKMCreateOFDPacket done [13:12:55]NVStorageSaveData kkm_last_timestamp [13:12:55]File name is /storage/kkm_last_timestamp [13:12:55]Write 4 bytes [13:12:55]NVStorageSaveData done [13:12:55]ExternCall_PrintAddStr [13:12:55]wPrintStart [13:12:55]Write to MH i2c: 01 00 00 8E 01 8F [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [13:12:55]RasterBufferAndPrint [13:12:55]line Счет N : (1)412490 [13:12:55]line ИНН: 02508201610067 [13:12:55]line Контрольно-Кассовый Чек [13:12:55]line ПРОДАЖА [13:12:55]line ТРК (МРК, ГНК) : 22 [13:12:55]line Товар: 2710124130 [13:12:55]line Аи-92-К-2 [13:12:55]line 7.790 * 64.20 [13:12:55]line = 500.12 [13:12:55]line НДС 12% НСП 1% [13:12:55]line > о реализуемом товаре [13:12:55]line ОКРУГЛЕНИЕ: -0.12 [13:12:55]line ИТОГО: 500.00 [13:12:55]line Внесено: 500.00 [13:12:56]line СДАЧА: 0.00 [13:12:56]line НСП 1% : 4.43 [13:12:56]line НДС 12% : 53.11 [13:12:56]line Наличными: 500.00 [13:12:56]line Безнал.: 0.00 [13:12:56]line Место: АЗС № 92 "Партнер Нефть" [13:12:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:12:56]line СНО: Общий режим [13:12:56]line Чек 134 20.02.2025 13:12 [13:12:56]line Смена: 648 ФФД: 1.0 [13:12:56]line ЗНМ: 0300000118 [13:12:56]line РНМ: 0000000000091857 [13:12:56]line Версия ККМ: 001 [13:12:56]line ФМ: 0000000000871826 [13:12:56]line ФД: 187333 [13:12:56]line ФПД: 152759299766570 [13:12:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187333&fm=152759299766570&tin=02508201610067®Number=0000000000091857&sum=50000 [13:12:56]OFD Sender: Processing packet 187333 [packets to send 49, broken 48] [13:12:56]ProducePacketName [13:12:56]name=ofd_packets/00187333 [13:12:56]OFD Sender: To server: pG, [13:12:56]CommunicateWithHost lk.salyk.kg:30040 [13:12:56]ConnectInit lk.salyk.kg [13:12:56]written 0, free lines is 4095 [13:12:56]Connected sock=11 [13:12:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 B9 07 01 97 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 56 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DB 02 00 35 04 06 00 8A EF 0B CC 79 2A 60 09 90 A4 2F FE E9 46 [13:12:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 34 5F 47 00 3F 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 31 38 32 36 10 04 04 00 C5 DB 02 00 F4 03 04 00 A7 D0 B6 67 B6 04 01 00 00 D0 0E 25 47 D0 DB 33 C8 [13:12:56]CommunicateWithHost err = 0 [13:12:56]CheckOFDResponse [13:12:56]1017 (14) - 77093643461234 [13:12:56]1041 (16) - 0000000000871826 [13:12:56]1040 (4) - 187333 [13:12:56]1012 (4) - 20.02.2025 06:50 [13:12:56]1206 (1) - 0 [13:12:56]OFD Sender: Remove packet 187333 [13:12:56]ProducePacketName [13:12:56]name=ofd_packets/00187333 [13:12:56]NVStorageDeleteData [13:12:56]Write to MH i2c: 01 00 00 B9 01 BA [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 07 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 F9 0C C6 [13:12:56]RasterBufferAndPrint [13:12:56]line [13:12:56]line [13:12:56]line [13:12:56]line [13:12:56]line [13:12:56]written 0, free lines is 3330 [13:12:56]MH_Cut [13:12:56]Write to MH i2c: D1 01 00 C0 01 01 93 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: D1 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: D1 01 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: D1 01 00 C0 01 00 92 [13:12:56]Write to MH i2c: 01 00 00 C1 01 C2 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]OFD Sender: No OFD packet to send [13:12:57]*** Cut start [13:12:57]*** Partial cut [13:12:57]*** CUTSNS_PIN = 1 [13:12:57]*** CUTSNS_PIN = 0 [13:12:57]*** Brake cut motor [13:12:57]Read from MH i2c: 01 [13:12:57]MH_I2C_Read... [13:12:57]*** Stop cut motor [13:12:57]*** Cut end [13:12:57]Read from MH i2c: 01 07 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [13:12:57]process_action close_receipt done [13:12:57]requested_data is exist [13:12:57]produce_requested_data [13:12:57]requested_item fm.sn is exist - process it [13:12:57]wFMCommunicate request_size=4 [13:12:57]MH_SAM_APDU [13:12:57]CAPDU: 80 11 00 00 [13:12:57]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:57]Read from MH i2c: E2 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 17 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [13:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:57]wFMCommunicate OK [13:12:57]requested_item fd.num is exist - process it [13:12:57]SAM_PROTO_GetFieldsCounters [13:12:57]wFMCommunicate request_size=4 [13:12:57]MH_SAM_APDU [13:12:57]CAPDU: 80 13 00 00 [13:12:57]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 62 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C5 DB 02 00 0E 04 04 00 88 02 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 24 [13:12:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C5 DB 02 00 0E 04 04 00 88 02 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 [13:12:58]wFMCommunicate OK [13:12:58]SAM_PROTO_GetFieldsCounters done [13:12:58]requested_item shift.num is exist - process it [13:12:58]requested_item shift.opened is exist - process it [13:12:58]req_shift_opened [13:12:58]FM_GetShiftState [13:12:58]SAM_PROTO_GetShiftState [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 13 01 00 [13:12:58]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 0E 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 94 [13:12:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:12:58]wFMCommunicate OK [13:12:58]SAM_PROTO_GetShiftState done [13:12:58]FM_GetShiftState done [13:12:58]req_shift_opened done [13:12:58]requested_item shift.open_date is exist - process it [13:12:58]req_shift_open_date [13:12:58]req_shift_open_date done [13:12:58]produce_requested_data done [13:12:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187333,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:12:58]process_action_free close_receipt [13:12:58]json_value_free [13:12:58]json_value_free done [13:12:58]process_json_proto returns [13:12:58]Send response to host [13:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187333,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:12:58]free response buf [13:12:58]execute_script done [13:12:58]execute_script returns [13:12:58]free content buf [13:12:58]Sock 7.Close socket [13:12:58]Sock 7.Thread stoped [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14: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:21]accept exits with 9 [13:14:21]New connection [13:14:21]New thread 3067420004 created [13:14:21]Thread 3067276644 joined [13:14:21]Waiting for new connection... [13:14:21] Sock 9.Parse request [13:14:21]Sock 9.Check first char [13:14:21]Sock 9.First char is OK [13:14:21]request: POST /json_proto HTTP/1.0 [13:14:21]Method: POST [13:14:21]URL: /json_proto [13:14:21]Method is POST - this is cgi request [13:14:21]url: /json_proto [13:14:21]query_string will be loaded in cgi processing [13:14:21]execute_cgi json_proto POST (null) [13:14:21]execute_cgi path=json_proto method=POST [13:14:21]POST find Content-Length [13:14:21]Host: 172.17.46.131:8080 [13:14:21]Content-Length: 674 [13:14:21]Content-Type: application/json [13:14:21] [13:14:21]POST finish read [13:14:21]Found Content-Length = 674 [13:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:21]execute_script... [13:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:21]POST & json_proto [13:14:21]process_json_proto [13:14:21]json parsed OK: [13:14:21]protocol is kg_v1.0 [13:14:21]action value=close_receipt [13:14:21]process_action close_receipt [13:14:21]cmd_close_receipt [13:14:21]MH_GetDate [13:14:21]Write to MH i2c: F0 00 00 C5 01 B5 [13:14:21]Write i2c OK [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: F0 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: F0 09 00 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: F0 09 00 C5 01 00 AE 2A B7 67 7E 41 4F 65 27 [13:14:21]GetLastDocTimeStamp 1740057174 [13:14:21]current date 1740057262 [13:14:21]FM_GetShiftState [13:14:21]SAM_PROTO_GetShiftState [13:14:21]wFMCommunicate request_size=4 [13:14:21]MH_SAM_APDU [13:14:21]CAPDU: 80 13 01 00 [13:14:21]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [13:14:21]Write i2c OK [13:14:21]MH_I2C_Read... [13:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:21]Read from MH i2c: E2 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 0E 00 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 96 [13:14:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:14:21]wFMCommunicate OK [13:14:21]SAM_PROTO_GetShiftState done [13:14:21]FM_GetShiftState done [13:14:21]opened in 1740011697 [13:14:21]opened+sec_in_day 1740098097 [13:14:21]quantity*price = 90024 [13:14:21]sum+1 = 90025 [13:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 135 20.02.2025 13:14 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187334 ФПД: 152725315979484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131422&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187334&fm=152725315979484&tin=02508201610067®Number=0000000000091857&sum=90000 [13:14:22]StoreToDocumentArchive [13:14:22]shift 648 fd 187334 [13:14:22]save to /storage/0648/doc_00187334 [13:14:22]save last doc name /storage/0648/doc_00187334 to /storage/kkm_last_doc_name [13:14:22]save OK [13:14:22]Clear old archive folders... [13:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:14:22]tlvbuf is 00E4F290 [13:14:22]SAM_PROTO_ClearQueue [13:14:22]wFMCommunicate request_size=4 [13:14:22]MH_SAM_APDU [13:14:22]CAPDU: 80 09 00 00 [13:14:22]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [13:14:22]Write i2c OK [13:14:22]MH_I2C_Read... [13:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:22]Read from MH i2c: E2 [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: E2 03 00 [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [13:14:22]RAPDU: 90 00 [13:14:22]wFMCommunicate OK [13:14:22]SAM_PROTO_ClearQueue done [13:14:22]KKMCreateOFDPacket [13:14:22]OFDProtocolAddRootSTLVToBuf [13:14:22]FM_MakeSignedData [13:14:22]FM_MakeSignedData [13:14:22]SAM_PROTO_SignData [13:14:22]wFMCommunicate request_size=4 [13:14:22]MH_SAM_APDU [13:14:22]CAPDU: 80 0D 01 02 [13:14:22]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [13:14:22]Write i2c OK [13:14:22]MH_I2C_Read... [13:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:22]Read from MH i2c: E2 [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: E2 03 00 [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [13:14:22]RAPDU: 90 00 [13:14:22]wFMCommunicate OK [13:14:22]wFMCommunicate request_size=255 [13:14:22]MH_SAM_APDU [13:14:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 87 00 00 00 F4 03 04 00 AE 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DB 02 00 35 04 06 00 8A E7 22 35 [13:14:22]Write to MH i2c: E2 02 01 D5 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 87 00 00 00 F4 03 04 00 AE 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DB 02 00 35 04 06 00 8A E7 22 35 00 00 BF [13:14:22]Write i2c OK [13:14:22]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [13:14:23]RAPDU: 90 00 [13:14:23]wFMCommunicate OK [13:14:23]wFMCommunicate request_size=7 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 0D 02 02 02 08 DC [13:14:23]Write to MH i2c: E2 0A 00 D6 01 80 0D 02 02 02 00 08 DC 00 00 39 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [13:14:23]RAPDU: 90 00 [13:14:23]wFMCommunicate OK [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 0D 03 02 [13:14:23]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 0B 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 0B 00 D7 01 00 62 36 6F E1 7F 6F CD AA 90 00 A1 [13:14:23]RAPDU: 62 36 6F E1 7F 6F CD AA 90 00 [13:14:23]wFMCommunicate OK [13:14:23]SAM_PROTO_SignData done [13:14:23]FM_MakeSignedData done [13:14:23]CreateOFDProtocolMessage [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 11 00 00 [13:14:23]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 17 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A6 [13:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:14:23]wFMCommunicate OK [13:14:23]CreateOFDProtocolMessage done [13:14:23]OFDSenderStorePacket 187334 [13:14:23]StoreOFDPacket docnum=187334 [13:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 38 0F 04 01 AD 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 87 00 00 00 F4 03 04 00 AE 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DB 02 00 35 04 06 00 8A E7 22 35 08 DC 62 36 6F E1 7F 6F CD AA [13:14:23]CheckFolder [13:14:23]dirname=/storage/ofd_packets [13:14:23]CheckFolder done [13:14:23]ProducePacketName [13:14:23]name=ofd_packets/00187334 [13:14:23]NVStorageSaveData ofd_packets/00187334 [13:14:23]File name is /storage/ofd_packets/00187334 [13:14:23]Write 298 bytes [13:14:23]NVStorageSaveData done [13:14:23]OFDSenderStorePacket done [13:14:23]KKMCreateOFDPacket done [13:14:23]NVStorageSaveData kkm_last_timestamp [13:14:23]File name is /storage/kkm_last_timestamp [13:14:23]Write 4 bytes [13:14:23]NVStorageSaveData done [13:14:23]ExternCall_PrintAddStr [13:14:23]wPrintStart [13:14:23]Write to MH i2c: 01 00 00 D9 01 DA [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: 01 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: 01 07 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [13:14:23]RasterBufferAndPrint [13:14:23]line Счет N : (1)412492 [13:14:23]line ИНН: 02508201610067 [13:14:23]line Контрольно-Кассовый Чек [13:14:23]line ПРОДАЖА [13:14:23]line ТРК (МРК, ГНК) : 5 [13:14:23]line Товар: 2710194210 [13:14:23]line ДТ-К-5 [13:14:23]line 12.400 * 72.60 [13:14:23]line = 900.24 [13:14:23]line НДС 12% НСП 1% [13:14:23]line > о реализуемом товаре [13:14:23]line ОКРУГЛЕНИЕ: -0.24 [13:14:23]line ИТОГО: 900.00 [13:14:23]line Внесено: 900.00 [13:14:23]line СДАЧА: 0.00 [13:14:23]line НСП 1% : 7.97 [13:14:23]line НДС 12% : 95.60 [13:14:23]line Наличными: 900.00 [13:14:23]line Безнал.: 0.00 [13:14:23]line Место: АЗС № 92 "Партнер Нефть" [13:14:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:14:23]line СНО: Общий режим [13:14:23]line Чек 135 20.02.2025 13:14 [13:14:23]line Смена: 648 ФФД: 1.0 [13:14:23]line ЗНМ: 0300000118 [13:14:23]line РНМ: 0000000000091857 [13:14:23]line Версия ККМ: 001 [13:14:23]line ФМ: 0000000000871826 [13:14:23]line ФД: 187334 [13:14:23]line ФПД: 152725315979484 [13:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131422&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187334&fm=152725315979484&tin=02508201610067®Number=0000000000091857&sum=90000 [13:14:23]OFD Sender: Processing packet 187334 [packets to send 49, broken 48] [13:14:23]ProducePacketName [13:14:23]name=ofd_packets/00187334 [13:14:23]OFD Sender: To server: pG, [13:14:23]CommunicateWithHost lk.salyk.kg:30040 [13:14:23]ConnectInit lk.salyk.kg [13:14:23]written 0, free lines is 4095 [13:14:23]Connected sock=10 [13:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 38 0F 04 01 AD 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 87 00 00 00 F4 03 04 00 AE 2A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DB 02 00 35 04 06 00 8A E7 22 35 08 DC 62 36 6F E1 7F 6F CD AA [13:14:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F3 43 47 00 50 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DB 02 00 F4 03 04 00 FF D0 B6 67 B6 04 01 00 00 D1 28 3C 3D DC 83 8B FA [13:14:23]CommunicateWithHost err = 0 [13:14:23]CheckOFDResponse [13:14:23]1017 (14) - 77093643461234 [13:14:23]1041 (16) - 0000000000871826 [13:14:23]1040 (4) - 187334 [13:14:23]1012 (4) - 20.02.2025 06:51 [13:14:23]1206 (1) - 0 [13:14:23]OFD Sender: Remove packet 187334 [13:14:23]ProducePacketName [13:14:23]name=ofd_packets/00187334 [13:14:23]NVStorageDeleteData [13:14:24]Write to MH i2c: 01 00 00 04 02 06 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 07 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 EF 0C 08 [13:14:24]RasterBufferAndPrint [13:14:24]line [13:14:24]line [13:14:24]line [13:14:24]line [13:14:24]line [13:14:24]written 0, free lines is 3317 [13:14:24]MH_Cut [13:14:24]Write to MH i2c: D1 01 00 0B 02 01 DF [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: D1 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: D1 01 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: D1 01 00 0B 02 00 DE [13:14:24]Write to MH i2c: 01 00 00 0C 02 0E [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]OFD Sender: No OFD packet to send [13:14:24]*** Cut start [13:14:24]*** Partial cut [13:14:24]*** CUTSNS_PIN = 1 [13:14:24]*** CUTSNS_PIN = 0 [13:14:25]*** Brake cut motor [13:14:25]Read from MH i2c: 01 [13:14:25]MH_I2C_Read... [13:14:25]*** Stop cut motor [13:14:25]*** Cut end [13:14:25]Read from MH i2c: 01 07 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 FF 0F 23 [13:14:25]process_action close_receipt done [13:14:25]requested_data is exist [13:14:25]produce_requested_data [13:14:25]requested_item fm.sn is exist - process it [13:14:25]wFMCommunicate request_size=4 [13:14:25]MH_SAM_APDU [13:14:25]CAPDU: 80 11 00 00 [13:14:25]Write to MH i2c: E2 08 00 0D 02 80 11 00 00 00 00 00 00 89 [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:25]Read from MH i2c: E2 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 17 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 17 00 0D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DC [13:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:14:25]wFMCommunicate OK [13:14:25]requested_item fd.num is exist - process it [13:14:25]SAM_PROTO_GetFieldsCounters [13:14:25]wFMCommunicate request_size=4 [13:14:25]MH_SAM_APDU [13:14:25]CAPDU: 80 13 00 00 [13:14:25]Write to MH i2c: E2 08 00 0E 02 80 13 00 00 00 00 00 00 8C [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:25]Read from MH i2c: E2 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 62 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 62 00 0E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C6 DB 02 00 0E 04 04 00 88 02 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 74 [13:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C6 DB 02 00 0E 04 04 00 88 02 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 [13:14:25]wFMCommunicate OK [13:14:25]SAM_PROTO_GetFieldsCounters done [13:14:25]requested_item shift.num is exist - process it [13:14:25]requested_item shift.opened is exist - process it [13:14:25]req_shift_opened [13:14:25]FM_GetShiftState [13:14:25]SAM_PROTO_GetShiftState [13:14:25]wFMCommunicate request_size=4 [13:14:25]MH_SAM_APDU [13:14:25]CAPDU: 80 13 01 00 [13:14:25]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:25]Read from MH i2c: E2 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 0E 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E0 [13:14:25]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:14:25]wFMCommunicate OK [13:14:25]SAM_PROTO_GetShiftState done [13:14:25]FM_GetShiftState done [13:14:25]req_shift_opened done [13:14:25]requested_item shift.open_date is exist - process it [13:14:25]req_shift_open_date [13:14:25]req_shift_open_date done [13:14:25]produce_requested_data done [13:14:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187334,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:14:25]process_action_free close_receipt [13:14:25]json_value_free [13:14:25]json_value_free done [13:14:25]process_json_proto returns [13:14:25]Send response to host [13:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187334,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:14:25]free response buf [13:14:25]execute_script done [13:14:25]execute_script returns [13:14:25]free content buf [13:14:25]Sock 9.Close socket [13:14:25]Sock 9.Thread stoped [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:48]accept exits with 7 [13:19:48]New connection [13:19:48]New thread 3067276644 created [13:19:48]Thread 3067420004 joined [13:19:48]Waiting for new connection... [13:19:48] Sock 7.Parse request [13:19:48]Sock 7.Check first char [13:19:48]Sock 7.First char is OK [13:19:48]request: POST /json_proto HTTP/1.0 [13:19:48]Method: POST [13:19:48]URL: /json_proto [13:19:48]Method is POST - this is cgi request [13:19:48]url: /json_proto [13:19:48]query_string will be loaded in cgi processing [13:19:48]execute_cgi json_proto POST (null) [13:19:48]execute_cgi path=json_proto method=POST [13:19:48]POST find Content-Length [13:19:48]Host: 172.17.46.131:8080 [13:19:48]Content-Length: 673 [13:19:48]Content-Type: application/json [13:19:48] [13:19:48]POST finish read [13:19:48]Found Content-Length = 673 [13:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:19:48]execute_script... [13:19: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)412493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:19:48]POST & json_proto [13:19:48]process_json_proto [13:19:48]json parsed OK: [13:19:48]protocol is kg_v1.0 [13:19:48]action value=close_receipt [13:19:48]process_action close_receipt [13:19:48]cmd_close_receipt [13:19:48]MH_GetDate [13:19:48]Write to MH i2c: F0 00 00 10 02 01 [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: F0 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: F0 09 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: F0 09 00 10 02 00 F5 2B B7 67 7E 41 4F 65 BB [13:19:48]GetLastDocTimeStamp 1740057262 [13:19:48]current date 1740057589 [13:19:48]FM_GetShiftState [13:19:48]SAM_PROTO_GetShiftState [13:19:48]wFMCommunicate request_size=4 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 13 01 00 [13:19:48]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 0E 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E2 [13:19:48]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:19:48]wFMCommunicate OK [13:19:48]SAM_PROTO_GetShiftState done [13:19:48]FM_GetShiftState done [13:19:48]opened in 1740011697 [13:19:48]opened+sec_in_day 1740098097 [13:19:48]quantity*price = 50021 [13:19:48]sum+1 = 50022 [13:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 136 20.02.2025 13:19 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187335 ФПД: 152916293645959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131949&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187335&fm=152916293645959&tin=02508201610067®Number=0000000000091857&sum=50000 [13:19:49]StoreToDocumentArchive [13:19:49]shift 648 fd 187335 [13:19:49]save to /storage/0648/doc_00187335 [13:19:49]save last doc name /storage/0648/doc_00187335 to /storage/kkm_last_doc_name [13:19:49]save OK [13:19:49]Clear old archive folders... [13:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:19:49]tlvbuf is 00E02960 [13:19:49]SAM_PROTO_ClearQueue [13:19:49]wFMCommunicate request_size=4 [13:19:49]MH_SAM_APDU [13:19:49]CAPDU: 80 09 00 00 [13:19:49]Write to MH i2c: E2 08 00 1E 02 80 09 00 00 00 00 00 00 92 [13:19:49]Write i2c OK [13:19:49]MH_I2C_Read... [13:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:49]Read from MH i2c: E2 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: E2 03 00 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [13:19:49]RAPDU: 90 00 [13:19:49]wFMCommunicate OK [13:19:49]SAM_PROTO_ClearQueue done [13:19:49]KKMCreateOFDPacket [13:19:49]OFDProtocolAddRootSTLVToBuf [13:19:49]FM_MakeSignedData [13:19:49]FM_MakeSignedData [13:19:49]SAM_PROTO_SignData [13:19:49]wFMCommunicate request_size=4 [13:19:49]MH_SAM_APDU [13:19:49]CAPDU: 80 0D 01 02 [13:19:49]Write to MH i2c: E2 08 00 1F 02 80 0D 01 02 00 00 00 00 9A [13:19:49]Write i2c OK [13:19:49]MH_I2C_Read... [13:19:49]OFD Sender: No OFD packet to send [13:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:49]Read from MH i2c: E2 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: E2 03 00 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [13:19:49]RAPDU: 90 00 [13:19:49]wFMCommunicate OK [13:19:49]wFMCommunicate request_size=255 [13:19:49]MH_SAM_APDU [13:19: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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F5 2B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DB 02 00 35 04 06 00 8B 13 99 5C [13:19:49]Write to MH i2c: E2 02 01 20 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F5 2B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DB 02 00 35 04 06 00 8B 13 99 5C 00 00 DD [13:19:49]Write i2c OK [13:19:49]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]wFMCommunicate request_size=7 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 0D 02 02 02 F6 87 [13:19:50]Write to MH i2c: E2 0A 00 21 02 80 0D 02 02 02 00 F6 87 00 00 1E [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]wFMCommunicate request_size=4 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 0D 03 02 [13:19:50]Write to MH i2c: E2 08 00 22 02 80 0D 03 02 00 00 00 00 9F [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 0B 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 0B 00 22 02 00 FB E4 F6 7E 4E 91 2F 66 90 00 67 [13:19:50]RAPDU: FB E4 F6 7E 4E 91 2F 66 90 00 [13:19:50]wFMCommunicate OK [13:19:50]SAM_PROTO_SignData done [13:19:50]FM_MakeSignedData done [13:19:50]CreateOFDProtocolMessage [13:19:50]wFMCommunicate request_size=4 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 11 00 00 [13:19:50]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 17 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F2 [13:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:19:50]wFMCommunicate OK [13:19:50]CreateOFDProtocolMessage done [13:19:50]OFDSenderStorePacket 187335 [13:19:50]StoreOFDPacket docnum=187335 [13:19:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 79 21 04 01 E4 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F5 2B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DB 02 00 35 04 06 00 8B 13 99 5C F6 87 FB E4 F6 7E 4E 91 2F 66 [13:19:50]CheckFolder [13:19:50]dirname=/storage/ofd_packets [13:19:50]CheckFolder done [13:19:50]ProducePacketName [13:19:50]name=ofd_packets/00187335 [13:19:50]NVStorageSaveData ofd_packets/00187335 [13:19:50]File name is /storage/ofd_packets/00187335 [13:19:50]Write 298 bytes [13:19:50]NVStorageSaveData done [13:19:50]OFDSenderStorePacket done [13:19:50]KKMCreateOFDPacket done [13:19:50]NVStorageSaveData kkm_last_timestamp [13:19:50]File name is /storage/kkm_last_timestamp [13:19:50]Write 4 bytes [13:19:50]NVStorageSaveData done [13:19:50]ExternCall_PrintAddStr [13:19:50]wPrintStart [13:19:50]Write to MH i2c: 01 00 00 24 02 26 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 07 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [13:19:50]RasterBufferAndPrint [13:19:50]line Счет N : (1)412493 [13:19:50]line ИНН: 02508201610067 [13:19:50]line Контрольно-Кассовый Чек [13:19:50]line ПРОДАЖА [13:19:50]line ТРК (МРК, ГНК) : 5 [13:19:50]line Товар: 2710194210 [13:19:50]line ДТ-К-5 [13:19:50]line 6.890 * 72.60 [13:19:50]line = 500.21 [13:19:50]line НДС 12% НСП 1% [13:19:50]line > о реализуемом товаре [13:19:50]line ОКРУГЛЕНИЕ: -0.21 [13:19:50]line ИТОГО: 500.00 [13:19:50]line Внесено: 500.00 [13:19:50]line СДАЧА: 0.00 [13:19:50]line НСП 1% : 4.43 [13:19:50]line НДС 12% : 53.12 [13:19:50]line Наличными: 500.00 [13:19:50]line Безнал.: 0.00 [13:19:50]line Место: АЗС № 92 "Партнер Нефть" [13:19:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:19:50]line СНО: Общий режим [13:19:50]line Чек 136 20.02.2025 13:19 [13:19:50]line Смена: 648 ФФД: 1.0 [13:19:50]line ЗНМ: 0300000118 [13:19:50]line РНМ: 0000000000091857 [13:19:50]line Версия ККМ: 001 [13:19:50]line ФМ: 0000000000871826 [13:19:50]line ФД: 187335 [13:19:50]line ФПД: 152916293645959 [13:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T131949&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187335&fm=152916293645959&tin=02508201610067®Number=0000000000091857&sum=50000 [13:19:50]OFD Sender: Processing packet 187335 [packets to send 49, broken 48] [13:19:50]ProducePacketName [13:19:50]name=ofd_packets/00187335 [13:19:50]OFD Sender: To server: pG, [13:19:50]CommunicateWithHost lk.salyk.kg:30040 [13:19:50]ConnectInit lk.salyk.kg [13:19:50]written 0, free lines is 4095 [13:19:50]Connected sock=10 [13:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 79 21 04 01 E4 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F5 2B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DB 02 00 35 04 06 00 8B 13 99 5C F6 87 FB E4 F6 7E 4E 91 2F 66 [13:19:50]Write to MH i2c: 01 00 00 4F 02 51 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 07 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 E0 0C 44 [13:19:50]RasterBufferAndPrint [13:19:50]line [13:19:50]line [13:19:50]line [13:19:50]line [13:19:50]line [13:19:50]written 0, free lines is 3302 [13:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CF DA 47 00 DA E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DB 02 00 F4 03 04 00 46 D2 B6 67 B6 04 01 00 00 CD 62 47 42 02 6B 04 FB [13:19:51]CommunicateWithHost err = 0 [13:19:51]CheckOFDResponse [13:19:51]1017 (14) - 77093643461234 [13:19:51]1041 (16) - 0000000000871826 [13:19:51]1040 (4) - 187335 [13:19:51]1012 (4) - 20.02.2025 06:57 [13:19:51]1206 (1) - 0 [13:19:51]OFD Sender: Remove packet 187335 [13:19:51]ProducePacketName [13:19:51]name=ofd_packets/00187335 [13:19:51]NVStorageDeleteData [13:19:51]MH_Cut [13:19:51]Write to MH i2c: D1 01 00 56 02 01 2A [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: D1 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: D1 01 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: D1 01 00 56 02 00 29 [13:19:51]Write to MH i2c: 01 00 00 57 02 59 [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]OFD Sender: No OFD packet to send [13:19:51]*** Cut start [13:19:51]*** Partial cut [13:19:51]*** CUTSNS_PIN = 1 [13:19:51]*** CUTSNS_PIN = 0 [13:19:52]*** Brake cut motor [13:19:52]Read from MH i2c: 01 [13:19:52]MH_I2C_Read... [13:19:52]*** Stop cut motor [13:19:52]*** Cut end [13:19:52]Read from MH i2c: 01 07 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [13:19:52]process_action close_receipt done [13:19:52]requested_data is exist [13:19:52]produce_requested_data [13:19:52]requested_item fm.sn is exist - process it [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 11 00 00 [13:19:52]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 17 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [13:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:19:52]wFMCommunicate OK [13:19:52]requested_item fd.num is exist - process it [13:19:52]SAM_PROTO_GetFieldsCounters [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 13 00 00 [13:19:52]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 62 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C7 DB 02 00 0E 04 04 00 88 02 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 C3 [13:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C7 DB 02 00 0E 04 04 00 88 02 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 [13:19:52]wFMCommunicate OK [13:19:52]SAM_PROTO_GetFieldsCounters done [13:19:52]requested_item shift.num is exist - process it [13:19:52]requested_item shift.opened is exist - process it [13:19:52]req_shift_opened [13:19:52]FM_GetShiftState [13:19:52]SAM_PROTO_GetShiftState [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 13 01 00 [13:19:52]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 0E 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2B [13:19:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:19:52]wFMCommunicate OK [13:19:52]SAM_PROTO_GetShiftState done [13:19:52]FM_GetShiftState done [13:19:52]req_shift_opened done [13:19:52]requested_item shift.open_date is exist - process it [13:19:52]req_shift_open_date [13:19:52]req_shift_open_date done [13:19:52]produce_requested_data done [13:19:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187335,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:19:52]process_action_free close_receipt [13:19:52]json_value_free [13:19:52]json_value_free done [13:19:52]process_json_proto returns [13:19:52]Send response to host [13:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187335,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:19:52]free response buf [13:19:52]execute_script done [13:19:52]execute_script returns [13:19:52]free content buf [13:19:52]Sock 7.Close socket [13:19:52]Sock 7.Thread stoped [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:29]accept exits with 9 [13:20:29]New connection [13:20:29]New thread 3067420004 created [13:20:29]Thread 3067276644 joined [13:20:29]Waiting for new connection... [13:20:29] Sock 9.Parse request [13:20:29]Sock 9.Check first char [13:20:29]Sock 9.First char is OK [13:20:29]request: POST /json_proto HTTP/1.0 [13:20:29]Method: POST [13:20:29]URL: /json_proto [13:20:29]Method is POST - this is cgi request [13:20:29]url: /json_proto [13:20:29]query_string will be loaded in cgi processing [13:20:29]execute_cgi json_proto POST (null) [13:20:29]execute_cgi path=json_proto method=POST [13:20:29]POST find Content-Length [13:20:29]Host: 172.17.46.131:8080 [13:20:29]Content-Length: 674 [13:20:29]Content-Type: application/json [13:20:29] [13:20:29]POST finish read [13:20:29]Found Content-Length = 674 [13:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "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" ] } } [13:20:29]execute_script... [13:20: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)412494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "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" ] } } [13:20:29]POST & json_proto [13:20:29]process_json_proto [13:20:29]json parsed OK: [13:20:29]protocol is kg_v1.0 [13:20:29]action value=close_receipt [13:20:29]process_action close_receipt [13:20:29]cmd_close_receipt [13:20:29]MH_GetDate [13:20:29]Write to MH i2c: F0 00 00 5B 02 4C [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: F0 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: F0 09 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: F0 09 00 5B 02 00 1D 2C B7 67 7E 41 4F 65 2F [13:20:29]GetLastDocTimeStamp 1740057589 [13:20:29]current date 1740057629 [13:20:29]FM_GetShiftState [13:20:29]SAM_PROTO_GetShiftState [13:20:29]wFMCommunicate request_size=4 [13:20:29]MH_SAM_APDU [13:20:29]CAPDU: 80 13 01 00 [13:20:29]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:29]Read from MH i2c: E2 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 0E 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2D [13:20:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:20:29]wFMCommunicate OK [13:20:29]SAM_PROTO_GetShiftState done [13:20:29]FM_GetShiftState done [13:20:29]opened in 1740011697 [13:20:29]opened+sec_in_day 1740098097 [13:20:29]quantity*price = 60040 [13:20:29]sum+1 = 60041 [13:20:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 137 20.02.2025 13:20 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187336 ФПД: 194120520850445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T132029&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187336&fm=194120520850445&tin=02508201610067®Number=0000000000091857&sum=60000 [13:20:30]StoreToDocumentArchive [13:20:30]shift 648 fd 187336 [13:20:30]save to /storage/0648/doc_00187336 [13:20:30]save last doc name /storage/0648/doc_00187336 to /storage/kkm_last_doc_name [13:20:30]save OK [13:20:30]Clear old archive folders... [13:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:20:30]tlvbuf is 00E037F0 [13:20:30]SAM_PROTO_ClearQueue [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 09 00 00 [13:20:30]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [13:20:30]RAPDU: 90 00 [13:20:30]wFMCommunicate OK [13:20:30]SAM_PROTO_ClearQueue done [13:20:30]KKMCreateOFDPacket [13:20:30]OFDProtocolAddRootSTLVToBuf [13:20:30]FM_MakeSignedData [13:20:30]FM_MakeSignedData [13:20:30]SAM_PROTO_SignData [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 0D 01 02 [13:20:30]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [13:20:30]RAPDU: 90 00 [13:20:30]wFMCommunicate OK [13:20:30]wFMCommunicate request_size=255 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 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 89 00 00 00 F4 03 04 00 1D 2C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DB 02 00 35 04 06 00 B0 8D 34 B0 [13:20:30]Write to MH i2c: E2 02 01 6B 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 32 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 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 89 00 00 00 F4 03 04 00 1D 2C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DB 02 00 35 04 06 00 B0 8D 34 B0 00 00 85 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [13:20:30]RAPDU: 90 00 [13:20:30]wFMCommunicate OK [13:20:30]wFMCommunicate request_size=7 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 0D 02 02 02 5C 0D [13:20:30]Write to MH i2c: E2 0A 00 6C 02 80 0D 02 02 02 00 5C 0D 00 00 55 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [13:20:30]RAPDU: 90 00 [13:20:30]wFMCommunicate OK [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 0D 03 02 [13:20:30]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 0B 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 0B 00 6D 02 00 2F 30 CE 3C 03 C1 28 23 90 00 63 [13:20:30]RAPDU: 2F 30 CE 3C 03 C1 28 23 90 00 [13:20:30]wFMCommunicate OK [13:20:30]SAM_PROTO_SignData done [13:20:30]FM_MakeSignedData done [13:20:30]CreateOFDProtocolMessage [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 11 00 00 [13:20:30]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 17 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [13:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:20:30]wFMCommunicate OK [13:20:30]CreateOFDProtocolMessage done [13:20:30]OFDSenderStorePacket 187336 [13:20:30]StoreOFDPacket docnum=187336 [13:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B6 84 04 01 54 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 32 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 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 89 00 00 00 F4 03 04 00 1D 2C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DB 02 00 35 04 06 00 B0 8D 34 B0 5C 0D 2F 30 CE 3C 03 C1 28 23 [13:20:30]CheckFolder [13:20:30]dirname=/storage/ofd_packets [13:20:30]CheckFolder done [13:20:30]ProducePacketName [13:20:30]name=ofd_packets/00187336 [13:20:30]NVStorageSaveData ofd_packets/00187336 [13:20:30]File name is /storage/ofd_packets/00187336 [13:20:30]Write 298 bytes [13:20:30]NVStorageSaveData done [13:20:30]OFDSenderStorePacket done [13:20:30]KKMCreateOFDPacket done [13:20:30]NVStorageSaveData kkm_last_timestamp [13:20:30]File name is /storage/kkm_last_timestamp [13:20:30]Write 4 bytes [13:20:30]NVStorageSaveData done [13:20:30]ExternCall_PrintAddStr [13:20:30]wPrintStart [13:20:30]Write to MH i2c: 01 00 00 6F 02 71 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 07 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [13:20:30]RasterBufferAndPrint [13:20:30]line Счет N : (1)412494 [13:20:30]line ИНН: 02508201610067 [13:20:30]line Контрольно-Кассовый Чек [13:20:30]line ПРОДАЖА [13:20:30]line ТРК (МРК, ГНК) : 41 [13:20:30]line Товар: 2710194210 [13:20:30]line ДТ-К-2 [13:20:30]line 8.270 * 72.60 [13:20:30]line = 600.40 [13:20:30]line НДС 12% НСП 1% [13:20:30]line > о реализуемом товаре [13:20:30]line ОКРУГЛЕНИЕ: -0.40 [13:20:30]line ИТОГО: 600.00 [13:20:30]line Внесено: 600.00 [13:20:30]line СДАЧА: 0.00 [13:20:30]line НСП 1% : 5.31 [13:20:30]line НДС 12% : 63.76 [13:20:30]line Наличными: 600.00 [13:20:30]line Безнал.: 0.00 [13:20:30]line Место: АЗС № 92 "Партнер Нефть" [13:20:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:20:30]line СНО: Общий режим [13:20:30]line Чек 137 20.02.2025 13:20 [13:20:30]line Смена: 648 ФФД: 1.0 [13:20:30]line ЗНМ: 0300000118 [13:20:30]line РНМ: 0000000000091857 [13:20:30]line Версия ККМ: 001 [13:20:30]line ФМ: 0000000000871826 [13:20:30]line ФД: 187336 [13:20:30]line ФПД: 194120520850445 [13:20:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T132029&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187336&fm=194120520850445&tin=02508201610067®Number=0000000000091857&sum=60000 [13:20:31]OFD Sender: Processing packet 187336 [packets to send 49, broken 48] [13:20:31]ProducePacketName [13:20:31]name=ofd_packets/00187336 [13:20:31]OFD Sender: To server: pG, [13:20:31]CommunicateWithHost lk.salyk.kg:30040 [13:20:31]ConnectInit lk.salyk.kg [13:20:31]written 0, free lines is 4095 [13:20:31]Write to MH i2c: 01 00 00 9A 02 9C [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: 01 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: 01 07 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 E7 0C 96 [13:20:31]RasterBufferAndPrint [13:20:31]line [13:20:31]line [13:20:31]line [13:20:31]line [13:20:31]line [13:20:31]written 0, free lines is 3307 [13:20:31]MH_Cut [13:20:31]Write to MH i2c: D1 01 00 A1 02 01 75 [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: D1 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: D1 01 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: D1 01 00 A1 02 00 74 [13:20:31]Write to MH i2c: 01 00 00 A2 02 A4 [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:32]*** Cut start [13:20:32]*** Partial cut [13:20:32]*** CUTSNS_PIN = 1 [13:20:32]*** CUTSNS_PIN = 0 [13:20:32]*** Brake cut motor [13:20:33]Read from MH i2c: 01 [13:20:33]MH_I2C_Read... [13:20:33]*** Stop cut motor [13:20:33]*** Cut end [13:20:33]Read from MH i2c: 01 07 00 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 FF 0F B9 [13:20:33]process_action close_receipt done [13:20:33]requested_data is exist [13:20:33]produce_requested_data [13:20:33]requested_item fm.sn is exist - process it [13:20:33]wFMCommunicate request_size=4 [13:20:33]MH_SAM_APDU [13:20:33]CAPDU: 80 11 00 00 [13:20:33]Write to MH i2c: E2 08 00 A3 02 80 11 00 00 00 00 00 00 1F [13:20:33]Write i2c OK [13:20:33]MH_I2C_Read... [13:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:33]Read from MH i2c: E2 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 17 00 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 17 00 A3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [13:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:20:33]wFMCommunicate OK [13:20:33]requested_item fd.num is exist - process it [13:20:33]SAM_PROTO_GetFieldsCounters [13:20:33]wFMCommunicate request_size=4 [13:20:33]MH_SAM_APDU [13:20:33]CAPDU: 80 13 00 00 [13:20:33]Write to MH i2c: E2 08 00 A4 02 80 13 00 00 00 00 00 00 22 [13:20:33]Write i2c OK [13:20:33]MH_I2C_Read... [13:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:33]Read from MH i2c: E2 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 62 00 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 62 00 A4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C8 DB 02 00 0E 04 04 00 88 02 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 [13:20:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C8 DB 02 00 0E 04 04 00 88 02 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 [13:20:33]wFMCommunicate OK [13:20:33]SAM_PROTO_GetFieldsCounters done [13:20:33]requested_item shift.num is exist - process it [13:20:33]requested_item shift.opened is exist - process it [13:20:33]req_shift_opened [13:20:33]FM_GetShiftState [13:20:33]SAM_PROTO_GetShiftState [13:20:33]wFMCommunicate request_size=4 [13:20:33]MH_SAM_APDU [13:20:33]CAPDU: 80 13 01 00 [13:20:33]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [13:20:33]Write i2c OK [13:20:33]MH_I2C_Read... [13:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:33]Read from MH i2c: E2 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 0E 00 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 76 [13:20:33]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:20:33]wFMCommunicate OK [13:20:33]SAM_PROTO_GetShiftState done [13:20:33]FM_GetShiftState done [13:20:33]req_shift_opened done [13:20:33]requested_item shift.open_date is exist - process it [13:20:33]req_shift_open_date [13:20:33]req_shift_open_date done [13:20:33]produce_requested_data done [13:20:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187336,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:20:33]process_action_free close_receipt [13:20:33]json_value_free [13:20:33]json_value_free done [13:20:33]process_json_proto returns [13:20:33]Send response to host [13:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187336,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:20:33]free response buf [13:20:33]execute_script done [13:20:33]execute_script returns [13:20:33]free content buf [13:20:33]Sock 9.Close socket [13:20:33]Sock 9.Thread stoped [13:22:44]ConnectInit Can't connect to host [13:22:44]CommunicateWithHost connect error [13:22:44]CommunicateWithHost err = -1 [13:22:44]OFD Sender: Server communicate error [13:22:49]OFD Sender: Processing packet 187336 [packets to send 49, broken 48] [13:22:49]ProducePacketName [13:22:49]name=ofd_packets/00187336 [13:22:49]OFD Sender: To server: pG, [13:22:49]CommunicateWithHost lk.salyk.kg:30040 [13:22:49]ConnectInit lk.salyk.kg [13:22:49]Connected sock=9 [13:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B6 84 04 01 54 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 32 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 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 89 00 00 00 F4 03 04 00 1D 2C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DB 02 00 35 04 06 00 B0 8D 34 B0 5C 0D 2F 30 CE 3C 03 C1 28 23 [13:22:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D8 A8 47 00 1B 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 31 38 32 36 10 04 04 00 C8 DB 02 00 F4 03 04 00 F8 D2 B6 67 B6 04 01 00 00 01 83 3E 01 E5 63 FF DD [13:22:49]CommunicateWithHost err = 0 [13:22:49]CheckOFDResponse [13:22:49]1017 (14) - 77093643461234 [13:22:49]1041 (16) - 0000000000871826 [13:22:49]1040 (4) - 187336 [13:22:49]1012 (4) - 20.02.2025 07:00 [13:22:49]1206 (1) - 0 [13:22:49]OFD Sender: Remove packet 187336 [13:22:49]ProducePacketName [13:22:49]name=ofd_packets/00187336 [13:22:49]NVStorageDeleteData [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:26:58]accept exits with 7 [13:26:58]New connection [13:26:58]New thread 3067276644 created [13:26:58]Thread 3067420004 joined [13:26:58]Waiting for new connection... [13:26:58] Sock 7.Parse request [13:26:58]Sock 7.Check first char [13:26:58]Sock 7.First char is OK [13:26:58]request: POST /json_proto HTTP/1.0 [13:26:58]Method: POST [13:26:58]URL: /json_proto [13:26:58]Method is POST - this is cgi request [13:26:58]url: /json_proto [13:26:58]query_string will be loaded in cgi processing [13:26:58]execute_cgi json_proto POST (null) [13:26:58]execute_cgi path=json_proto method=POST [13:26:58]POST find Content-Length [13:26:58]Host: 172.17.46.131:8080 [13:26:58]Content-Length: 682 [13:26:58]Content-Type: application/json [13:26:58] [13:26:58]POST finish read [13:26:58]Found Content-Length = 682 [13:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\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:26:58]execute_script... [13: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)412495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\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:26:58]POST & json_proto [13:26:58]process_json_proto [13:26:58]json parsed OK: [13:26:58]protocol is kg_v1.0 [13:26:58]action value=close_receipt [13:26:58]process_action close_receipt [13:26:58]cmd_close_receipt [13:26:58]MH_GetDate [13:26:58]Write to MH i2c: F0 00 00 A6 02 97 [13:26:58]Write i2c OK [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: F0 [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: F0 09 00 [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: F0 09 00 A6 02 00 A3 2D B7 67 7E 41 4F 65 01 [13:26:58]GetLastDocTimeStamp 1740057629 [13:26:58]current date 1740058019 [13:26:58]FM_GetShiftState [13:26:58]SAM_PROTO_GetShiftState [13:26:58]wFMCommunicate request_size=4 [13:26:58]MH_SAM_APDU [13:26:58]CAPDU: 80 13 01 00 [13:26:58]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [13:26:58]Write i2c OK [13:26:58]MH_I2C_Read... [13:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:58]Read from MH i2c: E2 [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: E2 0E 00 [13:26:58]MH_I2C_Read... [13:26:58]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 78 [13:26:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:26:58]wFMCommunicate OK [13:26:58]SAM_PROTO_GetShiftState done [13:26:58]FM_GetShiftState done [13:26:58]opened in 1740011697 [13:26:58]opened+sec_in_day 1740098097 [13:26:58]quantity*price = 100012 [13:26:58]sum+1 = 100014 [13:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 138 20.02.2025 13:26 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187337 ФПД: 143062473878441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T132659&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187337&fm=143062473878441&tin=02508201610067®Number=0000000000091857&sum=100000 [13:26:59]StoreToDocumentArchive [13:26:59]shift 648 fd 187337 [13:26:59]save to /storage/0648/doc_00187337 [13:26:59]save last doc name /storage/0648/doc_00187337 to /storage/kkm_last_doc_name [13:26:59]save OK [13:26:59]Clear old archive folders... [13:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:59]tlvbuf is 00E08020 [13:26:59]SAM_PROTO_ClearQueue [13:26:59]wFMCommunicate request_size=4 [13:26:59]MH_SAM_APDU [13:26:59]CAPDU: 80 09 00 00 [13:26:59]Write to MH i2c: E2 08 00 B4 02 80 09 00 00 00 00 00 00 28 [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:59]Read from MH i2c: E2 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 03 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [13:26:59]RAPDU: 90 00 [13:26:59]wFMCommunicate OK [13:26:59]SAM_PROTO_ClearQueue done [13:26:59]KKMCreateOFDPacket [13:26:59]OFDProtocolAddRootSTLVToBuf [13:26:59]FM_MakeSignedData [13:26:59]FM_MakeSignedData [13:26:59]SAM_PROTO_SignData [13:26:59]wFMCommunicate request_size=4 [13:26:59]MH_SAM_APDU [13:26:59]CAPDU: 80 0D 01 02 [13:26:59]Write to MH i2c: E2 08 00 B5 02 80 0D 01 02 00 00 00 00 30 [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:59]Read from MH i2c: E2 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 03 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [13:26:59]RAPDU: 90 00 [13:26:59]wFMCommunicate OK [13:26:59]wFMCommunicate request_size=255 [13:26:59]MH_SAM_APDU [13:26:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 A3 2D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DB 02 00 35 04 06 00 82 [13:26:59]Write to MH i2c: E2 02 01 B6 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 8A 00 00 00 F4 03 04 00 A3 2D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DB 02 00 35 04 06 00 82 00 00 CB [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:00]Read from MH i2c: E2 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 03 00 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [13:27:00]RAPDU: 90 00 [13:27:00]wFMCommunicate OK [13:27:00]wFMCommunicate request_size=10 [13:27:00]MH_SAM_APDU [13:27:00]CAPDU: 80 0D 02 02 05 1D 53 EF AB A9 [13:27:00]Write to MH i2c: E2 0D 00 B7 02 80 0D 02 02 05 00 1D 53 EF AB A9 00 00 F0 [13:27:00]Write i2c OK [13:27:00]MH_I2C_Read... [13:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:00]Read from MH i2c: E2 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 03 00 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [13:27:00]RAPDU: 90 00 [13:27:00]wFMCommunicate OK [13:27:00]wFMCommunicate request_size=4 [13:27:00]MH_SAM_APDU [13:27:00]CAPDU: 80 0D 03 02 [13:27:00]Write to MH i2c: E2 08 00 B8 02 80 0D 03 02 00 00 00 00 35 [13:27:00]Write i2c OK [13:27:00]MH_I2C_Read... [13:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:00]Read from MH i2c: E2 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 0B 00 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 0B 00 B8 02 00 1E AA 19 E4 D9 33 B4 A6 90 00 61 [13:27:00]RAPDU: 1E AA 19 E4 D9 33 B4 A6 90 00 [13:27:00]wFMCommunicate OK [13:27:00]SAM_PROTO_SignData done [13:27:00]FM_MakeSignedData done [13:27:00]CreateOFDProtocolMessage [13:27:00]wFMCommunicate request_size=4 [13:27:00]MH_SAM_APDU [13:27:00]CAPDU: 80 11 00 00 [13:27:00]Write to MH i2c: E2 08 00 B9 02 80 11 00 00 00 00 00 00 35 [13:27:00]Write i2c OK [13:27:00]MH_I2C_Read... [13:27:00]OFD Sender: No OFD packet to send [13:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:00]Read from MH i2c: E2 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 17 00 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 17 00 B9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 88 [13:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:27:00]wFMCommunicate OK [13:27:00]CreateOFDProtocolMessage done [13:27:00]OFDSenderStorePacket 187337 [13:27:00]StoreOFDPacket docnum=187337 [13:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 35 07 01 4C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 8A 00 00 00 F4 03 04 00 A3 2D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DB 02 00 35 04 06 00 82 1D 53 EF AB A9 1E AA 19 E4 D9 33 B4 A6 [13:27:00]CheckFolder [13:27:00]dirname=/storage/ofd_packets [13:27:00]CheckFolder done [13:27:00]ProducePacketName [13:27:00]name=ofd_packets/00187337 [13:27:00]NVStorageSaveData ofd_packets/00187337 [13:27:00]File name is /storage/ofd_packets/00187337 [13:27:00]Write 301 bytes [13:27:00]NVStorageSaveData done [13:27:00]OFDSenderStorePacket done [13:27:00]KKMCreateOFDPacket done [13:27:00]NVStorageSaveData kkm_last_timestamp [13:27:00]File name is /storage/kkm_last_timestamp [13:27:00]Write 4 bytes [13:27:00]NVStorageSaveData done [13:27:00]ExternCall_PrintAddStr [13:27:00]wPrintStart [13:27:00]Write to MH i2c: 01 00 00 BA 02 BC [13:27:00]Write i2c OK [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: 01 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: 01 07 00 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [13:27:00]RasterBufferAndPrint [13:27:00]line Счет N : (1)412495 [13:27:00]line ИНН: 02508201610067 [13:27:00]line Контрольно-Кассовый Чек [13:27:00]line ПРОДАЖА [13:27:00]line ТРК (МРК, ГНК) : 43 [13:27:00]line Товар: 2710124500 [13:27:00]line Аи-95-К-5 [13:27:00]line 13.910 * 71.90 [13:27:00]line = 1000.13 [13:27:00]line НДС 12% НСП 1% [13:27:00]line > о реализуемом товаре [13:27:00]line ОКРУГЛЕНИЕ: -0.13 [13:27:00]line ИТОГО: 1000.00 [13:27:00]line Внесено: 1000.00 [13:27:00]line СДАЧА: 0.00 [13:27:00]line НСП 1% : 8.85 [13:27:00]line НДС 12% : 106.21 [13:27:00]line Наличными: 1000.00 [13:27:00]line Безнал.: 0.00 [13:27:00]line Место: АЗС № 92 "Партнер Нефть" [13:27:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:27:00]line СНО: Общий режим [13:27:00]line Чек 138 20.02.2025 13:26 [13:27:00]line Смена: 648 ФФД: 1.0 [13:27:00]line ЗНМ: 0300000118 [13:27:00]line РНМ: 0000000000091857 [13:27:00]line Версия ККМ: 001 [13:27:00]line ФМ: 0000000000871826 [13:27:00]line ФД: 187337 [13:27:00]line ФПД: 143062473878441 [13:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T132659&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187337&fm=143062473878441&tin=02508201610067®Number=0000000000091857&sum=100000 [13:27:00]OFD Sender: Processing packet 187337 [packets to send 49, broken 48] [13:27:00]ProducePacketName [13:27:00]name=ofd_packets/00187337 [13:27:00]OFD Sender: To server: pG, [13:27:00]CommunicateWithHost lk.salyk.kg:30040 [13:27:00]ConnectInit lk.salyk.kg [13:27:00]written 0, free lines is 4095 [13:27:00]Connected sock=10 [13: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 31 38 32 36 0F 01 00 00 CE 35 07 01 4C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 8A 00 00 00 F4 03 04 00 A3 2D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DB 02 00 35 04 06 00 82 1D 53 EF AB A9 1E AA 19 E4 D9 33 B4 A6 [13:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BC 81 47 00 45 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DB 02 00 F4 03 04 00 F4 D3 B6 67 B6 04 01 00 00 BD 59 3B 41 16 3D 3D E3 [13:27:01]CommunicateWithHost err = 0 [13:27:01]CheckOFDResponse [13:27:01]1017 (14) - 77093643461234 [13:27:01]1041 (16) - 0000000000871826 [13:27:01]1040 (4) - 187337 [13:27:01]1012 (4) - 20.02.2025 07:04 [13:27:01]1206 (1) - 0 [13:27:01]OFD Sender: Remove packet 187337 [13:27:01]ProducePacketName [13:27:01]name=ofd_packets/00187337 [13:27:01]NVStorageDeleteData [13:27:01]Write to MH i2c: 01 00 00 E5 02 E7 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 07 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 E6 0C E0 [13:27:01]RasterBufferAndPrint [13:27:01]line [13:27:01]line [13:27:01]line [13:27:01]line [13:27:01]line [13:27:01]written 0, free lines is 3309 [13:27:01]MH_Cut [13:27:01]Write to MH i2c: D1 01 00 EC 02 01 C0 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: D1 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: D1 01 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: D1 01 00 EC 02 00 BF [13:27:01]Write to MH i2c: 01 00 00 ED 02 EF [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]OFD Sender: No OFD packet to send [13:27:01]*** Cut start [13:27:01]*** Partial cut [13:27:01]*** CUTSNS_PIN = 1 [13:27:01]*** CUTSNS_PIN = 0 [13:27:02]*** Brake cut motor [13:27:02]Read from MH i2c: 01 [13:27:02]MH_I2C_Read... [13:27:02]*** Stop cut motor [13:27:02]*** Cut end [13:27:02]Read from MH i2c: 01 07 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 FF 0F 04 [13:27:02]process_action close_receipt done [13:27:02]requested_data is exist [13:27:02]produce_requested_data [13:27:02]requested_item fm.sn is exist - process it [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 11 00 00 [13:27:02]Write to MH i2c: E2 08 00 EE 02 80 11 00 00 00 00 00 00 6A [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 17 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 17 00 EE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [13:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:27:02]wFMCommunicate OK [13:27:02]requested_item fd.num is exist - process it [13:27:02]SAM_PROTO_GetFieldsCounters [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 13 00 00 [13:27:02]Write to MH i2c: E2 08 00 EF 02 80 13 00 00 00 00 00 00 6D [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 62 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 62 00 EF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C9 DB 02 00 0E 04 04 00 88 02 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 61 [13: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C9 DB 02 00 0E 04 04 00 88 02 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 [13:27:02]wFMCommunicate OK [13:27:02]SAM_PROTO_GetFieldsCounters done [13:27:02]requested_item shift.num is exist - process it [13:27:02]requested_item shift.opened is exist - process it [13:27:02]req_shift_opened [13:27:02]FM_GetShiftState [13:27:02]SAM_PROTO_GetShiftState [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 13 01 00 [13:27:02]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0E 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C1 [13:27:02]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:27:02]wFMCommunicate OK [13:27:02]SAM_PROTO_GetShiftState done [13:27:02]FM_GetShiftState done [13:27:02]req_shift_opened done [13:27:02]requested_item shift.open_date is exist - process it [13:27:02]req_shift_open_date [13:27:02]req_shift_open_date done [13:27:02]produce_requested_data done [13:27:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187337,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:27:02]process_action_free close_receipt [13:27:02]json_value_free [13:27:02]json_value_free done [13:27:02]process_json_proto returns [13:27:02]Send response to host [13:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187337,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:27:02]free response buf [13:27:02]execute_script done [13:27:02]execute_script returns [13:27:02]free content buf [13:27:02]Sock 7.Close socket [13:27:02]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:14]accept exits with 9 [13:28:14]New connection [13:28:14]New thread 3067420004 created [13:28:14]Thread 3067276644 joined [13:28:14]Waiting for new connection... [13:28:14] Sock 9.Parse request [13:28:14]Sock 9.Check first char [13:28:14]Sock 9.First char is OK [13:28:14]request: POST /json_proto HTTP/1.0 [13:28:14]Method: POST [13:28:14]URL: /json_proto [13:28:14]Method is POST - this is cgi request [13:28:14]url: /json_proto [13:28:14]query_string will be loaded in cgi processing [13:28:14]execute_cgi json_proto POST (null) [13:28:14]execute_cgi path=json_proto method=POST [13:28:14]POST find Content-Length [13:28:14]Host: 172.17.46.131:8080 [13:28:14]Content-Length: 803 [13:28:14]Content-Type: application/json [13:28:14] [13:28:14]POST finish read [13:28:14]Found Content-Length = 803 [13:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:14]execute_script... [13:28: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)412496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:14]POST & json_proto [13:28:14]process_json_proto [13:28:14]json parsed OK: [13:28:14]protocol is kg_v1.0 [13:28:14]action value=close_receipt [13:28:14]process_action close_receipt [13:28:14]cmd_close_receipt [13:28:14]MH_GetDate [13:28:14]Write to MH i2c: F0 00 00 F1 02 E2 [13:28:14]Write i2c OK [13:28:14]MH_I2C_Read... [13:28:14]Read from MH i2c: F0 [13:28:14]MH_I2C_Read... [13:28:14]Read from MH i2c: F0 09 00 [13:28:14]MH_I2C_Read... [13:28:14]Read from MH i2c: F0 09 00 F1 02 00 EF 2D B7 67 7E 41 4F 65 98 [13:28:14]GetLastDocTimeStamp 1740058019 [13:28:14]current date 1740058095 [13:28:14]FM_GetShiftState [13:28:14]SAM_PROTO_GetShiftState [13:28:14]wFMCommunicate request_size=4 [13:28:14]MH_SAM_APDU [13:28:14]CAPDU: 80 13 01 00 [13:28:14]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [13:28:14]Write i2c OK [13:28:14]MH_I2C_Read... [13:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:14]Read from MH i2c: E2 [13:28:14]MH_I2C_Read... [13:28:14]Read from MH i2c: E2 0E 00 [13:28:14]MH_I2C_Read... [13:28:14]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C3 [13:28:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:28:14]wFMCommunicate OK [13:28:14]SAM_PROTO_GetShiftState done [13:28:14]FM_GetShiftState done [13:28:14]opened in 1740011697 [13:28:14]opened+sec_in_day 1740098097 [13:28:14]quantity*price = 100023 [13:28:14]sum+1 = 100025 [13:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 139 20.02.2025 13:28 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187338 ФПД: 142319832652992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T132815&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187338&fm=142319832652992&tin=02508201610067®Number=0000000000091857&sum=100024 [13:28:15]StoreToDocumentArchive [13:28:15]shift 648 fd 187338 [13:28:15]save to /storage/0648/doc_00187338 [13:28:15]save last doc name /storage/0648/doc_00187338 to /storage/kkm_last_doc_name [13:28:15]save OK [13:28:15]Clear old archive folders... [13:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:15]tlvbuf is 00DF9320 [13:28:15]SAM_PROTO_ClearQueue [13:28:15]wFMCommunicate request_size=4 [13:28:15]MH_SAM_APDU [13:28:15]CAPDU: 80 09 00 00 [13:28:15]Write to MH i2c: E2 08 00 FF 02 80 09 00 00 00 00 00 00 73 [13:28:15]Write i2c OK [13:28:15]MH_I2C_Read... [13:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:15]Read from MH i2c: E2 [13:28:15]MH_I2C_Read... [13:28:15]Read from MH i2c: E2 03 00 [13:28:15]MH_I2C_Read... [13:28:15]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [13:28:15]RAPDU: 90 00 [13:28:15]wFMCommunicate OK [13:28:15]SAM_PROTO_ClearQueue done [13:28:15]KKMCreateOFDPacket [13:28:15]OFDProtocolAddRootSTLVToBuf [13:28:15]FM_MakeSignedData [13:28:15]FM_MakeSignedData [13:28:15]SAM_PROTO_SignData [13:28:15]wFMCommunicate request_size=4 [13:28:15]MH_SAM_APDU [13:28:15]CAPDU: 80 0D 01 02 [13:28:15]Write to MH i2c: E2 08 00 00 03 80 0D 01 02 00 00 00 00 7C [13:28:15]Write i2c OK [13:28:15]MH_I2C_Read... [13:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:15]Read from MH i2c: E2 [13:28:15]MH_I2C_Read... [13:28:15]Read from MH i2c: E2 03 00 [13:28:15]MH_I2C_Read... [13:28:15]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [13:28:15]RAPDU: 90 00 [13:28:15]wFMCommunicate OK [13:28:15]wFMCommunicate request_size=255 [13:28:15]MH_SAM_APDU [13:28: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 EF 2D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DB 02 00 35 04 06 00 81 [13:28:15]Write to MH i2c: E2 02 01 01 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 EF 2D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DB 02 00 35 04 06 00 81 00 00 20 [13:28:15]Write i2c OK [13:28:15]MH_I2C_Read... [13:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:15]Read from MH i2c: E2 [13:28:15]MH_I2C_Read... [13:28:15]Read from MH i2c: E2 03 00 [13:28:15]MH_I2C_Read... [13:28:15]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [13:28:15]RAPDU: 90 00 [13:28:15]wFMCommunicate OK [13:28:15]wFMCommunicate request_size=10 [13:28:15]MH_SAM_APDU [13:28:15]CAPDU: 80 0D 02 02 05 70 6B 11 DC C0 [13:28:15]Write to MH i2c: E2 0D 00 02 03 80 0D 02 02 05 00 70 6B 11 DC C0 00 00 11 [13:28:15]Write i2c OK [13:28:15]MH_I2C_Read... [13:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:15]Read from MH i2c: E2 [13:28:15]MH_I2C_Read... [13:28:15]Read from MH i2c: E2 03 00 [13:28:15]MH_I2C_Read... [13:28:15]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [13:28:15]RAPDU: 90 00 [13:28:15]wFMCommunicate OK [13:28:15]wFMCommunicate request_size=4 [13:28:15]MH_SAM_APDU [13:28:15]CAPDU: 80 0D 03 02 [13:28:15]Write to MH i2c: E2 08 00 03 03 80 0D 03 02 00 00 00 00 81 [13:28:15]Write i2c OK [13:28:15]MH_I2C_Read... [13:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:16]Read from MH i2c: E2 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: E2 0B 00 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: E2 0B 00 03 03 00 B2 F9 CE 0F 6D A2 DC C6 90 00 BB [13:28:16]RAPDU: B2 F9 CE 0F 6D A2 DC C6 90 00 [13:28:16]wFMCommunicate OK [13:28:16]SAM_PROTO_SignData done [13:28:16]FM_MakeSignedData done [13:28:16]CreateOFDProtocolMessage [13:28:16]wFMCommunicate request_size=4 [13:28:16]MH_SAM_APDU [13:28:16]CAPDU: 80 11 00 00 [13:28:16]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [13:28:16]Write i2c OK [13:28:16]MH_I2C_Read... [13:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:16]Read from MH i2c: E2 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: E2 17 00 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [13:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:28:16]wFMCommunicate OK [13:28:16]CreateOFDProtocolMessage done [13:28:16]OFDSenderStorePacket 187338 [13:28:16]StoreOFDPacket docnum=187338 [13:28:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B5 9A 07 01 DB 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 EF 2D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DB 02 00 35 04 06 00 81 70 6B 11 DC C0 B2 F9 CE 0F 6D A2 DC C6 [13:28:16]CheckFolder [13:28:16]dirname=/storage/ofd_packets [13:28:16]CheckFolder done [13:28:16]ProducePacketName [13:28:16]name=ofd_packets/00187338 [13:28:16]NVStorageSaveData ofd_packets/00187338 [13:28:16]File name is /storage/ofd_packets/00187338 [13:28:16]Write 301 bytes [13:28:16]NVStorageSaveData done [13:28:16]OFDSenderStorePacket done [13:28:16]KKMCreateOFDPacket done [13:28:16]NVStorageSaveData kkm_last_timestamp [13:28:16]File name is /storage/kkm_last_timestamp [13:28:16]Write 4 bytes [13:28:16]NVStorageSaveData done [13:28:16]ExternCall_PrintAddStr [13:28:16]wPrintStart [13:28:16]Write to MH i2c: 01 00 00 05 03 08 [13:28:16]Write i2c OK [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: 01 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: 01 07 00 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [13:28:16]RasterBufferAndPrint [13:28:16]line Счет N : (1)412496 [13:28:16]line ИНН: 02508201610067 [13:28:16]line Контрольно-Кассовый Чек [13:28:16]line ПРОДАЖА [13:28:16]line ТРК (МРК, ГНК) : 22 [13:28:16]line Товар: 2710124130 [13:28:16]line Аи-92-К-2 [13:28:16]line 15.580 * 64.20 [13:28:16]line = 1000.24 [13:28:16]line НДС 12% НСП 1% [13:28:16]line > о реализуемом товаре [13:28:16]line ИТОГО: 1000.24 [13:28:16]line НСП 1% : 8.85 [13:28:16]line НДС 12% : 106.22 [13:28:16]line Наличными: 0.00 [13:28:16]line Безнал.: 1000.24 [13:28:16]line Место: АЗС № 92 "Партнер Нефть" [13:28:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:28:16]line СНО: Общий режим [13:28:16]line Чек 139 20.02.2025 13:28 [13:28:16]line Смена: 648 ФФД: 1.0 [13:28:16]line ЗНМ: 0300000118 [13:28:16]line РНМ: 0000000000091857 [13:28:16]line Версия ККМ: 001 [13:28:16]line Платежная система: O! деньги [13:28:16]line ФМ: 0000000000871826 [13:28:16]line ФД: 187338 [13:28:16]line ФПД: 142319832652992 [13:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T132815&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187338&fm=142319832652992&tin=02508201610067®Number=0000000000091857&sum=100024 [13:28:16]written 0, free lines is 4095 [13:28:16]OFD Sender: Processing packet 187338 [packets to send 49, broken 48] [13:28:16]ProducePacketName [13:28:16]name=ofd_packets/00187338 [13:28:16]OFD Sender: To server: pG, [13:28:16]CommunicateWithHost lk.salyk.kg:30040 [13:28:16]ConnectInit lk.salyk.kg [13:28:16]Connected sock=10 [13:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B5 9A 07 01 DB 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 EF 2D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DB 02 00 35 04 06 00 81 70 6B 11 DC C0 B2 F9 CE 0F 6D A2 DC C6 [13:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BF ED 47 00 01 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DB 02 00 F4 03 04 00 3F D4 B6 67 B6 04 01 00 00 AE 37 15 21 41 EE FA EB [13:28:16]CommunicateWithHost err = 0 [13:28:16]CheckOFDResponse [13:28:16]1017 (14) - 77093643461234 [13:28:16]1041 (16) - 0000000000871826 [13:28:16]1040 (4) - 187338 [13:28:16]1012 (4) - 20.02.2025 07:05 [13:28:16]1206 (1) - 0 [13:28:16]OFD Sender: Remove packet 187338 [13:28:16]ProducePacketName [13:28:16]name=ofd_packets/00187338 [13:28:16]NVStorageDeleteData [13:28:16]Write to MH i2c: 01 00 00 2F 03 32 [13:28:16]Write i2c OK [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: 01 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: 01 07 00 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 0B 0D 51 [13:28:16]RasterBufferAndPrint [13:28:16]line [13:28:16]line [13:28:16]line [13:28:16]line [13:28:16]line [13:28:16]written 0, free lines is 3345 [13:28:16]MH_Cut [13:28:16]Write to MH i2c: D1 01 00 36 03 01 0B [13:28:16]Write i2c OK [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: D1 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: D1 01 00 [13:28:16]MH_I2C_Read... [13:28:16]Read from MH i2c: D1 01 00 36 03 00 0A [13:28:16]Write to MH i2c: 01 00 00 37 03 3A [13:28:16]Write i2c OK [13:28:16]MH_I2C_Read... [13:28:17]OFD Sender: No OFD packet to send [13:28:17]*** Cut start [13:28:17]*** Partial cut [13:28:17]*** CUTSNS_PIN = 1 [13:28:17]*** CUTSNS_PIN = 0 [13:28:17]*** Brake cut motor [13:28:18]Read from MH i2c: 01 [13:28:18]MH_I2C_Read... [13:28:18]*** Stop cut motor [13:28:18]*** Cut end [13:28:18]Read from MH i2c: 01 07 00 [13:28:18]MH_I2C_Read... [13:28:18]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [13:28:18]process_action close_receipt done [13:28:18]requested_data is exist [13:28:18]produce_requested_data [13:28:18]requested_item fm.sn is exist - process it [13:28:18]wFMCommunicate request_size=4 [13:28:18]MH_SAM_APDU [13:28:18]CAPDU: 80 11 00 00 [13:28:18]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [13:28:18]Write i2c OK [13:28:18]MH_I2C_Read... [13:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:18]Read from MH i2c: E2 [13:28:18]MH_I2C_Read... [13:28:18]Read from MH i2c: E2 17 00 [13:28:18]MH_I2C_Read... [13:28:18]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [13:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:28:18]wFMCommunicate OK [13:28:18]requested_item fd.num is exist - process it [13:28:18]SAM_PROTO_GetFieldsCounters [13:28:18]wFMCommunicate request_size=4 [13:28:18]MH_SAM_APDU [13:28:18]CAPDU: 80 13 00 00 [13:28:18]Write to MH i2c: E2 08 00 39 03 80 13 00 00 00 00 00 00 B8 [13:28:18]Write i2c OK [13:28:18]MH_I2C_Read... [13:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:18]Read from MH i2c: E2 [13:28:18]MH_I2C_Read... [13:28:18]Read from MH i2c: E2 62 00 [13:28:18]MH_I2C_Read... [13:28:18]Read from MH i2c: E2 62 00 39 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CA DB 02 00 0E 04 04 00 88 02 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 B0 [13:28:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CA DB 02 00 0E 04 04 00 88 02 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 [13:28:18]wFMCommunicate OK [13:28:18]SAM_PROTO_GetFieldsCounters done [13:28:18]requested_item shift.num is exist - process it [13:28:18]requested_item shift.opened is exist - process it [13:28:18]req_shift_opened [13:28:18]FM_GetShiftState [13:28:18]SAM_PROTO_GetShiftState [13:28:18]wFMCommunicate request_size=4 [13:28:18]MH_SAM_APDU [13:28:18]CAPDU: 80 13 01 00 [13:28:18]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [13:28:18]Write i2c OK [13:28:18]MH_I2C_Read... [13:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:18]Read from MH i2c: E2 [13:28:18]MH_I2C_Read... [13:28:18]Read from MH i2c: E2 0E 00 [13:28:18]MH_I2C_Read... [13:28:18]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0C [13:28:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:28:18]wFMCommunicate OK [13:28:18]SAM_PROTO_GetShiftState done [13:28:18]FM_GetShiftState done [13:28:18]req_shift_opened done [13:28:18]requested_item shift.open_date is exist - process it [13:28:18]req_shift_open_date [13:28:18]req_shift_open_date done [13:28:18]produce_requested_data done [13:28:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187338,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:28:18]process_action_free close_receipt [13:28:18]json_value_free [13:28:18]json_value_free done [13:28:18]process_json_proto returns [13:28:18]Send response to host [13:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187338,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:28:18]free response buf [13:28:18]execute_script done [13:28:18]execute_script returns [13:28:18]free content buf [13:28:18]Sock 9.Close socket [13:28:18]Sock 9.Thread stoped [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:35]accept exits with 7 [13:31:35]New connection [13:31:35]New thread 3067276644 created [13:31:35]Thread 3067420004 joined [13:31:35]Waiting for new connection... [13:31:35] Sock 7.Parse request [13:31:35]Sock 7.Check first char [13:31:35]Sock 7.First char is OK [13:31:35]request: POST /json_proto HTTP/1.0 [13:31:35]Method: POST [13:31:35]URL: /json_proto [13:31:35]Method is POST - this is cgi request [13:31:35]url: /json_proto [13:31:35]query_string will be loaded in cgi processing [13:31:35]execute_cgi json_proto POST (null) [13:31:35]execute_cgi path=json_proto method=POST [13:31:35]POST find Content-Length [13:31:35]Host: 172.17.46.131:8080 [13:31:35]Content-Length: 800 [13:31:35]Content-Type: application/json [13:31:35] [13:31:35]POST finish read [13:31:35]Found Content-Length = 800 [13:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:35]execute_script... [13:31: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)412497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:35]POST & json_proto [13:31:35]process_json_proto [13:31:35]json parsed OK: [13:31:35]protocol is kg_v1.0 [13:31:35]action value=close_receipt [13:31:35]process_action close_receipt [13:31:35]cmd_close_receipt [13:31:35]MH_GetDate [13:31:35]Write to MH i2c: F0 00 00 3B 03 2D [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: F0 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: F0 09 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: F0 09 00 3B 03 00 B7 2E B7 67 7E 41 4F 65 AC [13:31:35]GetLastDocTimeStamp 1740058095 [13:31:35]current date 1740058295 [13:31:35]FM_GetShiftState [13:31:35]SAM_PROTO_GetShiftState [13:31:35]wFMCommunicate request_size=4 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 13 01 00 [13:31:35]Write to MH i2c: E2 08 00 3C 03 80 13 01 00 00 00 00 00 BC [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 0E 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 0E 00 3C 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0E [13:31:35]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:31:35]wFMCommunicate OK [13:31:35]SAM_PROTO_GetShiftState done [13:31:35]FM_GetShiftState done [13:31:35]opened in 1740011697 [13:31:35]opened+sec_in_day 1740098097 [13:31:35]quantity*price = 50011 [13:31:35]sum+1 = 50013 [13:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 140 20.02.2025 13:31 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187339 ФПД: 33843228039576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T133136&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187339&fm=33843228039576&tin=02508201610067®Number=0000000000091857&sum=50012 [13:31:36]StoreToDocumentArchive [13:31:36]shift 648 fd 187339 [13:31:36]save to /storage/0648/doc_00187339 [13:31:36]save last doc name /storage/0648/doc_00187339 to /storage/kkm_last_doc_name [13:31:36]save OK [13:31:36]Clear old archive folders... [13:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:36]tlvbuf is 00DF63D0 [13:31:36]SAM_PROTO_ClearQueue [13:31:36]wFMCommunicate request_size=4 [13:31:36]MH_SAM_APDU [13:31:36]CAPDU: 80 09 00 00 [13:31:36]Write to MH i2c: E2 08 00 49 03 80 09 00 00 00 00 00 00 BE [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:36]Read from MH i2c: E2 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 03 00 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [13:31:36]RAPDU: 90 00 [13:31:36]wFMCommunicate OK [13:31:36]SAM_PROTO_ClearQueue done [13:31:36]KKMCreateOFDPacket [13:31:36]OFDProtocolAddRootSTLVToBuf [13:31:36]FM_MakeSignedData [13:31:36]FM_MakeSignedData [13:31:36]SAM_PROTO_SignData [13:31:36]wFMCommunicate request_size=4 [13:31:36]MH_SAM_APDU [13:31:36]CAPDU: 80 0D 01 02 [13:31:36]Write to MH i2c: E2 08 00 4A 03 80 0D 01 02 00 00 00 00 C6 [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:36]Read from MH i2c: E2 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 03 00 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [13:31:36]RAPDU: 90 00 [13:31:36]wFMCommunicate OK [13:31:36]wFMCommunicate request_size=255 [13:31:36]MH_SAM_APDU [13:31: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B8 2E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DB 02 00 35 04 06 00 1E [13:31:36]Write to MH i2c: E2 02 01 4B 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B8 2E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DB 02 00 35 04 06 00 1E 00 00 57 [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:36]Read from MH i2c: E2 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 03 00 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [13:31:36]RAPDU: 90 00 [13:31:36]wFMCommunicate OK [13:31:36]wFMCommunicate request_size=10 [13:31:36]MH_SAM_APDU [13:31:36]CAPDU: 80 0D 02 02 05 C7 BD 95 D9 98 [13:31:36]Write to MH i2c: E2 0D 00 4C 03 80 0D 02 02 05 00 C7 BD 95 D9 98 00 00 5D [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:36]Read from MH i2c: E2 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 03 00 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [13:31:36]RAPDU: 90 00 [13:31:36]wFMCommunicate OK [13:31:36]wFMCommunicate request_size=4 [13:31:36]MH_SAM_APDU [13:31:36]CAPDU: 80 0D 03 02 [13:31:36]Write to MH i2c: E2 08 00 4D 03 80 0D 03 02 00 00 00 00 CB [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:36]Read from MH i2c: E2 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 0B 00 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 0B 00 4D 03 00 9A 0E 3E 4F B0 E5 AB 3D 90 00 7E [13:31:36]RAPDU: 9A 0E 3E 4F B0 E5 AB 3D 90 00 [13:31:36]wFMCommunicate OK [13:31:36]SAM_PROTO_SignData done [13:31:36]FM_MakeSignedData done [13:31:36]CreateOFDProtocolMessage [13:31:36]wFMCommunicate request_size=4 [13:31:36]MH_SAM_APDU [13:31:36]CAPDU: 80 11 00 00 [13:31:36]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:36]Read from MH i2c: E2 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 17 00 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1E [13:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:31:36]wFMCommunicate OK [13:31:36]CreateOFDProtocolMessage done [13:31:36]OFDSenderStorePacket 187339 [13:31:36]StoreOFDPacket docnum=187339 [13:31:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2D FD 07 01 55 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B8 2E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DB 02 00 35 04 06 00 1E C7 BD 95 D9 98 9A 0E 3E 4F B0 E5 AB 3D [13:31:37]CheckFolder [13:31:37]dirname=/storage/ofd_packets [13:31:37]CheckFolder done [13:31:37]ProducePacketName [13:31:37]name=ofd_packets/00187339 [13:31:37]NVStorageSaveData ofd_packets/00187339 [13:31:37]File name is /storage/ofd_packets/00187339 [13:31:37]Write 301 bytes [13:31:37]NVStorageSaveData done [13:31:37]OFDSenderStorePacket done [13:31:37]KKMCreateOFDPacket done [13:31:37]NVStorageSaveData kkm_last_timestamp [13:31:37]File name is /storage/kkm_last_timestamp [13:31:37]Write 4 bytes [13:31:37]NVStorageSaveData done [13:31:37]ExternCall_PrintAddStr [13:31:37]wPrintStart [13:31:37]Write to MH i2c: 01 00 00 4F 03 52 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: 01 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: 01 07 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [13:31:37]RasterBufferAndPrint [13:31:37]line Счет N : (1)412497 [13:31:37]line ИНН: 02508201610067 [13:31:37]line Контрольно-Кассовый Чек [13:31:37]line ПРОДАЖА [13:31:37]line ТРК (МРК, ГНК) : 22 [13:31:37]line Товар: 2710124130 [13:31:37]line Аи-92-К-2 [13:31:37]line 7.790 * 64.20 [13:31:37]line = 500.12 [13:31:37]line НДС 12% НСП 1% [13:31:37]line > о реализуемом товаре [13:31:37]line ИТОГО: 500.12 [13:31:37]line НСП 1% : 4.43 [13:31:37]line НДС 12% : 53.11 [13:31:37]line Наличными: 0.00 [13:31:37]line Безнал.: 500.12 [13:31:37]line Место: АЗС № 92 "Партнер Нефть" [13:31:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:31:37]line СНО: Общий режим [13:31:37]line Чек 140 20.02.2025 13:31 [13:31:37]line Смена: 648 ФФД: 1.0 [13:31:37]line ЗНМ: 0300000118 [13:31:37]line РНМ: 0000000000091857 [13:31:37]line Версия ККМ: 001 [13:31:37]line Платежная система: O! деньги [13:31:37]line ФМ: 0000000000871826 [13:31:37]line ФД: 187339 [13:31:37]line ФПД: 33843228039576 [13:31:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T133136&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187339&fm=33843228039576&tin=02508201610067®Number=0000000000091857&sum=50012 [13:31:37]OFD Sender: Processing packet 187339 [packets to send 49, broken 48] [13:31:37]ProducePacketName [13:31:37]name=ofd_packets/00187339 [13:31:37]OFD Sender: To server: pG, [13:31:37]CommunicateWithHost lk.salyk.kg:30040 [13:31:37]ConnectInit lk.salyk.kg [13:31:37]written 0, free lines is 4095 [13:31:37]Connected sock=10 [13:31:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2D FD 07 01 55 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B8 2E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DB 02 00 35 04 06 00 1E C7 BD 95 D9 98 9A 0E 3E 4F B0 E5 AB 3D [13:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 36 8C 47 00 BB 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 31 38 32 36 10 04 04 00 CB DB 02 00 F4 03 04 00 08 D5 B6 67 B6 04 01 00 00 49 1D C0 83 8D 86 87 55 [13:31:37]CommunicateWithHost err = 0 [13:31:37]CheckOFDResponse [13:31:37]1017 (14) - 77093643461234 [13:31:37]1041 (16) - 0000000000871826 [13:31:37]1040 (4) - 187339 [13:31:37]1012 (4) - 20.02.2025 07:08 [13:31:37]1206 (1) - 0 [13:31:37]OFD Sender: Remove packet 187339 [13:31:37]ProducePacketName [13:31:37]name=ofd_packets/00187339 [13:31:37]NVStorageDeleteData [13:31:37]Write to MH i2c: 01 00 00 79 03 7C [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: 01 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: 01 07 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 F5 0C 84 [13:31:37]RasterBufferAndPrint [13:31:37]line [13:31:37]line [13:31:37]line [13:31:37]line [13:31:37]line [13:31:37]written 0, free lines is 3320 [13:31:37]MH_Cut [13:31:37]Write to MH i2c: D1 01 00 80 03 01 55 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: D1 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: D1 01 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: D1 01 00 80 03 00 54 [13:31:37]Write to MH i2c: 01 00 00 81 03 84 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:38]OFD Sender: No OFD packet to send [13:31:38]*** Cut start [13:31:38]*** Partial cut [13:31:38]*** CUTSNS_PIN = 1 [13:31:38]*** CUTSNS_PIN = 0 [13:31:38]*** Brake cut motor [13:31:39]Read from MH i2c: 01 [13:31:39]MH_I2C_Read... [13:31:39]*** Stop cut motor [13:31:39]*** Cut end [13:31:39]Read from MH i2c: 01 07 00 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 FF 0F 99 [13:31:39]process_action close_receipt done [13:31:39]requested_data is exist [13:31:39]produce_requested_data [13:31:39]requested_item fm.sn is exist - process it [13:31:39]wFMCommunicate request_size=4 [13:31:39]MH_SAM_APDU [13:31:39]CAPDU: 80 11 00 00 [13:31:39]Write to MH i2c: E2 08 00 82 03 80 11 00 00 00 00 00 00 FF [13:31:39]Write i2c OK [13:31:39]MH_I2C_Read... [13:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:39]Read from MH i2c: E2 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: E2 17 00 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: E2 17 00 82 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 52 [13:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:31:39]wFMCommunicate OK [13:31:39]requested_item fd.num is exist - process it [13:31:39]SAM_PROTO_GetFieldsCounters [13:31:39]wFMCommunicate request_size=4 [13:31:39]MH_SAM_APDU [13:31:39]CAPDU: 80 13 00 00 [13:31:39]Write to MH i2c: E2 08 00 83 03 80 13 00 00 00 00 00 00 02 [13:31:39]Write i2c OK [13:31:39]MH_I2C_Read... [13:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:39]Read from MH i2c: E2 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: E2 62 00 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: E2 62 00 83 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CB DB 02 00 0E 04 04 00 88 02 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 FE [13:31:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CB DB 02 00 0E 04 04 00 88 02 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 [13:31:39]wFMCommunicate OK [13:31:39]SAM_PROTO_GetFieldsCounters done [13:31:39]requested_item shift.num is exist - process it [13:31:39]requested_item shift.opened is exist - process it [13:31:39]req_shift_opened [13:31:39]FM_GetShiftState [13:31:39]SAM_PROTO_GetShiftState [13:31:39]wFMCommunicate request_size=4 [13:31:39]MH_SAM_APDU [13:31:39]CAPDU: 80 13 01 00 [13:31:39]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [13:31:39]Write i2c OK [13:31:39]MH_I2C_Read... [13:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:39]Read from MH i2c: E2 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: E2 0E 00 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 56 [13:31:39]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:31:39]wFMCommunicate OK [13:31:39]SAM_PROTO_GetShiftState done [13:31:39]FM_GetShiftState done [13:31:39]req_shift_opened done [13:31:39]requested_item shift.open_date is exist - process it [13:31:39]req_shift_open_date [13:31:39]req_shift_open_date done [13:31:39]produce_requested_data done [13:31:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187339,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:31:39]process_action_free close_receipt [13:31:39]json_value_free [13:31:39]json_value_free done [13:31:39]process_json_proto returns [13:31:39]Send response to host [13:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187339,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:31:39]free response buf [13:31:39]execute_script done [13:31:39]execute_script returns [13:31:39]free content buf [13:31:39]Sock 7.Close socket [13:31:39]Sock 7.Thread stoped [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:28]accept exits with 9 [13:36:28]New connection [13:36:28]New thread 3067420004 created [13:36:28]Thread 3067276644 joined [13:36:28]Waiting for new connection... [13:36:28] Sock 9.Parse request [13:36:28]Sock 9.Check first char [13:36:28]Sock 9.First char is OK [13:36:28]request: POST /json_proto HTTP/1.0 [13:36:28]Method: POST [13:36:28]URL: /json_proto [13:36:28]Method is POST - this is cgi request [13:36:28]url: /json_proto [13:36:28]query_string will be loaded in cgi processing [13:36:28]execute_cgi json_proto POST (null) [13:36:28]execute_cgi path=json_proto method=POST [13:36:28]POST find Content-Length [13:36:28]Host: 172.17.46.131:8080 [13:36:28]Content-Length: 792 [13:36:28]Content-Type: application/json [13:36:28] [13:36:28]POST finish read [13:36:28]Found Content-Length = 792 [13:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99953", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:28]execute_script... [13: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)412498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99953", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:28]POST & json_proto [13:36:28]process_json_proto [13:36:28]json parsed OK: [13:36:28]protocol is kg_v1.0 [13:36:28]action value=close_receipt [13:36:28]process_action close_receipt [13:36:28]cmd_close_receipt [13:36:28]MH_GetDate [13:36:28]Write to MH i2c: F0 00 00 85 03 77 [13:36:28]Write i2c OK [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: F0 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: F0 09 00 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: F0 09 00 85 03 00 DD 2F B7 67 7E 41 4F 65 1D [13:36:28]GetLastDocTimeStamp 1740058296 [13:36:28]current date 1740058589 [13:36:28]FM_GetShiftState [13:36:28]SAM_PROTO_GetShiftState [13:36:28]wFMCommunicate request_size=4 [13:36:28]MH_SAM_APDU [13:36:28]CAPDU: 80 13 01 00 [13:36:28]Write to MH i2c: E2 08 00 86 03 80 13 01 00 00 00 00 00 06 [13:36:28]Write i2c OK [13:36:28]MH_I2C_Read... [13:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:28]Read from MH i2c: E2 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 0E 00 [13:36:28]MH_I2C_Read... [13:36:28]Read from MH i2c: E2 0E 00 86 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 58 [13:36:28]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:36:28]wFMCommunicate OK [13:36:28]SAM_PROTO_GetShiftState done [13:36:28]FM_GetShiftState done [13:36:28]opened in 1740011697 [13:36:28]opened+sec_in_day 1740098097 [13:36:28]quantity*price = 0 [13:36:28]sum+1 = 1 [13:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 141 20.02.2025 13:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99953 ФМ: 0000000000871826 ФД: 187340 ФПД: 204139449200226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T133629&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187340&fm=204139449200226&tin=02508201610067®Number=0000000000091857&sum=0 [13:36:30]StoreToDocumentArchive [13:36:30]shift 648 fd 187340 [13:36:30]save to /storage/0648/doc_00187340 [13:36:30]save last doc name /storage/0648/doc_00187340 to /storage/kkm_last_doc_name [13:36:30]save OK [13:36:30]Clear old archive folders... [13:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:30]tlvbuf is B6E1A630 [13:36:30]SAM_PROTO_ClearQueue [13:36:30]wFMCommunicate request_size=4 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 09 00 00 [13:36:30]Write to MH i2c: E2 08 00 93 03 80 09 00 00 00 00 00 00 08 [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 03 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [13:36:30]RAPDU: 90 00 [13:36:30]wFMCommunicate OK [13:36:30]SAM_PROTO_ClearQueue done [13:36:30]KKMCreateOFDPacket [13:36:30]OFDProtocolAddRootSTLVToBuf [13:36:30]FM_MakeSignedData [13:36:30]FM_MakeSignedData [13:36:30]SAM_PROTO_SignData [13:36:30]wFMCommunicate request_size=4 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 0D 01 02 [13:36:30]Write to MH i2c: E2 08 00 94 03 80 0D 01 02 00 00 00 00 10 [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 03 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [13:36:30]RAPDU: 90 00 [13:36:30]wFMCommunicate OK [13:36:30]wFMCommunicate request_size=255 [13:36:30]MH_SAM_APDU [13:36: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 DD 2F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DB 02 00 35 04 06 00 B9 [13:36:30]Write to MH i2c: E2 02 01 95 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 DD 2F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DB 02 00 35 04 06 00 B9 00 00 D7 [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 03 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [13:36:30]RAPDU: 90 00 [13:36:30]wFMCommunicate OK [13:36:30]wFMCommunicate request_size=10 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 0D 02 02 05 A9 EB 5A AE 62 [13:36:30]Write to MH i2c: E2 0D 00 96 03 80 0D 02 02 05 00 A9 EB 5A AE 62 00 00 1B [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 03 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [13:36:30]RAPDU: 90 00 [13:36:30]wFMCommunicate OK [13:36:30]wFMCommunicate request_size=4 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 0D 03 02 [13:36:30]Write to MH i2c: E2 08 00 97 03 80 0D 03 02 00 00 00 00 15 [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 0B 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 0B 00 97 03 00 95 82 22 C6 37 F8 46 7F 90 00 09 [13:36:30]RAPDU: 95 82 22 C6 37 F8 46 7F 90 00 [13:36:30]wFMCommunicate OK [13:36:30]SAM_PROTO_SignData done [13:36:30]FM_MakeSignedData done [13:36:30]CreateOFDProtocolMessage [13:36:30]wFMCommunicate request_size=4 [13:36:30]MH_SAM_APDU [13:36:30]CAPDU: 80 11 00 00 [13:36:30]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:30]Read from MH i2c: E2 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 17 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 68 [13:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:36:30]wFMCommunicate OK [13:36:30]CreateOFDProtocolMessage done [13:36:30]OFDSenderStorePacket 187340 [13:36:30]StoreOFDPacket docnum=187340 [13:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 95 07 01 44 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 DD 2F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DB 02 00 35 04 06 00 B9 A9 EB 5A AE 62 95 82 22 C6 37 F8 46 7F [13:36:30]CheckFolder [13:36:30]dirname=/storage/ofd_packets [13:36:30]CheckFolder done [13:36:30]ProducePacketName [13:36:30]name=ofd_packets/00187340 [13:36:30]NVStorageSaveData ofd_packets/00187340 [13:36:30]File name is /storage/ofd_packets/00187340 [13:36:30]Write 301 bytes [13:36:30]NVStorageSaveData done [13:36:30]OFDSenderStorePacket done [13:36:30]KKMCreateOFDPacket done [13:36:30]NVStorageSaveData kkm_last_timestamp [13:36:30]File name is /storage/kkm_last_timestamp [13:36:30]Write 4 bytes [13:36:30]NVStorageSaveData done [13:36:30]ExternCall_PrintAddStr [13:36:30]wPrintStart [13:36:30]Write to MH i2c: 01 00 00 99 03 9C [13:36:30]Write i2c OK [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: 01 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: 01 07 00 [13:36:30]MH_I2C_Read... [13:36:30]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [13:36:30]RasterBufferAndPrint [13:36:30]line Счет N : (1)412498 [13:36:30]line ИНН: 02508201610067 [13:36:30]line Контрольно-Кассовый Чек [13:36:30]line ПРОДАЖА [13:36:30]line ТРК (МРК, ГНК) : 22 [13:36:30]line Товар: 2710124130 [13:36:30]line Аи-92-К-2 [13:36:30]line 15.580 * 0.00 [13:36:30]line = 0.00 [13:36:30]line НДС 12% НСП 1% [13:36:30]line > о реализуемом товаре [13:36:30]line ИТОГО: 0.00 [13:36:30]line НСП 1% : 0.00 [13:36:30]line НДС 12% : 0.00 [13:36:30]line Наличными: 0.00 [13:36:30]line Безнал.: 0.00 [13:36:30]line Место: АЗС № 92 "Партнер Нефть" [13:36:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:36:30]line СНО: Общий режим [13:36:30]line Чек 141 20.02.2025 13:36 [13:36:30]line Смена: 648 ФФД: 1.0 [13:36:30]line ЗНМ: 0300000118 [13:36:30]line РНМ: 0000000000091857 [13:36:30]line Версия ККМ: 001 [13:36:30]line Талоны: Топливная Карта [13:36:30]line 99953 [13:36:30]line ФМ: 0000000000871826 [13:36:30]line ФД: 187340 [13:36:30]line ФПД: 204139449200226 [13:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T133629&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187340&fm=204139449200226&tin=02508201610067®Number=0000000000091857&sum=0 [13:36:30]OFD Sender: Processing packet 187340 [packets to send 49, broken 48] [13:36:30]ProducePacketName [13:36:30]name=ofd_packets/00187340 [13:36:30]OFD Sender: To server: pG, [13:36:30]CommunicateWithHost lk.salyk.kg:30040 [13:36:30]ConnectInit lk.salyk.kg [13:36:30]written 0, free lines is 4095 [13:36:31]Connected sock=10 [13:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 95 07 01 44 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 DD 2F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DB 02 00 35 04 06 00 B9 A9 EB 5A AE 62 95 82 22 C6 37 F8 46 7F [13:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 43 ED 47 00 B5 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DB 02 00 F4 03 04 00 2E D6 B6 67 B6 04 01 00 00 54 66 EA E4 09 E8 D9 1E [13:36:31]CommunicateWithHost err = 0 [13:36:31]CheckOFDResponse [13:36:31]1017 (14) - 77093643461234 [13:36:31]1041 (16) - 0000000000871826 [13:36:31]1040 (4) - 187340 [13:36:31]1012 (4) - 20.02.2025 07:13 [13:36:31]1206 (1) - 0 [13:36:31]OFD Sender: Remove packet 187340 [13:36:31]ProducePacketName [13:36:31]name=ofd_packets/00187340 [13:36:31]NVStorageDeleteData [13:36:31]Write to MH i2c: 01 00 00 C3 03 C6 [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: 01 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: 01 07 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 0A 0D E4 [13:36:31]RasterBufferAndPrint [13:36:31]line [13:36:31]line [13:36:31]line [13:36:31]line [13:36:31]line [13:36:31]written 0, free lines is 3344 [13:36:31]MH_Cut [13:36:31]Write to MH i2c: D1 01 00 CA 03 01 9F [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: D1 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: D1 01 00 [13:36:31]MH_I2C_Read... [13:36:31]Read from MH i2c: D1 01 00 CA 03 00 9E [13:36:31]Write to MH i2c: 01 00 00 CB 03 CE [13:36:31]Write i2c OK [13:36:31]MH_I2C_Read... [13:36:31]OFD Sender: No OFD packet to send [13:36:31]*** Cut start [13:36:31]*** Partial cut [13:36:31]*** CUTSNS_PIN = 1 [13:36:32]*** CUTSNS_PIN = 0 [13:36:32]*** Brake cut motor [13:36:32]Read from MH i2c: 01 [13:36:32]MH_I2C_Read... [13:36:32]*** Stop cut motor [13:36:32]*** Cut end [13:36:32]Read from MH i2c: 01 07 00 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0F E3 [13:36:32]process_action close_receipt done [13:36:32]requested_data is exist [13:36:32]produce_requested_data [13:36:32]requested_item fm.sn is exist - process it [13:36:32]wFMCommunicate request_size=4 [13:36:32]MH_SAM_APDU [13:36:32]CAPDU: 80 11 00 00 [13:36:32]Write to MH i2c: E2 08 00 CC 03 80 11 00 00 00 00 00 00 49 [13:36:32]Write i2c OK [13:36:32]MH_I2C_Read... [13:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:32]Read from MH i2c: E2 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: E2 17 00 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: E2 17 00 CC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9C [13:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:36:32]wFMCommunicate OK [13:36:32]requested_item fd.num is exist - process it [13:36:32]SAM_PROTO_GetFieldsCounters [13:36:32]wFMCommunicate request_size=4 [13:36:32]MH_SAM_APDU [13:36:32]CAPDU: 80 13 00 00 [13:36:32]Write to MH i2c: E2 08 00 CD 03 80 13 00 00 00 00 00 00 4C [13:36:32]Write i2c OK [13:36:32]MH_I2C_Read... [13:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:32]Read from MH i2c: E2 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: E2 62 00 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: E2 62 00 CD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CC DB 02 00 0E 04 04 00 88 02 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 4C [13: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CC DB 02 00 0E 04 04 00 88 02 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 [13:36:32]wFMCommunicate OK [13:36:32]SAM_PROTO_GetFieldsCounters done [13:36:32]requested_item shift.num is exist - process it [13:36:32]requested_item shift.opened is exist - process it [13:36:32]req_shift_opened [13:36:32]FM_GetShiftState [13:36:32]SAM_PROTO_GetShiftState [13:36:32]wFMCommunicate request_size=4 [13:36:32]MH_SAM_APDU [13:36:32]CAPDU: 80 13 01 00 [13:36:32]Write to MH i2c: E2 08 00 CE 03 80 13 01 00 00 00 00 00 4E [13:36:32]Write i2c OK [13:36:32]MH_I2C_Read... [13:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:32]Read from MH i2c: E2 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: E2 0E 00 [13:36:32]MH_I2C_Read... [13:36:32]Read from MH i2c: E2 0E 00 CE 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A0 [13:36:32]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:36:32]wFMCommunicate OK [13:36:32]SAM_PROTO_GetShiftState done [13:36:32]FM_GetShiftState done [13:36:32]req_shift_opened done [13:36:32]requested_item shift.open_date is exist - process it [13:36:32]req_shift_open_date [13:36:32]req_shift_open_date done [13:36:32]produce_requested_data done [13:36:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187340,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:36:32]process_action_free close_receipt [13:36:32]json_value_free [13:36:32]json_value_free done [13:36:32]process_json_proto returns [13:36:32]Send response to host [13:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187340,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:36:32]free response buf [13:36:32]execute_script done [13:36:32]execute_script returns [13:36:32]free content buf [13:36:32]Sock 9.Close socket [13:36:32]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:41]accept exits with 7 [13:41:41]New connection [13:41:41]New thread 3067276644 created [13:41:41]Thread 3067420004 joined [13:41:41]Waiting for new connection... [13:41:41] Sock 7.Parse request [13:41:41]Sock 7.Check first char [13:41:41]Sock 7.First char is OK [13:41:41]request: POST /json_proto HTTP/1.0 [13:41:41]Method: POST [13:41:41]URL: /json_proto [13:41:41]Method is POST - this is cgi request [13:41:41]url: /json_proto [13:41:41]query_string will be loaded in cgi processing [13:41:41]execute_cgi json_proto POST (null) [13:41:41]execute_cgi path=json_proto method=POST [13:41:41]POST find Content-Length [13:41:41]Host: 172.17.46.131:8080 [13:41:41]Content-Length: 796 [13:41:41]Content-Type: application/json [13:41:41] [13:41:41]POST finish read [13:41:41]Found Content-Length = 796 [13:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:41]execute_script... [13:41:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:41]POST & json_proto [13:41:41]process_json_proto [13:41:41]json parsed OK: [13:41:41]protocol is kg_v1.0 [13:41:41]action value=close_receipt [13:41:41]process_action close_receipt [13:41:41]cmd_close_receipt [13:41:41]MH_GetDate [13:41:41]Write to MH i2c: F0 00 00 CF 03 C1 [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: F0 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: F0 09 00 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: F0 09 00 CF 03 00 16 31 B7 67 7E 41 4F 65 A2 [13:41:41]GetLastDocTimeStamp 1740058589 [13:41:41]current date 1740058902 [13:41:41]FM_GetShiftState [13:41:41]SAM_PROTO_GetShiftState [13:41:41]wFMCommunicate request_size=4 [13:41:41]MH_SAM_APDU [13:41:41]CAPDU: 80 13 01 00 [13:41:41]Write to MH i2c: E2 08 00 D0 03 80 13 01 00 00 00 00 00 50 [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:41]Read from MH i2c: E2 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: E2 0E 00 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: E2 0E 00 D0 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A2 [13:41:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:41:41]wFMCommunicate OK [13:41:41]SAM_PROTO_GetShiftState done [13:41:41]FM_GetShiftState done [13:41:41]opened in 1740011697 [13:41:41]opened+sec_in_day 1740098097 [13:41:41]quantity*price = 60040 [13:41:41]sum+1 = 60041 [13:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.40 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.40 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 142 20.02.2025 13:41 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187341 ФПД: 197641275647781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134142&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187341&fm=197641275647781&tin=02508201610067®Number=0000000000091857&sum=60040 [13:41:42]StoreToDocumentArchive [13:41:42]shift 648 fd 187341 [13:41:42]save to /storage/0648/doc_00187341 [13:41:42]save last doc name /storage/0648/doc_00187341 to /storage/kkm_last_doc_name [13:41:42]save OK [13:41:42]Clear old archive folders... [13:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:42]tlvbuf is B6FCA540 [13:41:42]SAM_PROTO_ClearQueue [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 09 00 00 [13:41:42]Write to MH i2c: E2 08 00 DD 03 80 09 00 00 00 00 00 00 52 [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 03 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [13:41:42]RAPDU: 90 00 [13:41:42]wFMCommunicate OK [13:41:42]SAM_PROTO_ClearQueue done [13:41:42]KKMCreateOFDPacket [13:41:42]OFDProtocolAddRootSTLVToBuf [13:41:42]FM_MakeSignedData [13:41:42]FM_MakeSignedData [13:41:42]SAM_PROTO_SignData [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 0D 01 02 [13:41:42]Write to MH i2c: E2 08 00 DE 03 80 0D 01 02 00 00 00 00 5A [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 03 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [13:41:42]RAPDU: 90 00 [13:41:42]wFMCommunicate OK [13:41:42]wFMCommunicate request_size=255 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 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 00 00 00 00 00 00 39 04 06 00 88 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 16 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DB 02 00 35 04 06 00 B3 C0 F2 07 [13:41:42]Write to MH i2c: E2 02 01 DF 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 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 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 00 00 00 00 00 00 39 04 06 00 88 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 16 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DB 02 00 35 04 06 00 B3 C0 F2 07 00 00 A0 [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 03 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [13:41:42]RAPDU: 90 00 [13:41:42]wFMCommunicate OK [13:41:42]wFMCommunicate request_size=7 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 0D 02 02 02 27 25 [13:41:42]Write to MH i2c: E2 0A 00 E0 03 80 0D 02 02 02 00 27 25 00 00 AD [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:43]Read from MH i2c: E2 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 03 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [13:41:43]RAPDU: 90 00 [13:41:43]wFMCommunicate OK [13:41:43]wFMCommunicate request_size=4 [13:41:43]MH_SAM_APDU [13:41:43]CAPDU: 80 0D 03 02 [13:41:43]Write to MH i2c: E2 08 00 E1 03 80 0D 03 02 00 00 00 00 5F [13:41:43]Write i2c OK [13:41:43]MH_I2C_Read... [13:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:43]Read from MH i2c: E2 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 0B 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 0B 00 E1 03 00 0A C8 CA CA 69 99 0E E0 90 00 B6 [13:41:43]RAPDU: 0A C8 CA CA 69 99 0E E0 90 00 [13:41:43]wFMCommunicate OK [13:41:43]SAM_PROTO_SignData done [13:41:43]FM_MakeSignedData done [13:41:43]CreateOFDProtocolMessage [13:41:43]wFMCommunicate request_size=4 [13:41:43]MH_SAM_APDU [13:41:43]CAPDU: 80 11 00 00 [13:41:43]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [13:41:43]Write i2c OK [13:41:43]MH_I2C_Read... [13:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:43]Read from MH i2c: E2 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 17 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B2 [13:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:41:43]wFMCommunicate OK [13:41:43]CreateOFDProtocolMessage done [13:41:43]OFDSenderStorePacket 187341 [13:41:43]StoreOFDPacket docnum=187341 [13:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 71 13 04 01 1A 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 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 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 00 00 00 00 00 00 39 04 06 00 88 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 16 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DB 02 00 35 04 06 00 B3 C0 F2 07 27 25 0A C8 CA CA 69 99 0E E0 [13:41:43]CheckFolder [13:41:43]dirname=/storage/ofd_packets [13:41:43]CheckFolder done [13:41:43]ProducePacketName [13:41:43]name=ofd_packets/00187341 [13:41:43]NVStorageSaveData ofd_packets/00187341 [13:41:43]File name is /storage/ofd_packets/00187341 [13:41:43]Write 298 bytes [13:41:43]NVStorageSaveData done [13:41:43]OFDSenderStorePacket done [13:41:43]KKMCreateOFDPacket done [13:41:43]NVStorageSaveData kkm_last_timestamp [13:41:43]File name is /storage/kkm_last_timestamp [13:41:43]Write 4 bytes [13:41:43]NVStorageSaveData done [13:41:43]ExternCall_PrintAddStr [13:41:43]wPrintStart [13:41:43]Write to MH i2c: 01 00 00 E3 03 E6 [13:41:43]Write i2c OK [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: 01 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: 01 07 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: 01 07 00 E3 03 00 00 00 00 00 FF 0F FB [13:41:43]RasterBufferAndPrint [13:41:43]line Счет N : (1)412499 [13:41:43]line ИНН: 02508201610067 [13:41:43]line Контрольно-Кассовый Чек [13:41:43]line ПРОДАЖА [13:41:43]line ТРК (МРК, ГНК) : 5 [13:41:43]line Товар: 2710194210 [13:41:43]line ДТ-К-5 [13:41:43]line 8.270 * 72.60 [13:41:43]line = 600.40 [13:41:43]line НДС 12% НСП 1% [13:41:43]line > о реализуемом товаре [13:41:43]line ИТОГО: 600.40 [13:41:43]line НСП 1% : 5.31 [13:41:43]line НДС 12% : 63.76 [13:41:43]line Наличными: 0.00 [13:41:43]line Безнал.: 600.40 [13:41:43]line Место: АЗС № 92 "Партнер Нефть" [13:41:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:41:43]line СНО: Общий режим [13:41:43]line Чек 142 20.02.2025 13:41 [13:41:43]line Смена: 648 ФФД: 1.0 [13:41:43]line ЗНМ: 0300000118 [13:41:43]line РНМ: 0000000000091857 [13:41:43]line Версия ККМ: 001 [13:41:43]line Платежная система: O! деньги [13:41:43]line ФМ: 0000000000871826 [13:41:43]line ФД: 187341 [13:41:43]line ФПД: 197641275647781 [13:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134142&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187341&fm=197641275647781&tin=02508201610067®Number=0000000000091857&sum=60040 [13:41:43]OFD Sender: Processing packet 187341 [packets to send 49, broken 48] [13:41:43]ProducePacketName [13:41:43]name=ofd_packets/00187341 [13:41:43]OFD Sender: To server: pG, [13:41:43]CommunicateWithHost lk.salyk.kg:30040 [13:41:43]ConnectInit lk.salyk.kg [13:41:43]written 0, free lines is 4095 [13:41:43]Write to MH i2c: 01 00 00 0D 04 11 [13:41:43]Write i2c OK [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: 01 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: 01 07 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FB 0C 1F [13:41:43]RasterBufferAndPrint [13:41:43]line [13:41:43]line [13:41:43]line [13:41:43]line [13:41:43]line [13:41:43]written 0, free lines is 3329 [13:41:43]MH_Cut [13:41:43]Write to MH i2c: D1 01 00 14 04 01 EA [13:41:43]Write i2c OK [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: D1 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: D1 01 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: D1 01 00 14 04 00 E9 [13:41:43]Write to MH i2c: 01 00 00 15 04 19 [13:41:43]Write i2c OK [13:41:43]MH_I2C_Read... [13:41:44]Connected sock=10 [13:41:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 71 13 04 01 1A 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 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 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 00 00 00 00 00 00 39 04 06 00 88 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 16 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DB 02 00 35 04 06 00 B3 C0 F2 07 27 25 0A C8 CA CA 69 99 0E E0 [13:41:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F4 27 47 00 AA A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DB 02 00 F4 03 04 00 67 D7 B6 67 B6 04 01 00 00 B4 39 2A 74 A0 D0 48 26 [13:41:44]CommunicateWithHost err = 0 [13:41:44]CheckOFDResponse [13:41:44]1017 (14) - 77093643461234 [13:41:44]1041 (16) - 0000000000871826 [13:41:44]1040 (4) - 187341 [13:41:44]1012 (4) - 20.02.2025 07:19 [13:41:44]1206 (1) - 0 [13:41:44]OFD Sender: Remove packet 187341 [13:41:44]ProducePacketName [13:41:44]name=ofd_packets/00187341 [13:41:44]NVStorageDeleteData [13:41:44]*** Cut start [13:41:44]*** Partial cut [13:41:44]*** CUTSNS_PIN = 1 [13:41:44]*** CUTSNS_PIN = 0 [13:41:44]OFD Sender: No OFD packet to send [13:41:44]*** Brake cut motor [13:41:45]Read from MH i2c: 01 [13:41:45]MH_I2C_Read... [13:41:45]*** Stop cut motor [13:41:45]*** Cut end [13:41:45]Read from MH i2c: 01 07 00 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: 01 07 00 15 04 00 00 00 00 00 FF 0F 2E [13:41:45]process_action close_receipt done [13:41:45]requested_data is exist [13:41:45]produce_requested_data [13:41:45]requested_item fm.sn is exist - process it [13:41:45]wFMCommunicate request_size=4 [13:41:45]MH_SAM_APDU [13:41:45]CAPDU: 80 11 00 00 [13:41:45]Write to MH i2c: E2 08 00 16 04 80 11 00 00 00 00 00 00 94 [13:41:45]Write i2c OK [13:41:45]MH_I2C_Read... [13:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:45]Read from MH i2c: E2 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 17 00 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 17 00 16 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [13:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:41:45]wFMCommunicate OK [13:41:45]requested_item fd.num is exist - process it [13:41:45]SAM_PROTO_GetFieldsCounters [13:41:45]wFMCommunicate request_size=4 [13:41:45]MH_SAM_APDU [13:41:45]CAPDU: 80 13 00 00 [13:41:45]Write to MH i2c: E2 08 00 17 04 80 13 00 00 00 00 00 00 97 [13:41:45]Write i2c OK [13:41:45]MH_I2C_Read... [13:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:45]Read from MH i2c: E2 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 62 00 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 62 00 17 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CD DB 02 00 0E 04 04 00 88 02 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 9B [13:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CD DB 02 00 0E 04 04 00 88 02 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 [13:41:45]wFMCommunicate OK [13:41:45]SAM_PROTO_GetFieldsCounters done [13:41:45]requested_item shift.num is exist - process it [13:41:45]requested_item shift.opened is exist - process it [13:41:45]req_shift_opened [13:41:45]FM_GetShiftState [13:41:45]SAM_PROTO_GetShiftState [13:41:45]wFMCommunicate request_size=4 [13:41:45]MH_SAM_APDU [13:41:45]CAPDU: 80 13 01 00 [13:41:45]Write to MH i2c: E2 08 00 18 04 80 13 01 00 00 00 00 00 99 [13:41:45]Write i2c OK [13:41:45]MH_I2C_Read... [13:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:45]Read from MH i2c: E2 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 0E 00 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 0E 00 18 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EB [13:41:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:41:45]wFMCommunicate OK [13:41:45]SAM_PROTO_GetShiftState done [13:41:45]FM_GetShiftState done [13:41:45]req_shift_opened done [13:41:45]requested_item shift.open_date is exist - process it [13:41:45]req_shift_open_date [13:41:45]req_shift_open_date done [13:41:45]produce_requested_data done [13:41:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187341,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:41:45]process_action_free close_receipt [13:41:45]json_value_free [13:41:45]json_value_free done [13:41:45]process_json_proto returns [13:41:45]Send response to host [13:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187341,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:41:45]free response buf [13:41:45]execute_script done [13:41:45]execute_script returns [13:41:45]free content buf [13:41:45]Sock 7.Close socket [13:41:45]Sock 7.Thread stoped [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:36]accept exits with 9 [13:43:36]New connection [13:43:36]New thread 3067420004 created [13:43:36]Thread 3067276644 joined [13:43:36]Waiting for new connection... [13:43:36] Sock 9.Parse request [13:43:36]Sock 9.Check first char [13:43:36]Sock 9.First char is OK [13:43:36]request: POST /json_proto HTTP/1.0 [13:43:36]Method: POST [13:43:36]URL: /json_proto [13:43:36]Method is POST - this is cgi request [13:43:36]url: /json_proto [13:43:36]query_string will be loaded in cgi processing [13:43:36]execute_cgi json_proto POST (null) [13:43:36]execute_cgi path=json_proto method=POST [13:43:36]POST find Content-Length [13:43:36]Host: 172.17.46.131:8080 [13:43:36]Content-Length: 678 [13:43:36]Content-Type: application/json [13:43:36] [13:43:36]POST finish read [13:43:36]Found Content-Length = 678 [13:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "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" ] } } [13:43:36]execute_script... [13:43: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)412500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "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" ] } } [13:43:36]POST & json_proto [13:43:36]process_json_proto [13:43:36]json parsed OK: [13:43:36]protocol is kg_v1.0 [13:43:36]action value=close_receipt [13:43:36]process_action close_receipt [13:43:36]cmd_close_receipt [13:43:36]MH_GetDate [13:43:36]Write to MH i2c: F0 00 00 19 04 0C [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 09 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 09 00 19 04 00 89 31 B7 67 7E 41 4F 65 60 [13:43:36]GetLastDocTimeStamp 1740058902 [13:43:36]current date 1740059017 [13:43:36]FM_GetShiftState [13:43:36]SAM_PROTO_GetShiftState [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 13 01 00 [13:43:36]Write to MH i2c: E2 08 00 1A 04 80 13 01 00 00 00 00 00 9B [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 0E 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 0E 00 1A 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 ED [13:43:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:43:37]wFMCommunicate OK [13:43:37]SAM_PROTO_GetShiftState done [13:43:37]FM_GetShiftState done [13:43:37]opened in 1740011697 [13:43:37]opened+sec_in_day 1740098097 [13:43:37]quantity*price = 120007 [13:43:37]sum+1 = 120009 [13:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 143 20.02.2025 13:43 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187342 ФПД: 249109682968372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134337&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187342&fm=249109682968372&tin=02508201610067®Number=0000000000091857&sum=120000 [13:43:38]StoreToDocumentArchive [13:43:38]shift 648 fd 187342 [13:43:38]save to /storage/0648/doc_00187342 [13:43:38]save last doc name /storage/0648/doc_00187342 to /storage/kkm_last_doc_name [13:43:38]save OK [13:43:38]Clear old archive folders... [13:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:38]tlvbuf is 00E03490 [13:43:38]SAM_PROTO_ClearQueue [13:43:38]wFMCommunicate request_size=4 [13:43:38]MH_SAM_APDU [13:43:38]CAPDU: 80 09 00 00 [13:43:38]Write to MH i2c: E2 08 00 27 04 80 09 00 00 00 00 00 00 9D [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 03 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [13:43:38]RAPDU: 90 00 [13:43:38]wFMCommunicate OK [13:43:38]SAM_PROTO_ClearQueue done [13:43:38]KKMCreateOFDPacket [13:43:38]OFDProtocolAddRootSTLVToBuf [13:43:38]FM_MakeSignedData [13:43:38]FM_MakeSignedData [13:43:38]SAM_PROTO_SignData [13:43:38]wFMCommunicate request_size=4 [13:43:38]MH_SAM_APDU [13:43:38]CAPDU: 80 0D 01 02 [13:43:38]Write to MH i2c: E2 08 00 28 04 80 0D 01 02 00 00 00 00 A5 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 03 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [13:43:38]RAPDU: 90 00 [13:43:38]wFMCommunicate OK [13:43:38]wFMCommunicate request_size=255 [13:43:38]MH_SAM_APDU [13:43: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 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 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 C8 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 8F 00 00 00 F4 03 04 00 89 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DB 02 00 35 04 06 00 E2 90 5E 29 [13:43:38]Write to MH i2c: E2 02 01 29 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 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 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 C8 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 8F 00 00 00 F4 03 04 00 89 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DB 02 00 35 04 06 00 E2 90 5E 29 00 00 D0 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 03 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [13:43:38]RAPDU: 90 00 [13:43:38]wFMCommunicate OK [13:43:38]wFMCommunicate request_size=7 [13:43:38]MH_SAM_APDU [13:43:38]CAPDU: 80 0D 02 02 02 D7 34 [13:43:38]Write to MH i2c: E2 0A 00 2A 04 80 0D 02 02 02 00 D7 34 00 00 B7 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 03 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [13:43:38]RAPDU: 90 00 [13:43:38]wFMCommunicate OK [13:43:38]wFMCommunicate request_size=4 [13:43:38]MH_SAM_APDU [13:43:38]CAPDU: 80 0D 03 02 [13:43:38]Write to MH i2c: E2 08 00 2B 04 80 0D 03 02 00 00 00 00 AA [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 0B 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 0B 00 2B 04 00 57 31 FE D1 D7 09 46 F0 90 00 18 [13:43:38]RAPDU: 57 31 FE D1 D7 09 46 F0 90 00 [13:43:38]wFMCommunicate OK [13:43:38]SAM_PROTO_SignData done [13:43:38]FM_MakeSignedData done [13:43:38]CreateOFDProtocolMessage [13:43:38]wFMCommunicate request_size=4 [13:43:38]MH_SAM_APDU [13:43:38]CAPDU: 80 11 00 00 [13:43:38]Write to MH i2c: E2 08 00 2C 04 80 11 00 00 00 00 00 00 AA [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 17 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 17 00 2C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [13:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:43:38]wFMCommunicate OK [13:43:38]CreateOFDProtocolMessage done [13:43:38]OFDSenderStorePacket 187342 [13:43:38]StoreOFDPacket docnum=187342 [13:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B2 76 04 01 1A 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 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 C8 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 8F 00 00 00 F4 03 04 00 89 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DB 02 00 35 04 06 00 E2 90 5E 29 D7 34 57 31 FE D1 D7 09 46 F0 [13:43:38]CheckFolder [13:43:38]dirname=/storage/ofd_packets [13:43:38]CheckFolder done [13:43:38]ProducePacketName [13:43:38]name=ofd_packets/00187342 [13:43:38]NVStorageSaveData ofd_packets/00187342 [13:43:38]File name is /storage/ofd_packets/00187342 [13:43:38]Write 298 bytes [13:43:38]NVStorageSaveData done [13:43:38]OFDSenderStorePacket done [13:43:38]KKMCreateOFDPacket done [13:43:38]NVStorageSaveData kkm_last_timestamp [13:43:38]File name is /storage/kkm_last_timestamp [13:43:38]Write 4 bytes [13:43:38]NVStorageSaveData done [13:43:38]ExternCall_PrintAddStr [13:43:38]wPrintStart [13:43:38]Write to MH i2c: 01 00 00 2D 04 31 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 07 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 FF 0F 46 [13:43:38]RasterBufferAndPrint [13:43:38]line Счет N : (1)412500 [13:43:38]line ИНН: 02508201610067 [13:43:38]line Контрольно-Кассовый Чек [13:43:38]line ПРОДАЖА [13:43:38]line ТРК (МРК, ГНК) : 6 [13:43:38]line Товар: 2710194210 [13:43:38]line ДТ-К-5 [13:43:38]line 16.530 * 72.60 [13:43:38]line = 1200.08 [13:43:38]line НДС 12% НСП 1% [13:43:38]line > о реализуемом товаре [13:43:38]line ОКРУГЛЕНИЕ: -0.08 [13:43:38]line ИТОГО: 1200.00 [13:43:38]line Внесено: 1200.00 [13:43:38]line СДАЧА: 0.00 [13:43:38]line НСП 1% : 10.62 [13:43:38]line НДС 12% : 127.44 [13:43:38]line Наличными: 1200.00 [13:43:38]line Безнал.: 0.00 [13:43:38]line Место: АЗС № 92 "Партнер Нефть" [13:43:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:43:38]line СНО: Общий режим [13:43:38]line Чек 143 20.02.2025 13:43 [13:43:38]line Смена: 648 ФФД: 1.0 [13:43:38]line ЗНМ: 0300000118 [13:43:38]line РНМ: 0000000000091857 [13:43:38]line Версия ККМ: 001 [13:43:38]line ФМ: 0000000000871826 [13:43:38]line ФД: 187342 [13:43:38]line ФПД: 249109682968372 [13:43:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134337&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187342&fm=249109682968372&tin=02508201610067®Number=0000000000091857&sum=120000 [13:43:39]written 0, free lines is 4095 [13:43:39]OFD Sender: Processing packet 187342 [packets to send 49, broken 48] [13:43:39]ProducePacketName [13:43:39]name=ofd_packets/00187342 [13:43:39]OFD Sender: To server: pG, [13:43:39]CommunicateWithHost lk.salyk.kg:30040 [13:43:39]ConnectInit lk.salyk.kg [13:43:39]Connected sock=10 [13:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B2 76 04 01 1A 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 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 C8 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 8F 00 00 00 F4 03 04 00 89 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DB 02 00 35 04 06 00 E2 90 5E 29 D7 34 57 31 FE D1 D7 09 46 F0 [13:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6F DC 47 00 91 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DB 02 00 F4 03 04 00 DA D7 B6 67 B6 04 01 00 00 24 5B C4 28 B4 93 34 8B [13:43:39]CommunicateWithHost err = 0 [13:43:39]CheckOFDResponse [13:43:39]1017 (14) - 77093643461234 [13:43:39]1041 (16) - 0000000000871826 [13:43:39]1040 (4) - 187342 [13:43:39]1012 (4) - 20.02.2025 07:20 [13:43:39]1206 (1) - 0 [13:43:39]OFD Sender: Remove packet 187342 [13:43:39]ProducePacketName [13:43:39]name=ofd_packets/00187342 [13:43:39]NVStorageDeleteData [13:43:39]Write to MH i2c: 01 00 00 58 04 5C [13:43:39]Write i2c OK [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: 01 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: 01 07 00 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FB 0C 6A [13:43:39]RasterBufferAndPrint [13:43:39]line [13:43:39]line [13:43:39]line [13:43:39]line [13:43:39]line [13:43:39]written 0, free lines is 3329 [13:43:39]MH_Cut [13:43:39]Write to MH i2c: D1 01 00 5F 04 01 35 [13:43:39]Write i2c OK [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: D1 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: D1 01 00 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: D1 01 00 5F 04 00 34 [13:43:39]Write to MH i2c: 01 00 00 60 04 64 [13:43:39]Write i2c OK [13:43:39]MH_I2C_Read... [13:43:39]OFD Sender: No OFD packet to send [13:43:40]*** Cut start [13:43:40]*** Partial cut [13:43:40]*** CUTSNS_PIN = 1 [13:43:40]*** CUTSNS_PIN = 0 [13:43:40]*** Brake cut motor [13:43:40]Read from MH i2c: 01 [13:43:40]MH_I2C_Read... [13:43:40]*** Stop cut motor [13:43:40]*** Cut end [13:43:40]Read from MH i2c: 01 07 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: 01 07 00 60 04 00 00 00 00 00 FF 0F 79 [13:43:40]process_action close_receipt done [13:43:40]requested_data is exist [13:43:40]produce_requested_data [13:43:40]requested_item fm.sn is exist - process it [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 11 00 00 [13:43:40]Write to MH i2c: E2 08 00 61 04 80 11 00 00 00 00 00 00 DF [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 17 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 17 00 61 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [13:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:43:40]wFMCommunicate OK [13:43:40]requested_item fd.num is exist - process it [13:43:40]SAM_PROTO_GetFieldsCounters [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 13 00 00 [13:43:40]Write to MH i2c: E2 08 00 62 04 80 13 00 00 00 00 00 00 E2 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 62 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 62 00 62 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CE DB 02 00 0E 04 04 00 88 02 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 EA [13:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CE DB 02 00 0E 04 04 00 88 02 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 [13:43:41]wFMCommunicate OK [13:43:41]SAM_PROTO_GetFieldsCounters done [13:43:41]requested_item shift.num is exist - process it [13:43:41]requested_item shift.opened is exist - process it [13:43:41]req_shift_opened [13:43:41]FM_GetShiftState [13:43:41]SAM_PROTO_GetShiftState [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 13 01 00 [13:43:41]Write to MH i2c: E2 08 00 63 04 80 13 01 00 00 00 00 00 E4 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 0E 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 0E 00 63 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 36 [13:43:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:43:41]wFMCommunicate OK [13:43:41]SAM_PROTO_GetShiftState done [13:43:41]FM_GetShiftState done [13:43:41]req_shift_opened done [13:43:41]requested_item shift.open_date is exist - process it [13:43:41]req_shift_open_date [13:43:41]req_shift_open_date done [13:43:41]produce_requested_data done [13:43:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187342,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:43:41]process_action_free close_receipt [13:43:41]json_value_free [13:43:41]json_value_free done [13:43:41]process_json_proto returns [13:43:41]Send response to host [13:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187342,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:43:41]free response buf [13:43:41]execute_script done [13:43:41]execute_script returns [13:43:41]free content buf [13:43:41]Sock 9.Close socket [13:43:41]Sock 9.Thread stoped [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:01]accept exits with 7 [13:45:01]New connection [13:45:01]New thread 3067276644 created [13:45:01]Thread 3067420004 joined [13:45:01]Waiting for new connection... [13:45:01] Sock 7.Parse request [13:45:01]Sock 7.Check first char [13:45:01]Sock 7.First char is OK [13:45:01]request: POST /json_proto HTTP/1.0 [13:45:01]Method: POST [13:45:01]URL: /json_proto [13:45:01]Method is POST - this is cgi request [13:45:01]url: /json_proto [13:45:01]query_string will be loaded in cgi processing [13:45:01]execute_cgi json_proto POST (null) [13:45:01]execute_cgi path=json_proto method=POST [13:45:01]POST find Content-Length [13:45:01]Host: 172.17.46.131:8080 [13:45:01]Content-Length: 677 [13:45:01]Content-Type: application/json [13:45:01] [13:45:01]POST finish read [13:45:01]Found Content-Length = 677 [13:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:01]execute_script... [13:45: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)412501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:01]POST & json_proto [13:45:01]process_json_proto [13:45:01]json parsed OK: [13:45:01]protocol is kg_v1.0 [13:45:01]action value=close_receipt [13:45:01]process_action close_receipt [13:45:01]cmd_close_receipt [13:45:01]MH_GetDate [13:45:01]Write to MH i2c: F0 00 00 64 04 57 [13:45:01]Write i2c OK [13:45:01]MH_I2C_Read... [13:45:01]Read from MH i2c: F0 [13:45:01]MH_I2C_Read... [13:45:01]Read from MH i2c: F0 09 00 [13:45:01]MH_I2C_Read... [13:45:01]Read from MH i2c: F0 09 00 64 04 00 DD 31 B7 67 7E 41 4F 65 FF [13:45:01]GetLastDocTimeStamp 1740059017 [13:45:01]current date 1740059101 [13:45:01]FM_GetShiftState [13:45:01]SAM_PROTO_GetShiftState [13:45:01]wFMCommunicate request_size=4 [13:45:01]MH_SAM_APDU [13:45:01]CAPDU: 80 13 01 00 [13:45:01]Write to MH i2c: E2 08 00 65 04 80 13 01 00 00 00 00 00 E6 [13:45:01]Write i2c OK [13:45:01]MH_I2C_Read... [13:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:01]Read from MH i2c: E2 [13:45:01]MH_I2C_Read... [13:45:01]Read from MH i2c: E2 0E 00 [13:45:01]MH_I2C_Read... [13:45:01]Read from MH i2c: E2 0E 00 65 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 38 [13:45:01]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:45:01]wFMCommunicate OK [13:45:01]SAM_PROTO_GetShiftState done [13:45:01]FM_GetShiftState done [13:45:01]opened in 1740011697 [13:45:01]opened+sec_in_day 1740098097 [13:45:01]quantity*price = 40060 [13:45:01]sum+1 = 40062 [13:45:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 144 20.02.2025 13:45 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187343 ФПД: 242066974849296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134501&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187343&fm=242066974849296&tin=02508201610067®Number=0000000000091857&sum=40000 [13:45:02]StoreToDocumentArchive [13:45:02]shift 648 fd 187343 [13:45:02]save to /storage/0648/doc_00187343 [13:45:02]save last doc name /storage/0648/doc_00187343 to /storage/kkm_last_doc_name [13:45:02]save OK [13:45:02]Clear old archive folders... [13:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:02]tlvbuf is 00DDC470 [13:45:02]SAM_PROTO_ClearQueue [13:45:02]wFMCommunicate request_size=4 [13:45:02]MH_SAM_APDU [13:45:02]CAPDU: 80 09 00 00 [13:45:02]Write to MH i2c: E2 08 00 72 04 80 09 00 00 00 00 00 00 E8 [13:45:02]Write i2c OK [13:45:02]MH_I2C_Read... [13:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:02]Read from MH i2c: E2 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 03 00 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 03 00 72 04 00 90 00 EA [13:45:02]RAPDU: 90 00 [13:45:02]wFMCommunicate OK [13:45:02]SAM_PROTO_ClearQueue done [13:45:02]KKMCreateOFDPacket [13:45:02]OFDProtocolAddRootSTLVToBuf [13:45:02]FM_MakeSignedData [13:45:02]FM_MakeSignedData [13:45:02]SAM_PROTO_SignData [13:45:02]wFMCommunicate request_size=4 [13:45:02]MH_SAM_APDU [13:45:02]CAPDU: 80 0D 01 02 [13:45:02]Write to MH i2c: E2 08 00 73 04 80 0D 01 02 00 00 00 00 F0 [13:45:02]Write i2c OK [13:45:02]MH_I2C_Read... [13:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:02]Read from MH i2c: E2 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 03 00 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [13:45:02]RAPDU: 90 00 [13:45:02]wFMCommunicate OK [13:45:02]wFMCommunicate request_size=255 [13:45:02]MH_SAM_APDU [13:45: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 90 00 00 00 F4 03 04 00 DD 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DB 02 00 35 04 06 00 DC [13:45:02]Write to MH i2c: E2 02 01 74 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 90 00 00 00 F4 03 04 00 DD 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DB 02 00 35 04 06 00 DC 00 00 51 [13:45:02]Write i2c OK [13:45:02]MH_I2C_Read... [13:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:02]Read from MH i2c: E2 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 03 00 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [13:45:02]RAPDU: 90 00 [13:45:02]wFMCommunicate OK [13:45:02]wFMCommunicate request_size=10 [13:45:02]MH_SAM_APDU [13:45:02]CAPDU: 80 0D 02 02 05 28 9C 0C 39 10 [13:45:02]Write to MH i2c: E2 0D 00 75 04 80 0D 02 02 05 00 28 9C 0C 39 10 00 00 16 [13:45:02]Write i2c OK [13:45:02]MH_I2C_Read... [13:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:02]Read from MH i2c: E2 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 03 00 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [13:45:02]RAPDU: 90 00 [13:45:02]wFMCommunicate OK [13:45:02]wFMCommunicate request_size=4 [13:45:02]MH_SAM_APDU [13:45:02]CAPDU: 80 0D 03 02 [13:45:02]Write to MH i2c: E2 08 00 76 04 80 0D 03 02 00 00 00 00 F5 [13:45:02]Write i2c OK [13:45:02]MH_I2C_Read... [13:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:02]Read from MH i2c: E2 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 0B 00 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 0B 00 76 04 00 A5 A3 83 89 E5 3B 28 BD 90 00 4F [13:45:02]RAPDU: A5 A3 83 89 E5 3B 28 BD 90 00 [13:45:02]wFMCommunicate OK [13:45:02]SAM_PROTO_SignData done [13:45:02]FM_MakeSignedData done [13:45:02]CreateOFDProtocolMessage [13:45:02]wFMCommunicate request_size=4 [13:45:02]MH_SAM_APDU [13:45:02]CAPDU: 80 11 00 00 [13:45:02]Write to MH i2c: E2 08 00 77 04 80 11 00 00 00 00 00 00 F5 [13:45:02]Write i2c OK [13:45:02]MH_I2C_Read... [13:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:02]Read from MH i2c: E2 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 17 00 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: E2 17 00 77 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [13:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:45:02]wFMCommunicate OK [13:45:02]CreateOFDProtocolMessage done [13:45:02]OFDSenderStorePacket 187343 [13:45:02]StoreOFDPacket docnum=187343 [13:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3B FA 07 01 A4 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 90 00 00 00 F4 03 04 00 DD 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DB 02 00 35 04 06 00 DC 28 9C 0C 39 10 A5 A3 83 89 E5 3B 28 BD [13:45:02]CheckFolder [13:45:02]dirname=/storage/ofd_packets [13:45:02]CheckFolder done [13:45:02]ProducePacketName [13:45:02]name=ofd_packets/00187343 [13:45:02]NVStorageSaveData ofd_packets/00187343 [13:45:02]File name is /storage/ofd_packets/00187343 [13:45:02]Write 301 bytes [13:45:02]NVStorageSaveData done [13:45:02]OFDSenderStorePacket done [13:45:02]KKMCreateOFDPacket done [13:45:02]NVStorageSaveData kkm_last_timestamp [13:45:02]File name is /storage/kkm_last_timestamp [13:45:02]Write 4 bytes [13:45:02]NVStorageSaveData done [13:45:02]ExternCall_PrintAddStr [13:45:02]wPrintStart [13:45:02]Write to MH i2c: 01 00 00 78 04 7C [13:45:02]Write i2c OK [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: 01 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: 01 07 00 [13:45:02]MH_I2C_Read... [13:45:02]Read from MH i2c: 01 07 00 78 04 00 00 00 00 00 FF 0F 91 [13:45:02]RasterBufferAndPrint [13:45:02]line Счет N : (1)412501 [13:45:02]line ИНН: 02508201610067 [13:45:02]line Контрольно-Кассовый Чек [13:45:02]line ПРОДАЖА [13:45:02]line ТРК (МРК, ГНК) : 12 [13:45:02]line Товар: 2710124130 [13:45:02]line Аи-92-К-2 [13:45:02]line 6.240 * 64.20 [13:45:02]line = 400.61 [13:45:02]line НДС 12% НСП 1% [13:45:02]line > о реализуемом товаре [13:45:02]line ОКРУГЛЕНИЕ: -0.61 [13:45:02]line ИТОГО: 400.00 [13:45:02]line Внесено: 400.00 [13:45:02]line СДАЧА: 0.00 [13:45:02]line НСП 1% : 3.54 [13:45:02]line НДС 12% : 42.54 [13:45:02]line Наличными: 400.00 [13:45:02]line Безнал.: 0.00 [13:45:02]line Место: АЗС № 92 "Партнер Нефть" [13:45:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:45:02]line СНО: Общий режим [13:45:02]line Чек 144 20.02.2025 13:45 [13:45:02]line Смена: 648 ФФД: 1.0 [13:45:02]line ЗНМ: 0300000118 [13:45:02]line РНМ: 0000000000091857 [13:45:02]line Версия ККМ: 001 [13:45:02]line ФМ: 0000000000871826 [13:45:02]line ФД: 187343 [13:45:02]line ФПД: 242066974849296 [13:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134501&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187343&fm=242066974849296&tin=02508201610067®Number=0000000000091857&sum=40000 [13:45:03]OFD Sender: Processing packet 187343 [packets to send 49, broken 48] [13:45:03]ProducePacketName [13:45:03]name=ofd_packets/00187343 [13:45:03]OFD Sender: To server: pG, [13:45:03]CommunicateWithHost lk.salyk.kg:30040 [13:45:03]ConnectInit lk.salyk.kg [13:45:03]written 0, free lines is 4095 [13:45:03]Connected sock=10 [13:45:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3B FA 07 01 A4 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 90 00 00 00 F4 03 04 00 DD 31 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DB 02 00 35 04 06 00 DC 28 9C 0C 39 10 A5 A3 83 89 E5 3B 28 BD [13:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 76 EE 47 00 F3 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DB 02 00 F4 03 04 00 2E D8 B6 67 B6 04 01 00 00 95 3A 4E CA 55 0D 8B 05 [13:45:03]CommunicateWithHost err = 0 [13:45:03]CheckOFDResponse [13:45:03]1017 (14) - 77093643461234 [13:45:03]1041 (16) - 0000000000871826 [13:45:03]1040 (4) - 187343 [13:45:03]1012 (4) - 20.02.2025 07:22 [13:45:03]1206 (1) - 0 [13:45:03]OFD Sender: Remove packet 187343 [13:45:03]ProducePacketName [13:45:03]name=ofd_packets/00187343 [13:45:03]NVStorageDeleteData [13:45:03]Write to MH i2c: 01 00 00 A3 04 A7 [13:45:03]Write i2c OK [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: 01 [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: 01 07 00 [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: 01 07 00 A3 04 00 00 00 00 00 FD 0C B7 [13:45:03]RasterBufferAndPrint [13:45:03]line [13:45:03]line [13:45:03]line [13:45:03]line [13:45:03]line [13:45:03]written 0, free lines is 3331 [13:45:03]MH_Cut [13:45:03]Write to MH i2c: D1 01 00 AA 04 01 80 [13:45:03]Write i2c OK [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: D1 [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: D1 01 00 [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: D1 01 00 AA 04 00 7F [13:45:03]Write to MH i2c: 01 00 00 AB 04 AF [13:45:03]Write i2c OK [13:45:03]MH_I2C_Read... [13:45:04]OFD Sender: No OFD packet to send [13:45:04]*** Cut start [13:45:04]*** Partial cut [13:45:04]*** CUTSNS_PIN = 1 [13:45:04]*** CUTSNS_PIN = 0 [13:45:04]*** Brake cut motor [13:45:05]Read from MH i2c: 01 [13:45:05]MH_I2C_Read... [13:45:05]*** Stop cut motor [13:45:05]*** Cut end [13:45:05]Read from MH i2c: 01 07 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: 01 07 00 AB 04 00 00 00 00 00 FF 0F C4 [13:45:05]process_action close_receipt done [13:45:05]requested_data is exist [13:45:05]produce_requested_data [13:45:05]requested_item fm.sn is exist - process it [13:45:05]wFMCommunicate request_size=4 [13:45:05]MH_SAM_APDU [13:45:05]CAPDU: 80 11 00 00 [13:45:05]Write to MH i2c: E2 08 00 AC 04 80 11 00 00 00 00 00 00 2A [13:45:05]Write i2c OK [13:45:05]MH_I2C_Read... [13:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:05]Read from MH i2c: E2 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 17 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 17 00 AC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [13:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:45:05]wFMCommunicate OK [13:45:05]requested_item fd.num is exist - process it [13:45:05]SAM_PROTO_GetFieldsCounters [13:45:05]wFMCommunicate request_size=4 [13:45:05]MH_SAM_APDU [13:45:05]CAPDU: 80 13 00 00 [13:45:05]Write to MH i2c: E2 08 00 AD 04 80 13 00 00 00 00 00 00 2D [13:45:05]Write i2c OK [13:45:05]MH_I2C_Read... [13:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:05]Read from MH i2c: E2 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 62 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 62 00 AD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CF DB 02 00 0E 04 04 00 88 02 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 39 [13:45:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CF DB 02 00 0E 04 04 00 88 02 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 [13:45:05]wFMCommunicate OK [13:45:05]SAM_PROTO_GetFieldsCounters done [13:45:05]requested_item shift.num is exist - process it [13:45:05]requested_item shift.opened is exist - process it [13:45:05]req_shift_opened [13:45:05]FM_GetShiftState [13:45:05]SAM_PROTO_GetShiftState [13:45:05]wFMCommunicate request_size=4 [13:45:05]MH_SAM_APDU [13:45:05]CAPDU: 80 13 01 00 [13:45:05]Write to MH i2c: E2 08 00 AE 04 80 13 01 00 00 00 00 00 2F [13:45:05]Write i2c OK [13:45:05]MH_I2C_Read... [13:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:05]Read from MH i2c: E2 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 0E 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 0E 00 AE 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 81 [13:45:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:45:05]wFMCommunicate OK [13:45:05]SAM_PROTO_GetShiftState done [13:45:05]FM_GetShiftState done [13:45:05]req_shift_opened done [13:45:05]requested_item shift.open_date is exist - process it [13:45:05]req_shift_open_date [13:45:05]req_shift_open_date done [13:45:05]produce_requested_data done [13:45:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187343,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:45:05]process_action_free close_receipt [13:45:05]json_value_free [13:45:05]json_value_free done [13:45:05]process_json_proto returns [13:45:05]Send response to host [13:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187343,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:45:05]free response buf [13:45:05]execute_script done [13:45:05]execute_script returns [13:45:05]free content buf [13:45:05]Sock 7.Close socket [13:45:05]Sock 7.Thread stoped [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46: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:58]accept exits with 9 [13:47:58]New connection [13:47:58]New thread 3067420004 created [13:47:58]Thread 3067276644 joined [13:47:58]Waiting for new connection... [13:47:58] Sock 9.Parse request [13:47:58]Sock 9.Check first char [13:47:58]Sock 9.First char is OK [13:47:58]request: POST /json_proto HTTP/1.0 [13:47:58]Method: POST [13:47:58]URL: /json_proto [13:47:58]Method is POST - this is cgi request [13:47:58]url: /json_proto [13:47:58]query_string will be loaded in cgi processing [13:47:58]execute_cgi json_proto POST (null) [13:47:58]execute_cgi path=json_proto method=POST [13:47:58]POST find Content-Length [13:47:58]Host: 172.17.46.131:8080 [13:47:58]Content-Length: 677 [13:47:58]Content-Type: application/json [13:47:58] [13:47:58]POST finish read [13:47:58]Found Content-Length = 677 [13:47:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "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" ] } } [13:47:58]execute_script... [13:47: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)412503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "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" ] } } [13:47:58]POST & json_proto [13:47:58]process_json_proto [13:47:58]json parsed OK: [13:47:58]protocol is kg_v1.0 [13:47:58]action value=close_receipt [13:47:58]process_action close_receipt [13:47:58]cmd_close_receipt [13:47:58]MH_GetDate [13:47:58]Write to MH i2c: F0 00 00 AF 04 A2 [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: F0 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: F0 09 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: F0 09 00 AF 04 00 8F 32 B7 67 7E 41 4F 65 FD [13:47:58]GetLastDocTimeStamp 1740059101 [13:47:58]current date 1740059279 [13:47:58]FM_GetShiftState [13:47:58]SAM_PROTO_GetShiftState [13:47:58]wFMCommunicate request_size=4 [13:47:58]MH_SAM_APDU [13:47:58]CAPDU: 80 13 01 00 [13:47:58]Write to MH i2c: E2 08 00 B0 04 80 13 01 00 00 00 00 00 31 [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:58]Read from MH i2c: E2 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 0E 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 0E 00 B0 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 83 [13:47:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:47:58]wFMCommunicate OK [13:47:58]SAM_PROTO_GetShiftState done [13:47:58]FM_GetShiftState done [13:47:58]opened in 1740011697 [13:47:58]opened+sec_in_day 1740098097 [13:47:58]quantity*price = 60027 [13:47:58]sum+1 = 60028 [13:47:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 145 20.02.2025 13:47 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187344 ФПД: 123589954397945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134759&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187344&fm=123589954397945&tin=02508201610067®Number=0000000000091857&sum=60000 [13:48:00]StoreToDocumentArchive [13:48:00]shift 648 fd 187344 [13:48:00]save to /storage/0648/doc_00187344 [13:48:00]save last doc name /storage/0648/doc_00187344 to /storage/kkm_last_doc_name [13:48:00]save OK [13:48:00]Clear old archive folders... [13:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:00]tlvbuf is B6F4CAE0 [13:48:00]SAM_PROTO_ClearQueue [13:48:00]wFMCommunicate request_size=4 [13:48:00]MH_SAM_APDU [13:48:00]CAPDU: 80 09 00 00 [13:48:00]Write to MH i2c: E2 08 00 BD 04 80 09 00 00 00 00 00 00 33 [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:00]Read from MH i2c: E2 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 03 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [13:48:00]RAPDU: 90 00 [13:48:00]wFMCommunicate OK [13:48:00]SAM_PROTO_ClearQueue done [13:48:00]KKMCreateOFDPacket [13:48:00]OFDProtocolAddRootSTLVToBuf [13:48:00]FM_MakeSignedData [13:48:00]FM_MakeSignedData [13:48:00]SAM_PROTO_SignData [13:48:00]wFMCommunicate request_size=4 [13:48:00]MH_SAM_APDU [13:48:00]CAPDU: 80 0D 01 02 [13:48:00]Write to MH i2c: E2 08 00 BE 04 80 0D 01 02 00 00 00 00 3B [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:00]Read from MH i2c: E2 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 03 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [13:48:00]RAPDU: 90 00 [13:48:00]wFMCommunicate OK [13:48:00]wFMCommunicate request_size=255 [13:48:00]MH_SAM_APDU [13: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 8F 32 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DB 02 00 35 04 06 00 70 [13:48:00]Write to MH i2c: E2 02 01 BF 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 8F 32 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DB 02 00 35 04 06 00 70 00 00 41 [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:00]Read from MH i2c: E2 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 03 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [13:48:00]RAPDU: 90 00 [13:48:00]wFMCommunicate OK [13:48:00]wFMCommunicate request_size=10 [13:48:00]MH_SAM_APDU [13:48:00]CAPDU: 80 0D 02 02 05 67 87 54 66 F9 [13:48:00]Write to MH i2c: E2 0D 00 C0 04 80 0D 02 02 05 00 67 87 54 66 F9 00 00 E9 [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:00]Read from MH i2c: E2 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 03 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [13:48:00]RAPDU: 90 00 [13:48:00]wFMCommunicate OK [13:48:00]wFMCommunicate request_size=4 [13:48:00]MH_SAM_APDU [13:48:00]CAPDU: 80 0D 03 02 [13:48:00]Write to MH i2c: E2 08 00 C1 04 80 0D 03 02 00 00 00 00 40 [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:00]Read from MH i2c: E2 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 0B 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 0B 00 C1 04 00 42 87 A5 08 02 1B 3F B3 90 00 C6 [13:48:00]RAPDU: 42 87 A5 08 02 1B 3F B3 90 00 [13:48:00]wFMCommunicate OK [13:48:00]SAM_PROTO_SignData done [13:48:00]FM_MakeSignedData done [13:48:00]CreateOFDProtocolMessage [13:48:00]wFMCommunicate request_size=4 [13:48:00]MH_SAM_APDU [13:48:00]CAPDU: 80 11 00 00 [13:48:00]Write to MH i2c: E2 08 00 C2 04 80 11 00 00 00 00 00 00 40 [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:00]Read from MH i2c: E2 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 17 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: E2 17 00 C2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [13:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:48:00]wFMCommunicate OK [13:48:00]CreateOFDProtocolMessage done [13:48:00]OFDSenderStorePacket 187344 [13:48:00]StoreOFDPacket docnum=187344 [13:48:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EE 2F 07 01 8E 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 8F 32 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DB 02 00 35 04 06 00 70 67 87 54 66 F9 42 87 A5 08 02 1B 3F B3 [13:48:00]CheckFolder [13:48:00]dirname=/storage/ofd_packets [13:48:00]CheckFolder done [13:48:00]ProducePacketName [13:48:00]name=ofd_packets/00187344 [13:48:00]NVStorageSaveData ofd_packets/00187344 [13:48:00]File name is /storage/ofd_packets/00187344 [13:48:00]Write 301 bytes [13:48:00]NVStorageSaveData done [13:48:00]OFDSenderStorePacket done [13:48:00]KKMCreateOFDPacket done [13:48:00]NVStorageSaveData kkm_last_timestamp [13:48:00]File name is /storage/kkm_last_timestamp [13:48:00]Write 4 bytes [13:48:00]NVStorageSaveData done [13:48:00]ExternCall_PrintAddStr [13:48:00]wPrintStart [13:48:00]Write to MH i2c: 01 00 00 C3 04 C7 [13:48:00]Write i2c OK [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: 01 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: 01 07 00 [13:48:00]MH_I2C_Read... [13:48:00]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 FF 0F DC [13:48:00]RasterBufferAndPrint [13:48:00]line Счет N : (1)412503 [13:48:00]line ИНН: 02508201610067 [13:48:00]line Контрольно-Кассовый Чек [13:48:00]line ПРОДАЖА [13:48:00]line ТРК (МРК, ГНК) : 22 [13:48:00]line Товар: 2710124130 [13:48:00]line Аи-92-К-2 [13:48:00]line 9.350 * 64.20 [13:48:00]line = 600.27 [13:48:00]line НДС 12% НСП 1% [13:48:00]line > о реализуемом товаре [13:48:00]line ОКРУГЛЕНИЕ: -0.27 [13:48:00]line ИТОГО: 600.00 [13:48:00]line Внесено: 600.00 [13:48:00]line СДАЧА: 0.00 [13:48:00]line НСП 1% : 5.31 [13:48:00]line НДС 12% : 63.74 [13:48:00]line Наличными: 600.00 [13:48:00]line Безнал.: 0.00 [13:48:00]line Место: АЗС № 92 "Партнер Нефть" [13:48:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:48:00]line СНО: Общий режим [13:48:00]line Чек 145 20.02.2025 13:47 [13:48:00]line Смена: 648 ФФД: 1.0 [13:48:00]line ЗНМ: 0300000118 [13:48:00]line РНМ: 0000000000091857 [13:48:00]line Версия ККМ: 001 [13:48:00]line ФМ: 0000000000871826 [13:48:00]line ФД: 187344 [13:48:00]line ФПД: 123589954397945 [13:48:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134759&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187344&fm=123589954397945&tin=02508201610067®Number=0000000000091857&sum=60000 [13:48:00]OFD Sender: Processing packet 187344 [packets to send 49, broken 48] [13:48:00]ProducePacketName [13:48:00]name=ofd_packets/00187344 [13:48:00]OFD Sender: To server: pG, [13:48:00]CommunicateWithHost lk.salyk.kg:30040 [13:48:00]ConnectInit lk.salyk.kg [13:48:00]written 0, free lines is 4095 [13:48:01]Connected sock=10 [13: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 31 38 32 36 0F 01 00 00 EE 2F 07 01 8E 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 8F 32 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DB 02 00 35 04 06 00 70 67 87 54 66 F9 42 87 A5 08 02 1B 3F B3 [13:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3F CB 47 00 ED 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 31 38 32 36 10 04 04 00 D0 DB 02 00 F4 03 04 00 E0 D8 B6 67 B6 04 01 00 00 95 21 84 78 E4 AA ED 1F [13:48:01]CommunicateWithHost err = 0 [13:48:01]CheckOFDResponse [13:48:01]1017 (14) - 77093643461234 [13:48:01]1041 (16) - 0000000000871826 [13:48:01]1040 (4) - 187344 [13:48:01]1012 (4) - 20.02.2025 07:25 [13:48:01]1206 (1) - 0 [13:48:01]OFD Sender: Remove packet 187344 [13:48:01]ProducePacketName [13:48:01]name=ofd_packets/00187344 [13:48:01]NVStorageDeleteData [13:48:01]Write to MH i2c: 01 00 00 EE 04 F2 [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: 01 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: 01 07 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: 01 07 00 EE 04 00 00 00 00 00 F5 0C FA [13:48:01]RasterBufferAndPrint [13:48:01]line [13:48:01]line [13:48:01]line [13:48:01]line [13:48:01]line [13:48:01]written 0, free lines is 3323 [13:48:01]MH_Cut [13:48:01]Write to MH i2c: D1 01 00 F5 04 01 CB [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: D1 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: D1 01 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: D1 01 00 F5 04 00 CA [13:48:01]Write to MH i2c: 01 00 00 F6 04 FA [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]OFD Sender: No OFD packet to send [13:48:01]*** Cut start [13:48:01]*** Partial cut [13:48:01]*** CUTSNS_PIN = 1 [13:48:02]*** CUTSNS_PIN = 0 [13:48:02]*** Brake cut motor [13:48:02]Read from MH i2c: 01 [13:48:02]MH_I2C_Read... [13:48:02]*** Stop cut motor [13:48:02]*** Cut end [13:48:02]Read from MH i2c: 01 07 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: 01 07 00 F6 04 00 00 00 00 00 FF 0F 0F [13:48:02]process_action close_receipt done [13:48:02]requested_data is exist [13:48:02]produce_requested_data [13:48:02]requested_item fm.sn is exist - process it [13:48:02]wFMCommunicate request_size=4 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 11 00 00 [13:48:02]Write to MH i2c: E2 08 00 F7 04 80 11 00 00 00 00 00 00 75 [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 17 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 17 00 F7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [13:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:48:02]wFMCommunicate OK [13:48:02]requested_item fd.num is exist - process it [13:48:02]SAM_PROTO_GetFieldsCounters [13:48:02]wFMCommunicate request_size=4 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 13 00 00 [13:48:02]Write to MH i2c: E2 08 00 F8 04 80 13 00 00 00 00 00 00 78 [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 62 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 62 00 F8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D0 DB 02 00 0E 04 04 00 88 02 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 88 [13:48:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D0 DB 02 00 0E 04 04 00 88 02 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 [13:48:02]wFMCommunicate OK [13:48:02]SAM_PROTO_GetFieldsCounters done [13:48:02]requested_item shift.num is exist - process it [13:48:02]requested_item shift.opened is exist - process it [13:48:02]req_shift_opened [13:48:02]FM_GetShiftState [13:48:02]SAM_PROTO_GetShiftState [13:48:02]wFMCommunicate request_size=4 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 13 01 00 [13:48:02]Write to MH i2c: E2 08 00 F9 04 80 13 01 00 00 00 00 00 7A [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 0E 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 0E 00 F9 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CC [13:48:02]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:48:02]wFMCommunicate OK [13:48:02]SAM_PROTO_GetShiftState done [13:48:02]FM_GetShiftState done [13:48:02]req_shift_opened done [13:48:02]requested_item shift.open_date is exist - process it [13:48:02]req_shift_open_date [13:48:02]req_shift_open_date done [13:48:02]produce_requested_data done [13:48:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187344,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:48:02]process_action_free close_receipt [13:48:02]json_value_free [13:48:02]json_value_free done [13:48:02]process_json_proto returns [13:48:02]Send response to host [13:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187344,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:48:02]free response buf [13:48:02]execute_script done [13:48:02]execute_script returns [13:48:02]free content buf [13:48:02]Sock 9.Close socket [13:48:02]Sock 9.Thread stoped [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:18]accept exits with 7 [13:48:18]New connection [13:48:18]New thread 3067276644 created [13:48:18]Thread 3067420004 joined [13:48:18]Waiting for new connection... [13:48:18] Sock 7.Parse request [13:48:18]Sock 7.Check first char [13:48:18]Sock 7.First char is OK [13:48:18]request: POST /json_proto HTTP/1.0 [13:48:18]Method: POST [13:48:18]URL: /json_proto [13:48:18]Method is POST - this is cgi request [13:48:18]url: /json_proto [13:48:18]query_string will be loaded in cgi processing [13:48:18]execute_cgi json_proto POST (null) [13:48:18]execute_cgi path=json_proto method=POST [13:48:18]POST find Content-Length [13:48:18]Host: 172.17.46.131:8080 [13:48:18]Content-Length: 682 [13:48:18]Content-Type: application/json [13:48:18] [13:48:18]POST finish read [13:48:18]Found Content-Length = 682 [13:48:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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:48:18]execute_script... [13:48: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)412502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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:48:18]POST & json_proto [13:48:18]process_json_proto [13:48:18]json parsed OK: [13:48:18]protocol is kg_v1.0 [13:48:18]action value=close_receipt [13:48:18]process_action close_receipt [13:48:18]cmd_close_receipt [13:48:18]MH_GetDate [13:48:18]Write to MH i2c: F0 00 00 FA 04 ED [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: F0 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: F0 09 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: F0 09 00 FA 04 00 A2 32 B7 67 7E 41 4F 65 5B [13:48:18]GetLastDocTimeStamp 1740059279 [13:48:18]current date 1740059298 [13:48:18]FM_GetShiftState [13:48:18]SAM_PROTO_GetShiftState [13:48:18]wFMCommunicate request_size=4 [13:48:18]MH_SAM_APDU [13:48:18]CAPDU: 80 13 01 00 [13:48:18]Write to MH i2c: E2 08 00 FB 04 80 13 01 00 00 00 00 00 7C [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 0E 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 0E 00 FB 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CE [13:48:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:48:18]wFMCommunicate OK [13:48:18]SAM_PROTO_GetShiftState done [13:48:18]FM_GetShiftState done [13:48:18]opened in 1740011697 [13:48:18]opened+sec_in_day 1740098097 [13:48:18]quantity*price = 100012 [13:48:18]sum+1 = 100014 [13:48:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 146 20.02.2025 13:48 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187345 ФПД: 1554923998692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134818&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187345&fm=1554923998692&tin=02508201610067®Number=0000000000091857&sum=100000 [13:48:19]StoreToDocumentArchive [13:48:19]shift 648 fd 187345 [13:48:19]save to /storage/0648/doc_00187345 [13:48:19]save last doc name /storage/0648/doc_00187345 to /storage/kkm_last_doc_name [13:48:19]save OK [13:48:19]Clear old archive folders... [13:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:19]tlvbuf is 00E01B60 [13:48:19]SAM_PROTO_ClearQueue [13:48:19]wFMCommunicate request_size=4 [13:48:19]MH_SAM_APDU [13:48:19]CAPDU: 80 09 00 00 [13:48:19]Write to MH i2c: E2 08 00 08 05 80 09 00 00 00 00 00 00 7F [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:19]Read from MH i2c: E2 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 03 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [13:48:19]RAPDU: 90 00 [13:48:19]wFMCommunicate OK [13:48:19]SAM_PROTO_ClearQueue done [13:48:19]KKMCreateOFDPacket [13:48:19]OFDProtocolAddRootSTLVToBuf [13:48:19]FM_MakeSignedData [13:48:19]FM_MakeSignedData [13:48:19]SAM_PROTO_SignData [13:48:19]wFMCommunicate request_size=4 [13:48:19]MH_SAM_APDU [13:48:19]CAPDU: 80 0D 01 02 [13:48:19]Write to MH i2c: E2 08 00 09 05 80 0D 01 02 00 00 00 00 87 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:19]Read from MH i2c: E2 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 03 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [13:48:19]RAPDU: 90 00 [13:48:19]wFMCommunicate OK [13:48:19]wFMCommunicate request_size=255 [13:48:19]MH_SAM_APDU [13:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 92 00 00 00 F4 03 04 00 A2 32 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DB 02 00 35 04 06 00 01 [13:48:19]Write to MH i2c: E2 02 01 0A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 92 00 00 00 F4 03 04 00 A2 32 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DB 02 00 35 04 06 00 01 00 00 B5 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:19]Read from MH i2c: E2 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 03 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [13:48:19]RAPDU: 90 00 [13:48:19]wFMCommunicate OK [13:48:19]wFMCommunicate request_size=10 [13:48:19]MH_SAM_APDU [13:48:19]CAPDU: 80 0D 02 02 05 6A 08 B1 4D E4 [13:48:19]Write to MH i2c: E2 0D 00 0B 05 80 0D 02 02 05 00 6A 08 B1 4D E4 00 00 E8 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:19]Read from MH i2c: E2 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 03 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [13:48:19]RAPDU: 90 00 [13:48:19]wFMCommunicate OK [13:48:19]wFMCommunicate request_size=4 [13:48:19]MH_SAM_APDU [13:48:19]CAPDU: 80 0D 03 02 [13:48:19]Write to MH i2c: E2 08 00 0C 05 80 0D 03 02 00 00 00 00 8C [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:19]Read from MH i2c: E2 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 0B 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 0B 00 0C 05 00 E0 E5 D6 82 F5 D2 2F 72 90 00 12 [13:48:19]RAPDU: E0 E5 D6 82 F5 D2 2F 72 90 00 [13:48:19]wFMCommunicate OK [13:48:19]SAM_PROTO_SignData done [13:48:19]FM_MakeSignedData done [13:48:19]CreateOFDProtocolMessage [13:48:19]wFMCommunicate request_size=4 [13:48:19]MH_SAM_APDU [13:48:19]CAPDU: 80 11 00 00 [13:48:19]Write to MH i2c: E2 08 00 0D 05 80 11 00 00 00 00 00 00 8C [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:19]Read from MH i2c: E2 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 17 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: E2 17 00 0D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [13:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:48:19]wFMCommunicate OK [13:48:19]CreateOFDProtocolMessage done [13:48:19]OFDSenderStorePacket 187345 [13:48:19]StoreOFDPacket docnum=187345 [13:48:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E1 A2 07 01 8E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 92 00 00 00 F4 03 04 00 A2 32 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DB 02 00 35 04 06 00 01 6A 08 B1 4D E4 E0 E5 D6 82 F5 D2 2F 72 [13:48:19]CheckFolder [13:48:19]dirname=/storage/ofd_packets [13:48:19]CheckFolder done [13:48:19]ProducePacketName [13:48:19]name=ofd_packets/00187345 [13:48:19]NVStorageSaveData ofd_packets/00187345 [13:48:19]File name is /storage/ofd_packets/00187345 [13:48:19]Write 301 bytes [13:48:19]NVStorageSaveData done [13:48:19]OFDSenderStorePacket done [13:48:19]KKMCreateOFDPacket done [13:48:19]NVStorageSaveData kkm_last_timestamp [13:48:19]File name is /storage/kkm_last_timestamp [13:48:19]Write 4 bytes [13:48:19]NVStorageSaveData done [13:48:19]ExternCall_PrintAddStr [13:48:19]wPrintStart [13:48:19]Write to MH i2c: 01 00 00 0E 05 13 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 07 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [13:48:19]RasterBufferAndPrint [13:48:19]line Счет N : (1)412502 [13:48:19]line ИНН: 02508201610067 [13:48:19]line Контрольно-Кассовый Чек [13:48:19]line ПРОДАЖА [13:48:19]line ТРК (МРК, ГНК) : 33 [13:48:19]line Товар: 2710124500 [13:48:19]line Аи-95-К-5 [13:48:19]line 13.910 * 71.90 [13:48:19]line = 1000.13 [13:48:19]line НДС 12% НСП 1% [13:48:19]line > о реализуемом товаре [13:48:19]line ОКРУГЛЕНИЕ: -0.13 [13:48:19]line ИТОГО: 1000.00 [13:48:19]line Внесено: 1000.00 [13:48:19]line СДАЧА: 0.00 [13:48:19]line НСП 1% : 8.85 [13:48:19]line НДС 12% : 106.21 [13:48:19]line Наличными: 1000.00 [13:48:19]line Безнал.: 0.00 [13:48:19]line Место: АЗС № 92 "Партнер Нефть" [13:48:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:48:19]line СНО: Общий режим [13:48:19]line Чек 146 20.02.2025 13:48 [13:48:19]line Смена: 648 ФФД: 1.0 [13:48:19]line ЗНМ: 0300000118 [13:48:19]line РНМ: 0000000000091857 [13:48:19]line Версия ККМ: 001 [13:48:19]line ФМ: 0000000000871826 [13:48:19]line ФД: 187345 [13:48:19]line ФПД: 1554923998692 [13:48:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T134818&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187345&fm=1554923998692&tin=02508201610067®Number=0000000000091857&sum=100000 [13:48:19]written 0, free lines is 4095 [13:48:19]OFD Sender: Processing packet 187345 [packets to send 49, broken 48] [13:48:19]ProducePacketName [13:48:19]name=ofd_packets/00187345 [13:48:19]OFD Sender: To server: pG, [13:48:19]CommunicateWithHost lk.salyk.kg:30040 [13:48:19]ConnectInit lk.salyk.kg [13:48:20]Connected sock=10 [13:48:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E1 A2 07 01 8E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 92 00 00 00 F4 03 04 00 A2 32 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DB 02 00 35 04 06 00 01 6A 08 B1 4D E4 E0 E5 D6 82 F5 D2 2F 72 [13:48:20]Write to MH i2c: 01 00 00 39 05 3E [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 07 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 01 0D 53 [13:48:20]RasterBufferAndPrint [13:48:20]line [13:48:20]line [13:48:20]line [13:48:20]line [13:48:20]line [13:48:20]written 0, free lines is 3335 [13:48:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4A FA 47 00 11 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 31 38 32 36 10 04 04 00 D1 DB 02 00 F4 03 04 00 F3 D8 B6 67 B6 04 01 00 00 CF 47 39 37 83 4F 48 F2 [13:48:20]CommunicateWithHost err = 0 [13:48:20]CheckOFDResponse [13:48:20]1017 (14) - 77093643461234 [13:48:20]1041 (16) - 0000000000871826 [13:48:20]1040 (4) - 187345 [13:48:20]1012 (4) - 20.02.2025 07:25 [13:48:20]1206 (1) - 0 [13:48:20]OFD Sender: Remove packet 187345 [13:48:20]ProducePacketName [13:48:20]name=ofd_packets/00187345 [13:48:20]NVStorageDeleteData [13:48:20]MH_Cut [13:48:20]Write to MH i2c: D1 01 00 40 05 01 17 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: D1 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: D1 01 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: D1 01 00 40 05 00 16 [13:48:20]Write to MH i2c: 01 00 00 41 05 46 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]OFD Sender: No OFD packet to send [13:48:21]*** Cut start [13:48:21]*** Partial cut [13:48:21]*** CUTSNS_PIN = 1 [13:48:21]*** CUTSNS_PIN = 0 [13:48:21]*** Brake cut motor [13:48:21]Read from MH i2c: 01 [13:48:21]MH_I2C_Read... [13:48:21]*** Stop cut motor [13:48:21]*** Cut end [13:48:21]Read from MH i2c: 01 07 00 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: 01 07 00 41 05 00 00 00 00 00 FF 0F 5B [13:48:21]process_action close_receipt done [13:48:21]requested_data is exist [13:48:21]produce_requested_data [13:48:21]requested_item fm.sn is exist - process it [13:48:21]wFMCommunicate request_size=4 [13:48:21]MH_SAM_APDU [13:48:21]CAPDU: 80 11 00 00 [13:48:21]Write to MH i2c: E2 08 00 42 05 80 11 00 00 00 00 00 00 C1 [13:48:21]Write i2c OK [13:48:21]MH_I2C_Read... [13:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:21]Read from MH i2c: E2 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: E2 17 00 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: E2 17 00 42 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [13:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:48:21]wFMCommunicate OK [13:48:21]requested_item fd.num is exist - process it [13:48:21]SAM_PROTO_GetFieldsCounters [13:48:21]wFMCommunicate request_size=4 [13:48:21]MH_SAM_APDU [13:48:21]CAPDU: 80 13 00 00 [13:48:21]Write to MH i2c: E2 08 00 43 05 80 13 00 00 00 00 00 00 C4 [13:48:21]Write i2c OK [13:48:21]MH_I2C_Read... [13:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:21]Read from MH i2c: E2 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: E2 62 00 [13:48:21]MH_I2C_Read... [13:48:21]Read from MH i2c: E2 62 00 43 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D1 DB 02 00 0E 04 04 00 88 02 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 D8 [13:48:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D1 DB 02 00 0E 04 04 00 88 02 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 [13:48:21]wFMCommunicate OK [13:48:21]SAM_PROTO_GetFieldsCounters done [13:48:21]requested_item shift.num is exist - process it [13:48:21]requested_item shift.opened is exist - process it [13:48:21]req_shift_opened [13:48:21]FM_GetShiftState [13:48:21]SAM_PROTO_GetShiftState [13:48:21]wFMCommunicate request_size=4 [13:48:21]MH_SAM_APDU [13:48:21]CAPDU: 80 13 01 00 [13:48:21]Write to MH i2c: E2 08 00 44 05 80 13 01 00 00 00 00 00 C6 [13:48:21]Write i2c OK [13:48:21]MH_I2C_Read... [13:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:22]Read from MH i2c: E2 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: E2 0E 00 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: E2 0E 00 44 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 18 [13:48:22]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:48:22]wFMCommunicate OK [13:48:22]SAM_PROTO_GetShiftState done [13:48:22]FM_GetShiftState done [13:48:22]req_shift_opened done [13:48:22]requested_item shift.open_date is exist - process it [13:48:22]req_shift_open_date [13:48:22]req_shift_open_date done [13:48:22]produce_requested_data done [13:48:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187345,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:48:22]process_action_free close_receipt [13:48:22]json_value_free [13:48:22]json_value_free done [13:48:22]process_json_proto returns [13:48:22]Send response to host [13:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187345,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:48:22]free response buf [13:48:22]execute_script done [13:48:22]execute_script returns [13:48:22]free content buf [13:48:22]Sock 7.Close socket [13:48:22]Sock 7.Thread stoped [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]accept exits with 9 [13:55:51]New connection [13:55:51]New thread 3067420004 created [13:55:51]Thread 3067276644 joined [13:55:51]Waiting for new connection... [13:55:51] Sock 9.Parse request [13:55:51]Sock 9.Check first char [13:55:51]Sock 9.First char is OK [13:55:51]request: POST /json_proto HTTP/1.0 [13:55:51]Method: POST [13:55:51]URL: /json_proto [13:55:51]Method is POST - this is cgi request [13:55:51]url: /json_proto [13:55:51]query_string will be loaded in cgi processing [13:55:51]execute_cgi json_proto POST (null) [13:55:51]execute_cgi path=json_proto method=POST [13:55:51]POST find Content-Length [13:55:51]Host: 172.17.46.131:8080 [13:55:51]Content-Length: 799 [13:55:51]Content-Type: application/json [13:55:51] [13:55:51]POST finish read [13:55:51]Found Content-Length = 799 [13:55:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:51]execute_script... [13:55: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)412504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:51]POST & json_proto [13:55:51]process_json_proto [13:55:51]json parsed OK: [13:55:51]protocol is kg_v1.0 [13:55:51]action value=close_receipt [13:55:51]process_action close_receipt [13:55:51]cmd_close_receipt [13:55:51]MH_GetDate [13:55:51]Write to MH i2c: F0 00 00 45 05 39 [13:55:51]Write i2c OK [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: F0 [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: F0 09 00 [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: F0 09 00 45 05 00 68 34 B7 67 7E 41 4F 65 6F [13:55:51]GetLastDocTimeStamp 1740059298 [13:55:51]current date 1740059752 [13:55:51]FM_GetShiftState [13:55:51]SAM_PROTO_GetShiftState [13:55:51]wFMCommunicate request_size=4 [13:55:51]MH_SAM_APDU [13:55:51]CAPDU: 80 13 01 00 [13:55:51]Write to MH i2c: E2 08 00 46 05 80 13 01 00 00 00 00 00 C8 [13:55:51]Write i2c OK [13:55:51]MH_I2C_Read... [13:55:51]OFD Sender: No OFD packet to send [13:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:51]Read from MH i2c: E2 [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: E2 0E 00 [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: E2 0E 00 46 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1A [13:55:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:55:51]wFMCommunicate OK [13:55:51]SAM_PROTO_GetShiftState done [13:55:51]FM_GetShiftState done [13:55:51]opened in 1740011697 [13:55:51]opened+sec_in_day 1740098097 [13:55:51]quantity*price = 300055 [13:55:51]sum+1 = 300057 [13:55:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 147 20.02.2025 13:55 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187346 ФПД: 97804933935728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T135552&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187346&fm=97804933935728&tin=02508201610067®Number=0000000000091857&sum=300056 [13:55:52]StoreToDocumentArchive [13:55:52]shift 648 fd 187346 [13:55:52]save to /storage/0648/doc_00187346 [13:55:52]save last doc name /storage/0648/doc_00187346 to /storage/kkm_last_doc_name [13:55:52]save OK [13:55:52]Clear old archive folders... [13:55:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:55:52]tlvbuf is 00E07E20 [13:55:52]SAM_PROTO_ClearQueue [13:55:52]wFMCommunicate request_size=4 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 09 00 00 [13:55:52]Write to MH i2c: E2 08 00 53 05 80 09 00 00 00 00 00 00 CA [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 03 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [13:55:52]RAPDU: 90 00 [13:55:52]wFMCommunicate OK [13:55:52]SAM_PROTO_ClearQueue done [13:55:52]KKMCreateOFDPacket [13:55:52]OFDProtocolAddRootSTLVToBuf [13:55:52]FM_MakeSignedData [13:55:52]FM_MakeSignedData [13:55:52]SAM_PROTO_SignData [13:55:52]wFMCommunicate request_size=4 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 0D 01 02 [13:55:52]Write to MH i2c: E2 08 00 54 05 80 0D 01 02 00 00 00 00 D2 [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 03 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [13:55:52]RAPDU: 90 00 [13:55:52]wFMCommunicate OK [13:55:52]wFMCommunicate request_size=255 [13:55:52]MH_SAM_APDU [13:55: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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 68 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 DB 02 00 35 04 06 00 58 F3 FC 58 [13:55:52]Write to MH i2c: E2 02 01 55 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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 68 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 DB 02 00 35 04 06 00 58 F3 FC 58 00 00 51 [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 03 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [13:55:52]RAPDU: 90 00 [13:55:52]wFMCommunicate OK [13:55:52]wFMCommunicate request_size=7 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 0D 02 02 02 32 70 [13:55:52]Write to MH i2c: E2 0A 00 56 05 80 0D 02 02 02 00 32 70 00 00 7B [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 03 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [13:55:52]RAPDU: 90 00 [13:55:52]wFMCommunicate OK [13:55:52]wFMCommunicate request_size=4 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 0D 03 02 [13:55:52]Write to MH i2c: E2 08 00 57 05 80 0D 03 02 00 00 00 00 D7 [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 0B 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 0B 00 57 05 00 BE 2E 76 38 D6 E8 92 B6 90 00 78 [13:55:52]RAPDU: BE 2E 76 38 D6 E8 92 B6 90 00 [13:55:52]wFMCommunicate OK [13:55:52]SAM_PROTO_SignData done [13:55:52]FM_MakeSignedData done [13:55:52]CreateOFDProtocolMessage [13:55:52]wFMCommunicate request_size=4 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 11 00 00 [13:55:52]Write to MH i2c: E2 08 00 58 05 80 11 00 00 00 00 00 00 D7 [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 17 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 17 00 58 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [13:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:55:53]wFMCommunicate OK [13:55:53]CreateOFDProtocolMessage done [13:55:53]OFDSenderStorePacket 187346 [13:55:53]StoreOFDPacket docnum=187346 [13:55:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 50 A2 04 01 FD C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 68 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 DB 02 00 35 04 06 00 58 F3 FC 58 32 70 BE 2E 76 38 D6 E8 92 B6 [13:55:53]CheckFolder [13:55:53]dirname=/storage/ofd_packets [13:55:53]CheckFolder done [13:55:53]ProducePacketName [13:55:53]name=ofd_packets/00187346 [13:55:53]NVStorageSaveData ofd_packets/00187346 [13:55:53]File name is /storage/ofd_packets/00187346 [13:55:53]Write 298 bytes [13:55:53]NVStorageSaveData done [13:55:53]OFDSenderStorePacket done [13:55:53]KKMCreateOFDPacket done [13:55:53]NVStorageSaveData kkm_last_timestamp [13:55:53]File name is /storage/kkm_last_timestamp [13:55:53]Write 4 bytes [13:55:53]NVStorageSaveData done [13:55:53]ExternCall_PrintAddStr [13:55:53]wPrintStart [13:55:53]Write to MH i2c: 01 00 00 59 05 5E [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 07 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [13:55:53]RasterBufferAndPrint [13:55:53]line Счет N : (1)412504 [13:55:53]line ИНН: 02508201610067 [13:55:53]line Контрольно-Кассовый Чек [13:55:53]line ПРОДАЖА [13:55:53]line ТРК (МРК, ГНК) : 5 [13:55:53]line Товар: 2710194210 [13:55:53]line ДТ-К-5 [13:55:53]line 41.330 * 72.60 [13:55:53]line = 3000.56 [13:55:53]line НДС 12% НСП 1% [13:55:53]line > о реализуемом товаре [13:55:53]line ИТОГО: 3000.56 [13:55:53]line НСП 1% : 26.55 [13:55:53]line НДС 12% : 318.64 [13:55:53]line Наличными: 0.00 [13:55:53]line Безнал.: 3000.56 [13:55:53]line Место: АЗС № 92 "Партнер Нефть" [13:55:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:55:53]line СНО: Общий режим [13:55:53]line Чек 147 20.02.2025 13:55 [13:55:53]line Смена: 648 ФФД: 1.0 [13:55:53]line ЗНМ: 0300000118 [13:55:53]line РНМ: 0000000000091857 [13:55:53]line Версия ККМ: 001 [13:55:53]line Платежная система: O! деньги [13:55:53]line ФМ: 0000000000871826 [13:55:53]line ФД: 187346 [13:55:53]line ФПД: 97804933935728 [13:55:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T135552&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187346&fm=97804933935728&tin=02508201610067®Number=0000000000091857&sum=300056 [13:55:53]written 0, free lines is 4095 [13:55:53]OFD Sender: Processing packet 187346 [packets to send 49, broken 48] [13:55:53]ProducePacketName [13:55:53]name=ofd_packets/00187346 [13:55:53]OFD Sender: To server: pG, [13:55:53]CommunicateWithHost lk.salyk.kg:30040 [13:55:53]ConnectInit lk.salyk.kg [13:55:53]Connected sock=10 [13:55:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 50 A2 04 01 FD C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 68 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 DB 02 00 35 04 06 00 58 F3 FC 58 32 70 BE 2E 76 38 D6 E8 92 B6 [13:55:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FB 87 47 00 B1 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 31 38 32 36 10 04 04 00 D2 DB 02 00 F4 03 04 00 B8 DA B6 67 B6 04 01 00 00 CC 3F F4 EC 35 AC CB A5 [13:55:53]CommunicateWithHost err = 0 [13:55:53]CheckOFDResponse [13:55:53]1017 (14) - 77093643461234 [13:55:53]1041 (16) - 0000000000871826 [13:55:53]1040 (4) - 187346 [13:55:53]1012 (4) - 20.02.2025 07:33 [13:55:53]1206 (1) - 0 [13:55:53]OFD Sender: Remove packet 187346 [13:55:53]ProducePacketName [13:55:53]name=ofd_packets/00187346 [13:55:53]NVStorageDeleteData [13:55:53]Write to MH i2c: 01 00 00 83 05 88 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 07 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 07 00 83 05 00 00 00 00 00 13 0D AF [13:55:53]RasterBufferAndPrint [13:55:53]line [13:55:53]line [13:55:53]line [13:55:53]line [13:55:53]line [13:55:53]written 0, free lines is 3354 [13:55:53]MH_Cut [13:55:53]Write to MH i2c: D1 01 00 8A 05 01 61 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: D1 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: D1 01 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: D1 01 00 8A 05 00 60 [13:55:53]Write to MH i2c: 01 00 00 8B 05 90 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]OFD Sender: No OFD packet to send [13:55:54]*** Cut start [13:55:54]*** Partial cut [13:55:54]*** CUTSNS_PIN = 1 [13:55:54]*** CUTSNS_PIN = 0 [13:55:54]*** Brake cut motor [13:55:54]Read from MH i2c: 01 [13:55:54]MH_I2C_Read... [13:55:54]*** Stop cut motor [13:55:54]*** Cut end [13:55:54]Read from MH i2c: 01 07 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: 01 07 00 8B 05 00 00 00 00 00 FF 0F A5 [13:55:54]process_action close_receipt done [13:55:54]requested_data is exist [13:55:54]produce_requested_data [13:55:54]requested_item fm.sn is exist - process it [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 11 00 00 [13:55:54]Write to MH i2c: E2 08 00 8C 05 80 11 00 00 00 00 00 00 0B [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 17 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 17 00 8C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [13:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:55:54]wFMCommunicate OK [13:55:54]requested_item fd.num is exist - process it [13:55:54]SAM_PROTO_GetFieldsCounters [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 13 00 00 [13:55:54]Write to MH i2c: E2 08 00 8D 05 80 13 00 00 00 00 00 00 0E [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 62 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 62 00 8D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D2 DB 02 00 0E 04 04 00 88 02 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 26 [13:55:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D2 DB 02 00 0E 04 04 00 88 02 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 [13:55:55]wFMCommunicate OK [13:55:55]SAM_PROTO_GetFieldsCounters done [13:55:55]requested_item shift.num is exist - process it [13:55:55]requested_item shift.opened is exist - process it [13:55:55]req_shift_opened [13:55:55]FM_GetShiftState [13:55:55]SAM_PROTO_GetShiftState [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 13 01 00 [13:55:55]Write to MH i2c: E2 08 00 8E 05 80 13 01 00 00 00 00 00 10 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0E 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0E 00 8E 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 62 [13:55:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:55:55]wFMCommunicate OK [13:55:55]SAM_PROTO_GetShiftState done [13:55:55]FM_GetShiftState done [13:55:55]req_shift_opened done [13:55:55]requested_item shift.open_date is exist - process it [13:55:55]req_shift_open_date [13:55:55]req_shift_open_date done [13:55:55]produce_requested_data done [13:55:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187346,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:55:55]process_action_free close_receipt [13:55:55]json_value_free [13:55:55]json_value_free done [13:55:55]process_json_proto returns [13:55:55]Send response to host [13:55:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187346,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:55:55]free response buf [13:55:55]execute_script done [13:55:55]execute_script returns [13:55:55]free content buf [13:55:55]Sock 9.Close socket [13:55:55]Sock 9.Thread stoped [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:36]accept exits with 7 [13:56:36]New connection [13:56:36]New thread 3067276644 created [13:56:36]Thread 3067420004 joined [13:56:36]Waiting for new connection... [13:56:36] Sock 7.Parse request [13:56:36]Sock 7.Check first char [13:56:36]Sock 7.First char is OK [13:56:36]request: POST /json_proto HTTP/1.0 [13:56:36]Method: POST [13:56:36]URL: /json_proto [13:56:36]Method is POST - this is cgi request [13:56:36]url: /json_proto [13:56:36]query_string will be loaded in cgi processing [13:56:36]execute_cgi json_proto POST (null) [13:56:36]execute_cgi path=json_proto method=POST [13:56:36]POST find Content-Length [13:56:36]Host: 172.17.46.131:8080 [13:56:36]Content-Length: 682 [13:56:36]Content-Type: application/json [13:56:36] [13:56:36]POST finish read [13:56:36]Found Content-Length = 682 [13:56:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:56:36]execute_script... [13:56: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)412505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:56:36]POST & json_proto [13:56:36]process_json_proto [13:56:36]json parsed OK: [13:56:36]protocol is kg_v1.0 [13:56:36]action value=close_receipt [13:56:36]process_action close_receipt [13:56:36]cmd_close_receipt [13:56:36]MH_GetDate [13:56:36]Write to MH i2c: F0 00 00 8F 05 83 [13:56:36]Write i2c OK [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: F0 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: F0 09 00 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: F0 09 00 8F 05 00 95 34 B7 67 7E 41 4F 65 E6 [13:56:36]GetLastDocTimeStamp 1740059752 [13:56:36]current date 1740059797 [13:56:36]FM_GetShiftState [13:56:36]SAM_PROTO_GetShiftState [13:56:36]wFMCommunicate request_size=4 [13:56:36]MH_SAM_APDU [13:56:36]CAPDU: 80 13 01 00 [13:56:36]Write to MH i2c: E2 08 00 90 05 80 13 01 00 00 00 00 00 12 [13:56:36]Write i2c OK [13:56:36]MH_I2C_Read... [13:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:36]Read from MH i2c: E2 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: E2 0E 00 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: E2 0E 00 90 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 64 [13:56:36]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:56:36]wFMCommunicate OK [13:56:36]SAM_PROTO_GetShiftState done [13:56:36]FM_GetShiftState done [13:56:36]opened in 1740011697 [13:56:36]opened+sec_in_day 1740098097 [13:56:36]quantity*price = 100023 [13:56:36]sum+1 = 100025 [13:56:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 148 20.02.2025 13:56 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187347 ФПД: 246931522521415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T135637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187347&fm=246931522521415&tin=02508201610067®Number=0000000000091857&sum=100000 [13:56:37]StoreToDocumentArchive [13:56:37]shift 648 fd 187347 [13:56:37]save to /storage/0648/doc_00187347 [13:56:37]save last doc name /storage/0648/doc_00187347 to /storage/kkm_last_doc_name [13:56:37]save OK [13:56:37]Clear old archive folders... [13:56:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:37]tlvbuf is 00E521D0 [13:56:37]SAM_PROTO_ClearQueue [13:56:37]wFMCommunicate request_size=4 [13:56:37]MH_SAM_APDU [13:56:37]CAPDU: 80 09 00 00 [13:56:37]Write to MH i2c: E2 08 00 9D 05 80 09 00 00 00 00 00 00 14 [13:56:37]Write i2c OK [13:56:37]MH_I2C_Read... [13:56:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:37]Read from MH i2c: E2 [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: E2 03 00 [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [13:56:37]RAPDU: 90 00 [13:56:37]wFMCommunicate OK [13:56:37]SAM_PROTO_ClearQueue done [13:56:37]KKMCreateOFDPacket [13:56:37]OFDProtocolAddRootSTLVToBuf [13:56:37]FM_MakeSignedData [13:56:37]FM_MakeSignedData [13:56:37]SAM_PROTO_SignData [13:56:37]wFMCommunicate request_size=4 [13:56:37]MH_SAM_APDU [13:56:37]CAPDU: 80 0D 01 02 [13:56:37]Write to MH i2c: E2 08 00 9E 05 80 0D 01 02 00 00 00 00 1C [13:56:37]Write i2c OK [13:56:37]MH_I2C_Read... [13:56:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:37]Read from MH i2c: E2 [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: E2 03 00 [13:56:37]MH_I2C_Read... [13:56:37]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [13:56:37]RAPDU: 90 00 [13:56:37]wFMCommunicate OK [13:56:37]wFMCommunicate request_size=255 [13:56:37]MH_SAM_APDU [13:56: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 95 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DB 02 00 35 04 06 00 E0 [13:56:37]Write to MH i2c: E2 02 01 9F 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 95 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DB 02 00 35 04 06 00 E0 00 00 AE [13:56:37]Write i2c OK [13:56:37]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [13:56:38]RAPDU: 90 00 [13:56:38]wFMCommunicate OK [13:56:38]wFMCommunicate request_size=10 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 0D 02 02 05 95 39 AF 09 47 [13:56:38]Write to MH i2c: E2 0D 00 A0 05 80 0D 02 02 05 00 95 39 AF 09 47 00 00 F6 [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [13:56:38]RAPDU: 90 00 [13:56:38]wFMCommunicate OK [13:56:38]wFMCommunicate request_size=4 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 0D 03 02 [13:56:38]Write to MH i2c: E2 08 00 A1 05 80 0D 03 02 00 00 00 00 21 [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 0B 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 0B 00 A1 05 00 B1 34 2E 25 35 24 70 AC 90 00 CF [13:56:38]RAPDU: B1 34 2E 25 35 24 70 AC 90 00 [13:56:38]wFMCommunicate OK [13:56:38]SAM_PROTO_SignData done [13:56:38]FM_MakeSignedData done [13:56:38]CreateOFDProtocolMessage [13:56:38]wFMCommunicate request_size=4 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 11 00 00 [13:56:38]Write to MH i2c: E2 08 00 A2 05 80 11 00 00 00 00 00 00 21 [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:38]Read from MH i2c: E2 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 17 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: E2 17 00 A2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [13:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:56:38]wFMCommunicate OK [13:56:38]CreateOFDProtocolMessage done [13:56:38]OFDSenderStorePacket 187347 [13:56:38]StoreOFDPacket docnum=187347 [13:56:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9E 93 07 01 E5 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 95 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DB 02 00 35 04 06 00 E0 95 39 AF 09 47 B1 34 2E 25 35 24 70 AC [13:56:38]CheckFolder [13:56:38]dirname=/storage/ofd_packets [13:56:38]CheckFolder done [13:56:38]ProducePacketName [13:56:38]name=ofd_packets/00187347 [13:56:38]NVStorageSaveData ofd_packets/00187347 [13:56:38]File name is /storage/ofd_packets/00187347 [13:56:38]Write 301 bytes [13:56:38]NVStorageSaveData done [13:56:38]OFDSenderStorePacket done [13:56:38]KKMCreateOFDPacket done [13:56:38]NVStorageSaveData kkm_last_timestamp [13:56:38]File name is /storage/kkm_last_timestamp [13:56:38]Write 4 bytes [13:56:38]NVStorageSaveData done [13:56:38]ExternCall_PrintAddStr [13:56:38]wPrintStart [13:56:38]Write to MH i2c: 01 00 00 A3 05 A8 [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: 01 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: 01 07 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 FF 0F BD [13:56:38]RasterBufferAndPrint [13:56:38]line Счет N : (1)412505 [13:56:38]line ИНН: 02508201610067 [13:56:38]line Контрольно-Кассовый Чек [13:56:38]line ПРОДАЖА [13:56:38]line ТРК (МРК, ГНК) : 22 [13:56:38]line Товар: 2710124130 [13:56:38]line Аи-92-К-2 [13:56:38]line 15.580 * 64.20 [13:56:38]line = 1000.24 [13:56:38]line НДС 12% НСП 1% [13:56:38]line > о реализуемом товаре [13:56:38]line ОКРУГЛЕНИЕ: -0.24 [13:56:38]line ИТОГО: 1000.00 [13:56:38]line Внесено: 1000.00 [13:56:38]line СДАЧА: 0.00 [13:56:38]line НСП 1% : 8.85 [13:56:38]line НДС 12% : 106.22 [13:56:38]line Наличными: 1000.00 [13:56:38]line Безнал.: 0.00 [13:56:38]line Место: АЗС № 92 "Партнер Нефть" [13:56:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:56:38]line СНО: Общий режим [13:56:38]line Чек 148 20.02.2025 13:56 [13:56:38]line Смена: 648 ФФД: 1.0 [13:56:38]line ЗНМ: 0300000118 [13:56:38]line РНМ: 0000000000091857 [13:56:38]line Версия ККМ: 001 [13:56:38]line ФМ: 0000000000871826 [13:56:38]line ФД: 187347 [13:56:38]line ФПД: 246931522521415 [13:56:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T135637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187347&fm=246931522521415&tin=02508201610067®Number=0000000000091857&sum=100000 [13:56:38]OFD Sender: Processing packet 187347 [packets to send 49, broken 48] [13:56:38]ProducePacketName [13:56:38]name=ofd_packets/00187347 [13:56:38]OFD Sender: To server: pG, [13:56:38]CommunicateWithHost lk.salyk.kg:30040 [13:56:38]ConnectInit lk.salyk.kg [13:56:38]written 0, free lines is 4095 [13:56:38]Connected sock=11 [13:56:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9E 93 07 01 E5 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 95 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DB 02 00 35 04 06 00 E0 95 39 AF 09 47 B1 34 2E 25 35 24 70 AC [13:56:39]Write to MH i2c: 01 00 00 CE 05 D3 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 07 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 F9 0C DF [13:56:39]RasterBufferAndPrint [13:56:39]line [13:56:39]line [13:56:39]line [13:56:39]line [13:56:39]line [13:56:39]written 0, free lines is 3328 [13:56:39]MH_Cut [13:56:39]Write to MH i2c: D1 01 00 D5 05 01 AC [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: D1 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: D1 01 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: D1 01 00 D5 05 00 AB [13:56:39]Write to MH i2c: 01 00 00 D6 05 DB [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 84 D9 47 00 E5 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DB 02 00 F4 03 04 00 E6 DA B6 67 B6 04 01 00 00 EF 47 BD 13 79 EE 1C 81 [13:56:39]CommunicateWithHost err = 0 [13:56:39]CheckOFDResponse [13:56:39]1017 (14) - 77093643461234 [13:56:39]1041 (16) - 0000000000871826 [13:56:39]1040 (4) - 187347 [13:56:39]1012 (4) - 20.02.2025 07:33 [13:56:39]1206 (1) - 0 [13:56:39]OFD Sender: Remove packet 187347 [13:56:39]ProducePacketName [13:56:39]name=ofd_packets/00187347 [13:56:39]NVStorageDeleteData [13:56:39]OFD Sender: No OFD packet to send [13:56:39]*** Cut start [13:56:39]*** Partial cut [13:56:39]*** CUTSNS_PIN = 1 [13:56:39]*** CUTSNS_PIN = 0 [13:56:40]*** Brake cut motor [13:56:40]Read from MH i2c: 01 [13:56:40]MH_I2C_Read... [13:56:40]*** Stop cut motor [13:56:40]*** Cut end [13:56:40]Read from MH i2c: 01 07 00 [13:56:40]MH_I2C_Read... [13:56:40]Read from MH i2c: 01 07 00 D6 05 00 00 00 00 00 FF 0F F0 [13:56:40]process_action close_receipt done [13:56:40]requested_data is exist [13:56:40]produce_requested_data [13:56:40]requested_item fm.sn is exist - process it [13:56:40]wFMCommunicate request_size=4 [13:56:40]MH_SAM_APDU [13:56:40]CAPDU: 80 11 00 00 [13:56:40]Write to MH i2c: E2 08 00 D7 05 80 11 00 00 00 00 00 00 56 [13:56:40]Write i2c OK [13:56:40]MH_I2C_Read... [13:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:40]Read from MH i2c: E2 [13:56:40]MH_I2C_Read... [13:56:40]Read from MH i2c: E2 17 00 [13:56:40]MH_I2C_Read... [13:56:40]Read from MH i2c: E2 17 00 D7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [13:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:56:40]wFMCommunicate OK [13:56:40]requested_item fd.num is exist - process it [13:56:40]SAM_PROTO_GetFieldsCounters [13:56:40]wFMCommunicate request_size=4 [13:56:40]MH_SAM_APDU [13:56:40]CAPDU: 80 13 00 00 [13:56:40]Write to MH i2c: E2 08 00 D8 05 80 13 00 00 00 00 00 00 59 [13:56:40]Write i2c OK [13:56:40]MH_I2C_Read... [13:56:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:40]Read from MH i2c: E2 [13:56:40]MH_I2C_Read... [13:56:40]Read from MH i2c: E2 62 00 [13:56:40]MH_I2C_Read... [13:56:40]Read from MH i2c: E2 62 00 D8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D3 DB 02 00 0E 04 04 00 88 02 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 75 [13:56: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D3 DB 02 00 0E 04 04 00 88 02 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 [13:56:40]wFMCommunicate OK [13:56:40]SAM_PROTO_GetFieldsCounters done [13:56:40]requested_item shift.num is exist - process it [13:56:40]requested_item shift.opened is exist - process it [13:56:40]req_shift_opened [13:56:40]FM_GetShiftState [13:56:40]SAM_PROTO_GetShiftState [13:56:40]wFMCommunicate request_size=4 [13:56:40]MH_SAM_APDU [13:56:40]CAPDU: 80 13 01 00 [13:56:40]Write to MH i2c: E2 08 00 D9 05 80 13 01 00 00 00 00 00 5B [13:56:40]Write i2c OK [13:56:40]MH_I2C_Read... [13:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:40]Read from MH i2c: E2 [13:56:40]MH_I2C_Read... [13:56:40]Read from MH i2c: E2 0E 00 [13:56:40]MH_I2C_Read... [13:56:40]Read from MH i2c: E2 0E 00 D9 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AD [13:56:40]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:56:40]wFMCommunicate OK [13:56:40]SAM_PROTO_GetShiftState done [13:56:40]FM_GetShiftState done [13:56:40]req_shift_opened done [13:56:40]requested_item shift.open_date is exist - process it [13:56:40]req_shift_open_date [13:56:40]req_shift_open_date done [13:56:40]produce_requested_data done [13:56:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187347,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:56:40]process_action_free close_receipt [13:56:40]json_value_free [13:56:40]json_value_free done [13:56:40]process_json_proto returns [13:56:40]Send response to host [13:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187347,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:56:40]free response buf [13:56:40]execute_script done [13:56:40]execute_script returns [13:56:40]free content buf [13:56:40]Sock 7.Close socket [13:56:40]Sock 7.Thread stoped [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:35]accept exits with 9 [13:57:35]New connection [13:57:35]New thread 3067420004 created [13:57:35]Thread 3067276644 joined [13:57:35]Waiting for new connection... [13:57:35] Sock 9.Parse request [13:57:35]Sock 9.Check first char [13:57:35]Sock 9.First char is OK [13:57:35]request: POST /json_proto HTTP/1.0 [13:57:35]Method: POST [13:57:35]URL: /json_proto [13:57:35]Method is POST - this is cgi request [13:57:35]url: /json_proto [13:57:35]query_string will be loaded in cgi processing [13:57:35]execute_cgi json_proto POST (null) [13:57:35]execute_cgi path=json_proto method=POST [13:57:35]POST find Content-Length [13:57:35]Host: 172.17.46.131:8080 [13:57:35]Content-Length: 791 [13:57:35]Content-Type: application/json [13:57:35] [13:57:35]POST finish read [13:57:35]Found Content-Length = 791 [13:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81765", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:35]execute_script... [13:57: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)412506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81765", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:35]POST & json_proto [13:57:35]process_json_proto [13:57:35]json parsed OK: [13:57:35]protocol is kg_v1.0 [13:57:35]action value=close_receipt [13:57:35]process_action close_receipt [13:57:35]cmd_close_receipt [13:57:35]MH_GetDate [13:57:35]Write to MH i2c: F0 00 00 DA 05 CE [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 09 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 09 00 DA 05 00 CF 34 B7 67 7E 41 4F 65 6B [13:57:35]GetLastDocTimeStamp 1740059797 [13:57:35]current date 1740059855 [13:57:35]FM_GetShiftState [13:57:35]SAM_PROTO_GetShiftState [13:57:35]wFMCommunicate request_size=4 [13:57:35]MH_SAM_APDU [13:57:35]CAPDU: 80 13 01 00 [13:57:35]Write to MH i2c: E2 08 00 DB 05 80 13 01 00 00 00 00 00 5D [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:35]Read from MH i2c: E2 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0E 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0E 00 DB 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AF [13:57:35]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:57:35]wFMCommunicate OK [13:57:35]SAM_PROTO_GetShiftState done [13:57:35]FM_GetShiftState done [13:57:35]opened in 1740011697 [13:57:35]opened+sec_in_day 1740098097 [13:57:35]quantity*price = 0 [13:57:35]sum+1 = 1 [13:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 149 20.02.2025 13:57 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 81765 ФМ: 0000000000871826 ФД: 187348 ФПД: 184397551994672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T135735&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187348&fm=184397551994672&tin=02508201610067®Number=0000000000091857&sum=0 [13:57:36]StoreToDocumentArchive [13:57:36]shift 648 fd 187348 [13:57:36]save to /storage/0648/doc_00187348 [13:57:36]save last doc name /storage/0648/doc_00187348 to /storage/kkm_last_doc_name [13:57:36]save OK [13:57:36]Clear old archive folders... [13:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:36]tlvbuf is 00E14BC0 [13:57:36]SAM_PROTO_ClearQueue [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 09 00 00 [13:57:36]Write to MH i2c: E2 08 00 E8 05 80 09 00 00 00 00 00 00 5F [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]SAM_PROTO_ClearQueue done [13:57:36]KKMCreateOFDPacket [13:57:36]OFDProtocolAddRootSTLVToBuf [13:57:36]FM_MakeSignedData [13:57:36]FM_MakeSignedData [13:57:36]SAM_PROTO_SignData [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 01 02 [13:57:36]Write to MH i2c: E2 08 00 E9 05 80 0D 01 02 00 00 00 00 67 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]wFMCommunicate request_size=255 [13:57:36]MH_SAM_APDU [13:57: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 32 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 CF 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DB 02 00 35 04 06 00 A7 [13:57:36]Write to MH i2c: E2 02 01 EA 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 32 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 CF 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DB 02 00 35 04 06 00 A7 00 00 7E [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]wFMCommunicate request_size=10 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 02 02 05 B5 66 95 87 30 [13:57:36]Write to MH i2c: E2 0D 00 EB 05 80 0D 02 02 05 00 B5 66 95 87 30 00 00 DB [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 03 02 [13:57:36]Write to MH i2c: E2 08 00 EC 05 80 0D 03 02 00 00 00 00 6C [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 0B 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 0B 00 EC 05 00 E0 C3 0C AB CA F8 5D 66 90 00 4C [13:57:36]RAPDU: E0 C3 0C AB CA F8 5D 66 90 00 [13:57:36]wFMCommunicate OK [13:57:36]SAM_PROTO_SignData done [13:57:36]FM_MakeSignedData done [13:57:36]CreateOFDProtocolMessage [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 11 00 00 [13:57:36]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 17 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [13:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:57:36]wFMCommunicate OK [13:57:36]CreateOFDProtocolMessage done [13:57:36]OFDSenderStorePacket 187348 [13:57:36]StoreOFDPacket docnum=187348 [13:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 36 E5 07 01 F4 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 32 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 CF 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DB 02 00 35 04 06 00 A7 B5 66 95 87 30 E0 C3 0C AB CA F8 5D 66 [13:57:36]CheckFolder [13:57:36]dirname=/storage/ofd_packets [13:57:36]CheckFolder done [13:57:36]ProducePacketName [13:57:36]name=ofd_packets/00187348 [13:57:36]NVStorageSaveData ofd_packets/00187348 [13:57:36]File name is /storage/ofd_packets/00187348 [13:57:36]Write 301 bytes [13:57:36]NVStorageSaveData done [13:57:36]OFDSenderStorePacket done [13:57:36]KKMCreateOFDPacket done [13:57:36]NVStorageSaveData kkm_last_timestamp [13:57:36]File name is /storage/kkm_last_timestamp [13:57:36]Write 4 bytes [13:57:36]NVStorageSaveData done [13:57:36]ExternCall_PrintAddStr [13:57:36]wPrintStart [13:57:36]Write to MH i2c: 01 00 00 EE 05 F3 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 07 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 FF 0F 08 [13:57:36]RasterBufferAndPrint [13:57:36]line Счет N : (1)412506 [13:57:36]line ИНН: 02508201610067 [13:57:36]line Контрольно-Кассовый Чек [13:57:36]line ПРОДАЖА [13:57:36]line ТРК (МРК, ГНК) : 32 [13:57:36]line Товар: 2710124130 [13:57:36]line Аи-92-К-2 [13:57:36]line 7.000 * 0.00 [13:57:36]line = 0.00 [13:57:36]line НДС 12% НСП 1% [13:57:36]line > о реализуемом товаре [13:57:36]line ИТОГО: 0.00 [13:57:36]line НСП 1% : 0.00 [13:57:36]line НДС 12% : 0.00 [13:57:36]line Наличными: 0.00 [13:57:36]line Безнал.: 0.00 [13:57:36]line Место: АЗС № 92 "Партнер Нефть" [13:57:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:57:36]line СНО: Общий режим [13:57:36]line Чек 149 20.02.2025 13:57 [13:57:36]line Смена: 648 ФФД: 1.0 [13:57:36]line ЗНМ: 0300000118 [13:57:36]line РНМ: 0000000000091857 [13:57:36]line Версия ККМ: 001 [13:57:36]line Талоны: Топливная Карта [13:57:36]line 81765 [13:57:36]line ФМ: 0000000000871826 [13:57:36]line ФД: 187348 [13:57:36]line ФПД: 184397551994672 [13:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T135735&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187348&fm=184397551994672&tin=02508201610067®Number=0000000000091857&sum=0 [13:57:36]written 0, free lines is 4095 [13:57:36]OFD Sender: Processing packet 187348 [packets to send 49, broken 48] [13:57:36]ProducePacketName [13:57:36]name=ofd_packets/00187348 [13:57:36]OFD Sender: To server: pG, [13:57:36]CommunicateWithHost lk.salyk.kg:30040 [13:57:36]ConnectInit lk.salyk.kg [13:57:36]Connected sock=10 [13:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 36 E5 07 01 F4 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 32 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 CF 34 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DB 02 00 35 04 06 00 A7 B5 66 95 87 30 E0 C3 0C AB CA F8 5D 66 [13:57:37]Write to MH i2c: 01 00 00 18 06 1E [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FE 0C 2F [13:57:37]RasterBufferAndPrint [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]written 0, free lines is 3332 [13:57:37]MH_Cut [13:57:37]Write to MH i2c: D1 01 00 1F 06 01 F7 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 01 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 01 00 1F 06 00 F6 [13:57:37]Write to MH i2c: 01 00 00 20 06 26 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D 3B 47 00 FA E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DB 02 00 F4 03 04 00 20 DB B6 67 B6 04 01 00 00 2B 67 C5 E7 7E 2D 21 F7 [13:57:37]CommunicateWithHost err = 0 [13:57:37]CheckOFDResponse [13:57:37]1017 (14) - 77093643461234 [13:57:37]1041 (16) - 0000000000871826 [13:57:37]1040 (4) - 187348 [13:57:37]1012 (4) - 20.02.2025 07:34 [13:57:37]1206 (1) - 0 [13:57:37]OFD Sender: Remove packet 187348 [13:57:37]ProducePacketName [13:57:37]name=ofd_packets/00187348 [13:57:37]NVStorageDeleteData [13:57:37]OFD Sender: No OFD packet to send [13:57:37]*** Cut start [13:57:37]*** Partial cut [13:57:37]*** CUTSNS_PIN = 1 [13:57:37]*** CUTSNS_PIN = 0 [13:57:38]*** Brake cut motor [13:57:38]Read from MH i2c: 01 [13:57:38]MH_I2C_Read... [13:57:38]*** Stop cut motor [13:57:38]*** Cut end [13:57:38]Read from MH i2c: 01 07 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: 01 07 00 20 06 00 00 00 00 00 FF 0F 3B [13:57:38]process_action close_receipt done [13:57:38]requested_data is exist [13:57:38]produce_requested_data [13:57:38]requested_item fm.sn is exist - process it [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 11 00 00 [13:57:38]Write to MH i2c: E2 08 00 21 06 80 11 00 00 00 00 00 00 A1 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 17 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 17 00 21 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F4 [13:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:57:38]wFMCommunicate OK [13:57:38]requested_item fd.num is exist - process it [13:57:38]SAM_PROTO_GetFieldsCounters [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 13 00 00 [13:57:38]Write to MH i2c: E2 08 00 22 06 80 13 00 00 00 00 00 00 A4 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 62 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 62 00 22 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D4 DB 02 00 0E 04 04 00 88 02 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 C4 [13:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D4 DB 02 00 0E 04 04 00 88 02 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 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_GetFieldsCounters done [13:57:38]requested_item shift.num is exist - process it [13:57:38]requested_item shift.opened is exist - process it [13:57:38]req_shift_opened [13:57:38]FM_GetShiftState [13:57:38]SAM_PROTO_GetShiftState [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 13 01 00 [13:57:38]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0E 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F8 [13:57:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_GetShiftState done [13:57:38]FM_GetShiftState done [13:57:38]req_shift_opened done [13:57:38]requested_item shift.open_date is exist - process it [13:57:38]req_shift_open_date [13:57:38]req_shift_open_date done [13:57:38]produce_requested_data done [13:57:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187348,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [13:57:38]process_action_free close_receipt [13:57:38]json_value_free [13:57:38]json_value_free done [13:57:38]process_json_proto returns [13:57:38]Send response to host [13:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187348,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [13:57:38]free response buf [13:57:38]execute_script done [13:57:38]execute_script returns [13:57:38]free content buf [13:57:38]Sock 9.Close socket [13:57:38]Sock 9.Thread stoped [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:10]accept exits with 7 [14:01:10]New connection [14:01:10]New thread 3067276644 created [14:01:10]Thread 3067420004 joined [14:01:10]Waiting for new connection... [14:01:10] Sock 7.Parse request [14:01:10]Sock 7.Check first char [14:01:10]Sock 7.First char is OK [14:01:10]request: POST /json_proto HTTP/1.0 [14:01:10]Method: POST [14:01:10]URL: /json_proto [14:01:10]Method is POST - this is cgi request [14:01:10]url: /json_proto [14:01:10]query_string will be loaded in cgi processing [14:01:10]execute_cgi json_proto POST (null) [14:01:10]execute_cgi path=json_proto method=POST [14:01:10]POST find Content-Length [14:01:10]Host: 172.17.46.131:8080 [14:01:10]Content-Length: 678 [14:01:10]Content-Type: application/json [14:01:10] [14:01:10]POST finish read [14:01:10]Found Content-Length = 678 [14:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:01:10]execute_script... [14:01: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)412507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:01:10]POST & json_proto [14:01:10]process_json_proto [14:01:10]json parsed OK: [14:01:10]protocol is kg_v1.0 [14:01:10]action value=close_receipt [14:01:10]process_action close_receipt [14:01:10]cmd_close_receipt [14:01:10]MH_GetDate [14:01:10]Write to MH i2c: F0 00 00 24 06 19 [14:01:10]Write i2c OK [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: F0 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: F0 09 00 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: F0 09 00 24 06 00 A7 35 B7 67 7E 41 4F 65 8F [14:01:10]GetLastDocTimeStamp 1740059855 [14:01:10]current date 1740060071 [14:01:10]FM_GetShiftState [14:01:10]SAM_PROTO_GetShiftState [14:01:10]wFMCommunicate request_size=4 [14:01:10]MH_SAM_APDU [14:01:10]CAPDU: 80 13 01 00 [14:01:10]Write to MH i2c: E2 08 00 25 06 80 13 01 00 00 00 00 00 A8 [14:01:10]Write i2c OK [14:01:10]MH_I2C_Read... [14:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:10]Read from MH i2c: E2 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: E2 0E 00 [14:01:10]MH_I2C_Read... [14:01:10]Read from MH i2c: E2 0E 00 25 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FA [14:01:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:01:10]wFMCommunicate OK [14:01:10]SAM_PROTO_GetShiftState done [14:01:10]FM_GetShiftState done [14:01:10]opened in 1740011697 [14:01:10]opened+sec_in_day 1740098097 [14:01:10]quantity*price = 100042 [14:01:10]sum+1 = 100044 [14:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 150 20.02.2025 14:01 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187349 ФПД: 29971481112367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T140111&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187349&fm=29971481112367&tin=02508201610067®Number=0000000000091857&sum=100000 [14:01:11]StoreToDocumentArchive [14:01:11]shift 648 fd 187349 [14:01:11]save to /storage/0648/doc_00187349 [14:01:11]save last doc name /storage/0648/doc_00187349 to /storage/kkm_last_doc_name [14:01:11]save OK [14:01:11]Clear old archive folders... [14:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:01:11]tlvbuf is 00DF8D80 [14:01:11]SAM_PROTO_ClearQueue [14:01:11]wFMCommunicate request_size=4 [14:01:11]MH_SAM_APDU [14:01:11]CAPDU: 80 09 00 00 [14:01:11]Write to MH i2c: E2 08 00 32 06 80 09 00 00 00 00 00 00 AA [14:01:11]Write i2c OK [14:01:11]MH_I2C_Read... [14:01:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:11]Read from MH i2c: E2 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 03 00 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [14:01:11]RAPDU: 90 00 [14:01:11]wFMCommunicate OK [14:01:11]SAM_PROTO_ClearQueue done [14:01:11]KKMCreateOFDPacket [14:01:11]OFDProtocolAddRootSTLVToBuf [14:01:11]FM_MakeSignedData [14:01:11]FM_MakeSignedData [14:01:11]SAM_PROTO_SignData [14:01:11]wFMCommunicate request_size=4 [14:01:11]MH_SAM_APDU [14:01:11]CAPDU: 80 0D 01 02 [14:01:11]Write to MH i2c: E2 08 00 33 06 80 0D 01 02 00 00 00 00 B2 [14:01:11]Write i2c OK [14:01:11]MH_I2C_Read... [14:01:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:11]Read from MH i2c: E2 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 03 00 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [14:01:11]RAPDU: 90 00 [14:01:11]wFMCommunicate OK [14:01:11]wFMCommunicate request_size=255 [14:01:11]MH_SAM_APDU [14:01:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A7 35 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DB 02 00 35 04 06 00 1B 42 47 7C [14:01:11]Write to MH i2c: E2 02 01 34 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A7 35 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DB 02 00 35 04 06 00 1B 42 47 7C 00 00 42 [14:01:11]Write i2c OK [14:01:11]MH_I2C_Read... [14:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:11]Read from MH i2c: E2 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 03 00 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [14:01:11]RAPDU: 90 00 [14:01:11]wFMCommunicate OK [14:01:11]wFMCommunicate request_size=7 [14:01:11]MH_SAM_APDU [14:01:11]CAPDU: 80 0D 02 02 02 2F 2F [14:01:11]Write to MH i2c: E2 0A 00 35 06 80 0D 02 02 02 00 2F 2F 00 00 17 [14:01:11]Write i2c OK [14:01:11]MH_I2C_Read... [14:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:11]Read from MH i2c: E2 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 03 00 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [14:01:11]RAPDU: 90 00 [14:01:11]wFMCommunicate OK [14:01:11]wFMCommunicate request_size=4 [14:01:11]MH_SAM_APDU [14:01:11]CAPDU: 80 0D 03 02 [14:01:11]Write to MH i2c: E2 08 00 36 06 80 0D 03 02 00 00 00 00 B7 [14:01:11]Write i2c OK [14:01:11]MH_I2C_Read... [14:01:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:11]Read from MH i2c: E2 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 0B 00 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 0B 00 36 06 00 15 99 92 7F 1A FE 75 45 90 00 49 [14:01:11]RAPDU: 15 99 92 7F 1A FE 75 45 90 00 [14:01:11]wFMCommunicate OK [14:01:11]SAM_PROTO_SignData done [14:01:11]FM_MakeSignedData done [14:01:11]CreateOFDProtocolMessage [14:01:11]wFMCommunicate request_size=4 [14:01:11]MH_SAM_APDU [14:01:11]CAPDU: 80 11 00 00 [14:01:11]Write to MH i2c: E2 08 00 37 06 80 11 00 00 00 00 00 00 B7 [14:01:11]Write i2c OK [14:01:11]MH_I2C_Read... [14:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:11]Read from MH i2c: E2 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 17 00 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: E2 17 00 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0A [14:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:01:11]wFMCommunicate OK [14:01:11]CreateOFDProtocolMessage done [14:01:11]OFDSenderStorePacket 187349 [14:01:11]StoreOFDPacket docnum=187349 [14:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F4 8D 04 01 B5 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A7 35 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DB 02 00 35 04 06 00 1B 42 47 7C 2F 2F 15 99 92 7F 1A FE 75 45 [14:01:11]CheckFolder [14:01:11]dirname=/storage/ofd_packets [14:01:11]CheckFolder done [14:01:11]ProducePacketName [14:01:11]name=ofd_packets/00187349 [14:01:11]NVStorageSaveData ofd_packets/00187349 [14:01:11]File name is /storage/ofd_packets/00187349 [14:01:11]Write 298 bytes [14:01:11]NVStorageSaveData done [14:01:11]OFDSenderStorePacket done [14:01:11]KKMCreateOFDPacket done [14:01:11]NVStorageSaveData kkm_last_timestamp [14:01:11]File name is /storage/kkm_last_timestamp [14:01:11]Write 4 bytes [14:01:11]NVStorageSaveData done [14:01:11]ExternCall_PrintAddStr [14:01:11]wPrintStart [14:01:11]Write to MH i2c: 01 00 00 38 06 3E [14:01:11]Write i2c OK [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: 01 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: 01 07 00 [14:01:11]MH_I2C_Read... [14:01:11]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [14:01:11]RasterBufferAndPrint [14:01:11]line Счет N : (1)412507 [14:01:11]line ИНН: 02508201610067 [14:01:11]line Контрольно-Кассовый Чек [14:01:11]line ПРОДАЖА [14:01:11]line ТРК (МРК, ГНК) : 5 [14:01:11]line Товар: 2710194210 [14:01:11]line ДТ-К-5 [14:01:11]line 13.780 * 72.60 [14:01:11]line = 1000.43 [14:01:11]line НДС 12% НСП 1% [14:01:11]line > о реализуемом товаре [14:01:11]line ОКРУГЛЕНИЕ: -0.43 [14:01:11]line ИТОГО: 1000.00 [14:01:11]line Внесено: 1000.00 [14:01:11]line СДАЧА: 0.00 [14:01:11]line НСП 1% : 8.85 [14:01:11]line НДС 12% : 106.24 [14:01:11]line Наличными: 1000.00 [14:01:11]line Безнал.: 0.00 [14:01:11]line Место: АЗС № 92 "Партнер Нефть" [14:01:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:01:11]line СНО: Общий режим [14:01:11]line Чек 150 20.02.2025 14:01 [14:01:11]line Смена: 648 ФФД: 1.0 [14:01:11]line ЗНМ: 0300000118 [14:01:11]line РНМ: 0000000000091857 [14:01:11]line Версия ККМ: 001 [14:01:11]line ФМ: 0000000000871826 [14:01:11]line ФД: 187349 [14:01:11]line ФПД: 29971481112367 [14:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T140111&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187349&fm=29971481112367&tin=02508201610067®Number=0000000000091857&sum=100000 [14:01:12]OFD Sender: Processing packet 187349 [packets to send 49, broken 48] [14:01:12]ProducePacketName [14:01:12]name=ofd_packets/00187349 [14:01:12]OFD Sender: To server: pG, [14:01:12]CommunicateWithHost lk.salyk.kg:30040 [14:01:12]ConnectInit lk.salyk.kg [14:01:12]written 0, free lines is 4095 [14:01:12]Connected sock=10 [14:01:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F4 8D 04 01 B5 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A7 35 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DB 02 00 35 04 06 00 1B 42 47 7C 2F 2F 15 99 92 7F 1A FE 75 45 [14:01:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E3 F3 47 00 EB 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DB 02 00 F4 03 04 00 F7 DB B6 67 B6 04 01 00 00 E7 1B 32 B9 CC A2 CE 4F [14:01:12]CommunicateWithHost err = 0 [14:01:12]CheckOFDResponse [14:01:12]1017 (14) - 77093643461234 [14:01:12]1041 (16) - 0000000000871826 [14:01:12]1040 (4) - 187349 [14:01:12]1012 (4) - 20.02.2025 07:38 [14:01:12]1206 (1) - 0 [14:01:12]OFD Sender: Remove packet 187349 [14:01:12]ProducePacketName [14:01:12]name=ofd_packets/00187349 [14:01:12]NVStorageDeleteData [14:01:12]Write to MH i2c: 01 00 00 63 06 69 [14:01:12]Write i2c OK [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: 01 [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: 01 07 00 [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 F0 0C 6C [14:01:12]RasterBufferAndPrint [14:01:12]line [14:01:12]line [14:01:12]line [14:01:12]line [14:01:12]line [14:01:12]written 0, free lines is 3318 [14:01:12]MH_Cut [14:01:12]Write to MH i2c: D1 01 00 6A 06 01 42 [14:01:12]Write i2c OK [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: D1 [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: D1 01 00 [14:01:12]MH_I2C_Read... [14:01:12]Read from MH i2c: D1 01 00 6A 06 00 41 [14:01:12]Write to MH i2c: 01 00 00 6B 06 71 [14:01:12]Write i2c OK [14:01:12]MH_I2C_Read... [14:01:13]OFD Sender: No OFD packet to send [14:01:13]*** Cut start [14:01:13]*** Partial cut [14:01:13]*** CUTSNS_PIN = 1 [14:01:13]*** CUTSNS_PIN = 0 [14:01:13]*** Brake cut motor [14:01:14]Read from MH i2c: 01 [14:01:14]MH_I2C_Read... [14:01:14]*** Stop cut motor [14:01:14]*** Cut end [14:01:14]Read from MH i2c: 01 07 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 FF 0F 86 [14:01:14]process_action close_receipt done [14:01:14]requested_data is exist [14:01:14]produce_requested_data [14:01:14]requested_item fm.sn is exist - process it [14:01:14]wFMCommunicate request_size=4 [14:01:14]MH_SAM_APDU [14:01:14]CAPDU: 80 11 00 00 [14:01:14]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:14]Read from MH i2c: E2 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 17 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3F [14:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:01:14]wFMCommunicate OK [14:01:14]requested_item fd.num is exist - process it [14:01:14]SAM_PROTO_GetFieldsCounters [14:01:14]wFMCommunicate request_size=4 [14:01:14]MH_SAM_APDU [14:01:14]CAPDU: 80 13 00 00 [14:01:14]Write to MH i2c: E2 08 00 6D 06 80 13 00 00 00 00 00 00 EF [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:14]Read from MH i2c: E2 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 62 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 62 00 6D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D5 DB 02 00 0E 04 04 00 88 02 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 13 [14:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D5 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:14]wFMCommunicate OK [14:01:14]SAM_PROTO_GetFieldsCounters done [14:01:14]requested_item shift.num is exist - process it [14:01:14]requested_item shift.opened is exist - process it [14:01:14]req_shift_opened [14:01:14]FM_GetShiftState [14:01:14]SAM_PROTO_GetShiftState [14:01:14]wFMCommunicate request_size=4 [14:01:14]MH_SAM_APDU [14:01:14]CAPDU: 80 13 01 00 [14:01:14]Write to MH i2c: E2 08 00 6E 06 80 13 01 00 00 00 00 00 F1 [14:01:14]Write i2c OK [14:01:14]MH_I2C_Read... [14:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:14]Read from MH i2c: E2 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 0E 00 [14:01:14]MH_I2C_Read... [14:01:14]Read from MH i2c: E2 0E 00 6E 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 43 [14:01:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:01:14]wFMCommunicate OK [14:01:14]SAM_PROTO_GetShiftState done [14:01:14]FM_GetShiftState done [14:01:14]req_shift_opened done [14:01:14]requested_item shift.open_date is exist - process it [14:01:14]req_shift_open_date [14:01:14]req_shift_open_date done [14:01:14]produce_requested_data done [14:01:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187349,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:01:14]process_action_free close_receipt [14:01:14]json_value_free [14:01:14]json_value_free done [14:01:14]process_json_proto returns [14:01:14]Send response to host [14:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187349,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:01:14]free response buf [14:01:14]execute_script done [14:01:14]execute_script returns [14:01:14]free content buf [14:01:14]Sock 7.Close socket [14:01:14]Sock 7.Thread stoped [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:23]accept exits with 9 [14:04:23]New connection [14:04:23]New thread 3067420004 created [14:04:23]Thread 3067276644 joined [14:04:23]Waiting for new connection... [14:04:23] Sock 9.Parse request [14:04:23]Sock 9.Check first char [14:04:23]Sock 9.First char is OK [14:04:23]request: POST /json_proto HTTP/1.0 [14:04:23]Method: POST [14:04:23]URL: /json_proto [14:04:23]Method is POST - this is cgi request [14:04:23]url: /json_proto [14:04:23]query_string will be loaded in cgi processing [14:04:23]execute_cgi json_proto POST (null) [14:04:23]execute_cgi path=json_proto method=POST [14:04:23]POST find Content-Length [14:04:23]Host: 172.17.46.131:8080 [14:04:23]Content-Length: 673 [14:04:23]Content-Type: application/json [14:04:23] [14:04:23]POST finish read [14:04:23]Found Content-Length = 673 [14:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 4.140, "sum" : 300.56, "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:04:23]execute_script... [14:04: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)412508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 4.140, "sum" : 300.56, "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:04:23]POST & json_proto [14:04:23]process_json_proto [14:04:23]json parsed OK: [14:04:23]protocol is kg_v1.0 [14:04:23]action value=close_receipt [14:04:23]process_action close_receipt [14:04:23]cmd_close_receipt [14:04:23]MH_GetDate [14:04:23]Write to MH i2c: F0 00 00 6F 06 64 [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: F0 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: F0 09 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: F0 09 00 6F 06 00 68 36 B7 67 7E 41 4F 65 9C [14:04:23]GetLastDocTimeStamp 1740060071 [14:04:23]current date 1740060264 [14:04:23]FM_GetShiftState [14:04:23]SAM_PROTO_GetShiftState [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 13 01 00 [14:04:23]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 0E 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 45 [14:04:23]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:04:23]wFMCommunicate OK [14:04:23]SAM_PROTO_GetShiftState done [14:04:23]FM_GetShiftState done [14:04:23]opened in 1740011697 [14:04:23]opened+sec_in_day 1740098097 [14:04:23]quantity*price = 30056 [14:04:23]sum+1 = 30057 [14:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 151 20.02.2025 14:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187350 ФПД: 132510749672406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T140424&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187350&fm=132510749672406&tin=02508201610067®Number=0000000000091857&sum=30000 [14:04:25]StoreToDocumentArchive [14:04:25]shift 648 fd 187350 [14:04:25]save to /storage/0648/doc_00187350 [14:04:25]save last doc name /storage/0648/doc_00187350 to /storage/kkm_last_doc_name [14:04:25]save OK [14:04:25]Clear old archive folders... [14:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:04:25]tlvbuf is 00DF8950 [14:04:25]SAM_PROTO_ClearQueue [14:04:25]wFMCommunicate request_size=4 [14:04:25]MH_SAM_APDU [14:04:25]CAPDU: 80 09 00 00 [14:04:25]Write to MH i2c: E2 08 00 7D 06 80 09 00 00 00 00 00 00 F5 [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:25]Read from MH i2c: E2 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 03 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [14:04:25]RAPDU: 90 00 [14:04:25]wFMCommunicate OK [14:04:25]SAM_PROTO_ClearQueue done [14:04:25]KKMCreateOFDPacket [14:04:25]OFDProtocolAddRootSTLVToBuf [14:04:25]FM_MakeSignedData [14:04:25]FM_MakeSignedData [14:04:25]SAM_PROTO_SignData [14:04:25]wFMCommunicate request_size=4 [14:04:25]MH_SAM_APDU [14:04:25]CAPDU: 80 0D 01 02 [14:04:25]Write to MH i2c: E2 08 00 7E 06 80 0D 01 02 00 00 00 00 FD [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:25]Read from MH i2c: E2 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 03 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [14:04:25]RAPDU: 90 00 [14:04:25]wFMCommunicate OK [14:04:25]wFMCommunicate request_size=255 [14:04:25]MH_SAM_APDU [14:04: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 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 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 97 00 00 00 F4 03 04 00 68 36 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DB 02 00 35 04 06 00 78 84 90 29 [14:04:25]Write to MH i2c: E2 02 01 7F 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 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 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 97 00 00 00 F4 03 04 00 68 36 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DB 02 00 35 04 06 00 78 84 90 29 00 00 0E [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:25]Read from MH i2c: E2 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 03 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [14:04:25]RAPDU: 90 00 [14:04:25]wFMCommunicate OK [14:04:25]wFMCommunicate request_size=7 [14:04:25]MH_SAM_APDU [14:04:25]CAPDU: 80 0D 02 02 02 C3 D6 [14:04:25]Write to MH i2c: E2 0A 00 80 06 80 0D 02 02 02 00 C3 D6 00 00 9D [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:25]Read from MH i2c: E2 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 03 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [14:04:25]RAPDU: 90 00 [14:04:25]wFMCommunicate OK [14:04:25]wFMCommunicate request_size=4 [14:04:25]MH_SAM_APDU [14:04:25]CAPDU: 80 0D 03 02 [14:04:25]Write to MH i2c: E2 08 00 81 06 80 0D 03 02 00 00 00 00 02 [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:25]Read from MH i2c: E2 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 0B 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 0B 00 81 06 00 5E F3 6D F6 FC EA 44 50 90 00 31 [14:04:25]RAPDU: 5E F3 6D F6 FC EA 44 50 90 00 [14:04:25]wFMCommunicate OK [14:04:25]SAM_PROTO_SignData done [14:04:25]FM_MakeSignedData done [14:04:25]CreateOFDProtocolMessage [14:04:25]wFMCommunicate request_size=4 [14:04:25]MH_SAM_APDU [14:04:25]CAPDU: 80 11 00 00 [14:04:25]Write to MH i2c: E2 08 00 82 06 80 11 00 00 00 00 00 00 02 [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:25]Read from MH i2c: E2 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 17 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: E2 17 00 82 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [14:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:04:25]wFMCommunicate OK [14:04:25]CreateOFDProtocolMessage done [14:04:25]OFDSenderStorePacket 187350 [14:04:25]StoreOFDPacket docnum=187350 [14:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 81 F4 04 01 A8 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 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 97 00 00 00 F4 03 04 00 68 36 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DB 02 00 35 04 06 00 78 84 90 29 C3 D6 5E F3 6D F6 FC EA 44 50 [14:04:25]CheckFolder [14:04:25]dirname=/storage/ofd_packets [14:04:25]CheckFolder done [14:04:25]ProducePacketName [14:04:25]name=ofd_packets/00187350 [14:04:25]NVStorageSaveData ofd_packets/00187350 [14:04:25]File name is /storage/ofd_packets/00187350 [14:04:25]Write 298 bytes [14:04:25]NVStorageSaveData done [14:04:25]OFDSenderStorePacket done [14:04:25]KKMCreateOFDPacket done [14:04:25]NVStorageSaveData kkm_last_timestamp [14:04:25]File name is /storage/kkm_last_timestamp [14:04:25]Write 4 bytes [14:04:25]NVStorageSaveData done [14:04:25]ExternCall_PrintAddStr [14:04:25]wPrintStart [14:04:25]Write to MH i2c: 01 00 00 83 06 89 [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: 01 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: 01 07 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [14:04:25]RasterBufferAndPrint [14:04:25]line Счет N : (1)412508 [14:04:25]line ИНН: 02508201610067 [14:04:25]line Контрольно-Кассовый Чек [14:04:25]line ПРОДАЖА [14:04:25]line ТРК (МРК, ГНК) : 5 [14:04:25]line Товар: 2710194210 [14:04:25]line ДТ-К-5 [14:04:25]line 4.140 * 72.60 [14:04:25]line = 300.56 [14:04:25]line НДС 12% НСП 1% [14:04:25]line > о реализуемом товаре [14:04:25]line ОКРУГЛЕНИЕ: -0.56 [14:04:25]line ИТОГО: 300.00 [14:04:25]line Внесено: 300.00 [14:04:25]line СДАЧА: 0.00 [14:04:25]line НСП 1% : 2.66 [14:04:25]line НДС 12% : 31.92 [14:04:25]line Наличными: 300.00 [14:04:25]line Безнал.: 0.00 [14:04:25]line Место: АЗС № 92 "Партнер Нефть" [14:04:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:04:25]line СНО: Общий режим [14:04:25]line Чек 151 20.02.2025 14:04 [14:04:25]line Смена: 648 ФФД: 1.0 [14:04:25]line ЗНМ: 0300000118 [14:04:25]line РНМ: 0000000000091857 [14:04:25]line Версия ККМ: 001 [14:04:25]line ФМ: 0000000000871826 [14:04:25]line ФД: 187350 [14:04:25]line ФПД: 132510749672406 [14:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T140424&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187350&fm=132510749672406&tin=02508201610067®Number=0000000000091857&sum=30000 [14:04:25]OFD Sender: Processing packet 187350 [packets to send 49, broken 48] [14:04:25]ProducePacketName [14:04:25]name=ofd_packets/00187350 [14:04:25]OFD Sender: To server: pG, [14:04:25]CommunicateWithHost lk.salyk.kg:30040 [14:04:25]ConnectInit lk.salyk.kg [14:04:25]written 0, free lines is 4095 [14:04:26]Connected sock=10 [14:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 81 F4 04 01 A8 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 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 97 00 00 00 F4 03 04 00 68 36 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DB 02 00 35 04 06 00 78 84 90 29 C3 D6 5E F3 6D F6 FC EA 44 50 [14:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 91 0F 47 00 C4 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DB 02 00 F4 03 04 00 B9 DC B6 67 B6 04 01 00 00 86 99 C2 22 79 FE 3D C2 [14:04:26]CommunicateWithHost err = 0 [14:04:26]CheckOFDResponse [14:04:26]1017 (14) - 77093643461234 [14:04:26]1041 (16) - 0000000000871826 [14:04:26]1040 (4) - 187350 [14:04:26]1012 (4) - 20.02.2025 07:41 [14:04:26]1206 (1) - 0 [14:04:26]OFD Sender: Remove packet 187350 [14:04:26]ProducePacketName [14:04:26]name=ofd_packets/00187350 [14:04:26]NVStorageDeleteData [14:04:26]Write to MH i2c: 01 00 00 AE 06 B4 [14:04:26]Write i2c OK [14:04:26]MH_I2C_Read... [14:04:26]Read from MH i2c: 01 [14:04:26]MH_I2C_Read... [14:04:26]Read from MH i2c: 01 07 00 [14:04:26]MH_I2C_Read... [14:04:26]Read from MH i2c: 01 07 00 AE 06 00 00 00 00 00 01 0D C9 [14:04:26]RasterBufferAndPrint [14:04:26]line [14:04:26]line [14:04:26]line [14:04:26]line [14:04:26]line [14:04:26]written 0, free lines is 3335 [14:04:26]MH_Cut [14:04:26]Write to MH i2c: D1 01 00 B5 06 01 8D [14:04:26]Write i2c OK [14:04:26]MH_I2C_Read... [14:04:26]Read from MH i2c: D1 [14:04:26]MH_I2C_Read... [14:04:26]Read from MH i2c: D1 01 00 [14:04:26]MH_I2C_Read... [14:04:26]Read from MH i2c: D1 01 00 B5 06 00 8C [14:04:26]Write to MH i2c: 01 00 00 B6 06 BC [14:04:26]Write i2c OK [14:04:26]MH_I2C_Read... [14:04:26]OFD Sender: No OFD packet to send [14:04:27]*** Cut start [14:04:27]*** Partial cut [14:04:27]*** CUTSNS_PIN = 1 [14:04:27]*** CUTSNS_PIN = 0 [14:04:27]*** Brake cut motor [14:04:27]Read from MH i2c: 01 [14:04:27]MH_I2C_Read... [14:04:27]*** Stop cut motor [14:04:27]*** Cut end [14:04:27]Read from MH i2c: 01 07 00 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: 01 07 00 B6 06 00 00 00 00 00 FF 0F D1 [14:04:27]process_action close_receipt done [14:04:27]requested_data is exist [14:04:27]produce_requested_data [14:04:27]requested_item fm.sn is exist - process it [14:04:27]wFMCommunicate request_size=4 [14:04:27]MH_SAM_APDU [14:04:27]CAPDU: 80 11 00 00 [14:04:27]Write to MH i2c: E2 08 00 B7 06 80 11 00 00 00 00 00 00 37 [14:04:27]Write i2c OK [14:04:27]MH_I2C_Read... [14:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:27]Read from MH i2c: E2 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: E2 17 00 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: E2 17 00 B7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [14:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:04:27]wFMCommunicate OK [14:04:27]requested_item fd.num is exist - process it [14:04:27]SAM_PROTO_GetFieldsCounters [14:04:27]wFMCommunicate request_size=4 [14:04:27]MH_SAM_APDU [14:04:27]CAPDU: 80 13 00 00 [14:04:27]Write to MH i2c: E2 08 00 B8 06 80 13 00 00 00 00 00 00 3A [14:04:27]Write i2c OK [14:04:27]MH_I2C_Read... [14:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:27]Read from MH i2c: E2 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: E2 62 00 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: E2 62 00 B8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D6 DB 02 00 0E 04 04 00 88 02 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 62 [14:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D6 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:27]wFMCommunicate OK [14:04:27]SAM_PROTO_GetFieldsCounters done [14:04:27]requested_item shift.num is exist - process it [14:04:27]requested_item shift.opened is exist - process it [14:04:27]req_shift_opened [14:04:27]FM_GetShiftState [14:04:27]SAM_PROTO_GetShiftState [14:04:27]wFMCommunicate request_size=4 [14:04:27]MH_SAM_APDU [14:04:27]CAPDU: 80 13 01 00 [14:04:27]Write to MH i2c: E2 08 00 B9 06 80 13 01 00 00 00 00 00 3C [14:04:27]Write i2c OK [14:04:27]MH_I2C_Read... [14:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:28]Read from MH i2c: E2 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 0E 00 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 0E 00 B9 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8E [14:04:28]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:04:28]wFMCommunicate OK [14:04:28]SAM_PROTO_GetShiftState done [14:04:28]FM_GetShiftState done [14:04:28]req_shift_opened done [14:04:28]requested_item shift.open_date is exist - process it [14:04:28]req_shift_open_date [14:04:28]req_shift_open_date done [14:04:28]produce_requested_data done [14:04:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187350,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:04:28]process_action_free close_receipt [14:04:28]json_value_free [14:04:28]json_value_free done [14:04:28]process_json_proto returns [14:04:28]Send response to host [14:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187350,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:04:28]free response buf [14:04:28]execute_script done [14:04:28]execute_script returns [14:04:28]free content buf [14:04:28]Sock 9.Close socket [14:04:28]Sock 9.Thread stoped [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:05:58]accept exits with 7 [14:05:58]New connection [14:05:58]New thread 3067276644 created [14:05:58]Thread 3067420004 joined [14:05:58]Waiting for new connection... [14:05:58] Sock 7.Parse request [14:05:58]Sock 7.Check first char [14:05:58]Sock 7.First char is OK [14:05:58]request: POST /json_proto HTTP/1.0 [14:05:58]Method: POST [14:05:58]URL: /json_proto [14:05:58]Method is POST - this is cgi request [14:05:58]url: /json_proto [14:05:58]query_string will be loaded in cgi processing [14:05:58]execute_cgi json_proto POST (null) [14:05:58]execute_cgi path=json_proto method=POST [14:05:58]POST find Content-Length [14:05:58]Host: 172.17.46.131:8080 [14:05:58]Content-Length: 682 [14:05:58]Content-Type: application/json [14:05:58] [14:05:58]POST finish read [14:05:58]Found Content-Length = 682 [14:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:05:58]execute_script... [14:05: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)412509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:05:58]POST & json_proto [14:05:58]process_json_proto [14:05:58]json parsed OK: [14:05:58]protocol is kg_v1.0 [14:05:58]action value=close_receipt [14:05:58]process_action close_receipt [14:05:58]cmd_close_receipt [14:05:58]MH_GetDate [14:05:58]Write to MH i2c: F0 00 00 BA 06 AF [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: F0 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: F0 09 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: F0 09 00 BA 06 00 C7 36 B7 67 7E 41 4F 65 46 [14:05:58]GetLastDocTimeStamp 1740060264 [14:05:58]current date 1740060359 [14:05:58]FM_GetShiftState [14:05:58]SAM_PROTO_GetShiftState [14:05:58]wFMCommunicate request_size=4 [14:05:58]MH_SAM_APDU [14:05:58]CAPDU: 80 13 01 00 [14:05:58]Write to MH i2c: E2 08 00 BB 06 80 13 01 00 00 00 00 00 3E [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:58]Read from MH i2c: E2 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 0E 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 0E 00 BB 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 90 [14:05:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:05:58]wFMCommunicate OK [14:05:58]SAM_PROTO_GetShiftState done [14:05:58]FM_GetShiftState done [14:05:58]opened in 1740011697 [14:05:58]opened+sec_in_day 1740098097 [14:05:58]quantity*price = 100023 [14:05:58]sum+1 = 100025 [14:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 152 20.02.2025 14:05 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187351 ФПД: 248422604143852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T140559&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187351&fm=248422604143852&tin=02508201610067®Number=0000000000091857&sum=100000 [14:05:59]StoreToDocumentArchive [14:05:59]shift 648 fd 187351 [14:05:59]save to /storage/0648/doc_00187351 [14:05:59]save last doc name /storage/0648/doc_00187351 to /storage/kkm_last_doc_name [14:05:59]save OK [14:05:59]Clear old archive folders... [14:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:59]tlvbuf is 00DDBFC0 [14:05:59]SAM_PROTO_ClearQueue [14:05:59]wFMCommunicate request_size=4 [14:05:59]MH_SAM_APDU [14:05:59]CAPDU: 80 09 00 00 [14:05:59]Write to MH i2c: E2 08 00 C8 06 80 09 00 00 00 00 00 00 40 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:59]Read from MH i2c: E2 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 03 00 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [14:05:59]RAPDU: 90 00 [14:05:59]wFMCommunicate OK [14:05:59]SAM_PROTO_ClearQueue done [14:05:59]KKMCreateOFDPacket [14:05:59]OFDProtocolAddRootSTLVToBuf [14:05:59]FM_MakeSignedData [14:05:59]FM_MakeSignedData [14:05:59]SAM_PROTO_SignData [14:05:59]wFMCommunicate request_size=4 [14:05:59]MH_SAM_APDU [14:05:59]CAPDU: 80 0D 01 02 [14:05:59]Write to MH i2c: E2 08 00 C9 06 80 0D 01 02 00 00 00 00 48 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:59]Read from MH i2c: E2 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 03 00 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [14:05:59]RAPDU: 90 00 [14:05:59]wFMCommunicate OK [14:05:59]wFMCommunicate request_size=255 [14:05:59]MH_SAM_APDU [14:05: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C7 36 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DB 02 00 35 04 06 00 E1 [14:05:59]Write to MH i2c: E2 02 01 CA 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C7 36 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DB 02 00 35 04 06 00 E1 00 00 17 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [14:06:00]RAPDU: 90 00 [14:06:00]wFMCommunicate OK [14:06:00]wFMCommunicate request_size=10 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 0D 02 02 05 F0 65 12 FC EC [14:06:00]Write to MH i2c: E2 0D 00 CB 06 80 0D 02 02 05 00 F0 65 12 FC EC 00 00 A4 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [14:06:00]RAPDU: 90 00 [14:06:00]wFMCommunicate OK [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 0D 03 02 [14:06:00]Write to MH i2c: E2 08 00 CC 06 80 0D 03 02 00 00 00 00 4D [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 0B 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 0B 00 CC 06 00 8C 4A B9 87 F3 23 13 8E 90 00 1B [14:06:00]RAPDU: 8C 4A B9 87 F3 23 13 8E 90 00 [14:06:00]wFMCommunicate OK [14:06:00]SAM_PROTO_SignData done [14:06:00]FM_MakeSignedData done [14:06:00]CreateOFDProtocolMessage [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 11 00 00 [14:06:00]Write to MH i2c: E2 08 00 CD 06 80 11 00 00 00 00 00 00 4D [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 17 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 17 00 CD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [14:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:06:00]wFMCommunicate OK [14:06:00]CreateOFDProtocolMessage done [14:06:00]OFDSenderStorePacket 187351 [14:06:00]StoreOFDPacket docnum=187351 [14:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E5 DD 07 01 EB 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C7 36 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DB 02 00 35 04 06 00 E1 F0 65 12 FC EC 8C 4A B9 87 F3 23 13 8E [14:06:00]CheckFolder [14:06:00]dirname=/storage/ofd_packets [14:06:00]CheckFolder done [14:06:00]ProducePacketName [14:06:00]name=ofd_packets/00187351 [14:06:00]NVStorageSaveData ofd_packets/00187351 [14:06:00]File name is /storage/ofd_packets/00187351 [14:06:00]Write 301 bytes [14:06:00]NVStorageSaveData done [14:06:00]OFDSenderStorePacket done [14:06:00]KKMCreateOFDPacket done [14:06:00]NVStorageSaveData kkm_last_timestamp [14:06:00]File name is /storage/kkm_last_timestamp [14:06:00]Write 4 bytes [14:06:00]NVStorageSaveData done [14:06:00]ExternCall_PrintAddStr [14:06:00]wPrintStart [14:06:00]Write to MH i2c: 01 00 00 CE 06 D4 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 07 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 07 00 CE 06 00 00 00 00 00 FF 0F E9 [14:06:00]RasterBufferAndPrint [14:06:00]line Счет N : (1)412509 [14:06:00]line ИНН: 02508201610067 [14:06:00]line Контрольно-Кассовый Чек [14:06:00]line ПРОДАЖА [14:06:00]line ТРК (МРК, ГНК) : 22 [14:06:00]line Товар: 2710124130 [14:06:00]line Аи-92-К-2 [14:06:00]line 15.580 * 64.20 [14:06:00]line = 1000.24 [14:06:00]line НДС 12% НСП 1% [14:06:00]line > о реализуемом товаре [14:06:00]line ОКРУГЛЕНИЕ: -0.24 [14:06:00]line ИТОГО: 1000.00 [14:06:00]line Внесено: 1000.00 [14:06:00]line СДАЧА: 0.00 [14:06:00]line НСП 1% : 8.85 [14:06:00]line НДС 12% : 106.22 [14:06:00]line Наличными: 1000.00 [14:06:00]line Безнал.: 0.00 [14:06:00]line Место: АЗС № 92 "Партнер Нефть" [14:06:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:06:00]line СНО: Общий режим [14:06:00]line Чек 152 20.02.2025 14:05 [14:06:00]line Смена: 648 ФФД: 1.0 [14:06:00]line ЗНМ: 0300000118 [14:06:00]line РНМ: 0000000000091857 [14:06:00]line Версия ККМ: 001 [14:06:00]line ФМ: 0000000000871826 [14:06:00]line ФД: 187351 [14:06:00]line ФПД: 248422604143852 [14:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T140559&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187351&fm=248422604143852&tin=02508201610067®Number=0000000000091857&sum=100000 [14:06:00]OFD Sender: Processing packet 187351 [packets to send 49, broken 48] [14:06:00]ProducePacketName [14:06:00]name=ofd_packets/00187351 [14:06:00]OFD Sender: To server: pG, [14:06:00]CommunicateWithHost lk.salyk.kg:30040 [14:06:00]ConnectInit lk.salyk.kg [14:06:00]written 0, free lines is 4095 [14:06:00]Connected sock=10 [14:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E5 DD 07 01 EB 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C7 36 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DB 02 00 35 04 06 00 E1 F0 65 12 FC EC 8C 4A B9 87 F3 23 13 8E [14:06:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F0 A2 47 00 19 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DB 02 00 F4 03 04 00 18 DD B6 67 B6 04 01 00 00 1B 5C A6 55 E4 77 4A 5A [14:06:00]CommunicateWithHost err = 0 [14:06:00]CheckOFDResponse [14:06:00]1017 (14) - 77093643461234 [14:06:00]1041 (16) - 0000000000871826 [14:06:00]1040 (4) - 187351 [14:06:00]1012 (4) - 20.02.2025 07:43 [14:06:00]1206 (1) - 0 [14:06:00]OFD Sender: Remove packet 187351 [14:06:00]ProducePacketName [14:06:00]name=ofd_packets/00187351 [14:06:00]NVStorageDeleteData [14:06:01]Write to MH i2c: 01 00 00 F9 06 FF [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 F9 06 00 00 00 00 00 FA 0C 0C [14:06:01]RasterBufferAndPrint [14:06:01]line [14:06:01]line [14:06:01]line [14:06:01]line [14:06:01]line [14:06:01]written 0, free lines is 3328 [14:06:01]MH_Cut [14:06:01]Write to MH i2c: D1 01 00 00 07 01 D9 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D1 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D1 01 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D1 01 00 00 07 00 D8 [14:06:01]Write to MH i2c: 01 00 00 01 07 08 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]OFD Sender: No OFD packet to send [14:06:01]*** Cut start [14:06:01]*** Partial cut [14:06:01]*** CUTSNS_PIN = 1 [14:06:01]*** CUTSNS_PIN = 0 [14:06:02]*** Brake cut motor [14:06:02]Read from MH i2c: 01 [14:06:02]MH_I2C_Read... [14:06:02]*** Stop cut motor [14:06:02]*** Cut end [14:06:02]Read from MH i2c: 01 07 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [14:06:02]process_action close_receipt done [14:06:02]requested_data is exist [14:06:02]produce_requested_data [14:06:02]requested_item fm.sn is exist - process it [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 11 00 00 [14:06:02]Write to MH i2c: E2 08 00 02 07 80 11 00 00 00 00 00 00 83 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 17 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 17 00 02 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [14:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:06:02]wFMCommunicate OK [14:06:02]requested_item fd.num is exist - process it [14:06:02]SAM_PROTO_GetFieldsCounters [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 13 00 00 [14:06:02]Write to MH i2c: E2 08 00 03 07 80 13 00 00 00 00 00 00 86 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 62 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 62 00 03 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D7 DB 02 00 0E 04 04 00 88 02 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 B2 [14:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D7 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:02]wFMCommunicate OK [14:06:02]SAM_PROTO_GetFieldsCounters done [14:06:02]requested_item shift.num is exist - process it [14:06:02]requested_item shift.opened is exist - process it [14:06:02]req_shift_opened [14:06:02]FM_GetShiftState [14:06:02]SAM_PROTO_GetShiftState [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 13 01 00 [14:06:02]Write to MH i2c: E2 08 00 04 07 80 13 01 00 00 00 00 00 88 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 04 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DA [14:06:02]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:06:02]wFMCommunicate OK [14:06:02]SAM_PROTO_GetShiftState done [14:06:02]FM_GetShiftState done [14:06:02]req_shift_opened done [14:06:02]requested_item shift.open_date is exist - process it [14:06:02]req_shift_open_date [14:06:02]req_shift_open_date done [14:06:02]produce_requested_data done [14:06:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187351,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:06:02]process_action_free close_receipt [14:06:02]json_value_free [14:06:02]json_value_free done [14:06:02]process_json_proto returns [14:06:02]Send response to host [14:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187351,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:06:02]free response buf [14:06:02]execute_script done [14:06:02]execute_script returns [14:06:02]free content buf [14:06:02]Sock 7.Close socket [14:06:02]Sock 7.Thread stoped [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:10:59]accept exits with 9 [14:10:59]New connection [14:10:59]New thread 3067420004 created [14:10:59]Thread 3067276644 joined [14:10:59]Waiting for new connection... [14:10:59] Sock 9.Parse request [14:10:59]Sock 9.Check first char [14:10:59]Sock 9.First char is OK [14:10:59]request: POST /json_proto HTTP/1.0 [14:10:59]Method: POST [14:10:59]URL: /json_proto [14:10:59]Method is POST - this is cgi request [14:10:59]url: /json_proto [14:10:59]query_string will be loaded in cgi processing [14:10:59]execute_cgi json_proto POST (null) [14:10:59]execute_cgi path=json_proto method=POST [14:10:59]POST find Content-Length [14:10:59]Host: 172.17.46.131:8080 [14:10:59]Content-Length: 754 [14:10:59]Content-Type: application/json [14:10:59] [14:10:59]POST finish read [14:10:59]Found Content-Length = 754 [14:10:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30078077", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:59]execute_script... [14:10: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)412510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30078077", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:59]POST & json_proto [14:10:59]process_json_proto [14:10:59]json parsed OK: [14:10:59]protocol is kg_v1.0 [14:10:59]action value=close_receipt [14:10:59]process_action close_receipt [14:10:59]cmd_close_receipt [14:10:59]MH_GetDate [14:10:59]Write to MH i2c: F0 00 00 05 07 FB [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: F0 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: F0 09 00 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: F0 09 00 05 07 00 F4 37 B7 67 7E 41 4F 65 C0 [14:10:59]GetLastDocTimeStamp 1740060359 [14:10:59]current date 1740060660 [14:10:59]FM_GetShiftState [14:10:59]SAM_PROTO_GetShiftState [14:10:59]wFMCommunicate request_size=4 [14:10:59]MH_SAM_APDU [14:10:59]CAPDU: 80 13 01 00 [14:10:59]Write to MH i2c: E2 08 00 06 07 80 13 01 00 00 00 00 00 8A [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:59]Read from MH i2c: E2 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 0E 00 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 0E 00 06 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DC [14:10:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:10:59]wFMCommunicate OK [14:10:59]SAM_PROTO_GetShiftState done [14:10:59]FM_GetShiftState done [14:10:59]opened in 1740011697 [14:10:59]opened+sec_in_day 1740098097 [14:10:59]quantity*price = 0 [14:10:59]sum+1 = 1 [14:10:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 153 20.02.2025 14:11 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30078077 ФМ: 0000000000871826 ФД: 187352 ФПД: 279466035738383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T141100&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187352&fm=279466035738383&tin=02508201610067®Number=0000000000091857&sum=0 [14:11:00]StoreToDocumentArchive [14:11:00]shift 648 fd 187352 [14:11:00]save to /storage/0648/doc_00187352 [14:11:00]save last doc name /storage/0648/doc_00187352 to /storage/kkm_last_doc_name [14:11:00]save OK [14:11:00]Clear old archive folders... [14:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:00]tlvbuf is 00E19090 [14:11:00]SAM_PROTO_ClearQueue [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 09 00 00 [14:11:00]Write to MH i2c: E2 08 00 13 07 80 09 00 00 00 00 00 00 8C [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_ClearQueue done [14:11:00]KKMCreateOFDPacket [14:11:00]OFDProtocolAddRootSTLVToBuf [14:11:00]FM_MakeSignedData [14:11:00]FM_MakeSignedData [14:11:00]SAM_PROTO_SignData [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 01 02 [14:11:00]Write to MH i2c: E2 08 00 14 07 80 0D 01 02 00 00 00 00 94 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=255 [14:11:00]MH_SAM_APDU [14:11: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 F4 37 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DB 02 00 35 04 06 00 FE [14:11:00]Write to MH i2c: E2 02 01 15 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 F4 37 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DB 02 00 35 04 06 00 FE 00 00 2D [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=10 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 02 02 05 2C 41 C9 77 0F [14:11:00]Write to MH i2c: E2 0D 00 16 07 80 0D 02 02 05 00 2C 41 C9 77 0F 00 00 5D [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 03 02 [14:11:00]Write to MH i2c: E2 08 00 17 07 80 0D 03 02 00 00 00 00 99 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0B 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0B 00 17 07 00 77 A9 F8 AD C1 0C F3 AE 90 00 CD [14:11:00]RAPDU: 77 A9 F8 AD C1 0C F3 AE 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_SignData done [14:11:00]FM_MakeSignedData done [14:11:00]CreateOFDProtocolMessage [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 11 00 00 [14:11:00]Write to MH i2c: E2 08 00 18 07 80 11 00 00 00 00 00 00 99 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 18 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EC [14:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:11:00]wFMCommunicate OK [14:11:00]CreateOFDProtocolMessage done [14:11:00]OFDSenderStorePacket 187352 [14:11:00]StoreOFDPacket docnum=187352 [14:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F 0D 07 01 48 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 F4 37 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DB 02 00 35 04 06 00 FE 2C 41 C9 77 0F 77 A9 F8 AD C1 0C F3 AE [14:11:00]CheckFolder [14:11:00]dirname=/storage/ofd_packets [14:11:00]CheckFolder done [14:11:00]ProducePacketName [14:11:00]name=ofd_packets/00187352 [14:11:00]NVStorageSaveData ofd_packets/00187352 [14:11:00]File name is /storage/ofd_packets/00187352 [14:11:00]Write 301 bytes [14:11:00]NVStorageSaveData done [14:11:00]OFDSenderStorePacket done [14:11:00]KKMCreateOFDPacket done [14:11:00]NVStorageSaveData kkm_last_timestamp [14:11:00]File name is /storage/kkm_last_timestamp [14:11:00]Write 4 bytes [14:11:00]NVStorageSaveData done [14:11:00]ExternCall_PrintAddStr [14:11:00]wPrintStart [14:11:00]Write to MH i2c: 01 00 00 19 07 20 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 19 07 00 00 00 00 00 FF 0F 35 [14:11:00]RasterBufferAndPrint [14:11:00]line Счет N : (1)412510 [14:11:00]line ИНН: 02508201610067 [14:11:00]line Контрольно-Кассовый Чек [14:11:00]line ПРОДАЖА [14:11:00]line ТРК (МРК, ГНК) : 42 [14:11:00]line Товар: 2710124130 [14:11:00]line Аи-92-К-2 [14:11:00]line 20.000 * 0.00 [14:11:00]line = 0.00 [14:11:00]line НДС 12% НСП 1% [14:11:00]line > о реализуемом товаре [14:11:00]line ИТОГО: 0.00 [14:11:00]line НСП 1% : 0.00 [14:11:00]line НДС 12% : 0.00 [14:11:00]line Наличными: 0.00 [14:11:00]line Безнал.: 0.00 [14:11:00]line Место: АЗС № 92 "Партнер Нефть" [14:11:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:11:00]line СНО: Общий режим [14:11:00]line Чек 153 20.02.2025 14:11 [14:11:00]line Смена: 648 ФФД: 1.0 [14:11:00]line ЗНМ: 0300000118 [14:11:00]line РНМ: 0000000000091857 [14:11:00]line Версия ККМ: 001 [14:11:00]line Талоны: ТК ГПНА Online [14:11:00]line 30078077 [14:11:00]line ФМ: 0000000000871826 [14:11:00]line ФД: 187352 [14:11:00]line ФПД: 279466035738383 [14:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T141100&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187352&fm=279466035738383&tin=02508201610067®Number=0000000000091857&sum=0 [14:11:00]written 0, free lines is 4095 [14:11:00]OFD Sender: Processing packet 187352 [packets to send 49, broken 48] [14:11:00]ProducePacketName [14:11:00]name=ofd_packets/00187352 [14:11:01]OFD Sender: To server: pG, [14:11:01]CommunicateWithHost lk.salyk.kg:30040 [14:11:01]ConnectInit lk.salyk.kg [14:11:01]Write to MH i2c: 01 00 00 43 07 4A [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 07 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 07 00 43 07 00 00 00 00 00 04 0D 62 [14:11:01]RasterBufferAndPrint [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]written 0, free lines is 3338 [14:11:01]MH_Cut [14:11:01]Write to MH i2c: D1 01 00 4A 07 01 23 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 01 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 01 00 4A 07 00 22 [14:11:01]Write to MH i2c: 01 00 00 4B 07 52 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Connected sock=10 [14:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F 0D 07 01 48 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 F4 37 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DB 02 00 35 04 06 00 FE 2C 41 C9 77 0F 77 A9 F8 AD C1 0C F3 AE [14:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 54 42 47 00 CD 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DB 02 00 F4 03 04 00 44 DE B6 67 B6 04 01 00 00 4D 67 A7 5A 8D 17 4E 6C [14:11:01]CommunicateWithHost err = 0 [14:11:01]CheckOFDResponse [14:11:01]1017 (14) - 77093643461234 [14:11:01]1041 (16) - 0000000000871826 [14:11:01]1040 (4) - 187352 [14:11:01]1012 (4) - 20.02.2025 07:48 [14:11:01]1206 (1) - 0 [14:11:01]OFD Sender: Remove packet 187352 [14:11:01]ProducePacketName [14:11:01]name=ofd_packets/00187352 [14:11:01]NVStorageDeleteData [14:11:02]*** Cut start [14:11:02]*** Partial cut [14:11:02]*** CUTSNS_PIN = 1 [14:11:02]*** CUTSNS_PIN = 0 [14:11:02]OFD Sender: No OFD packet to send [14:11:02]*** Brake cut motor [14:11:02]Read from MH i2c: 01 [14:11:02]MH_I2C_Read... [14:11:02]*** Stop cut motor [14:11:02]*** Cut end [14:11:02]Read from MH i2c: 01 07 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 FF 0F 67 [14:11:02]process_action close_receipt done [14:11:02]requested_data is exist [14:11:02]produce_requested_data [14:11:02]requested_item fm.sn is exist - process it [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 11 00 00 [14:11:02]Write to MH i2c: E2 08 00 4C 07 80 11 00 00 00 00 00 00 CD [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 4C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [14:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:11:02]wFMCommunicate OK [14:11:02]requested_item fd.num is exist - process it [14:11:02]SAM_PROTO_GetFieldsCounters [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 13 00 00 [14:11:02]Write to MH i2c: E2 08 00 4D 07 80 13 00 00 00 00 00 00 D0 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 62 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 62 00 4D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D8 DB 02 00 0E 04 04 00 88 02 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 00 [14:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D8 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:02]wFMCommunicate OK [14:11:02]SAM_PROTO_GetFieldsCounters done [14:11:02]requested_item shift.num is exist - process it [14:11:02]requested_item shift.opened is exist - process it [14:11:02]req_shift_opened [14:11:02]FM_GetShiftState [14:11:02]SAM_PROTO_GetShiftState [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 13 01 00 [14:11:02]Write to MH i2c: E2 08 00 4E 07 80 13 01 00 00 00 00 00 D2 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0E 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0E 00 4E 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 24 [14:11:03]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_GetShiftState done [14:11:03]FM_GetShiftState done [14:11:03]req_shift_opened done [14:11:03]requested_item shift.open_date is exist - process it [14:11:03]req_shift_open_date [14:11:03]req_shift_open_date done [14:11:03]produce_requested_data done [14:11:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187352,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:11:03]process_action_free close_receipt [14:11:03]json_value_free [14:11:03]json_value_free done [14:11:03]process_json_proto returns [14:11:03]Send response to host [14:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187352,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:11:03]free response buf [14:11:03]execute_script done [14:11:03]execute_script returns [14:11:03]free content buf [14:11:03]Sock 9.Close socket [14:11:03]Sock 9.Thread stoped [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:45]accept exits with 7 [14:11:45]New connection [14:11:45]New thread 3067276644 created [14:11:45]Thread 3067420004 joined [14:11:45]Waiting for new connection... [14:11:45] Sock 7.Parse request [14:11:45]Sock 7.Check first char [14:11:45]Sock 7.First char is OK [14:11:45]request: POST /json_proto HTTP/1.0 [14:11:45]Method: POST [14:11:45]URL: /json_proto [14:11:45]Method is POST - this is cgi request [14:11:45]url: /json_proto [14:11:45]query_string will be loaded in cgi processing [14:11:45]execute_cgi json_proto POST (null) [14:11:45]execute_cgi path=json_proto method=POST [14:11:45]POST find Content-Length [14:11:45]Host: 172.17.46.131:8080 [14:11:45]Content-Length: 677 [14:11:45]Content-Type: application/json [14:11:45] [14:11:45]POST finish read [14:11:45]Found Content-Length = 677 [14:11:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [14:11:45]execute_script... [14:11: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)412511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [14:11:45]POST & json_proto [14:11:45]process_json_proto [14:11:45]json parsed OK: [14:11:45]protocol is kg_v1.0 [14:11:45]action value=close_receipt [14:11:45]process_action close_receipt [14:11:45]cmd_close_receipt [14:11:45]MH_GetDate [14:11:45]Write to MH i2c: F0 00 00 4F 07 45 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: F0 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: F0 09 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: F0 09 00 4F 07 00 22 38 B7 67 7E 41 4F 65 39 [14:11:45]GetLastDocTimeStamp 1740060660 [14:11:45]current date 1740060706 [14:11:45]FM_GetShiftState [14:11:45]SAM_PROTO_GetShiftState [14:11:45]wFMCommunicate request_size=4 [14:11:45]MH_SAM_APDU [14:11:45]CAPDU: 80 13 01 00 [14:11:45]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:45]Read from MH i2c: E2 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 0E 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 26 [14:11:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:11:45]wFMCommunicate OK [14:11:45]SAM_PROTO_GetShiftState done [14:11:45]FM_GetShiftState done [14:11:45]opened in 1740011697 [14:11:45]opened+sec_in_day 1740098097 [14:11:45]quantity*price = 50042 [14:11:45]sum+1 = 50043 [14:11:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 154 20.02.2025 14:11 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187353 ФПД: 173836878513113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T141146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187353&fm=173836878513113&tin=02508201610067®Number=0000000000091857&sum=50000 [14:11:46]StoreToDocumentArchive [14:11:46]shift 648 fd 187353 [14:11:46]save to /storage/0648/doc_00187353 [14:11:46]save last doc name /storage/0648/doc_00187353 to /storage/kkm_last_doc_name [14:11:46]save OK [14:11:46]Clear old archive folders... [14:11:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:46]tlvbuf is 00E06500 [14:11:46]SAM_PROTO_ClearQueue [14:11:46]wFMCommunicate request_size=4 [14:11:46]MH_SAM_APDU [14:11:46]CAPDU: 80 09 00 00 [14:11:46]Write to MH i2c: E2 08 00 5D 07 80 09 00 00 00 00 00 00 D6 [14:11:46]Write i2c OK [14:11:46]MH_I2C_Read... [14:11:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:46]Read from MH i2c: E2 [14:11:46]MH_I2C_Read... [14:11:46]Read from MH i2c: E2 03 00 [14:11:46]MH_I2C_Read... [14:11:46]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [14:11:46]RAPDU: 90 00 [14:11:46]wFMCommunicate OK [14:11:46]SAM_PROTO_ClearQueue done [14:11:46]KKMCreateOFDPacket [14:11:46]OFDProtocolAddRootSTLVToBuf [14:11:46]FM_MakeSignedData [14:11:46]FM_MakeSignedData [14:11:46]SAM_PROTO_SignData [14:11:46]wFMCommunicate request_size=4 [14:11:46]MH_SAM_APDU [14:11:46]CAPDU: 80 0D 01 02 [14:11:46]Write to MH i2c: E2 08 00 5E 07 80 0D 01 02 00 00 00 00 DE [14:11:46]Write i2c OK [14:11:46]MH_I2C_Read... [14:11:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:46]Read from MH i2c: E2 [14:11:46]MH_I2C_Read... [14:11:46]Read from MH i2c: E2 03 00 [14:11:46]MH_I2C_Read... [14:11:46]Read from MH i2c: E2 03 00 5E 07 00 90 00 D9 [14:11:46]RAPDU: 90 00 [14:11:46]wFMCommunicate OK [14:11:46]wFMCommunicate request_size=255 [14:11:46]MH_SAM_APDU [14:11:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 9A 00 00 00 F4 03 04 00 22 38 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DB 02 00 35 04 06 00 9E [14:11:46]Write to MH i2c: E2 02 01 5F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 9A 00 00 00 F4 03 04 00 22 38 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DB 02 00 35 04 06 00 9E 00 00 53 [14:11:46]Write i2c OK [14:11:46]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 03 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [14:11:47]RAPDU: 90 00 [14:11:47]wFMCommunicate OK [14:11:47]wFMCommunicate request_size=10 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 0D 02 02 05 1A 8D 64 83 D9 [14:11:47]Write to MH i2c: E2 0D 00 60 07 80 0D 02 02 05 00 1A 8D 64 83 D9 00 00 52 [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 03 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [14:11:47]RAPDU: 90 00 [14:11:47]wFMCommunicate OK [14:11:47]wFMCommunicate request_size=4 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 0D 03 02 [14:11:47]Write to MH i2c: E2 08 00 61 07 80 0D 03 02 00 00 00 00 E3 [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]OFD Sender: No OFD packet to send [14:11:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 0B 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 0B 00 61 07 00 F2 30 71 51 7E 30 5E 9A 90 00 6E [14:11:47]RAPDU: F2 30 71 51 7E 30 5E 9A 90 00 [14:11:47]wFMCommunicate OK [14:11:47]SAM_PROTO_SignData done [14:11:47]FM_MakeSignedData done [14:11:47]CreateOFDProtocolMessage [14:11:47]wFMCommunicate request_size=4 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 11 00 00 [14:11:47]Write to MH i2c: E2 08 00 62 07 80 11 00 00 00 00 00 00 E3 [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 17 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 17 00 62 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 36 [14:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:11:47]wFMCommunicate OK [14:11:47]CreateOFDProtocolMessage done [14:11:47]OFDSenderStorePacket 187353 [14:11:47]StoreOFDPacket docnum=187353 [14:11:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3D E4 07 01 4F 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 9A 00 00 00 F4 03 04 00 22 38 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DB 02 00 35 04 06 00 9E 1A 8D 64 83 D9 F2 30 71 51 7E 30 5E 9A [14:11:47]CheckFolder [14:11:47]dirname=/storage/ofd_packets [14:11:47]CheckFolder done [14:11:47]ProducePacketName [14:11:47]name=ofd_packets/00187353 [14:11:47]NVStorageSaveData ofd_packets/00187353 [14:11:47]File name is /storage/ofd_packets/00187353 [14:11:47]Write 301 bytes [14:11:47]NVStorageSaveData done [14:11:47]OFDSenderStorePacket done [14:11:47]KKMCreateOFDPacket done [14:11:47]NVStorageSaveData kkm_last_timestamp [14:11:47]File name is /storage/kkm_last_timestamp [14:11:47]Write 4 bytes [14:11:47]NVStorageSaveData done [14:11:47]ExternCall_PrintAddStr [14:11:47]wPrintStart [14:11:47]Write to MH i2c: 01 00 00 63 07 6A [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: 01 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: 01 07 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 FF 0F 7F [14:11:47]RasterBufferAndPrint [14:11:47]line Счет N : (1)412511 [14:11:47]line ИНН: 02508201610067 [14:11:47]line Контрольно-Кассовый Чек [14:11:47]line ПРОДАЖА [14:11:47]line ТРК (МРК, ГНК) : 23 [14:11:47]line Товар: 2710124500 [14:11:47]line Аи-95-К-5 [14:11:47]line 6.960 * 71.90 [14:11:47]line = 500.42 [14:11:47]line НДС 12% НСП 1% [14:11:47]line > о реализуемом товаре [14:11:47]line ОКРУГЛЕНИЕ: -0.42 [14:11:47]line ИТОГО: 500.00 [14:11:47]line Внесено: 500.00 [14:11:47]line СДАЧА: 0.00 [14:11:47]line НСП 1% : 4.43 [14:11:47]line НДС 12% : 53.14 [14:11:47]line Наличными: 500.00 [14:11:47]line Безнал.: 0.00 [14:11:47]line Место: АЗС № 92 "Партнер Нефть" [14:11:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:11:47]line СНО: Общий режим [14:11:47]line Чек 154 20.02.2025 14:11 [14:11:47]line Смена: 648 ФФД: 1.0 [14:11:47]line ЗНМ: 0300000118 [14:11:47]line РНМ: 0000000000091857 [14:11:47]line Версия ККМ: 001 [14:11:47]line ФМ: 0000000000871826 [14:11:47]line ФД: 187353 [14:11:47]line ФПД: 173836878513113 [14:11:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T141146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187353&fm=173836878513113&tin=02508201610067®Number=0000000000091857&sum=50000 [14:11:47]OFD Sender: Processing packet 187353 [packets to send 49, broken 48] [14:11:47]ProducePacketName [14:11:47]name=ofd_packets/00187353 [14:11:47]OFD Sender: To server: pG, [14:11:47]CommunicateWithHost lk.salyk.kg:30040 [14:11:47]ConnectInit lk.salyk.kg [14:11:47]written 0, free lines is 4095 [14:11:47]Connected sock=10 [14:11:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3D E4 07 01 4F 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 9A 00 00 00 F4 03 04 00 22 38 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DB 02 00 35 04 06 00 9E 1A 8D 64 83 D9 F2 30 71 51 7E 30 5E 9A [14:11:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A5 D3 47 00 DC 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DB 02 00 F4 03 04 00 73 DE B6 67 B6 04 01 00 00 4F 71 55 1B 7C B0 4D 90 [14:11:48]CommunicateWithHost err = 0 [14:11:48]CheckOFDResponse [14:11:48]1017 (14) - 77093643461234 [14:11:48]1041 (16) - 0000000000871826 [14:11:48]1040 (4) - 187353 [14:11:48]1012 (4) - 20.02.2025 07:49 [14:11:48]1206 (1) - 0 [14:11:48]OFD Sender: Remove packet 187353 [14:11:48]ProducePacketName [14:11:48]name=ofd_packets/00187353 [14:11:48]NVStorageDeleteData [14:11:48]Write to MH i2c: 01 00 00 8E 07 95 [14:11:48]Write i2c OK [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: 01 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: 01 07 00 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: 01 07 00 8E 07 00 00 00 00 00 FA 0C A2 [14:11:48]RasterBufferAndPrint [14:11:48]line [14:11:48]line [14:11:48]line [14:11:48]line [14:11:48]line [14:11:48]written 0, free lines is 3328 [14:11:48]MH_Cut [14:11:48]Write to MH i2c: D1 01 00 95 07 01 6E [14:11:48]Write i2c OK [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: D1 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: D1 01 00 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: D1 01 00 95 07 00 6D [14:11:48]Write to MH i2c: 01 00 00 96 07 9D [14:11:48]Write i2c OK [14:11:48]MH_I2C_Read... [14:11:48]OFD Sender: No OFD packet to send [14:11:48]*** Cut start [14:11:48]*** Partial cut [14:11:48]*** CUTSNS_PIN = 1 [14:11:48]*** CUTSNS_PIN = 0 [14:11:49]*** Brake cut motor [14:11:49]Read from MH i2c: 01 [14:11:49]MH_I2C_Read... [14:11:49]*** Stop cut motor [14:11:49]*** Cut end [14:11:49]Read from MH i2c: 01 07 00 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 07 00 96 07 00 00 00 00 00 FF 0F B2 [14:11:49]process_action close_receipt done [14:11:49]requested_data is exist [14:11:49]produce_requested_data [14:11:49]requested_item fm.sn is exist - process it [14:11:49]wFMCommunicate request_size=4 [14:11:49]MH_SAM_APDU [14:11:49]CAPDU: 80 11 00 00 [14:11:49]Write to MH i2c: E2 08 00 97 07 80 11 00 00 00 00 00 00 18 [14:11:49]Write i2c OK [14:11:49]MH_I2C_Read... [14:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:49]Read from MH i2c: E2 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: E2 17 00 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: E2 17 00 97 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [14:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:11:49]wFMCommunicate OK [14:11:49]requested_item fd.num is exist - process it [14:11:49]SAM_PROTO_GetFieldsCounters [14:11:49]wFMCommunicate request_size=4 [14:11:49]MH_SAM_APDU [14:11:49]CAPDU: 80 13 00 00 [14:11:49]Write to MH i2c: E2 08 00 98 07 80 13 00 00 00 00 00 00 1B [14:11:49]Write i2c OK [14:11:49]MH_I2C_Read... [14:11:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:49]Read from MH i2c: E2 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: E2 62 00 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: E2 62 00 98 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D9 DB 02 00 0E 04 04 00 88 02 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 4F [14:11:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D9 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:49]wFMCommunicate OK [14:11:49]SAM_PROTO_GetFieldsCounters done [14:11:49]requested_item shift.num is exist - process it [14:11:49]requested_item shift.opened is exist - process it [14:11:49]req_shift_opened [14:11:49]FM_GetShiftState [14:11:49]SAM_PROTO_GetShiftState [14:11:49]wFMCommunicate request_size=4 [14:11:49]MH_SAM_APDU [14:11:49]CAPDU: 80 13 01 00 [14:11:49]Write to MH i2c: E2 08 00 99 07 80 13 01 00 00 00 00 00 1D [14:11:49]Write i2c OK [14:11:49]MH_I2C_Read... [14:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:49]Read from MH i2c: E2 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: E2 0E 00 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: E2 0E 00 99 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6F [14:11:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:11:49]wFMCommunicate OK [14:11:49]SAM_PROTO_GetShiftState done [14:11:49]FM_GetShiftState done [14:11:49]req_shift_opened done [14:11:49]requested_item shift.open_date is exist - process it [14:11:49]req_shift_open_date [14:11:49]req_shift_open_date done [14:11:49]produce_requested_data done [14:11:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187353,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:11:49]process_action_free close_receipt [14:11:49]json_value_free [14:11:49]json_value_free done [14:11:49]process_json_proto returns [14:11:49]Send response to host [14:11:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187353,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:11:49]free response buf [14:11:49]execute_script done [14:11:49]execute_script returns [14:11:49]free content buf [14:11:49]Sock 7.Close socket [14:11:49]Sock 7.Thread stoped [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:11]accept exits with 9 [14:16:11]New connection [14:16:11]New thread 3067420004 created [14:16:11]Thread 3067276644 joined [14:16:11]Waiting for new connection... [14:16:11] Sock 9.Parse request [14:16:11]Sock 9.Check first char [14:16:11]Sock 9.First char is OK [14:16:11]request: POST /json_proto HTTP/1.0 [14:16:11]Method: POST [14:16:11]URL: /json_proto [14:16:11]Method is POST - this is cgi request [14:16:11]url: /json_proto [14:16:11]query_string will be loaded in cgi processing [14:16:11]execute_cgi json_proto POST (null) [14:16:11]execute_cgi path=json_proto method=POST [14:16:11]POST find Content-Length [14:16:11]Host: 172.17.46.131:8080 [14:16:11]Content-Length: 674 [14:16:11]Content-Type: application/json [14:16:11] [14:16:11]POST finish read [14:16:11]Found Content-Length = 674 [14:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:11]execute_script... [14:16: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)412512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:11]POST & json_proto [14:16:11]process_json_proto [14:16:11]json parsed OK: [14:16:11]protocol is kg_v1.0 [14:16:11]action value=close_receipt [14:16:11]process_action close_receipt [14:16:11]cmd_close_receipt [14:16:11]MH_GetDate [14:16:11]Write to MH i2c: F0 00 00 9A 07 90 [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: F0 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: F0 09 00 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: F0 09 00 9A 07 00 2C 39 B7 67 7E 41 4F 65 8F [14:16:11]GetLastDocTimeStamp 1740060706 [14:16:11]current date 1740060972 [14:16:11]FM_GetShiftState [14:16:11]SAM_PROTO_GetShiftState [14:16:11]wFMCommunicate request_size=4 [14:16:11]MH_SAM_APDU [14:16:11]CAPDU: 80 13 01 00 [14:16:11]Write to MH i2c: E2 08 00 9B 07 80 13 01 00 00 00 00 00 1F [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:11]Read from MH i2c: E2 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: E2 0E 00 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: E2 0E 00 9B 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 71 [14:16:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:16:11]wFMCommunicate OK [14:16:11]SAM_PROTO_GetShiftState done [14:16:11]FM_GetShiftState done [14:16:11]opened in 1740011697 [14:16:11]opened+sec_in_day 1740098097 [14:16:11]quantity*price = 50021 [14:16:11]sum+1 = 50022 [14:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 155 20.02.2025 14:16 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187354 ФПД: 58169600420999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T141612&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187354&fm=58169600420999&tin=02508201610067®Number=0000000000091857&sum=50000 [14:16:12]StoreToDocumentArchive [14:16:12]shift 648 fd 187354 [14:16:12]save to /storage/0648/doc_00187354 [14:16:12]save last doc name /storage/0648/doc_00187354 to /storage/kkm_last_doc_name [14:16:12]save OK [14:16:12]Clear old archive folders... [14:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:16:12]tlvbuf is 00DDCF50 [14:16:12]SAM_PROTO_ClearQueue [14:16:12]wFMCommunicate request_size=4 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 09 00 00 [14:16:12]Write to MH i2c: E2 08 00 A8 07 80 09 00 00 00 00 00 00 21 [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 A8 07 00 90 00 23 [14:16:12]RAPDU: 90 00 [14:16:12]wFMCommunicate OK [14:16:12]SAM_PROTO_ClearQueue done [14:16:12]KKMCreateOFDPacket [14:16:12]OFDProtocolAddRootSTLVToBuf [14:16:12]FM_MakeSignedData [14:16:12]FM_MakeSignedData [14:16:12]SAM_PROTO_SignData [14:16:12]wFMCommunicate request_size=4 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 0D 01 02 [14:16:12]Write to MH i2c: E2 08 00 A9 07 80 0D 01 02 00 00 00 00 29 [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 A9 07 00 90 00 24 [14:16:12]RAPDU: 90 00 [14:16:12]wFMCommunicate OK [14:16:12]wFMCommunicate request_size=255 [14:16:12]MH_SAM_APDU [14:16: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 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2C 39 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DB 02 00 35 04 06 00 34 E7 AA 5E [14:16:12]Write to MH i2c: E2 02 01 AA 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 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2C 39 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DB 02 00 35 04 06 00 34 E7 AA 5E 00 00 64 [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 03 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [14:16:13]RAPDU: 90 00 [14:16:13]wFMCommunicate OK [14:16:13]wFMCommunicate request_size=7 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 0D 02 02 02 AC 87 [14:16:13]Write to MH i2c: E2 0A 00 AB 07 80 0D 02 02 02 00 AC 87 00 00 63 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 03 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [14:16:13]RAPDU: 90 00 [14:16:13]wFMCommunicate OK [14:16:13]wFMCommunicate request_size=4 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 0D 03 02 [14:16:13]Write to MH i2c: E2 08 00 AC 07 80 0D 03 02 00 00 00 00 2E [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 0B 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 0B 00 AC 07 00 2D E4 30 95 BF 01 18 68 90 00 45 [14:16:13]RAPDU: 2D E4 30 95 BF 01 18 68 90 00 [14:16:13]wFMCommunicate OK [14:16:13]SAM_PROTO_SignData done [14:16:13]FM_MakeSignedData done [14:16:13]CreateOFDProtocolMessage [14:16:13]wFMCommunicate request_size=4 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 11 00 00 [14:16:13]Write to MH i2c: E2 08 00 AD 07 80 11 00 00 00 00 00 00 2E [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 17 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 17 00 AD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [14:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:16:13]wFMCommunicate OK [14:16:13]CreateOFDProtocolMessage done [14:16:13]OFDSenderStorePacket 187354 [14:16:13]StoreOFDPacket docnum=187354 [14:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F9 9B 04 01 A3 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2C 39 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DB 02 00 35 04 06 00 34 E7 AA 5E AC 87 2D E4 30 95 BF 01 18 68 [14:16:13]CheckFolder [14:16:13]dirname=/storage/ofd_packets [14:16:13]CheckFolder done [14:16:13]ProducePacketName [14:16:13]name=ofd_packets/00187354 [14:16:13]NVStorageSaveData ofd_packets/00187354 [14:16:13]File name is /storage/ofd_packets/00187354 [14:16:13]Write 298 bytes [14:16:13]NVStorageSaveData done [14:16:13]OFDSenderStorePacket done [14:16:13]KKMCreateOFDPacket done [14:16:13]NVStorageSaveData kkm_last_timestamp [14:16:13]File name is /storage/kkm_last_timestamp [14:16:13]Write 4 bytes [14:16:13]NVStorageSaveData done [14:16:13]ExternCall_PrintAddStr [14:16:13]wPrintStart [14:16:13]Write to MH i2c: 01 00 00 AE 07 B5 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 FF 0F CA [14:16:13]RasterBufferAndPrint [14:16:13]line Счет N : (1)412512 [14:16:13]line ИНН: 02508201610067 [14:16:13]line Контрольно-Кассовый Чек [14:16:13]line ПРОДАЖА [14:16:13]line ТРК (МРК, ГНК) : 41 [14:16:13]line Товар: 2710194210 [14:16:13]line ДТ-К-2 [14:16:13]line 6.890 * 72.60 [14:16:13]line = 500.21 [14:16:13]line НДС 12% НСП 1% [14:16:13]line > о реализуемом товаре [14:16:13]line ОКРУГЛЕНИЕ: -0.21 [14:16:13]line ИТОГО: 500.00 [14:16:13]line Внесено: 500.00 [14:16:13]line СДАЧА: 0.00 [14:16:13]line НСП 1% : 4.43 [14:16:13]line НДС 12% : 53.12 [14:16:13]line Наличными: 500.00 [14:16:13]line Безнал.: 0.00 [14:16:13]line Место: АЗС № 92 "Партнер Нефть" [14:16:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:16:13]line СНО: Общий режим [14:16:13]line Чек 155 20.02.2025 14:16 [14:16:13]line Смена: 648 ФФД: 1.0 [14:16:13]line ЗНМ: 0300000118 [14:16:13]line РНМ: 0000000000091857 [14:16:13]line Версия ККМ: 001 [14:16:13]line ФМ: 0000000000871826 [14:16:13]line ФД: 187354 [14:16:13]line ФПД: 58169600420999 [14:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T141612&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187354&fm=58169600420999&tin=02508201610067®Number=0000000000091857&sum=50000 [14:16:13]OFD Sender: Processing packet 187354 [packets to send 49, broken 48] [14:16:13]ProducePacketName [14:16:13]name=ofd_packets/00187354 [14:16:13]OFD Sender: To server: pG, [14:16:13]CommunicateWithHost lk.salyk.kg:30040 [14:16:13]ConnectInit lk.salyk.kg [14:16:13]written 0, free lines is 4095 [14:16:13]Connected sock=10 [14:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F9 9B 04 01 A3 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2C 39 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DB 02 00 35 04 06 00 34 E7 AA 5E AC 87 2D E4 30 95 BF 01 18 68 [14:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7A E4 47 00 F4 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 31 38 32 36 10 04 04 00 DA DB 02 00 F4 03 04 00 7D DF B6 67 B6 04 01 00 00 D6 A0 9E 62 98 35 E5 08 [14:16:13]CommunicateWithHost err = 0 [14:16:13]CheckOFDResponse [14:16:13]1017 (14) - 77093643461234 [14:16:13]1041 (16) - 0000000000871826 [14:16:13]1040 (4) - 187354 [14:16:13]1012 (4) - 20.02.2025 07:53 [14:16:13]1206 (1) - 0 [14:16:13]OFD Sender: Remove packet 187354 [14:16:13]ProducePacketName [14:16:13]name=ofd_packets/00187354 [14:16:13]NVStorageDeleteData [14:16:13]Write to MH i2c: 01 00 00 D9 07 E0 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 01 0D F5 [14:16:13]RasterBufferAndPrint [14:16:13]line [14:16:13]line [14:16:13]line [14:16:13]line [14:16:13]line [14:16:13]written 0, free lines is 3335 [14:16:13]MH_Cut [14:16:13]Write to MH i2c: D1 01 00 E0 07 01 B9 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: D1 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: D1 01 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: D1 01 00 E0 07 00 B8 [14:16:13]Write to MH i2c: 01 00 00 E1 07 E8 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:14]OFD Sender: No OFD packet to send [14:16:14]*** Cut start [14:16:14]*** Partial cut [14:16:14]*** CUTSNS_PIN = 1 [14:16:14]*** CUTSNS_PIN = 0 [14:16:15]*** Brake cut motor [14:16:15]Read from MH i2c: 01 [14:16:15]MH_I2C_Read... [14:16:15]*** Stop cut motor [14:16:15]*** Cut end [14:16:15]Read from MH i2c: 01 07 00 [14:16:15]MH_I2C_Read... [14:16:15]Read from MH i2c: 01 07 00 E1 07 00 00 00 00 00 FF 0F FD [14:16:15]process_action close_receipt done [14:16:15]requested_data is exist [14:16:15]produce_requested_data [14:16:15]requested_item fm.sn is exist - process it [14:16:15]wFMCommunicate request_size=4 [14:16:15]MH_SAM_APDU [14:16:15]CAPDU: 80 11 00 00 [14:16:15]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [14:16:15]Write i2c OK [14:16:15]MH_I2C_Read... [14:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:15]Read from MH i2c: E2 [14:16:15]MH_I2C_Read... [14:16:15]Read from MH i2c: E2 17 00 [14:16:15]MH_I2C_Read... [14:16:15]Read from MH i2c: E2 17 00 E2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [14:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:16:15]wFMCommunicate OK [14:16:15]requested_item fd.num is exist - process it [14:16:15]SAM_PROTO_GetFieldsCounters [14:16:15]wFMCommunicate request_size=4 [14:16:15]MH_SAM_APDU [14:16:15]CAPDU: 80 13 00 00 [14:16:15]Write to MH i2c: E2 08 00 E3 07 80 13 00 00 00 00 00 00 66 [14:16:15]Write i2c OK [14:16:15]MH_I2C_Read... [14:16:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:15]Read from MH i2c: E2 [14:16:15]MH_I2C_Read... [14:16:15]Read from MH i2c: E2 62 00 [14:16:15]MH_I2C_Read... [14:16:15]Read from MH i2c: E2 62 00 E3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DA DB 02 00 0E 04 04 00 88 02 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 9E [14:16:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DA DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:15]wFMCommunicate OK [14:16:15]SAM_PROTO_GetFieldsCounters done [14:16:15]requested_item shift.num is exist - process it [14:16:15]requested_item shift.opened is exist - process it [14:16:15]req_shift_opened [14:16:15]FM_GetShiftState [14:16:15]SAM_PROTO_GetShiftState [14:16:15]wFMCommunicate request_size=4 [14:16:15]MH_SAM_APDU [14:16:15]CAPDU: 80 13 01 00 [14:16:15]Write to MH i2c: E2 08 00 E4 07 80 13 01 00 00 00 00 00 68 [14:16:15]Write i2c OK [14:16:15]MH_I2C_Read... [14:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:15]Read from MH i2c: E2 [14:16:15]MH_I2C_Read... [14:16:15]Read from MH i2c: E2 0E 00 [14:16:15]MH_I2C_Read... [14:16:15]Read from MH i2c: E2 0E 00 E4 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BA [14:16:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:16:15]wFMCommunicate OK [14:16:15]SAM_PROTO_GetShiftState done [14:16:15]FM_GetShiftState done [14:16:15]req_shift_opened done [14:16:15]requested_item shift.open_date is exist - process it [14:16:15]req_shift_open_date [14:16:15]req_shift_open_date done [14:16:15]produce_requested_data done [14:16:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187354,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:16:15]process_action_free close_receipt [14:16:15]json_value_free [14:16:15]json_value_free done [14:16:15]process_json_proto returns [14:16:15]Send response to host [14:16:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187354,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:16:15]free response buf [14:16:15]execute_script done [14:16:15]execute_script returns [14:16:15]free content buf [14:16:15]Sock 9.Close socket [14:16:15]Sock 9.Thread stoped [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:23]accept exits with 7 [14:18:23]New connection [14:18:23]New thread 3067276644 created [14:18:23]Thread 3067420004 joined [14:18:23]Waiting for new connection... [14:18:23] Sock 7.Parse request [14:18:23]Sock 7.Check first char [14:18:23]Sock 7.First char is OK [14:18:23]request: POST /json_proto HTTP/1.0 [14:18:23]Method: POST [14:18:23]URL: /json_proto [14:18:23]Method is POST - this is cgi request [14:18:23]url: /json_proto [14:18:23]query_string will be loaded in cgi processing [14:18:23]execute_cgi json_proto POST (null) [14:18:23]execute_cgi path=json_proto method=POST [14:18:23]POST find Content-Length [14:18:23]Host: 172.17.46.131:8080 [14:18:23]Content-Length: 792 [14:18:23]Content-Type: application/json [14:18:23] [14:18:23]POST finish read [14:18:23]Found Content-Length = 792 [14:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:23]execute_script... [14:18: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)412513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:23]POST & json_proto [14:18:23]process_json_proto [14:18:23]json parsed OK: [14:18:23]protocol is kg_v1.0 [14:18:23]action value=close_receipt [14:18:23]process_action close_receipt [14:18:23]cmd_close_receipt [14:18:23]MH_GetDate [14:18:23]Write to MH i2c: F0 00 00 E5 07 DB [14:18:23]Write i2c OK [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: F0 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: F0 09 00 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: F0 09 00 E5 07 00 AF 39 B7 67 7E 41 4F 65 5D [14:18:23]GetLastDocTimeStamp 1740060972 [14:18:23]current date 1740061103 [14:18:23]FM_GetShiftState [14:18:23]SAM_PROTO_GetShiftState [14:18:23]wFMCommunicate request_size=4 [14:18:23]MH_SAM_APDU [14:18:23]CAPDU: 80 13 01 00 [14:18:23]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [14:18:23]Write i2c OK [14:18:23]MH_I2C_Read... [14:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:23]Read from MH i2c: E2 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: E2 0E 00 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BC [14:18:23]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:18:23]wFMCommunicate OK [14:18:23]SAM_PROTO_GetShiftState done [14:18:23]FM_GetShiftState done [14:18:23]opened in 1740011697 [14:18:23]opened+sec_in_day 1740098097 [14:18:23]quantity*price = 0 [14:18:23]sum+1 = 1 [14:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 156 20.02.2025 14:18 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 68912 ФМ: 0000000000871826 ФД: 187355 ФПД: 134063742020614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T141824&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187355&fm=134063742020614&tin=02508201610067®Number=0000000000091857&sum=0 [14:18:24]StoreToDocumentArchive [14:18:24]shift 648 fd 187355 [14:18:24]save to /storage/0648/doc_00187355 [14:18:24]save last doc name /storage/0648/doc_00187355 to /storage/kkm_last_doc_name [14:18:24]save OK [14:18:24]Clear old archive folders... [14:18:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:24]tlvbuf is 00E52C60 [14:18:24]SAM_PROTO_ClearQueue [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 09 00 00 [14:18:24]Write to MH i2c: E2 08 00 F3 07 80 09 00 00 00 00 00 00 6C [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [14:18:24]RAPDU: 90 00 [14:18:24]wFMCommunicate OK [14:18:24]SAM_PROTO_ClearQueue done [14:18:24]KKMCreateOFDPacket [14:18:24]OFDProtocolAddRootSTLVToBuf [14:18:24]FM_MakeSignedData [14:18:24]FM_MakeSignedData [14:18:24]SAM_PROTO_SignData [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 0D 01 02 [14:18:24]Write to MH i2c: E2 08 00 F4 07 80 0D 01 02 00 00 00 00 74 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [14:18:24]RAPDU: 90 00 [14:18:24]wFMCommunicate OK [14:18:24]wFMCommunicate request_size=255 [14:18:24]MH_SAM_APDU [14:18: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B0 39 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB DB 02 00 35 04 06 00 79 [14:18:24]Write to MH i2c: E2 02 01 F5 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B0 39 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB DB 02 00 35 04 06 00 79 00 00 4C [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]OFD Sender: No OFD packet to send [14:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [14:18:24]RAPDU: 90 00 [14:18:24]wFMCommunicate OK [14:18:24]wFMCommunicate request_size=10 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 0D 02 02 05 EE 25 B8 6C 06 [14:18:24]Write to MH i2c: E2 0D 00 F6 07 80 0D 02 02 05 00 EE 25 B8 6C 06 00 00 BE [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [14:18:24]RAPDU: 90 00 [14:18:24]wFMCommunicate OK [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 0D 03 02 [14:18:24]Write to MH i2c: E2 08 00 F7 07 80 0D 03 02 00 00 00 00 79 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 0B 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 0B 00 F7 07 00 01 D4 39 6A 24 84 41 00 90 00 DB [14:18:24]RAPDU: 01 D4 39 6A 24 84 41 00 90 00 [14:18:24]wFMCommunicate OK [14:18:24]SAM_PROTO_SignData done [14:18:24]FM_MakeSignedData done [14:18:24]CreateOFDProtocolMessage [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 11 00 00 [14:18:24]Write to MH i2c: E2 08 00 F8 07 80 11 00 00 00 00 00 00 79 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 17 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 17 00 F8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CC [14:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:18:24]wFMCommunicate OK [14:18:24]CreateOFDProtocolMessage done [14:18:24]OFDSenderStorePacket 187355 [14:18:24]StoreOFDPacket docnum=187355 [14:18:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 95 E3 07 01 48 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B0 39 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB DB 02 00 35 04 06 00 79 EE 25 B8 6C 06 01 D4 39 6A 24 84 41 00 [14:18:24]CheckFolder [14:18:24]dirname=/storage/ofd_packets [14:18:24]CheckFolder done [14:18:24]ProducePacketName [14:18:24]name=ofd_packets/00187355 [14:18:24]NVStorageSaveData ofd_packets/00187355 [14:18:24]File name is /storage/ofd_packets/00187355 [14:18:24]Write 301 bytes [14:18:24]NVStorageSaveData done [14:18:24]OFDSenderStorePacket done [14:18:24]KKMCreateOFDPacket done [14:18:24]NVStorageSaveData kkm_last_timestamp [14:18:24]File name is /storage/kkm_last_timestamp [14:18:24]Write 4 bytes [14:18:24]NVStorageSaveData done [14:18:24]ExternCall_PrintAddStr [14:18:24]wPrintStart [14:18:24]Write to MH i2c: 01 00 00 F9 07 00 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: 01 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: 01 07 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [14:18:24]RasterBufferAndPrint [14:18:24]line Счет N : (1)412513 [14:18:24]line ИНН: 02508201610067 [14:18:24]line Контрольно-Кассовый Чек [14:18:24]line ПРОДАЖА [14:18:24]line ТРК (МРК, ГНК) : 12 [14:18:24]line Товар: 2710124130 [14:18:24]line Аи-92-К-2 [14:18:24]line 20.000 * 0.00 [14:18:24]line = 0.00 [14:18:24]line НДС 12% НСП 1% [14:18:24]line > о реализуемом товаре [14:18:24]line ИТОГО: 0.00 [14:18:24]line НСП 1% : 0.00 [14:18:24]line НДС 12% : 0.00 [14:18:24]line Наличными: 0.00 [14:18:24]line Безнал.: 0.00 [14:18:24]line Место: АЗС № 92 "Партнер Нефть" [14:18:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:18:24]line СНО: Общий режим [14:18:24]line Чек 156 20.02.2025 14:18 [14:18:24]line Смена: 648 ФФД: 1.0 [14:18:24]line ЗНМ: 0300000118 [14:18:24]line РНМ: 0000000000091857 [14:18:24]line Версия ККМ: 001 [14:18:24]line Талоны: Топливная Карта [14:18:24]line 68912 [14:18:24]line ФМ: 0000000000871826 [14:18:24]line ФД: 187355 [14:18:24]line ФПД: 134063742020614 [14:18:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T141824&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187355&fm=134063742020614&tin=02508201610067®Number=0000000000091857&sum=0 [14:18:25]written 0, free lines is 4095 [14:18:25]OFD Sender: Processing packet 187355 [packets to send 49, broken 48] [14:18:25]ProducePacketName [14:18:25]name=ofd_packets/00187355 [14:18:25]OFD Sender: To server: pG, [14:18:25]CommunicateWithHost lk.salyk.kg:30040 [14:18:25]ConnectInit lk.salyk.kg [14:18:25]Connected sock=10 [14:18:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 95 E3 07 01 48 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B0 39 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB DB 02 00 35 04 06 00 79 EE 25 B8 6C 06 01 D4 39 6A 24 84 41 00 [14:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 86 3A 47 00 4B 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 31 38 32 36 10 04 04 00 DB DB 02 00 F4 03 04 00 00 E0 B6 67 B6 04 01 00 00 E0 D8 FC 9E 7D 04 57 FE [14:18:25]CommunicateWithHost err = 0 [14:18:25]CheckOFDResponse [14:18:25]1017 (14) - 77093643461234 [14:18:25]1041 (16) - 0000000000871826 [14:18:25]1040 (4) - 187355 [14:18:25]1012 (4) - 20.02.2025 07:55 [14:18:25]1206 (1) - 0 [14:18:25]OFD Sender: Remove packet 187355 [14:18:25]ProducePacketName [14:18:25]name=ofd_packets/00187355 [14:18:25]NVStorageDeleteData [14:18:25]Write to MH i2c: 01 00 00 23 08 2B [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: 01 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: 01 07 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 F8 0C 36 [14:18:25]RasterBufferAndPrint [14:18:25]line [14:18:25]line [14:18:25]line [14:18:25]line [14:18:25]line [14:18:25]written 0, free lines is 3326 [14:18:25]MH_Cut [14:18:25]Write to MH i2c: D1 01 00 2A 08 01 04 [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: D1 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: D1 01 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: D1 01 00 2A 08 00 03 [14:18:25]Write to MH i2c: 01 00 00 2B 08 33 [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:26]OFD Sender: No OFD packet to send [14:18:26]*** Cut start [14:18:26]*** Partial cut [14:18:26]*** CUTSNS_PIN = 1 [14:18:26]*** CUTSNS_PIN = 0 [14:18:26]*** Brake cut motor [14:18:26]Read from MH i2c: 01 [14:18:27]MH_I2C_Read... [14:18:27]*** Stop cut motor [14:18:27]*** Cut end [14:18:27]Read from MH i2c: 01 07 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 FF 0F 48 [14:18:27]process_action close_receipt done [14:18:27]requested_data is exist [14:18:27]produce_requested_data [14:18:27]requested_item fm.sn is exist - process it [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 11 00 00 [14:18:27]Write to MH i2c: E2 08 00 2C 08 80 11 00 00 00 00 00 00 AE [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 17 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 17 00 2C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 01 [14:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:18:27]wFMCommunicate OK [14:18:27]requested_item fd.num is exist - process it [14:18:27]SAM_PROTO_GetFieldsCounters [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 13 00 00 [14:18:27]Write to MH i2c: E2 08 00 2D 08 80 13 00 00 00 00 00 00 B1 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 62 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 62 00 2D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DB DB 02 00 0E 04 04 00 88 02 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 ED [14:18:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DB DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_GetFieldsCounters done [14:18:27]requested_item shift.num is exist - process it [14:18:27]requested_item shift.opened is exist - process it [14:18:27]req_shift_opened [14:18:27]FM_GetShiftState [14:18:27]SAM_PROTO_GetShiftState [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 13 01 00 [14:18:27]Write to MH i2c: E2 08 00 2E 08 80 13 01 00 00 00 00 00 B3 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0E 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0E 00 2E 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 05 [14:18:27]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_GetShiftState done [14:18:27]FM_GetShiftState done [14:18:27]req_shift_opened done [14:18:27]requested_item shift.open_date is exist - process it [14:18:27]req_shift_open_date [14:18:27]req_shift_open_date done [14:18:27]produce_requested_data done [14:18:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187355,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:18:27]process_action_free close_receipt [14:18:27]json_value_free [14:18:27]json_value_free done [14:18:27]process_json_proto returns [14:18:27]Send response to host [14:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187355,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:18:27]free response buf [14:18:27]execute_script done [14:18:27]execute_script returns [14:18:27]free content buf [14:18:27]Sock 7.Close socket [14:18:27]Sock 7.Thread stoped [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:06]accept exits with 9 [14:20:06]New connection [14:20:06]New thread 3067420004 created [14:20:06]Thread 3067276644 joined [14:20:06]Waiting for new connection... [14:20:06] Sock 9.Parse request [14:20:06]Sock 9.Check first char [14:20:06]Sock 9.First char is OK [14:20:06]request: POST /json_proto HTTP/1.0 [14:20:06]Method: POST [14:20:06]URL: /json_proto [14:20:06]Method is POST - this is cgi request [14:20:06]url: /json_proto [14:20:06]query_string will be loaded in cgi processing [14:20:06]execute_cgi json_proto POST (null) [14:20:06]execute_cgi path=json_proto method=POST [14:20:06]POST find Content-Length [14:20:06]Host: 172.17.46.131:8080 [14:20:06]Content-Length: 800 [14:20:06]Content-Type: application/json [14:20:06] [14:20:06]POST finish read [14:20:06]Found Content-Length = 800 [14:20:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:06]execute_script... [14:20: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)412514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:06]POST & json_proto [14:20:06]process_json_proto [14:20:06]json parsed OK: [14:20:06]protocol is kg_v1.0 [14:20:06]action value=close_receipt [14:20:06]process_action close_receipt [14:20:06]cmd_close_receipt [14:20:06]MH_GetDate [14:20:06]Write to MH i2c: F0 00 00 2F 08 26 [14:20:06]Write i2c OK [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 09 00 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 09 00 2F 08 00 17 3A B7 67 7E 41 4F 65 11 [14:20:06]GetLastDocTimeStamp 1740061104 [14:20:06]current date 1740061207 [14:20:06]FM_GetShiftState [14:20:06]SAM_PROTO_GetShiftState [14:20:06]wFMCommunicate request_size=4 [14:20:06]MH_SAM_APDU [14:20:06]CAPDU: 80 13 01 00 [14:20:06]Write to MH i2c: E2 08 00 30 08 80 13 01 00 00 00 00 00 B5 [14:20:06]Write i2c OK [14:20:06]MH_I2C_Read... [14:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:06]Read from MH i2c: E2 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: E2 0E 00 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: E2 0E 00 30 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 07 [14:20:06]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:20:06]wFMCommunicate OK [14:20:06]SAM_PROTO_GetShiftState done [14:20:06]FM_GetShiftState done [14:20:06]opened in 1740011697 [14:20:06]opened+sec_in_day 1740098097 [14:20:06]quantity*price = 50011 [14:20:06]sum+1 = 50013 [14:20:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 157 20.02.2025 14:20 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187356 ФПД: 152990244889321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142007&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187356&fm=152990244889321&tin=02508201610067®Number=0000000000091857&sum=50012 [14:20:07]StoreToDocumentArchive [14:20:07]shift 648 fd 187356 [14:20:07]save to /storage/0648/doc_00187356 [14:20:07]save last doc name /storage/0648/doc_00187356 to /storage/kkm_last_doc_name [14:20:07]save OK [14:20:07]Clear old archive folders... [14:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:07]tlvbuf is 00E4CF60 [14:20:07]SAM_PROTO_ClearQueue [14:20:07]wFMCommunicate request_size=4 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 09 00 00 [14:20:07]Write to MH i2c: E2 08 00 3D 08 80 09 00 00 00 00 00 00 B7 [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [14:20:07]RAPDU: 90 00 [14:20:07]wFMCommunicate OK [14:20:07]SAM_PROTO_ClearQueue done [14:20:07]KKMCreateOFDPacket [14:20:07]OFDProtocolAddRootSTLVToBuf [14:20:07]FM_MakeSignedData [14:20:07]FM_MakeSignedData [14:20:07]SAM_PROTO_SignData [14:20:07]wFMCommunicate request_size=4 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 0D 01 02 [14:20:07]Write to MH i2c: E2 08 00 3E 08 80 0D 01 02 00 00 00 00 BF [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [14:20:07]RAPDU: 90 00 [14:20:07]wFMCommunicate OK [14:20:07]wFMCommunicate request_size=255 [14:20:07]MH_SAM_APDU [14:20: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 17 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC DB 02 00 35 04 06 00 8B [14:20:07]Write to MH i2c: E2 02 01 3F 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 17 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC DB 02 00 35 04 06 00 8B 00 00 4A [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [14:20:07]RAPDU: 90 00 [14:20:07]wFMCommunicate OK [14:20:07]wFMCommunicate request_size=10 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 0D 02 02 05 24 D1 33 62 E9 [14:20:07]Write to MH i2c: E2 0D 00 40 08 80 0D 02 02 05 00 24 D1 33 62 E9 00 00 3F [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [14:20:07]RAPDU: 90 00 [14:20:07]wFMCommunicate OK [14:20:07]wFMCommunicate request_size=4 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 0D 03 02 [14:20:07]Write to MH i2c: E2 08 00 41 08 80 0D 03 02 00 00 00 00 C4 [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 0B 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 0B 00 41 08 00 76 E2 7F A0 CD ED 62 C4 90 00 1C [14:20:07]RAPDU: 76 E2 7F A0 CD ED 62 C4 90 00 [14:20:07]wFMCommunicate OK [14:20:07]SAM_PROTO_SignData done [14:20:07]FM_MakeSignedData done [14:20:07]CreateOFDProtocolMessage [14:20:07]wFMCommunicate request_size=4 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 11 00 00 [14:20:07]Write to MH i2c: E2 08 00 42 08 80 11 00 00 00 00 00 00 C4 [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 17 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 17 00 42 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [14:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:20:07]wFMCommunicate OK [14:20:07]CreateOFDProtocolMessage done [14:20:07]OFDSenderStorePacket 187356 [14:20:07]StoreOFDPacket docnum=187356 [14:20:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 76 07 01 60 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 17 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC DB 02 00 35 04 06 00 8B 24 D1 33 62 E9 76 E2 7F A0 CD ED 62 C4 [14:20:07]CheckFolder [14:20:07]dirname=/storage/ofd_packets [14:20:07]CheckFolder done [14:20:07]ProducePacketName [14:20:07]name=ofd_packets/00187356 [14:20:07]NVStorageSaveData ofd_packets/00187356 [14:20:07]File name is /storage/ofd_packets/00187356 [14:20:07]Write 301 bytes [14:20:07]NVStorageSaveData done [14:20:07]OFDSenderStorePacket done [14:20:07]KKMCreateOFDPacket done [14:20:07]NVStorageSaveData kkm_last_timestamp [14:20:07]File name is /storage/kkm_last_timestamp [14:20:07]Write 4 bytes [14:20:07]NVStorageSaveData done [14:20:07]ExternCall_PrintAddStr [14:20:07]wPrintStart [14:20:07]Write to MH i2c: 01 00 00 43 08 4B [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: 01 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: 01 07 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: 01 07 00 43 08 00 00 00 00 00 FF 0F 60 [14:20:07]RasterBufferAndPrint [14:20:07]line Счет N : (1)412514 [14:20:07]line ИНН: 02508201610067 [14:20:07]line Контрольно-Кассовый Чек [14:20:07]line ПРОДАЖА [14:20:07]line ТРК (МРК, ГНК) : 42 [14:20:07]line Товар: 2710124130 [14:20:07]line Аи-92-К-2 [14:20:07]line 7.790 * 64.20 [14:20:07]line = 500.12 [14:20:07]line НДС 12% НСП 1% [14:20:07]line > о реализуемом товаре [14:20:07]line ИТОГО: 500.12 [14:20:07]line НСП 1% : 4.43 [14:20:07]line НДС 12% : 53.11 [14:20:07]line Наличными: 0.00 [14:20:07]line Безнал.: 500.12 [14:20:07]line Место: АЗС № 92 "Партнер Нефть" [14:20:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:20:07]line СНО: Общий режим [14:20:07]line Чек 157 20.02.2025 14:20 [14:20:07]line Смена: 648 ФФД: 1.0 [14:20:07]line ЗНМ: 0300000118 [14:20:07]line РНМ: 0000000000091857 [14:20:07]line Версия ККМ: 001 [14:20:07]line Платежная система: O! деньги [14:20:07]line ФМ: 0000000000871826 [14:20:07]line ФД: 187356 [14:20:07]line ФПД: 152990244889321 [14:20:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142007&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187356&fm=152990244889321&tin=02508201610067®Number=0000000000091857&sum=50012 [14:20:07]written 0, free lines is 4095 [14:20:08]OFD Sender: Processing packet 187356 [packets to send 49, broken 48] [14:20:08]ProducePacketName [14:20:08]name=ofd_packets/00187356 [14:20:08]OFD Sender: To server: pG, [14:20:08]CommunicateWithHost lk.salyk.kg:30040 [14:20:08]ConnectInit lk.salyk.kg [14:20:08]Connected sock=7 [14:20:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 76 07 01 60 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 17 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC DB 02 00 35 04 06 00 8B 24 D1 33 62 E9 76 E2 7F A0 CD ED 62 C4 [14:20:08]Write to MH i2c: 01 00 00 6D 08 75 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 07 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 03 0D 8C [14:20:08]RasterBufferAndPrint [14:20:08]line [14:20:08]line [14:20:08]line [14:20:08]line [14:20:08]line [14:20:08]written 0, free lines is 3337 [14:20:08]MH_Cut [14:20:08]Write to MH i2c: D1 01 00 74 08 01 4E [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: D1 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: D1 01 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: D1 01 00 74 08 00 4D [14:20:08]Write to MH i2c: 01 00 00 75 08 7D [14:20:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 66 D3 47 00 20 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC DB 02 00 F4 03 04 00 67 E0 B6 67 B6 04 01 00 00 EB 62 4A CD 25 6F E9 8F [14:20:08]CommunicateWithHost err = 0 [14:20:08]CheckOFDResponse [14:20:08]1017 (14) - 77093643461234 [14:20:08]1041 (16) - 0000000000871826 [14:20:08]1040 (4) - 187356 [14:20:08]1012 (4) - 20.02.2025 07:57 [14:20:08]1206 (1) - 0 [14:20:08]OFD Sender: Remove packet 187356 [14:20:08]ProducePacketName [14:20:08]name=ofd_packets/00187356 [14:20:08]NVStorageDeleteData [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]OFD Sender: No OFD packet to send [14:20:09]*** Cut start [14:20:09]*** Partial cut [14:20:09]*** CUTSNS_PIN = 1 [14:20:09]*** CUTSNS_PIN = 0 [14:20:09]*** Brake cut motor [14:20:09]Read from MH i2c: 01 [14:20:09]MH_I2C_Read... [14:20:09]*** Stop cut motor [14:20:09]*** Cut end [14:20:09]Read from MH i2c: 01 07 00 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: 01 07 00 75 08 00 00 00 00 00 FF 0F 92 [14:20:09]process_action close_receipt done [14:20:09]requested_data is exist [14:20:09]produce_requested_data [14:20:09]requested_item fm.sn is exist - process it [14:20:09]wFMCommunicate request_size=4 [14:20:09]MH_SAM_APDU [14:20:09]CAPDU: 80 11 00 00 [14:20:09]Write to MH i2c: E2 08 00 76 08 80 11 00 00 00 00 00 00 F8 [14:20:09]Write i2c OK [14:20:09]MH_I2C_Read... [14:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:09]Read from MH i2c: E2 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: E2 17 00 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: E2 17 00 76 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [14:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:20:09]wFMCommunicate OK [14:20:09]requested_item fd.num is exist - process it [14:20:09]SAM_PROTO_GetFieldsCounters [14:20:09]wFMCommunicate request_size=4 [14:20:09]MH_SAM_APDU [14:20:09]CAPDU: 80 13 00 00 [14:20:09]Write to MH i2c: E2 08 00 77 08 80 13 00 00 00 00 00 00 FB [14:20:09]Write i2c OK [14:20:09]MH_I2C_Read... [14:20:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:10]Read from MH i2c: E2 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 62 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 62 00 77 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DC DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [14:20:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DC DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:10]wFMCommunicate OK [14:20:10]SAM_PROTO_GetFieldsCounters done [14:20:10]requested_item shift.num is exist - process it [14:20:10]requested_item shift.opened is exist - process it [14:20:10]req_shift_opened [14:20:10]FM_GetShiftState [14:20:10]SAM_PROTO_GetShiftState [14:20:10]wFMCommunicate request_size=4 [14:20:10]MH_SAM_APDU [14:20:10]CAPDU: 80 13 01 00 [14:20:10]Write to MH i2c: E2 08 00 78 08 80 13 01 00 00 00 00 00 FD [14:20:10]Write i2c OK [14:20:10]MH_I2C_Read... [14:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:10]Read from MH i2c: E2 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 0E 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 0E 00 78 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4F [14:20:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:20:10]wFMCommunicate OK [14:20:10]SAM_PROTO_GetShiftState done [14:20:10]FM_GetShiftState done [14:20:10]req_shift_opened done [14:20:10]requested_item shift.open_date is exist - process it [14:20:10]req_shift_open_date [14:20:10]req_shift_open_date done [14:20:10]produce_requested_data done [14:20:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187356,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:20:10]process_action_free close_receipt [14:20:10]json_value_free [14:20:10]json_value_free done [14:20:10]process_json_proto returns [14:20:10]Send response to host [14:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187356,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:20:10]free response buf [14:20:10]execute_script done [14:20:10]execute_script returns [14:20:10]free content buf [14:20:10]Sock 9.Close socket [14:20:10]Sock 9.Thread stoped [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:48]accept exits with 10 [14:21:48]New connection [14:21:48]New thread 3067276644 created [14:21:48]Thread 3067420004 joined [14:21:48]Waiting for new connection... [14:21:48] Sock 10.Parse request [14:21:48]Sock 10.Check first char [14:21:48]Sock 10.First char is OK [14:21:48]request: POST /json_proto HTTP/1.0 [14:21:48]Method: POST [14:21:48]URL: /json_proto [14:21:48]Method is POST - this is cgi request [14:21:48]url: /json_proto [14:21:48]query_string will be loaded in cgi processing [14:21:48]execute_cgi json_proto POST (null) [14:21:48]execute_cgi path=json_proto method=POST [14:21:48]POST find Content-Length [14:21:48]Host: 172.17.46.131:8080 [14:21:48]Content-Length: 682 [14:21:48]Content-Type: application/json [14:21:48] [14:21:48]POST finish read [14:21:48]Found Content-Length = 682 [14:21:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "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:21:48]execute_script... [14:21: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)412516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "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:21:48]POST & json_proto [14:21:48]process_json_proto [14:21:48]json parsed OK: [14:21:48]protocol is kg_v1.0 [14:21:48]action value=close_receipt [14:21:48]process_action close_receipt [14:21:48]cmd_close_receipt [14:21:48]MH_GetDate [14:21:48]Write to MH i2c: F0 00 00 79 08 70 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: F0 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: F0 09 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: F0 09 00 79 08 00 7D 3A B7 67 7E 41 4F 65 C1 [14:21:48]GetLastDocTimeStamp 1740061207 [14:21:48]current date 1740061309 [14:21:48]FM_GetShiftState [14:21:48]SAM_PROTO_GetShiftState [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 13 01 00 [14:21:48]Write to MH i2c: E2 08 00 7A 08 80 13 01 00 00 00 00 00 FF [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 0E 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 0E 00 7A 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 51 [14:21:48]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:21:48]wFMCommunicate OK [14:21:48]SAM_PROTO_GetShiftState done [14:21:48]FM_GetShiftState done [14:21:48]opened in 1740011697 [14:21:48]opened+sec_in_day 1740098097 [14:21:48]quantity*price = 150035 [14:21:48]sum+1 = 150036 [14:21:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 158 20.02.2025 14:21 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187357 ФПД: 275652727055235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142149&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187357&fm=275652727055235&tin=02508201610067®Number=0000000000091857&sum=150000 [14:21:49]StoreToDocumentArchive [14:21:49]shift 648 fd 187357 [14:21:49]save to /storage/0648/doc_00187357 [14:21:49]save last doc name /storage/0648/doc_00187357 to /storage/kkm_last_doc_name [14:21:49]save OK [14:21:49]Clear old archive folders... [14:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:49]tlvbuf is 00E53920 [14:21:49]SAM_PROTO_ClearQueue [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 09 00 00 [14:21:49]Write to MH i2c: E2 08 00 87 08 80 09 00 00 00 00 00 00 01 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [14:21:49]RAPDU: 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_ClearQueue done [14:21:49]KKMCreateOFDPacket [14:21:49]OFDProtocolAddRootSTLVToBuf [14:21:49]FM_MakeSignedData [14:21:49]FM_MakeSignedData [14:21:49]SAM_PROTO_SignData [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 0D 01 02 [14:21:49]Write to MH i2c: E2 08 00 88 08 80 0D 01 02 00 00 00 00 09 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [14:21:49]RAPDU: 90 00 [14:21:49]wFMCommunicate OK [14:21:49]wFMCommunicate request_size=255 [14:21:49]MH_SAM_APDU [14:21: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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7D 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD DB 02 00 35 04 06 00 FA [14:21:49]Write to MH i2c: E2 02 01 89 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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7D 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD DB 02 00 35 04 06 00 FA 00 00 1D [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]wFMCommunicate request_size=10 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 02 02 05 B4 66 E0 A3 83 [14:21:50]Write to MH i2c: E2 0D 00 8A 08 80 0D 02 02 05 00 B4 66 E0 A3 83 00 00 36 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 03 02 [14:21:50]Write to MH i2c: E2 08 00 8B 08 80 0D 03 02 00 00 00 00 0E [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 0B 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 0B 00 8B 08 00 C2 73 22 B2 3A B8 D7 B4 90 00 95 [14:21:50]RAPDU: C2 73 22 B2 3A B8 D7 B4 90 00 [14:21:50]wFMCommunicate OK [14:21:50]SAM_PROTO_SignData done [14:21:50]FM_MakeSignedData done [14:21:50]CreateOFDProtocolMessage [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 11 00 00 [14:21:50]Write to MH i2c: E2 08 00 8C 08 80 11 00 00 00 00 00 00 0E [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 17 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 17 00 8C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [14:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:21:50]wFMCommunicate OK [14:21:50]CreateOFDProtocolMessage done [14:21:50]OFDSenderStorePacket 187357 [14:21:50]StoreOFDPacket docnum=187357 [14:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F6 57 07 01 9B 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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7D 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD DB 02 00 35 04 06 00 FA B4 66 E0 A3 83 C2 73 22 B2 3A B8 D7 B4 [14:21:50]CheckFolder [14:21:50]dirname=/storage/ofd_packets [14:21:50]CheckFolder done [14:21:50]ProducePacketName [14:21:50]name=ofd_packets/00187357 [14:21:50]NVStorageSaveData ofd_packets/00187357 [14:21:50]File name is /storage/ofd_packets/00187357 [14:21:50]Write 301 bytes [14:21:50]NVStorageSaveData done [14:21:50]OFDSenderStorePacket done [14:21:50]KKMCreateOFDPacket done [14:21:50]NVStorageSaveData kkm_last_timestamp [14:21:50]File name is /storage/kkm_last_timestamp [14:21:50]Write 4 bytes [14:21:50]NVStorageSaveData done [14:21:50]ExternCall_PrintAddStr [14:21:50]wPrintStart [14:21:50]Write to MH i2c: 01 00 00 8D 08 95 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 8D 08 00 00 00 00 00 FF 0F AA [14:21:50]RasterBufferAndPrint [14:21:50]line Счет N : (1)412516 [14:21:50]line ИНН: 02508201610067 [14:21:50]line Контрольно-Кассовый Чек [14:21:50]line ПРОДАЖА [14:21:50]line ТРК (МРК, ГНК) : 22 [14:21:50]line Товар: 2710124130 [14:21:50]line Аи-92-К-2 [14:21:50]line 23.370 * 64.20 [14:21:50]line = 1500.35 [14:21:50]line НДС 12% НСП 1% [14:21:50]line > о реализуемом товаре [14:21:50]line ОКРУГЛЕНИЕ: -0.35 [14:21:50]line ИТОГО: 1500.00 [14:21:50]line Внесено: 1500.00 [14:21:50]line СДАЧА: 0.00 [14:21:50]line НСП 1% : 13.28 [14:21:50]line НДС 12% : 159.33 [14:21:50]line Наличными: 1500.00 [14:21:50]line Безнал.: 0.00 [14:21:50]line Место: АЗС № 92 "Партнер Нефть" [14:21:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:21:50]line СНО: Общий режим [14:21:50]line Чек 158 20.02.2025 14:21 [14:21:50]line Смена: 648 ФФД: 1.0 [14:21:50]line ЗНМ: 0300000118 [14:21:50]line РНМ: 0000000000091857 [14:21:50]line Версия ККМ: 001 [14:21:50]line ФМ: 0000000000871826 [14:21:50]line ФД: 187357 [14:21:50]line ФПД: 275652727055235 [14:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142149&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187357&fm=275652727055235&tin=02508201610067®Number=0000000000091857&sum=150000 [14:21:50]OFD Sender: Processing packet 187357 [packets to send 49, broken 48] [14:21:50]ProducePacketName [14:21:50]name=ofd_packets/00187357 [14:21:50]OFD Sender: To server: pG, [14:21:50]CommunicateWithHost lk.salyk.kg:30040 [14:21:50]ConnectInit lk.salyk.kg [14:21:50]written 0, free lines is 4095 [14:21:50]Connected sock=7 [14:21:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F6 57 07 01 9B 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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7D 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD DB 02 00 35 04 06 00 FA B4 66 E0 A3 83 C2 73 22 B2 3A B8 D7 B4 [14:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 83 2B 47 00 B5 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD DB 02 00 F4 03 04 00 CE E0 B6 67 B6 04 01 00 00 50 0D E7 5B 07 F6 F8 F8 [14:21:51]CommunicateWithHost err = 0 [14:21:51]CheckOFDResponse [14:21:51]1017 (14) - 77093643461234 [14:21:51]1041 (16) - 0000000000871826 [14:21:51]1040 (4) - 187357 [14:21:51]1012 (4) - 20.02.2025 07:59 [14:21:51]1206 (1) - 0 [14:21:51]OFD Sender: Remove packet 187357 [14:21:51]ProducePacketName [14:21:51]name=ofd_packets/00187357 [14:21:51]NVStorageDeleteData [14:21:51]Write to MH i2c: 01 00 00 B8 08 C0 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 B8 08 00 00 00 00 00 F0 0C C3 [14:21:51]RasterBufferAndPrint [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]line [14:21:51]written 0, free lines is 3319 [14:21:51]MH_Cut [14:21:51]Write to MH i2c: D1 01 00 BF 08 01 99 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 01 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: D1 01 00 BF 08 00 98 [14:21:51]Write to MH i2c: 01 00 00 C0 08 C8 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]OFD Sender: No OFD packet to send [14:21:51]*** Cut start [14:21:51]*** Partial cut [14:21:51]*** CUTSNS_PIN = 1 [14:21:51]*** CUTSNS_PIN = 0 [14:21:52]*** Brake cut motor [14:21:52]Read from MH i2c: 01 [14:21:52]MH_I2C_Read... [14:21:52]*** Stop cut motor [14:21:52]*** Cut end [14:21:52]Read from MH i2c: 01 07 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 FF 0F DD [14:21:52]process_action close_receipt done [14:21:52]requested_data is exist [14:21:52]produce_requested_data [14:21:52]requested_item fm.sn is exist - process it [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 11 00 00 [14:21:52]Write to MH i2c: E2 08 00 C1 08 80 11 00 00 00 00 00 00 43 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 17 00 [14:21:52]MH_I2C_Read... [14:21:52]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 31 38 32 36 90 00 96 [14:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:21:52]wFMCommunicate OK [14:21:52]requested_item fd.num is exist - process it [14:21:52]SAM_PROTO_GetFieldsCounters [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 13 00 00 [14:21:52]Write to MH i2c: E2 08 00 C2 08 80 13 00 00 00 00 00 00 46 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 62 00 [14:21:52]MH_I2C_Read... [14:21:52]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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DD DB 02 00 0E 04 04 00 88 02 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 8A [14:21:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DD DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:52]wFMCommunicate OK [14:21:52]SAM_PROTO_GetFieldsCounters done [14:21:52]requested_item shift.num is exist - process it [14:21:52]requested_item shift.opened is exist - process it [14:21:52]req_shift_opened [14:21:52]FM_GetShiftState [14:21:52]SAM_PROTO_GetShiftState [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 13 01 00 [14:21:52]Write to MH i2c: E2 08 00 C3 08 80 13 01 00 00 00 00 00 48 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:52]Read from MH i2c: E2 0E 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 0E 00 C3 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9A [14:21:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:21:52]wFMCommunicate OK [14:21:52]SAM_PROTO_GetShiftState done [14:21:52]FM_GetShiftState done [14:21:52]req_shift_opened done [14:21:52]requested_item shift.open_date is exist - process it [14:21:52]req_shift_open_date [14:21:52]req_shift_open_date done [14:21:52]produce_requested_data done [14:21:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187357,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:21:52]process_action_free close_receipt [14:21:52]json_value_free [14:21:52]json_value_free done [14:21:52]process_json_proto returns [14:21:52]Send response to host [14:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187357,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:21:52]free response buf [14:21:52]execute_script done [14:21:52]execute_script returns [14:21:52]free content buf [14:21:52]Sock 10.Close socket [14:21:52]Sock 10.Thread stoped [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:15]accept exits with 9 [14:22:15]New connection [14:22:15]New thread 3067420004 created [14:22:15]Thread 3067276644 joined [14:22:15]Waiting for new connection... [14:22:15] Sock 9.Parse request [14:22:15]Sock 9.Check first char [14:22:15]Sock 9.First char is OK [14:22:15]request: POST /json_proto HTTP/1.0 [14:22:15]Method: POST [14:22:15]URL: /json_proto [14:22:15]Method is POST - this is cgi request [14:22:15]url: /json_proto [14:22:15]query_string will be loaded in cgi processing [14:22:15]execute_cgi json_proto POST (null) [14:22:15]execute_cgi path=json_proto method=POST [14:22:15]POST find Content-Length [14:22:15]Host: 172.17.46.131:8080 [14:22:15]Content-Length: 796 [14:22:15]Content-Type: application/json [14:22:15] [14:22:15]POST finish read [14:22:15]Found Content-Length = 796 [14:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4763751", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:15]execute_script... [14:22: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)412515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4763751", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:15]POST & json_proto [14:22:15]process_json_proto [14:22:15]json parsed OK: [14:22:15]protocol is kg_v1.0 [14:22:15]action value=close_receipt [14:22:15]process_action close_receipt [14:22:15]cmd_close_receipt [14:22:15]MH_GetDate [14:22:15]Write to MH i2c: F0 00 00 C4 08 BB [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: F0 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: F0 09 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: F0 09 00 C4 08 00 98 3A B7 67 7E 41 4F 65 27 [14:22:15]GetLastDocTimeStamp 1740061309 [14:22:15]current date 1740061336 [14:22:15]FM_GetShiftState [14:22:15]SAM_PROTO_GetShiftState [14:22:15]wFMCommunicate request_size=4 [14:22:15]MH_SAM_APDU [14:22:15]CAPDU: 80 13 01 00 [14:22:15]Write to MH i2c: E2 08 00 C5 08 80 13 01 00 00 00 00 00 4A [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 0E 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 0E 00 C5 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9C [14:22:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:22:16]wFMCommunicate OK [14:22:16]SAM_PROTO_GetShiftState done [14:22:16]FM_GetShiftState done [14:22:16]opened in 1740011697 [14:22:16]opened+sec_in_day 1740098097 [14:22:16]quantity*price = 0 [14:22:16]sum+1 = 1 [14:22:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 159 20.02.2025 14:22 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4763751 ФМ: 0000000000871826 ФД: 187358 ФПД: 68233763832155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142216&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187358&fm=68233763832155&tin=02508201610067®Number=0000000000091857&sum=0 [14:22:17]StoreToDocumentArchive [14:22:17]shift 648 fd 187358 [14:22:17]save to /storage/0648/doc_00187358 [14:22:17]save last doc name /storage/0648/doc_00187358 to /storage/kkm_last_doc_name [14:22:17]save OK [14:22:17]Clear old archive folders... [14:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:22:17]tlvbuf is 00E4CC90 [14:22:17]SAM_PROTO_ClearQueue [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 09 00 00 [14:22:17]Write to MH i2c: E2 08 00 D2 08 80 09 00 00 00 00 00 00 4C [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [14:22:17]RAPDU: 90 00 [14:22:17]wFMCommunicate OK [14:22:17]SAM_PROTO_ClearQueue done [14:22:17]KKMCreateOFDPacket [14:22:17]OFDProtocolAddRootSTLVToBuf [14:22:17]FM_MakeSignedData [14:22:17]FM_MakeSignedData [14:22:17]SAM_PROTO_SignData [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 0D 01 02 [14:22:17]Write to MH i2c: E2 08 00 D3 08 80 0D 01 02 00 00 00 00 54 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [14:22:17]RAPDU: 90 00 [14:22:17]wFMCommunicate OK [14:22:17]wFMCommunicate request_size=255 [14:22:17]MH_SAM_APDU [14:22: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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 98 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE DB 02 00 35 04 06 00 3E 0E E9 41 [14:22:17]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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 98 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE DB 02 00 35 04 06 00 3E 0E E9 41 00 00 13 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [14:22:17]RAPDU: 90 00 [14:22:17]wFMCommunicate OK [14:22:17]wFMCommunicate request_size=7 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 0D 02 02 02 41 5B [14:22:17]Write to MH i2c: E2 0A 00 D5 08 80 0D 02 02 02 00 41 5B 00 00 F7 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [14:22:17]RAPDU: 90 00 [14:22:17]wFMCommunicate OK [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 0D 03 02 [14:22:17]Write to MH i2c: E2 08 00 D6 08 80 0D 03 02 00 00 00 00 59 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 0B 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 0B 00 D6 08 00 FA 89 6F F1 92 45 01 37 90 00 4C [14:22:17]RAPDU: FA 89 6F F1 92 45 01 37 90 00 [14:22:17]wFMCommunicate OK [14:22:17]SAM_PROTO_SignData done [14:22:17]FM_MakeSignedData done [14:22:17]CreateOFDProtocolMessage [14:22:17]wFMCommunicate request_size=4 [14:22:17]MH_SAM_APDU [14:22:17]CAPDU: 80 11 00 00 [14:22:17]Write to MH i2c: E2 08 00 D7 08 80 11 00 00 00 00 00 00 59 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 17 00 [14:22:17]MH_I2C_Read... [14:22:17]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 31 38 32 36 90 00 AC [14:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:22:17]wFMCommunicate OK [14:22:17]CreateOFDProtocolMessage done [14:22:17]OFDSenderStorePacket 187358 [14:22:17]StoreOFDPacket docnum=187358 [14:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 55 52 04 01 7C 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 98 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE DB 02 00 35 04 06 00 3E 0E E9 41 41 5B FA 89 6F F1 92 45 01 37 [14:22:17]CheckFolder [14:22:17]dirname=/storage/ofd_packets [14:22:17]CheckFolder done [14:22:17]ProducePacketName [14:22:17]name=ofd_packets/00187358 [14:22:17]NVStorageSaveData ofd_packets/00187358 [14:22:17]File name is /storage/ofd_packets/00187358 [14:22:17]Write 298 bytes [14:22:17]NVStorageSaveData done [14:22:17]OFDSenderStorePacket done [14:22:17]KKMCreateOFDPacket done [14:22:17]NVStorageSaveData kkm_last_timestamp [14:22:17]File name is /storage/kkm_last_timestamp [14:22:17]Write 4 bytes [14:22:17]NVStorageSaveData done [14:22:17]ExternCall_PrintAddStr [14:22:17]wPrintStart [14:22:17]Write to MH i2c: 01 00 00 D8 08 E0 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: 01 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: 01 07 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 FF 0F F5 [14:22:17]RasterBufferAndPrint [14:22:17]line Счет N : (1)412515 [14:22:17]line ИНН: 02508201610067 [14:22:17]line Контрольно-Кассовый Чек [14:22:17]line ПРОДАЖА [14:22:17]line ТРК (МРК, ГНК) : 6 [14:22:17]line Товар: 2710194210 [14:22:17]line ДТ-К-5 [14:22:17]line 50.000 * 0.00 [14:22:17]line = 0.00 [14:22:17]line НДС 12% НСП 1% [14:22:17]line > о реализуемом товаре [14:22:17]line ИТОГО: 0.00 [14:22:17]line НСП 1% : 0.00 [14:22:17]line НДС 12% : 0.00 [14:22:17]line Наличными: 0.00 [14:22:17]line Безнал.: 0.00 [14:22:17]line Место: АЗС № 92 "Партнер Нефть" [14:22:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:22:17]line СНО: Общий режим [14:22:17]line Чек 159 20.02.2025 14:22 [14:22:17]line Смена: 648 ФФД: 1.0 [14:22:17]line ЗНМ: 0300000118 [14:22:17]line РНМ: 0000000000091857 [14:22:17]line Версия ККМ: 001 [14:22:17]line Талоны: Топливные Талоны [14:22:17]line 4763751 [14:22:17]line ФМ: 0000000000871826 [14:22:17]line ФД: 187358 [14:22:17]line ФПД: 68233763832155 [14:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142216&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187358&fm=68233763832155&tin=02508201610067®Number=0000000000091857&sum=0 [14:22:18]OFD Sender: Processing packet 187358 [packets to send 49, broken 48] [14:22:18]ProducePacketName [14:22:18]name=ofd_packets/00187358 [14:22:18]OFD Sender: To server: pG, [14:22:18]CommunicateWithHost lk.salyk.kg:30040 [14:22:18]ConnectInit lk.salyk.kg [14:22:18]written 0, free lines is 4095 [14:22:18]Connected sock=10 [14:22:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 55 52 04 01 7C 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 98 3A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE DB 02 00 35 04 06 00 3E 0E E9 41 41 5B FA 89 6F F1 92 45 01 37 [14:22:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6D 1B 47 00 5D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE DB 02 00 F4 03 04 00 E9 E0 B6 67 B6 04 01 00 00 4B 5F DA 6D 2D DA 66 A8 [14:22:18]CommunicateWithHost err = 0 [14:22:18]CheckOFDResponse [14:22:18]1017 (14) - 77093643461234 [14:22:18]1041 (16) - 0000000000871826 [14:22:18]1040 (4) - 187358 [14:22:18]1012 (4) - 20.02.2025 07:59 [14:22:18]1206 (1) - 0 [14:22:18]OFD Sender: Remove packet 187358 [14:22:18]ProducePacketName [14:22:18]name=ofd_packets/00187358 [14:22:18]NVStorageDeleteData [14:22:18]Write to MH i2c: 01 00 00 02 09 0B [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: 01 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: 01 07 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: 01 07 00 02 09 00 00 00 00 00 04 0D 23 [14:22:18]RasterBufferAndPrint [14:22:18]line [14:22:18]line [14:22:18]line [14:22:18]line [14:22:18]line [14:22:18]written 0, free lines is 3342 [14:22:18]MH_Cut [14:22:18]Write to MH i2c: D1 01 00 09 09 01 E4 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: D1 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: D1 01 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: D1 01 00 09 09 00 E3 [14:22:18]Write to MH i2c: 01 00 00 0A 09 13 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]OFD Sender: No OFD packet to send [14:22:19]*** Cut start [14:22:19]*** Partial cut [14:22:19]*** CUTSNS_PIN = 1 [14:22:19]*** CUTSNS_PIN = 0 [14:22:19]*** Brake cut motor [14:22:19]Read from MH i2c: 01 [14:22:19]MH_I2C_Read... [14:22:19]*** Stop cut motor [14:22:19]*** Cut end [14:22:19]Read from MH i2c: 01 07 00 [14:22:19]MH_I2C_Read... [14:22:19]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 FF 0F 28 [14:22:19]process_action close_receipt done [14:22:19]requested_data is exist [14:22:19]produce_requested_data [14:22:19]requested_item fm.sn is exist - process it [14:22:19]wFMCommunicate request_size=4 [14:22:19]MH_SAM_APDU [14:22:19]CAPDU: 80 11 00 00 [14:22:19]Write to MH i2c: E2 08 00 0B 09 80 11 00 00 00 00 00 00 8E [14:22:19]Write i2c OK [14:22:19]MH_I2C_Read... [14:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:19]Read from MH i2c: E2 [14:22:19]MH_I2C_Read... [14:22:19]Read from MH i2c: E2 17 00 [14:22:19]MH_I2C_Read... [14:22:19]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 31 38 32 36 90 00 E1 [14:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:22:19]wFMCommunicate OK [14:22:19]requested_item fd.num is exist - process it [14:22:19]SAM_PROTO_GetFieldsCounters [14:22:19]wFMCommunicate request_size=4 [14:22:19]MH_SAM_APDU [14:22:19]CAPDU: 80 13 00 00 [14:22:19]Write to MH i2c: E2 08 00 0C 09 80 13 00 00 00 00 00 00 91 [14:22:19]Write i2c OK [14:22:19]MH_I2C_Read... [14:22:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:20]Read from MH i2c: E2 [14:22:20]MH_I2C_Read... [14:22:20]Read from MH i2c: E2 62 00 [14:22:20]MH_I2C_Read... [14:22:20]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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DE DB 02 00 0E 04 04 00 88 02 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 D9 [14:22:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DE DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:20]wFMCommunicate OK [14:22:20]SAM_PROTO_GetFieldsCounters done [14:22:20]requested_item shift.num is exist - process it [14:22:20]requested_item shift.opened is exist - process it [14:22:20]req_shift_opened [14:22:20]FM_GetShiftState [14:22:20]SAM_PROTO_GetShiftState [14:22:20]wFMCommunicate request_size=4 [14:22:20]MH_SAM_APDU [14:22:20]CAPDU: 80 13 01 00 [14:22:20]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [14:22:20]Write i2c OK [14:22:20]MH_I2C_Read... [14:22:20]Read from MH i2c: E2 [14:22:20]MH_I2C_Read... [14:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:20]Read from MH i2c: E2 0E 00 [14:22:20]MH_I2C_Read... [14:22:20]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E5 [14:22:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:22:20]wFMCommunicate OK [14:22:20]SAM_PROTO_GetShiftState done [14:22:20]FM_GetShiftState done [14:22:20]req_shift_opened done [14:22:20]requested_item shift.open_date is exist - process it [14:22:20]req_shift_open_date [14:22:20]req_shift_open_date done [14:22:20]produce_requested_data done [14:22:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187358,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:22:20]process_action_free close_receipt [14:22:20]json_value_free [14:22:20]json_value_free done [14:22:20]process_json_proto returns [14:22:20]Send response to host [14:22:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187358,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:22:20]free response buf [14:22:20]execute_script done [14:22:20]execute_script returns [14:22:20]free content buf [14:22:20]Sock 9.Close socket [14:22:20]Sock 9.Thread stoped [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:17]accept exits with 7 [14:26:17]New connection [14:26:17]New thread 3067276644 created [14:26:17]Thread 3067420004 joined [14:26:17]Waiting for new connection... [14:26:17] Sock 7.Parse request [14:26:17]Sock 7.Check first char [14:26:17]Sock 7.First char is OK [14:26:17]request: POST /json_proto HTTP/1.0 [14:26:17]Method: POST [14:26:17]URL: /json_proto [14:26:17]Method is POST - this is cgi request [14:26:17]url: /json_proto [14:26:17]query_string will be loaded in cgi processing [14:26:17]execute_cgi json_proto POST (null) [14:26:17]execute_cgi path=json_proto method=POST [14:26:17]POST find Content-Length [14:26:17]Host: 172.17.46.131:8080 [14:26:17]Content-Length: 673 [14:26:17]Content-Type: application/json [14:26:17] [14:26:17]POST finish read [14:26:17]Found Content-Length = 673 [14:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:17]execute_script... [14: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)412518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:17]POST & json_proto [14:26:17]process_json_proto [14:26:17]json parsed OK: [14:26:17]protocol is kg_v1.0 [14:26:17]action value=close_receipt [14:26:17]process_action close_receipt [14:26:17]cmd_close_receipt [14:26:17]MH_GetDate [14:26:17]Write to MH i2c: F0 00 00 0E 09 06 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 09 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 09 00 0E 09 00 8A 3B B7 67 7E 41 4F 65 65 [14:26:17]GetLastDocTimeStamp 1740061336 [14:26:17]current date 1740061578 [14:26:17]FM_GetShiftState [14:26:17]SAM_PROTO_GetShiftState [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 01 00 [14:26:17]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E7 [14:26:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetShiftState done [14:26:17]FM_GetShiftState done [14:26:17]opened in 1740011697 [14:26:17]opened+sec_in_day 1740098097 [14:26:17]quantity*price = 50021 [14:26:17]sum+1 = 50022 [14:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 160 20.02.2025 14:26 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187359 ФПД: 190222874876119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142618&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187359&fm=190222874876119&tin=02508201610067®Number=0000000000091857&sum=50000 [14:26:18]StoreToDocumentArchive [14:26:18]shift 648 fd 187359 [14:26:18]save to /storage/0648/doc_00187359 [14:26:18]save last doc name /storage/0648/doc_00187359 to /storage/kkm_last_doc_name [14:26:18]save OK [14:26:18]Clear old archive folders... [14:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:26:18]tlvbuf is 00E615E0 [14:26:18]SAM_PROTO_ClearQueue [14:26:18]wFMCommunicate request_size=4 [14:26:18]MH_SAM_APDU [14:26:18]CAPDU: 80 09 00 00 [14:26:18]Write to MH i2c: E2 08 00 1C 09 80 09 00 00 00 00 00 00 97 [14:26:18]Write i2c OK [14:26:18]MH_I2C_Read... [14:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:18]Read from MH i2c: E2 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: E2 03 00 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [14:26:18]RAPDU: 90 00 [14:26:18]wFMCommunicate OK [14:26:18]SAM_PROTO_ClearQueue done [14:26:18]KKMCreateOFDPacket [14:26:18]OFDProtocolAddRootSTLVToBuf [14:26:18]FM_MakeSignedData [14:26:18]FM_MakeSignedData [14:26:18]SAM_PROTO_SignData [14:26:18]wFMCommunicate request_size=4 [14:26:18]MH_SAM_APDU [14:26:18]CAPDU: 80 0D 01 02 [14:26:18]Write to MH i2c: E2 08 00 1D 09 80 0D 01 02 00 00 00 00 9F [14:26:18]Write i2c OK [14:26:18]MH_I2C_Read... [14:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:18]Read from MH i2c: E2 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: E2 03 00 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [14:26:18]RAPDU: 90 00 [14:26:18]wFMCommunicate OK [14:26:18]wFMCommunicate request_size=255 [14:26:18]MH_SAM_APDU [14:26:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 8A 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF DB 02 00 35 04 06 00 AD 01 B6 E2 [14:26:18]Write to MH i2c: E2 02 01 1E 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 8A 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF DB 02 00 35 04 06 00 AD 01 B6 E2 00 00 6A [14:26:18]Write i2c OK [14:26:18]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=7 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 02 02 02 98 D7 [14:26:19]Write to MH i2c: E2 0A 00 1F 09 80 0D 02 02 02 00 98 D7 00 00 15 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 03 02 [14:26:19]Write to MH i2c: E2 08 00 20 09 80 0D 03 02 00 00 00 00 A4 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 0B 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 0B 00 20 09 00 6F 37 60 79 0A FC C4 C0 90 00 AE [14:26:19]RAPDU: 6F 37 60 79 0A FC C4 C0 90 00 [14:26:19]wFMCommunicate OK [14:26:19]SAM_PROTO_SignData done [14:26:19]FM_MakeSignedData done [14:26:19]CreateOFDProtocolMessage [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 11 00 00 [14:26:19]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 17 00 [14:26:19]MH_I2C_Read... [14:26:19]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 31 38 32 36 90 00 F7 [14:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:26:19]wFMCommunicate OK [14:26:19]CreateOFDProtocolMessage done [14:26:19]OFDSenderStorePacket 187359 [14:26:19]StoreOFDPacket docnum=187359 [14:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AE 30 04 01 D8 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 8A 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF DB 02 00 35 04 06 00 AD 01 B6 E2 98 D7 6F 37 60 79 0A FC C4 C0 [14:26:19]CheckFolder [14:26:19]dirname=/storage/ofd_packets [14:26:19]CheckFolder done [14:26:19]ProducePacketName [14:26:19]name=ofd_packets/00187359 [14:26:19]NVStorageSaveData ofd_packets/00187359 [14:26:19]File name is /storage/ofd_packets/00187359 [14:26:19]Write 298 bytes [14:26:19]NVStorageSaveData done [14:26:19]OFDSenderStorePacket done [14:26:19]KKMCreateOFDPacket done [14:26:19]NVStorageSaveData kkm_last_timestamp [14:26:19]File name is /storage/kkm_last_timestamp [14:26:19]Write 4 bytes [14:26:19]NVStorageSaveData done [14:26:19]ExternCall_PrintAddStr [14:26:19]wPrintStart [14:26:19]Write to MH i2c: 01 00 00 22 09 2B [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 07 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [14:26:19]RasterBufferAndPrint [14:26:19]line Счет N : (1)412518 [14:26:19]line ИНН: 02508201610067 [14:26:19]line Контрольно-Кассовый Чек [14:26:19]line ПРОДАЖА [14:26:19]line ТРК (МРК, ГНК) : 6 [14:26:19]line Товар: 2710194210 [14:26:19]line ДТ-К-5 [14:26:19]line 6.890 * 72.60 [14:26:19]line = 500.21 [14:26:19]line НДС 12% НСП 1% [14:26:19]line > о реализуемом товаре [14:26:19]line ОКРУГЛЕНИЕ: -0.21 [14:26:19]line ИТОГО: 500.00 [14:26:19]line Внесено: 500.00 [14:26:19]line СДАЧА: 0.00 [14:26:19]line НСП 1% : 4.43 [14:26:19]line НДС 12% : 53.12 [14:26:19]line Наличными: 500.00 [14:26:19]line Безнал.: 0.00 [14:26:19]line Место: АЗС № 92 "Партнер Нефть" [14:26:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:26:19]line СНО: Общий режим [14:26:19]line Чек 160 20.02.2025 14:26 [14:26:19]line Смена: 648 ФФД: 1.0 [14:26:19]line ЗНМ: 0300000118 [14:26:19]line РНМ: 0000000000091857 [14:26:19]line Версия ККМ: 001 [14:26:19]line ФМ: 0000000000871826 [14:26:19]line ФД: 187359 [14:26:19]line ФПД: 190222874876119 [14:26:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142618&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187359&fm=190222874876119&tin=02508201610067®Number=0000000000091857&sum=50000 [14:26:19]OFD Sender: Processing packet 187359 [packets to send 49, broken 48] [14:26:19]ProducePacketName [14:26:19]name=ofd_packets/00187359 [14:26:19]OFD Sender: To server: pG, [14:26:19]CommunicateWithHost lk.salyk.kg:30040 [14:26:19]ConnectInit lk.salyk.kg [14:26:19]written 0, free lines is 4095 [14:26:19]Connected sock=10 [14: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 31 38 32 36 0C 01 00 00 AE 30 04 01 D8 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 8A 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF DB 02 00 35 04 06 00 AD 01 B6 E2 98 D7 6F 37 60 79 0A FC C4 C0 [14:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 36 BC 47 00 F4 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF DB 02 00 F4 03 04 00 DB E1 B6 67 B6 04 01 00 00 93 57 A2 51 07 2C B9 F4 [14:26:19]CommunicateWithHost err = 0 [14:26:19]CheckOFDResponse [14:26:19]1017 (14) - 77093643461234 [14:26:19]1041 (16) - 0000000000871826 [14:26:19]1040 (4) - 187359 [14:26:19]1012 (4) - 20.02.2025 08:03 [14:26:19]1206 (1) - 0 [14:26:19]OFD Sender: Remove packet 187359 [14:26:19]ProducePacketName [14:26:19]name=ofd_packets/00187359 [14:26:19]NVStorageDeleteData [14:26:19]Write to MH i2c: 01 00 00 4D 09 56 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 07 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 E4 0C 4D [14:26:19]RasterBufferAndPrint [14:26:19]line [14:26:19]line [14:26:19]line [14:26:19]line [14:26:19]line [14:26:19]written 0, free lines is 3306 [14:26:19]MH_Cut [14:26:19]Write to MH i2c: D1 01 00 54 09 01 2F [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: D1 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: D1 01 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: D1 01 00 54 09 00 2E [14:26:19]Write to MH i2c: 01 00 00 55 09 5E [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:20]OFD Sender: No OFD packet to send [14:26:20]*** Cut start [14:26:20]*** Partial cut [14:26:20]*** CUTSNS_PIN = 1 [14:26:20]*** CUTSNS_PIN = 0 [14:26:20]*** Brake cut motor [14:26:21]Read from MH i2c: 01 [14:26:21]MH_I2C_Read... [14:26:21]*** Stop cut motor [14:26:21]*** Cut end [14:26:21]Read from MH i2c: 01 07 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 FF 0F 73 [14:26:21]process_action close_receipt done [14:26:21]requested_data is exist [14:26:21]produce_requested_data [14:26:21]requested_item fm.sn is exist - process it [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 11 00 00 [14:26:21]Write to MH i2c: E2 08 00 56 09 80 11 00 00 00 00 00 00 D9 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 17 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 17 00 56 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [14:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:26:21]wFMCommunicate OK [14:26:21]requested_item fd.num is exist - process it [14:26:21]SAM_PROTO_GetFieldsCounters [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 13 00 00 [14:26:21]Write to MH i2c: E2 08 00 57 09 80 13 00 00 00 00 00 00 DC [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 62 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 62 00 57 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DF DB 02 00 0E 04 04 00 88 02 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 28 [14:26:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DF DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:21]wFMCommunicate OK [14:26:21]SAM_PROTO_GetFieldsCounters done [14:26:21]requested_item shift.num is exist - process it [14:26:21]requested_item shift.opened is exist - process it [14:26:21]req_shift_opened [14:26:21]FM_GetShiftState [14:26:21]SAM_PROTO_GetShiftState [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 13 01 00 [14:26:21]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 0E 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 30 [14:26:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:26:21]wFMCommunicate OK [14:26:21]SAM_PROTO_GetShiftState done [14:26:21]FM_GetShiftState done [14:26:21]req_shift_opened done [14:26:21]requested_item shift.open_date is exist - process it [14:26:21]req_shift_open_date [14:26:21]req_shift_open_date done [14:26:21]produce_requested_data done [14:26:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187359,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:26:21]process_action_free close_receipt [14:26:21]json_value_free [14:26:21]json_value_free done [14:26:21]process_json_proto returns [14:26:21]Send response to host [14:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187359,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:26:21]free response buf [14:26:21]execute_script done [14:26:21]execute_script returns [14:26:21]free content buf [14:26:21]Sock 7.Close socket [14:26:21]Sock 7.Thread stoped [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:47]accept exits with 9 [14:26:47]New connection [14:26:47]New thread 3067420004 created [14:26:47]Thread 3067276644 joined [14:26:47]Waiting for new connection... [14:26:47] Sock 9.Parse request [14:26:47]Sock 9.Check first char [14:26:47]Sock 9.First char is OK [14:26:47]request: POST /json_proto HTTP/1.0 [14:26:47]Method: POST [14:26:47]URL: /json_proto [14:26:47]Method is POST - this is cgi request [14:26:47]url: /json_proto [14:26:47]query_string will be loaded in cgi processing [14:26:47]execute_cgi json_proto POST (null) [14:26:47]execute_cgi path=json_proto method=POST [14:26:47]POST find Content-Length [14:26:47]Host: 172.17.46.131:8080 [14:26:47]Content-Length: 754 [14:26:47]Content-Type: application/json [14:26:47] [14:26:47]POST finish read [14:26:47]Found Content-Length = 754 [14:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 27.090, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:47]execute_script... [14:26: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)412517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 27.090, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:47]POST & json_proto [14:26:47]process_json_proto [14:26:47]json parsed OK: [14:26:47]protocol is kg_v1.0 [14:26:47]action value=close_receipt [14:26:47]process_action close_receipt [14:26:47]cmd_close_receipt [14:26:47]MH_GetDate [14:26:47]Write to MH i2c: F0 00 00 59 09 51 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: F0 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: F0 09 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: F0 09 00 59 09 00 A7 3B B7 67 7E 41 4F 65 CD [14:26:47]GetLastDocTimeStamp 1740061578 [14:26:47]current date 1740061607 [14:26:47]FM_GetShiftState [14:26:47]SAM_PROTO_GetShiftState [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 01 00 [14:26:47]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 32 [14:26:47]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetShiftState done [14:26:47]FM_GetShiftState done [14:26:47]opened in 1740011697 [14:26:47]opened+sec_in_day 1740098097 [14:26:47]quantity*price = 0 [14:26:47]sum+1 = 1 [14:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 161 20.02.2025 14:26 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30076592 ФМ: 0000000000871826 ФД: 187360 ФПД: 230621486510616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142648&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187360&fm=230621486510616&tin=02508201610067®Number=0000000000091857&sum=0 [14:26:48]StoreToDocumentArchive [14:26:48]shift 648 fd 187360 [14:26:48]save to /storage/0648/doc_00187360 [14:26:48]save last doc name /storage/0648/doc_00187360 to /storage/kkm_last_doc_name [14:26:48]save OK [14:26:48]Clear old archive folders... [14:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:48]tlvbuf is 00E4A3F0 [14:26:48]SAM_PROTO_ClearQueue [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 09 00 00 [14:26:48]Write to MH i2c: E2 08 00 67 09 80 09 00 00 00 00 00 00 E2 [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 03 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [14:26:48]RAPDU: 90 00 [14:26:48]wFMCommunicate OK [14:26:48]SAM_PROTO_ClearQueue done [14:26:48]KKMCreateOFDPacket [14:26:48]OFDProtocolAddRootSTLVToBuf [14:26:48]FM_MakeSignedData [14:26:48]FM_MakeSignedData [14:26:48]SAM_PROTO_SignData [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 0D 01 02 [14:26:48]Write to MH i2c: E2 08 00 68 09 80 0D 01 02 00 00 00 00 EA [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 03 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [14:26:48]RAPDU: 90 00 [14:26:48]wFMCommunicate OK [14:26:48]wFMCommunicate request_size=255 [14:26:48]MH_SAM_APDU [14:26: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 32 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A8 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 DB 02 00 35 04 06 00 D1 [14:26:48]Write to MH i2c: E2 02 01 69 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 32 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A8 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 DB 02 00 35 04 06 00 D1 00 00 EB [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 03 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [14:26:48]RAPDU: 90 00 [14:26:48]wFMCommunicate OK [14:26:48]wFMCommunicate request_size=10 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 0D 02 02 05 BF BF C7 F2 18 [14:26:48]Write to MH i2c: E2 0D 00 6A 09 80 0D 02 02 05 00 BF BF C7 F2 18 00 00 46 [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 03 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [14:26:48]RAPDU: 90 00 [14:26:48]wFMCommunicate OK [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 0D 03 02 [14:26:48]Write to MH i2c: E2 08 00 6B 09 80 0D 03 02 00 00 00 00 EF [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 0B 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 0B 00 6B 09 00 50 5D B9 66 A3 1A 13 43 90 00 CF [14:26:48]RAPDU: 50 5D B9 66 A3 1A 13 43 90 00 [14:26:48]wFMCommunicate OK [14:26:48]SAM_PROTO_SignData done [14:26:48]FM_MakeSignedData done [14:26:48]CreateOFDProtocolMessage [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 11 00 00 [14:26:48]Write to MH i2c: E2 08 00 6C 09 80 11 00 00 00 00 00 00 EF [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 17 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 17 00 6C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [14:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:26:48]wFMCommunicate OK [14:26:48]CreateOFDProtocolMessage done [14:26:48]OFDSenderStorePacket 187360 [14:26:48]StoreOFDPacket docnum=187360 [14:26:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 87 32 07 01 57 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 32 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A8 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 DB 02 00 35 04 06 00 D1 BF BF C7 F2 18 50 5D B9 66 A3 1A 13 43 [14:26:48]CheckFolder [14:26:48]dirname=/storage/ofd_packets [14:26:48]CheckFolder done [14:26:48]ProducePacketName [14:26:48]name=ofd_packets/00187360 [14:26:48]NVStorageSaveData ofd_packets/00187360 [14:26:48]File name is /storage/ofd_packets/00187360 [14:26:48]Write 301 bytes [14:26:48]NVStorageSaveData done [14:26:48]OFDSenderStorePacket done [14:26:48]KKMCreateOFDPacket done [14:26:48]NVStorageSaveData kkm_last_timestamp [14:26:48]File name is /storage/kkm_last_timestamp [14:26:48]Write 4 bytes [14:26:48]NVStorageSaveData done [14:26:48]OFD Sender: Processing packet 187360 [packets to send 49, broken 48] [14:26:48]ProducePacketName [14:26:48]name=ofd_packets/00187360 [14:26:48]OFD Sender: To server: pG, [14:26:48]CommunicateWithHost lk.salyk.kg:30040 [14:26:48]ConnectInit lk.salyk.kg [14:26:48]ExternCall_PrintAddStr [14:26:48]wPrintStart [14:26:48]Write to MH i2c: 01 00 00 6D 09 76 [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: 01 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: 01 07 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [14:26:48]RasterBufferAndPrint [14:26:48]line Счет N : (1)412517 [14:26:48]line ИНН: 02508201610067 [14:26:48]line Контрольно-Кассовый Чек [14:26:48]line ПРОДАЖА [14:26:48]line ТРК (МРК, ГНК) : 32 [14:26:48]line Товар: 2710124130 [14:26:48]line Аи-92-К-2 [14:26:48]line 27.090 * 0.00 [14:26:48]line = 0.00 [14:26:48]line НДС 12% НСП 1% [14:26:48]line > о реализуемом товаре [14:26:48]line ИТОГО: 0.00 [14:26:48]line НСП 1% : 0.00 [14:26:48]line НДС 12% : 0.00 [14:26:48]line Наличными: 0.00 [14:26:48]line Безнал.: 0.00 [14:26:48]line Место: АЗС № 92 "Партнер Нефть" [14:26:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:26:48]line СНО: Общий режим [14:26:48]line Чек 161 20.02.2025 14:26 [14:26:48]line Смена: 648 ФФД: 1.0 [14:26:48]line ЗНМ: 0300000118 [14:26:48]line РНМ: 0000000000091857 [14:26:48]line Версия ККМ: 001 [14:26:48]line Талоны: ТК ГПНА Online [14:26:48]line 30076592 [14:26:48]line ФМ: 0000000000871826 [14:26:48]line ФД: 187360 [14:26:48]line ФПД: 230621486510616 [14:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142648&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187360&fm=230621486510616&tin=02508201610067®Number=0000000000091857&sum=0 [14:26:49]Connected sock=11 [14:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 87 32 07 01 57 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 32 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A8 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 DB 02 00 35 04 06 00 D1 BF BF C7 F2 18 50 5D B9 66 A3 1A 13 43 [14:26:49]written 0, free lines is 4095 [14:26:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D D9 47 00 C0 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 DB 02 00 F4 03 04 00 F8 E1 B6 67 B6 04 01 00 00 AE 27 A3 4C FB 07 D8 46 [14:26:49]CommunicateWithHost err = 0 [14:26:49]CheckOFDResponse [14:26:49]1017 (14) - 77093643461234 [14:26:49]1041 (16) - 0000000000871826 [14:26:49]1040 (4) - 187360 [14:26:49]1012 (4) - 20.02.2025 08:04 [14:26:49]1206 (1) - 0 [14:26:49]OFD Sender: Remove packet 187360 [14:26:49]ProducePacketName [14:26:49]name=ofd_packets/00187360 [14:26:49]NVStorageDeleteData [14:26:49]Write to MH i2c: 01 00 00 97 09 A0 [14:26:49]Write i2c OK [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: 01 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: 01 07 00 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: 01 07 00 97 09 00 00 00 00 00 FB 0C AE [14:26:49]RasterBufferAndPrint [14:26:49]line [14:26:49]line [14:26:49]line [14:26:49]line [14:26:49]line [14:26:49]written 0, free lines is 3329 [14:26:49]MH_Cut [14:26:49]Write to MH i2c: D1 01 00 9E 09 01 79 [14:26:49]Write i2c OK [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: D1 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: D1 01 00 [14:26:49]MH_I2C_Read... [14:26:49]Read from MH i2c: D1 01 00 9E 09 00 78 [14:26:49]Write to MH i2c: 01 00 00 9F 09 A8 [14:26:49]Write i2c OK [14:26:49]MH_I2C_Read... [14:26:49]OFD Sender: No OFD packet to send [14:26:50]*** Cut start [14:26:50]*** Partial cut [14:26:50]*** CUTSNS_PIN = 1 [14:26:50]*** CUTSNS_PIN = 0 [14:26:50]*** Brake cut motor [14:26:50]Read from MH i2c: 01 [14:26:50]MH_I2C_Read... [14:26:50]*** Stop cut motor [14:26:50]*** Cut end [14:26:50]Read from MH i2c: 01 07 00 [14:26:50]MH_I2C_Read... [14:26:50]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 FF 0F BD [14:26:50]process_action close_receipt done [14:26:50]requested_data is exist [14:26:50]produce_requested_data [14:26:50]requested_item fm.sn is exist - process it [14:26:50]wFMCommunicate request_size=4 [14:26:50]MH_SAM_APDU [14:26:50]CAPDU: 80 11 00 00 [14:26:50]Write to MH i2c: E2 08 00 A0 09 80 11 00 00 00 00 00 00 23 [14:26:50]Write i2c OK [14:26:50]MH_I2C_Read... [14:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:51]Read from MH i2c: E2 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 17 00 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 17 00 A0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 76 [14:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:26:51]wFMCommunicate OK [14:26:51]requested_item fd.num is exist - process it [14:26:51]SAM_PROTO_GetFieldsCounters [14:26:51]wFMCommunicate request_size=4 [14:26:51]MH_SAM_APDU [14:26:51]CAPDU: 80 13 00 00 [14:26:51]Write to MH i2c: E2 08 00 A1 09 80 13 00 00 00 00 00 00 26 [14:26:51]Write i2c OK [14:26:51]MH_I2C_Read... [14:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:51]Read from MH i2c: E2 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 62 00 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 62 00 A1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E0 DB 02 00 0E 04 04 00 88 02 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 76 [14:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E0 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:51]wFMCommunicate OK [14:26:51]SAM_PROTO_GetFieldsCounters done [14:26:51]requested_item shift.num is exist - process it [14:26:51]requested_item shift.opened is exist - process it [14:26:51]req_shift_opened [14:26:51]FM_GetShiftState [14:26:51]SAM_PROTO_GetShiftState [14:26:51]wFMCommunicate request_size=4 [14:26:51]MH_SAM_APDU [14:26:51]CAPDU: 80 13 01 00 [14:26:51]Write to MH i2c: E2 08 00 A2 09 80 13 01 00 00 00 00 00 28 [14:26:51]Write i2c OK [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 [14:26:51]MH_I2C_Read... [14:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:51]Read from MH i2c: E2 0E 00 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 0E 00 A2 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7A [14:26:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:26:51]wFMCommunicate OK [14:26:51]SAM_PROTO_GetShiftState done [14:26:51]FM_GetShiftState done [14:26:51]req_shift_opened done [14:26:51]requested_item shift.open_date is exist - process it [14:26:51]req_shift_open_date [14:26:51]req_shift_open_date done [14:26:51]produce_requested_data done [14:26:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187360,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:26:51]process_action_free close_receipt [14:26:51]json_value_free [14:26:51]json_value_free done [14:26:51]process_json_proto returns [14:26:51]Send response to host [14:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187360,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:26:51]free response buf [14:26:51]execute_script done [14:26:51]execute_script returns [14:26:51]free content buf [14:26:51]Sock 9.Close socket [14:26:51]Sock 9.Thread stoped [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:33]accept exits with 7 [14:27:33]New connection [14:27:33]New thread 3067276644 created [14:27:33]Thread 3067420004 joined [14:27:33]Waiting for new connection... [14:27:33] Sock 7.Parse request [14:27:33]Sock 7.Check first char [14:27:33]Sock 7.First char is OK [14:27:33]request: POST /json_proto HTTP/1.0 [14:27:33]Method: POST [14:27:33]URL: /json_proto [14:27:33]Method is POST - this is cgi request [14:27:33]url: /json_proto [14:27:33]query_string will be loaded in cgi processing [14:27:33]execute_cgi json_proto POST (null) [14:27:33]execute_cgi path=json_proto method=POST [14:27:33]POST find Content-Length [14:27:33]Host: 172.17.46.131:8080 [14:27:33]Content-Length: 673 [14:27:33]Content-Type: application/json [14:27:33] [14:27:33]POST finish read [14:27:33]Found Content-Length = 673 [14:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:33]execute_script... [14:27: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)412519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:33]POST & json_proto [14:27:33]process_json_proto [14:27:33]json parsed OK: [14:27:33]protocol is kg_v1.0 [14:27:33]action value=close_receipt [14:27:33]process_action close_receipt [14:27:33]cmd_close_receipt [14:27:33]MH_GetDate [14:27:33]Write to MH i2c: F0 00 00 A3 09 9B [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: F0 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: F0 09 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: F0 09 00 A3 09 00 D5 3B B7 67 7E 41 4F 65 45 [14:27:33]GetLastDocTimeStamp 1740061608 [14:27:33]current date 1740061653 [14:27:33]FM_GetShiftState [14:27:33]SAM_PROTO_GetShiftState [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 13 01 00 [14:27:33]Write to MH i2c: E2 08 00 A4 09 80 13 01 00 00 00 00 00 2A [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 0E 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 0E 00 A4 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7C [14:27:33]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:27:33]wFMCommunicate OK [14:27:33]SAM_PROTO_GetShiftState done [14:27:33]FM_GetShiftState done [14:27:33]opened in 1740011697 [14:27:33]opened+sec_in_day 1740098097 [14:27:33]quantity*price = 50021 [14:27:33]sum+1 = 50022 [14:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 162 20.02.2025 14:27 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187361 ФПД: 179551895277910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142734&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187361&fm=179551895277910&tin=02508201610067®Number=0000000000091857&sum=50000 [14:27:34]StoreToDocumentArchive [14:27:34]shift 648 fd 187361 [14:27:34]save to /storage/0648/doc_00187361 [14:27:34]save last doc name /storage/0648/doc_00187361 to /storage/kkm_last_doc_name [14:27:34]save OK [14:27:34]Clear old archive folders... [14:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:27:34]tlvbuf is 00E538F0 [14:27:34]SAM_PROTO_ClearQueue [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 09 00 00 [14:27:34]Write to MH i2c: E2 08 00 B1 09 80 09 00 00 00 00 00 00 2C [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [14:27:34]RAPDU: 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_ClearQueue done [14:27:34]KKMCreateOFDPacket [14:27:34]OFDProtocolAddRootSTLVToBuf [14:27:34]FM_MakeSignedData [14:27:34]FM_MakeSignedData [14:27:34]SAM_PROTO_SignData [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 0D 01 02 [14:27:34]Write to MH i2c: E2 08 00 B2 09 80 0D 01 02 00 00 00 00 34 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [14:27:34]RAPDU: 90 00 [14:27:34]wFMCommunicate OK [14:27:34]wFMCommunicate request_size=255 [14:27:34]MH_SAM_APDU [14:27: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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 D6 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 DB 02 00 35 04 06 00 A3 4D 2E EF [14:27:34]Write to MH i2c: E2 02 01 B3 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 D6 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 DB 02 00 35 04 06 00 A3 4D 2E EF 00 00 16 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [14:27:34]RAPDU: 90 00 [14:27:34]wFMCommunicate OK [14:27:34]wFMCommunicate request_size=7 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 0D 02 02 02 D1 56 [14:27:34]Write to MH i2c: E2 0A 00 B4 09 80 0D 02 02 02 00 D1 56 00 00 62 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [14:27:34]RAPDU: 90 00 [14:27:34]wFMCommunicate OK [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 0D 03 02 [14:27:34]Write to MH i2c: E2 08 00 B5 09 80 0D 03 02 00 00 00 00 39 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0B 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0B 00 B5 09 00 54 33 C8 2D BB F3 08 BE 90 00 2A [14:27:34]RAPDU: 54 33 C8 2D BB F3 08 BE 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_SignData done [14:27:34]FM_MakeSignedData done [14:27:34]CreateOFDProtocolMessage [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 11 00 00 [14:27:34]Write to MH i2c: E2 08 00 B6 09 80 11 00 00 00 00 00 00 39 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 17 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 17 00 B6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [14:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:27:34]wFMCommunicate OK [14:27:34]CreateOFDProtocolMessage done [14:27:34]OFDSenderStorePacket 187361 [14:27:34]StoreOFDPacket docnum=187361 [14:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F3 1A 04 01 43 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 D6 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 DB 02 00 35 04 06 00 A3 4D 2E EF D1 56 54 33 C8 2D BB F3 08 BE [14:27:34]CheckFolder [14:27:34]dirname=/storage/ofd_packets [14:27:34]CheckFolder done [14:27:34]ProducePacketName [14:27:34]name=ofd_packets/00187361 [14:27:34]NVStorageSaveData ofd_packets/00187361 [14:27:34]File name is /storage/ofd_packets/00187361 [14:27:34]Write 298 bytes [14:27:34]NVStorageSaveData done [14:27:34]OFDSenderStorePacket done [14:27:34]KKMCreateOFDPacket done [14:27:34]NVStorageSaveData kkm_last_timestamp [14:27:34]File name is /storage/kkm_last_timestamp [14:27:34]Write 4 bytes [14:27:34]NVStorageSaveData done [14:27:34]ExternCall_PrintAddStr [14:27:34]wPrintStart [14:27:34]Write to MH i2c: 01 00 00 B7 09 C0 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 07 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 07 00 B7 09 00 00 00 00 00 FF 0F D5 [14:27:34]RasterBufferAndPrint [14:27:34]line Счет N : (1)412519 [14:27:34]line ИНН: 02508201610067 [14:27:34]line Контрольно-Кассовый Чек [14:27:34]line ПРОДАЖА [14:27:34]line ТРК (МРК, ГНК) : 5 [14:27:34]line Товар: 2710194210 [14:27:34]line ДТ-К-5 [14:27:34]line 6.890 * 72.60 [14:27:34]line = 500.21 [14:27:34]line НДС 12% НСП 1% [14:27:34]line > о реализуемом товаре [14:27:34]line ОКРУГЛЕНИЕ: -0.21 [14:27:34]line ИТОГО: 500.00 [14:27:34]line Внесено: 500.00 [14:27:34]line СДАЧА: 0.00 [14:27:34]line НСП 1% : 4.43 [14:27:34]line НДС 12% : 53.12 [14:27:34]line Наличными: 500.00 [14:27:34]line Безнал.: 0.00 [14:27:34]line Место: АЗС № 92 "Партнер Нефть" [14:27:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:27:34]line СНО: Общий режим [14:27:34]line Чек 162 20.02.2025 14:27 [14:27:34]line Смена: 648 ФФД: 1.0 [14:27:34]line ЗНМ: 0300000118 [14:27:34]line РНМ: 0000000000091857 [14:27:34]line Версия ККМ: 001 [14:27:34]line ФМ: 0000000000871826 [14:27:34]line ФД: 187361 [14:27:34]line ФПД: 179551895277910 [14:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T142734&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187361&fm=179551895277910&tin=02508201610067®Number=0000000000091857&sum=50000 [14:27:35]OFD Sender: Processing packet 187361 [packets to send 49, broken 48] [14:27:35]ProducePacketName [14:27:35]name=ofd_packets/00187361 [14:27:35]OFD Sender: To server: pG, [14:27:35]CommunicateWithHost lk.salyk.kg:30040 [14:27:35]ConnectInit lk.salyk.kg [14:27:35]written 0, free lines is 4095 [14:27:35]Connected sock=10 [14:27:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F3 1A 04 01 43 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 D6 3B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 DB 02 00 35 04 06 00 A3 4D 2E EF D1 56 54 33 C8 2D BB F3 08 BE [14:27:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0A F8 47 00 E4 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 31 38 32 36 10 04 04 00 E1 DB 02 00 F4 03 04 00 26 E2 B6 67 B6 04 01 00 00 5B 77 D8 93 AB 51 0F A0 [14:27:35]CommunicateWithHost err = 0 [14:27:35]CheckOFDResponse [14:27:35]1017 (14) - 77093643461234 [14:27:35]1041 (16) - 0000000000871826 [14:27:35]1040 (4) - 187361 [14:27:35]1012 (4) - 20.02.2025 08:04 [14:27:35]1206 (1) - 0 [14:27:35]OFD Sender: Remove packet 187361 [14:27:35]ProducePacketName [14:27:35]name=ofd_packets/00187361 [14:27:35]NVStorageDeleteData [14:27:35]Write to MH i2c: 01 00 00 E2 09 EB [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 E2 09 00 00 00 00 00 E5 0C E3 [14:27:35]RasterBufferAndPrint [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]written 0, free lines is 3307 [14:27:35]MH_Cut [14:27:35]Write to MH i2c: D1 01 00 E9 09 01 C4 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 01 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 01 00 E9 09 00 C3 [14:27:35]Write to MH i2c: 01 00 00 EA 09 F3 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:36]OFD Sender: No OFD packet to send [14:27:36]*** Cut start [14:27:36]*** Partial cut [14:27:36]*** CUTSNS_PIN = 1 [14:27:36]*** CUTSNS_PIN = 0 [14:27:36]*** Brake cut motor [14:27:36]Read from MH i2c: 01 [14:27:36]MH_I2C_Read... [14:27:36]*** Stop cut motor [14:27:36]*** Cut end [14:27:36]Read from MH i2c: 01 07 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: 01 07 00 EA 09 00 00 00 00 00 FF 0F 08 [14:27:36]process_action close_receipt done [14:27:36]requested_data is exist [14:27:36]produce_requested_data [14:27:36]requested_item fm.sn is exist - process it [14:27:36]wFMCommunicate request_size=4 [14:27:36]MH_SAM_APDU [14:27:36]CAPDU: 80 11 00 00 [14:27:36]Write to MH i2c: E2 08 00 EB 09 80 11 00 00 00 00 00 00 6E [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:36]Read from MH i2c: E2 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 17 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 17 00 EB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C1 [14:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:27:36]wFMCommunicate OK [14:27:36]requested_item fd.num is exist - process it [14:27:36]SAM_PROTO_GetFieldsCounters [14:27:36]wFMCommunicate request_size=4 [14:27:36]MH_SAM_APDU [14:27:36]CAPDU: 80 13 00 00 [14:27:36]Write to MH i2c: E2 08 00 EC 09 80 13 00 00 00 00 00 00 71 [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 62 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 62 00 EC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E1 DB 02 00 0E 04 04 00 88 02 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 C5 [14:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E1 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:37]wFMCommunicate OK [14:27:37]SAM_PROTO_GetFieldsCounters done [14:27:37]requested_item shift.num is exist - process it [14:27:37]requested_item shift.opened is exist - process it [14:27:37]req_shift_opened [14:27:37]FM_GetShiftState [14:27:37]SAM_PROTO_GetShiftState [14:27:37]wFMCommunicate request_size=4 [14:27:37]MH_SAM_APDU [14:27:37]CAPDU: 80 13 01 00 [14:27:37]Write to MH i2c: E2 08 00 ED 09 80 13 01 00 00 00 00 00 73 [14:27:37]Write i2c OK [14:27:37]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 0E 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 0E 00 ED 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C5 [14:27:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:27:37]wFMCommunicate OK [14:27:37]SAM_PROTO_GetShiftState done [14:27:37]FM_GetShiftState done [14:27:37]req_shift_opened done [14:27:37]requested_item shift.open_date is exist - process it [14:27:37]req_shift_open_date [14:27:37]req_shift_open_date done [14:27:37]produce_requested_data done [14:27:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187361,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:27:37]process_action_free close_receipt [14:27:37]json_value_free [14:27:37]json_value_free done [14:27:37]process_json_proto returns [14:27:37]Send response to host [14:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187361,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:27:37]free response buf [14:27:37]execute_script done [14:27:37]execute_script returns [14:27:37]free content buf [14:27:37]Sock 7.Close socket [14:27:37]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:47]accept exits with 9 [14:32:47]New connection [14:32:47]New thread 3067420004 created [14:32:47]Thread 3067276644 joined [14:32:47]Waiting for new connection... [14:32:47] Sock 9.Parse request [14:32:47]Sock 9.Check first char [14:32:47]Sock 9.First char is OK [14:32:47]request: POST /json_proto HTTP/1.0 [14:32:47]Method: POST [14:32:47]URL: /json_proto [14:32:47]Method is POST - this is cgi request [14:32:47]url: /json_proto [14:32:47]query_string will be loaded in cgi processing [14:32:47]execute_cgi json_proto POST (null) [14:32:47]execute_cgi path=json_proto method=POST [14:32:47]POST find Content-Length [14:32:47]Host: 172.17.46.131:8080 [14:32:47]Content-Length: 677 [14:32:47]Content-Type: application/json [14:32:47] [14:32:47]POST finish read [14:32:47]Found Content-Length = 677 [14:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 4.870, "sum" : 350.15, "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" ] } } [14:32:47]execute_script... [14:32: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)412520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 4.870, "sum" : 350.15, "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" ] } } [14:32:47]POST & json_proto [14:32:47]process_json_proto [14:32:47]json parsed OK: [14:32:47]protocol is kg_v1.0 [14:32:47]action value=close_receipt [14:32:47]process_action close_receipt [14:32:47]cmd_close_receipt [14:32:47]MH_GetDate [14:32:47]Write to MH i2c: F0 00 00 EE 09 E6 [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: F0 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: F0 09 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: F0 09 00 EE 09 00 10 3D B7 67 7E 41 4F 65 CD [14:32:47]GetLastDocTimeStamp 1740061654 [14:32:47]current date 1740061968 [14:32:47]FM_GetShiftState [14:32:47]SAM_PROTO_GetShiftState [14:32:47]wFMCommunicate request_size=4 [14:32:47]MH_SAM_APDU [14:32:47]CAPDU: 80 13 01 00 [14:32:47]Write to MH i2c: E2 08 00 EF 09 80 13 01 00 00 00 00 00 75 [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:47]Read from MH i2c: E2 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 0E 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 0E 00 EF 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C7 [14:32:47]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:32:47]wFMCommunicate OK [14:32:47]SAM_PROTO_GetShiftState done [14:32:47]FM_GetShiftState done [14:32:47]opened in 1740011697 [14:32:47]opened+sec_in_day 1740098097 [14:32:47]quantity*price = 35015 [14:32:47]sum+1 = 35016 [14:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.18 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 163 20.02.2025 14:32 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187362 ФПД: 132576906541272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143248&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187362&fm=132576906541272&tin=02508201610067®Number=0000000000091857&sum=35000 [14:32:48]StoreToDocumentArchive [14:32:48]shift 648 fd 187362 [14:32:48]save to /storage/0648/doc_00187362 [14:32:48]save last doc name /storage/0648/doc_00187362 to /storage/kkm_last_doc_name [14:32:48]save OK [14:32:48]Clear old archive folders... [14:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:48]tlvbuf is 00E4CD70 [14:32:48]SAM_PROTO_ClearQueue [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 09 00 00 [14:32:48]Write to MH i2c: E2 08 00 FC 09 80 09 00 00 00 00 00 00 77 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [14:32:48]RAPDU: 90 00 [14:32:48]wFMCommunicate OK [14:32:48]SAM_PROTO_ClearQueue done [14:32:48]KKMCreateOFDPacket [14:32:48]OFDProtocolAddRootSTLVToBuf [14:32:48]FM_MakeSignedData [14:32:48]FM_MakeSignedData [14:32:48]SAM_PROTO_SignData [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 0D 01 02 [14:32:48]Write to MH i2c: E2 08 00 FD 09 80 0D 01 02 00 00 00 00 7F [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [14:32:48]RAPDU: 90 00 [14:32:48]wFMCommunicate OK [14:32:48]wFMCommunicate request_size=255 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 A3 00 00 00 F4 03 04 00 10 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 DB 02 00 35 04 06 00 78 [14:32:48]Write to MH i2c: E2 02 01 FE 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 A3 00 00 00 F4 03 04 00 10 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 DB 02 00 35 04 06 00 78 00 00 46 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [14:32:48]RAPDU: 90 00 [14:32:48]wFMCommunicate OK [14:32:48]wFMCommunicate request_size=10 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 0D 02 02 05 93 F7 6B 78 D8 [14:32:48]Write to MH i2c: E2 0D 00 FF 09 80 0D 02 02 05 00 93 F7 6B 78 D8 00 00 D1 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [14:32:48]RAPDU: 90 00 [14:32:48]wFMCommunicate OK [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 0D 03 02 [14:32:48]Write to MH i2c: E2 08 00 00 0A 80 0D 03 02 00 00 00 00 85 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 0B 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 0B 00 00 0A 00 95 2B 3A E0 A0 01 63 99 90 00 FD [14:32:48]RAPDU: 95 2B 3A E0 A0 01 63 99 90 00 [14:32:48]wFMCommunicate OK [14:32:48]SAM_PROTO_SignData done [14:32:48]FM_MakeSignedData done [14:32:48]CreateOFDProtocolMessage [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 11 00 00 [14:32:48]Write to MH i2c: E2 08 00 01 0A 80 11 00 00 00 00 00 00 85 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 17 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 17 00 01 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [14:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:32:48]wFMCommunicate OK [14:32:48]CreateOFDProtocolMessage done [14:32:48]OFDSenderStorePacket 187362 [14:32:48]StoreOFDPacket docnum=187362 [14:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D8 C1 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 A3 00 00 00 F4 03 04 00 10 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 DB 02 00 35 04 06 00 78 93 F7 6B 78 D8 95 2B 3A E0 A0 01 63 99 [14:32:48]CheckFolder [14:32:48]dirname=/storage/ofd_packets [14:32:48]CheckFolder done [14:32:48]ProducePacketName [14:32:48]name=ofd_packets/00187362 [14:32:48]NVStorageSaveData ofd_packets/00187362 [14:32:48]File name is /storage/ofd_packets/00187362 [14:32:48]Write 301 bytes [14:32:48]NVStorageSaveData done [14:32:48]OFDSenderStorePacket done [14:32:48]KKMCreateOFDPacket done [14:32:48]NVStorageSaveData kkm_last_timestamp [14:32:48]File name is /storage/kkm_last_timestamp [14:32:48]Write 4 bytes [14:32:48]NVStorageSaveData done [14:32:48]ExternCall_PrintAddStr [14:32:48]wPrintStart [14:32:48]Write to MH i2c: 01 00 00 02 0A 0C [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 07 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 07 00 02 0A 00 00 00 00 00 FF 0F 21 [14:32:48]RasterBufferAndPrint [14:32:48]line Счет N : (1)412520 [14:32:48]line ИНН: 02508201610067 [14:32:48]line Контрольно-Кассовый Чек [14:32:48]line ПРОДАЖА [14:32:48]line ТРК (МРК, ГНК) : 23 [14:32:48]line Товар: 2710124500 [14:32:48]line Аи-95-К-5 [14:32:48]line 4.870 * 71.90 [14:32:48]line = 350.15 [14:32:48]line НДС 12% НСП 1% [14:32:48]line > о реализуемом товаре [14:32:48]line ОКРУГЛЕНИЕ: -0.15 [14:32:48]line ИТОГО: 350.00 [14:32:48]line Внесено: 350.00 [14:32:48]line СДАЧА: 0.00 [14:32:48]line НСП 1% : 3.10 [14:32:48]line НДС 12% : 37.18 [14:32:48]line Наличными: 350.00 [14:32:48]line Безнал.: 0.00 [14:32:48]line Место: АЗС № 92 "Партнер Нефть" [14:32:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:32:48]line СНО: Общий режим [14:32:48]line Чек 163 20.02.2025 14:32 [14:32:48]line Смена: 648 ФФД: 1.0 [14:32:48]line ЗНМ: 0300000118 [14:32:48]line РНМ: 0000000000091857 [14:32:48]line Версия ККМ: 001 [14:32:48]line ФМ: 0000000000871826 [14:32:48]line ФД: 187362 [14:32:48]line ФПД: 132576906541272 [14:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143248&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187362&fm=132576906541272&tin=02508201610067®Number=0000000000091857&sum=35000 [14:32:49]written 0, free lines is 4095 [14:32:49]OFD Sender: Processing packet 187362 [packets to send 49, broken 48] [14:32:49]ProducePacketName [14:32:49]name=ofd_packets/00187362 [14:32:49]OFD Sender: To server: pG, [14:32:49]CommunicateWithHost lk.salyk.kg:30040 [14:32:49]ConnectInit lk.salyk.kg [14:32:49]Connected sock=7 [14:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D8 C1 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 A3 00 00 00 F4 03 04 00 10 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 DB 02 00 35 04 06 00 78 93 F7 6B 78 D8 95 2B 3A E0 A0 01 63 99 [14:32:49]Write to MH i2c: 01 00 00 2D 0A 37 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: 01 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: 01 07 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: 01 07 00 2D 0A 00 00 00 00 00 E8 0C 32 [14:32:49]RasterBufferAndPrint [14:32:49]line [14:32:49]line [14:32:49]line [14:32:49]line [14:32:49]line [14:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9D 84 47 00 B0 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 DB 02 00 F4 03 04 00 60 E3 B6 67 B6 04 01 00 00 1E 59 C8 76 AB D3 3E B4 [14:32:49]CommunicateWithHost err = 0 [14:32:49]CheckOFDResponse [14:32:49]1017 (14) - 77093643461234 [14:32:49]1041 (16) - 0000000000871826 [14:32:49]1040 (4) - 187362 [14:32:49]1012 (4) - 20.02.2025 08:10 [14:32:49]1206 (1) - 0 [14:32:49]OFD Sender: Remove packet 187362 [14:32:49]ProducePacketName [14:32:49]name=ofd_packets/00187362 [14:32:49]NVStorageDeleteData [14:32:49]written 0, free lines is 3310 [14:32:49]MH_Cut [14:32:49]Write to MH i2c: D1 01 00 34 0A 01 10 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: D1 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: D1 01 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: D1 01 00 34 0A 00 0F [14:32:49]Write to MH i2c: 01 00 00 35 0A 3F [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:50]OFD Sender: No OFD packet to send [14:32:50]*** Cut start [14:32:50]*** Partial cut [14:32:50]*** CUTSNS_PIN = 1 [14:32:50]*** CUTSNS_PIN = 0 [14:32:50]*** Brake cut motor [14:32:51]Read from MH i2c: 01 [14:32:51]MH_I2C_Read... [14:32:51]*** Stop cut motor [14:32:51]*** Cut end [14:32:51]Read from MH i2c: 01 07 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: 01 07 00 35 0A 00 00 00 00 00 FF 0F 54 [14:32:51]process_action close_receipt done [14:32:51]requested_data is exist [14:32:51]produce_requested_data [14:32:51]requested_item fm.sn is exist - process it [14:32:51]wFMCommunicate request_size=4 [14:32:51]MH_SAM_APDU [14:32:51]CAPDU: 80 11 00 00 [14:32:51]Write to MH i2c: E2 08 00 36 0A 80 11 00 00 00 00 00 00 BA [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 [14:32:51]MH_I2C_Read... [14:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:51]Read from MH i2c: E2 17 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 17 00 36 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0D [14:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:32:51]wFMCommunicate OK [14:32:51]requested_item fd.num is exist - process it [14:32:51]SAM_PROTO_GetFieldsCounters [14:32:51]wFMCommunicate request_size=4 [14:32:51]MH_SAM_APDU [14:32:51]CAPDU: 80 13 00 00 [14:32:51]Write to MH i2c: E2 08 00 37 0A 80 13 00 00 00 00 00 00 BD [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:51]Read from MH i2c: E2 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 62 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 62 00 37 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E2 DB 02 00 0E 04 04 00 88 02 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 15 [14:32:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E2 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:51]wFMCommunicate OK [14:32:51]SAM_PROTO_GetFieldsCounters done [14:32:51]requested_item shift.num is exist - process it [14:32:51]requested_item shift.opened is exist - process it [14:32:51]req_shift_opened [14:32:51]FM_GetShiftState [14:32:51]SAM_PROTO_GetShiftState [14:32:51]wFMCommunicate request_size=4 [14:32:51]MH_SAM_APDU [14:32:51]CAPDU: 80 13 01 00 [14:32:51]Write to MH i2c: E2 08 00 38 0A 80 13 01 00 00 00 00 00 BF [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:51]Read from MH i2c: E2 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 0E 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 0E 00 38 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 11 [14:32:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:32:51]wFMCommunicate OK [14:32:51]SAM_PROTO_GetShiftState done [14:32:51]FM_GetShiftState done [14:32:51]req_shift_opened done [14:32:51]requested_item shift.open_date is exist - process it [14:32:51]req_shift_open_date [14:32:51]req_shift_open_date done [14:32:51]produce_requested_data done [14:32:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187362,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:32:51]process_action_free close_receipt [14:32:51]json_value_free [14:32:51]json_value_free done [14:32:51]process_json_proto returns [14:32:51]Send response to host [14:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187362,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:32:51]free response buf [14:32:51]execute_script done [14:32:51]execute_script returns [14:32:51]free content buf [14:32:51]Sock 9.Close socket [14:32:51]Sock 9.Thread stoped [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:51]accept exits with 10 [14:33:51]New connection [14:33:51]New thread 3067276644 created [14:33:51]Thread 3067420004 joined [14:33:51]Waiting for new connection... [14:33:51] Sock 10.Parse request [14:33:51]Sock 10.Check first char [14:33:51]Sock 10.First char is OK [14:33:51]request: POST /json_proto HTTP/1.0 [14:33:51]Method: POST [14:33:51]URL: /json_proto [14:33:51]Method is POST - this is cgi request [14:33:51]url: /json_proto [14:33:51]query_string will be loaded in cgi processing [14:33:51]execute_cgi json_proto POST (null) [14:33:51]execute_cgi path=json_proto method=POST [14:33:51]POST find Content-Length [14:33:51]Host: 172.17.46.131:8080 [14:33:51]Content-Length: 803 [14:33:51]Content-Type: application/json [14:33:51] [14:33:51]POST finish read [14:33:51]Found Content-Length = 803 [14:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:51]execute_script... [14:33:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:51]POST & json_proto [14:33:51]process_json_proto [14:33:51]json parsed OK: [14:33:51]protocol is kg_v1.0 [14:33:51]action value=close_receipt [14:33:51]process_action close_receipt [14:33:51]cmd_close_receipt [14:33:51]MH_GetDate [14:33:51]Write to MH i2c: F0 00 00 39 0A 32 [14:33:51]Write i2c OK [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: F0 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: F0 09 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: F0 09 00 39 0A 00 50 3D B7 67 7E 41 4F 65 59 [14:33:51]GetLastDocTimeStamp 1740061968 [14:33:51]current date 1740062032 [14:33:51]FM_GetShiftState [14:33:51]SAM_PROTO_GetShiftState [14:33:51]wFMCommunicate request_size=4 [14:33:51]MH_SAM_APDU [14:33:51]CAPDU: 80 13 01 00 [14:33:51]Write to MH i2c: E2 08 00 3A 0A 80 13 01 00 00 00 00 00 C1 [14:33:51]Write i2c OK [14:33:51]MH_I2C_Read... [14:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:51]Read from MH i2c: E2 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 0E 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 0E 00 3A 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 13 [14:33:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:33:51]wFMCommunicate OK [14:33:51]SAM_PROTO_GetShiftState done [14:33:51]FM_GetShiftState done [14:33:51]opened in 1740011697 [14:33:51]opened+sec_in_day 1740098097 [14:33:51]quantity*price = 100012 [14:33:51]sum+1 = 100014 [14:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 164 20.02.2025 14:33 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187363 ФПД: 252969857183793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143352&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187363&fm=252969857183793&tin=02508201610067®Number=0000000000091857&sum=100013 [14:33:52]StoreToDocumentArchive [14:33:52]shift 648 fd 187363 [14:33:52]save to /storage/0648/doc_00187363 [14:33:52]save last doc name /storage/0648/doc_00187363 to /storage/kkm_last_doc_name [14:33:52]save OK [14:33:52]Clear old archive folders... [14:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:52]tlvbuf is 00E52390 [14:33:52]SAM_PROTO_ClearQueue [14:33:52]wFMCommunicate request_size=4 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 09 00 00 [14:33:52]Write to MH i2c: E2 08 00 47 0A 80 09 00 00 00 00 00 00 C3 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [14:33:52]RAPDU: 90 00 [14:33:52]wFMCommunicate OK [14:33:52]SAM_PROTO_ClearQueue done [14:33:52]KKMCreateOFDPacket [14:33:52]OFDProtocolAddRootSTLVToBuf [14:33:52]FM_MakeSignedData [14:33:52]FM_MakeSignedData [14:33:52]SAM_PROTO_SignData [14:33:52]wFMCommunicate request_size=4 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 0D 01 02 [14:33:52]Write to MH i2c: E2 08 00 48 0A 80 0D 01 02 00 00 00 00 CB [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 03 00 48 0A 00 90 00 C6 [14:33:52]RAPDU: 90 00 [14:33:52]wFMCommunicate OK [14:33:52]wFMCommunicate request_size=255 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 50 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 DB 02 00 35 04 06 00 E6 [14:33:52]Write to MH i2c: E2 02 01 49 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 50 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 DB 02 00 35 04 06 00 E6 00 00 D5 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 49 0A 00 90 00 C7 [14:33:53]RAPDU: 90 00 [14:33:53]wFMCommunicate OK [14:33:53]wFMCommunicate request_size=10 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 0D 02 02 05 13 22 79 F0 31 [14:33:53]Write to MH i2c: E2 0D 00 4A 0A 80 0D 02 02 05 00 13 22 79 F0 31 00 00 A7 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [14:33:53]RAPDU: 90 00 [14:33:53]wFMCommunicate OK [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 0D 03 02 [14:33:53]Write to MH i2c: E2 08 00 4B 0A 80 0D 03 02 00 00 00 00 D0 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 0B 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 0B 00 4B 0A 00 1B 63 67 99 9C AD 8F F2 90 00 19 [14:33:53]RAPDU: 1B 63 67 99 9C AD 8F F2 90 00 [14:33:53]wFMCommunicate OK [14:33:53]SAM_PROTO_SignData done [14:33:53]FM_MakeSignedData done [14:33:53]CreateOFDProtocolMessage [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 11 00 00 [14:33:53]Write to MH i2c: E2 08 00 4C 0A 80 11 00 00 00 00 00 00 D0 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 17 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 17 00 4C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 23 [14:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:33:53]wFMCommunicate OK [14:33:53]CreateOFDProtocolMessage done [14:33:53]OFDSenderStorePacket 187363 [14:33:53]StoreOFDPacket docnum=187363 [14:33:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3F FB 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 50 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 DB 02 00 35 04 06 00 E6 13 22 79 F0 31 1B 63 67 99 9C AD 8F F2 [14:33:53]CheckFolder [14:33:53]dirname=/storage/ofd_packets [14:33:53]CheckFolder done [14:33:53]ProducePacketName [14:33:53]name=ofd_packets/00187363 [14:33:53]NVStorageSaveData ofd_packets/00187363 [14:33:53]File name is /storage/ofd_packets/00187363 [14:33:53]Write 301 bytes [14:33:53]NVStorageSaveData done [14:33:53]OFDSenderStorePacket done [14:33:53]KKMCreateOFDPacket done [14:33:53]NVStorageSaveData kkm_last_timestamp [14:33:53]File name is /storage/kkm_last_timestamp [14:33:53]Write 4 bytes [14:33:53]NVStorageSaveData done [14:33:53]ExternCall_PrintAddStr [14:33:53]wPrintStart [14:33:53]Write to MH i2c: 01 00 00 4D 0A 57 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: 01 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: 01 07 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: 01 07 00 4D 0A 00 00 00 00 00 FF 0F 6C [14:33:53]RasterBufferAndPrint [14:33:53]line Счет N : (1)412521 [14:33:53]line ИНН: 02508201610067 [14:33:53]line Контрольно-Кассовый Чек [14:33:53]line ПРОДАЖА [14:33:53]line ТРК (МРК, ГНК) : 33 [14:33:53]line Товар: 2710124500 [14:33:53]line Аи-95-К-5 [14:33:53]line 13.910 * 71.90 [14:33:53]line = 1000.13 [14:33:53]line НДС 12% НСП 1% [14:33:53]line > о реализуемом товаре [14:33:53]line ИТОГО: 1000.13 [14:33:53]line НСП 1% : 8.85 [14:33:53]line НДС 12% : 106.21 [14:33:53]line Наличными: 0.00 [14:33:53]line Безнал.: 1000.13 [14:33:53]line Место: АЗС № 92 "Партнер Нефть" [14:33:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:33:53]line СНО: Общий режим [14:33:53]line Чек 164 20.02.2025 14:33 [14:33:53]line Смена: 648 ФФД: 1.0 [14:33:53]line ЗНМ: 0300000118 [14:33:53]line РНМ: 0000000000091857 [14:33:53]line Версия ККМ: 001 [14:33:53]line Платежная система: O! деньги [14:33:53]line ФМ: 0000000000871826 [14:33:53]line ФД: 187363 [14:33:53]line ФПД: 252969857183793 [14:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143352&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187363&fm=252969857183793&tin=02508201610067®Number=0000000000091857&sum=100013 [14:33:53]written 0, free lines is 4095 [14:33:53]OFD Sender: Processing packet 187363 [packets to send 49, broken 48] [14:33:53]ProducePacketName [14:33:53]name=ofd_packets/00187363 [14:33:53]OFD Sender: To server: pG, [14:33:53]CommunicateWithHost lk.salyk.kg:30040 [14:33:53]ConnectInit lk.salyk.kg [14:33:53]Connected sock=7 [14:33:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3F FB 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 50 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 DB 02 00 35 04 06 00 E6 13 22 79 F0 31 1B 63 67 99 9C AD 8F F2 [14:33:54]Write to MH i2c: 01 00 00 77 0A 81 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 77 0A 00 00 00 00 00 FB 0C 8F [14:33:54]RasterBufferAndPrint [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]written 0, free lines is 3330 [14:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C5 CD 47 00 BF FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 DB 02 00 F4 03 04 00 A1 E3 B6 67 B6 04 01 00 00 F0 EB AD DF 46 23 56 2B [14:33:54]CommunicateWithHost err = 0 [14:33:54]CheckOFDResponse [14:33:54]1017 (14) - 77093643461234 [14:33:54]1041 (16) - 0000000000871826 [14:33:54]1040 (4) - 187363 [14:33:54]1012 (4) - 20.02.2025 08:11 [14:33:54]1206 (1) - 0 [14:33:54]OFD Sender: Remove packet 187363 [14:33:54]ProducePacketName [14:33:54]name=ofd_packets/00187363 [14:33:54]NVStorageDeleteData [14:33:54]MH_Cut [14:33:54]Write to MH i2c: D1 01 00 7E 0A 01 5A [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 01 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 01 00 7E 0A 00 59 [14:33:54]Write to MH i2c: 01 00 00 7F 0A 89 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]OFD Sender: No OFD packet to send [14:33:54]*** Cut start [14:33:54]*** Partial cut [14:33:54]*** CUTSNS_PIN = 1 [14:33:54]*** CUTSNS_PIN = 0 [14:33:55]*** Brake cut motor [14:33:55]Read from MH i2c: 01 [14:33:55]MH_I2C_Read... [14:33:55]*** Stop cut motor [14:33:55]*** Cut end [14:33:55]Read from MH i2c: 01 07 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 07 00 7F 0A 00 00 00 00 00 FF 0F 9E [14:33:55]process_action close_receipt done [14:33:55]requested_data is exist [14:33:55]produce_requested_data [14:33:55]requested_item fm.sn is exist - process it [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 11 00 00 [14:33:55]Write to MH i2c: E2 08 00 80 0A 80 11 00 00 00 00 00 00 04 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 80 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 57 [14:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:33:55]wFMCommunicate OK [14:33:55]requested_item fd.num is exist - process it [14:33:55]SAM_PROTO_GetFieldsCounters [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 00 00 [14:33:55]Write to MH i2c: E2 08 00 81 0A 80 13 00 00 00 00 00 00 07 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 62 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 62 00 81 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E3 DB 02 00 0E 04 04 00 88 02 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 63 [14:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E3 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetFieldsCounters done [14:33:55]requested_item shift.num is exist - process it [14:33:55]requested_item shift.opened is exist - process it [14:33:55]req_shift_opened [14:33:55]FM_GetShiftState [14:33:55]SAM_PROTO_GetShiftState [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 01 00 [14:33:55]Write to MH i2c: E2 08 00 82 0A 80 13 01 00 00 00 00 00 09 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 82 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5B [14:33:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetShiftState done [14:33:55]FM_GetShiftState done [14:33:55]req_shift_opened done [14:33:55]requested_item shift.open_date is exist - process it [14:33:55]req_shift_open_date [14:33:55]req_shift_open_date done [14:33:55]produce_requested_data done [14:33:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187363,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:33:55]process_action_free close_receipt [14:33:55]json_value_free [14:33:55]json_value_free done [14:33:55]process_json_proto returns [14:33:55]Send response to host [14:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187363,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:33:55]free response buf [14:33:55]execute_script done [14:33:55]execute_script returns [14:33:55]free content buf [14:33:55]Sock 10.Close socket [14:33:55]Sock 10.Thread stoped [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:04]accept exits with 9 [14:34:04]New connection [14:34:04]New thread 3067420004 created [14:34:04]Thread 3067276644 joined [14:34:04]Waiting for new connection... [14:34:04] Sock 9.Parse request [14:34:04]Sock 9.Check first char [14:34:04]Sock 9.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.46.131:8080 [14:34:04]Content-Length: 808 [14:34:04]Content-Type: application/json [14:34:04] [14:34:04]POST finish read [14:34:04]Found Content-Length = 808 [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)412522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4999324.4999323", "payments": [ { "type": 1, "sum" : 0.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)412522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4999324.4999323", "payments": [ { "type": 1, "sum" : 0.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 83 0A 7C [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 83 0A 00 5D 3D B7 67 7E 41 4F 65 B0 [14:34:04]GetLastDocTimeStamp 1740062032 [14:34:04]current date 1740062045 [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 84 0A 80 13 01 00 00 00 00 00 0B [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 84 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5D [14:34:04]RAPDU: 09 00 01 B1 78 B6 67 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 1740011697 [14:34:04]opened+sec_in_day 1740098097 [14:34:04]quantity*price = 0 [14:34:04]sum+1 = 1 [14:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 165 20.02.2025 14:34 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4999324.4999323 ФМ: 0000000000871826 ФД: 187364 ФПД: 42156196010260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187364&fm=42156196010260&tin=02508201610067®Number=0000000000091857&sum=0 [14:34:06]StoreToDocumentArchive [14:34:06]shift 648 fd 187364 [14:34:06]save to /storage/0648/doc_00187364 [14:34:06]save last doc name /storage/0648/doc_00187364 to /storage/kkm_last_doc_name [14:34:06]save OK [14:34:06]Clear old archive folders... [14:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:06]tlvbuf is 00E49380 [14:34:06]SAM_PROTO_ClearQueue [14:34:06]wFMCommunicate request_size=4 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 09 00 00 [14:34:06]Write to MH i2c: E2 08 00 91 0A 80 09 00 00 00 00 00 00 0D [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 09 00 00... 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 91 0A 00 90 00 0F [14:34:06]RAPDU: 90 00 [14:34:06]wFMCommunicate OK [14:34:06]SAM_PROTO_ClearQueue done [14:34:06]KKMCreateOFDPacket [14:34:06]OFDProtocolAddRootSTLVToBuf [14:34:06]FM_MakeSignedData [14:34:06]FM_MakeSignedData [14:34:06]SAM_PROTO_SignData [14:34:06]wFMCommunicate request_size=4 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 0D 01 02 [14:34:06]Write to MH i2c: E2 08 00 92 0A 80 0D 01 02 00 00 00 00 15 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** 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 92 0A 00 90 00 10 [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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 5D 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 DB 02 00 35 04 06 00 26 [14:34:06]Write to MH i2c: E2 02 01 93 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 5D 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 DB 02 00 35 04 06 00 26 00 00 5D [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 93 0A 00 90 00 11 [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 57 41 16 99 14 [14:34:06]Write to MH i2c: E2 0D 00 94 0A 80 0D 02 02 05 00 57 41 16 99 14 00 00 7D [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 94 0A 00 90 00 12 [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 95 0A 80 0D 03 02 00 00 00 00 1A [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 95 0A 00 BC B3 CE CF CA FA C9 F2 90 00 A6 [14:34:06]RAPDU: BC B3 CE CF CA FA C9 F2 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 96 0A 80 11 00 00 00 00 00 00 1A [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 96 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [14:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:34:06]wFMCommunicate OK [14:34:06]CreateOFDProtocolMessage done [14:34:06]OFDSenderStorePacket 187364 [14:34:06]StoreOFDPacket docnum=187364 [14:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 54 3F 07 01 9F 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 5D 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 DB 02 00 35 04 06 00 26 57 41 16 99 14 BC B3 CE CF CA FA C9 F2 [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/00187364 [14:34:06]NVStorageSaveData ofd_packets/00187364 [14:34:06]File name is /storage/ofd_packets/00187364 [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 97 0A A1 [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 97 0A 00 00 00 00 00 FF 0F B6 [14:34:06]RasterBufferAndPrint [14:34:06]line Счет N : (1)412522 [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-К-2 [14:34:06]line 20.000 * 0.00 [14:34:06]line = 0.00 [14:34:06]line НДС 12% НСП 1% [14:34:06]line > о реализуемом товаре [14:34:06]line ИТОГО: 0.00 [14:34:06]line НСП 1% : 0.00 [14:34:06]line НДС 12% : 0.00 [14:34:06]line Наличными: 0.00 [14:34:06]line Безнал.: 0.00 [14:34:06]line Место: АЗС № 92 "Партнер Нефть" [14:34:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:34:06]line СНО: Общий режим [14:34:06]line Чек 165 20.02.2025 14:34 [14:34:06]line Смена: 648 ФФД: 1.0 [14:34:06]line ЗНМ: 0300000118 [14:34:06]line РНМ: 0000000000091857 [14:34:06]line Версия ККМ: 001 [14:34:06]line Талоны: Топливные Талоны [14:34:06]line 4999324.4999323 [14:34:06]line ФМ: 0000000000871826 [14:34:06]line ФД: 187364 [14:34:06]line ФПД: 42156196010260 [14:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187364&fm=42156196010260&tin=02508201610067®Number=0000000000091857&sum=0 [14:34:06]written 0, free lines is 4095 [14:34:06]OFD Sender: Processing packet 187364 [packets to send 49, broken 48] [14:34:06]ProducePacketName [14:34:06]name=ofd_packets/00187364 [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]Connected sock=10 [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 31 38 32 36 0F 01 00 00 54 3F 07 01 9F 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 5D 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 DB 02 00 35 04 06 00 26 57 41 16 99 14 BC B3 CE CF CA FA C9 F2 [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 31 38 32 36 4F 00 00 00 F3 F2 47 00 4F 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 31 38 32 36 10 04 04 00 E4 DB 02 00 F4 03 04 00 AE E3 B6 67 B6 04 01 00 00 04 B7 74 42 CC 9D 9D 74 [14:34:07]CommunicateWithHost err = 0 [14:34:07]CheckOFDResponse [14:34:07]1017 (14) - 77093643461234 [14:34:07]1041 (16) - 0000000000871826 [14:34:07]1040 (4) - 187364 [14:34:07]1012 (4) - 20.02.2025 08:11 [14:34:07]1206 (1) - 0 [14:34:07]OFD Sender: Remove packet 187364 [14:34:07]ProducePacketName [14:34:07]name=ofd_packets/00187364 [14:34:07]NVStorageDeleteData [14:34:07]Write to MH i2c: 01 00 00 C1 0A CB [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 C1 0A 00 00 00 00 00 32 0D 11 [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 3387 [14:34:07]MH_Cut [14:34:07]Write to MH i2c: D1 01 00 C8 0A 01 A4 [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 C8 0A 00 A3 [14:34:07]Write to MH i2c: 01 00 00 C9 0A D3 [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 C9 0A 00 00 00 00 00 FF 0F E8 [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 CA 0A 80 11 00 00 00 00 00 00 4E [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 CA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [14:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 CB 0A 80 13 00 00 00 00 00 00 51 [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 CB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E4 DB 02 00 0E 04 04 00 88 02 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 B1 [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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E4 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14: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 CC 0A 80 13 01 00 00 00 00 00 53 [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 CC 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A5 [14:34:08]RAPDU: 09 00 01 B1 78 B6 67 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":"0000000000871826","fd.num":187364,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [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":"0000000000871826","fd.num":187364,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [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 9.Close socket [14:34:08]Sock 9.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]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:55]accept exits with 7 [14:35:55]New connection [14:35:55]New thread 3067276644 created [14:35:55]Thread 3067420004 joined [14:35:55]Waiting for new connection... [14:35:55] Sock 7.Parse request [14:35:55]Sock 7.Check first char [14:35:55]Sock 7.First char is OK [14:35:55]request: POST /json_proto HTTP/1.0 [14:35:55]Method: POST [14:35:55]URL: /json_proto [14:35:55]Method is POST - this is cgi request [14:35:55]url: /json_proto [14:35:55]query_string will be loaded in cgi processing [14:35:55]execute_cgi json_proto POST (null) [14:35:55]execute_cgi path=json_proto method=POST [14:35:55]POST find Content-Length [14:35:55]Host: 172.17.46.131:8080 [14:35:55]Content-Length: 800 [14:35:55]Content-Type: application/json [14:35:55] [14:35:55]POST finish read [14:35:55]Found Content-Length = 800 [14:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4177335", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:55]execute_script... [14:35: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)412523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4177335", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:55]POST & json_proto [14:35:55]process_json_proto [14:35:55]json parsed OK: [14:35:55]protocol is kg_v1.0 [14:35:55]action value=close_receipt [14:35:55]process_action close_receipt [14:35:55]cmd_close_receipt [14:35:55]MH_GetDate [14:35:55]Write to MH i2c: F0 00 00 CD 0A C6 [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: F0 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: F0 09 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: F0 09 00 CD 0A 00 CC 3D B7 67 7E 41 4F 65 69 [14:35:55]GetLastDocTimeStamp 1740062045 [14:35:55]current date 1740062156 [14:35:55]FM_GetShiftState [14:35:55]SAM_PROTO_GetShiftState [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 13 01 00 [14:35:55]Write to MH i2c: E2 08 00 CE 0A 80 13 01 00 00 00 00 00 55 [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 0E 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 0E 00 CE 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A7 [14:35:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:35:55]wFMCommunicate OK [14:35:55]SAM_PROTO_GetShiftState done [14:35:55]FM_GetShiftState done [14:35:55]opened in 1740011697 [14:35:55]opened+sec_in_day 1740098097 [14:35:55]quantity*price = 0 [14:35:55]sum+1 = 1 [14:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 166 20.02.2025 14:35 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4177335 ФМ: 0000000000871826 ФД: 187365 ФПД: 18529278896917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187365&fm=18529278896917&tin=02508201610067®Number=0000000000091857&sum=0 [14:35:56]StoreToDocumentArchive [14:35:56]shift 648 fd 187365 [14:35:56]save to /storage/0648/doc_00187365 [14:35:56]save last doc name /storage/0648/doc_00187365 to /storage/kkm_last_doc_name [14:35:56]save OK [14:35:56]Clear old archive folders... [14:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:56]tlvbuf is 00E18F90 [14:35:56]SAM_PROTO_ClearQueue [14:35:56]wFMCommunicate request_size=4 [14:35:56]MH_SAM_APDU [14:35:56]CAPDU: 80 09 00 00 [14:35:56]Write to MH i2c: E2 08 00 DB 0A 80 09 00 00 00 00 00 00 57 [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:56]Read from MH i2c: E2 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 03 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 03 00 DB 0A 00 90 00 59 [14:35:56]RAPDU: 90 00 [14:35:56]wFMCommunicate OK [14:35:56]SAM_PROTO_ClearQueue done [14:35:56]KKMCreateOFDPacket [14:35:56]OFDProtocolAddRootSTLVToBuf [14:35:56]FM_MakeSignedData [14:35:56]FM_MakeSignedData [14:35:56]SAM_PROTO_SignData [14:35:56]wFMCommunicate request_size=4 [14:35:56]MH_SAM_APDU [14:35:56]CAPDU: 80 0D 01 02 [14:35:56]Write to MH i2c: E2 08 00 DC 0A 80 0D 01 02 00 00 00 00 5F [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:56]Read from MH i2c: E2 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 03 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 03 00 DC 0A 00 90 00 5A [14:35:56]RAPDU: 90 00 [14:35:56]wFMCommunicate OK [14:35:56]wFMCommunicate request_size=255 [14:35:56]MH_SAM_APDU [14:35: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 CC 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 DB 02 00 35 04 06 00 10 [14:35:56]Write to MH i2c: E2 02 01 DD 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 CC 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 DB 02 00 35 04 06 00 10 00 00 02 [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:56]Read from MH i2c: E2 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 03 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [14:35:56]RAPDU: 90 00 [14:35:56]wFMCommunicate OK [14:35:56]wFMCommunicate request_size=10 [14:35:56]MH_SAM_APDU [14:35:56]CAPDU: 80 0D 02 02 05 DA 2F 16 2B 15 [14:35:56]Write to MH i2c: E2 0D 00 DE 0A 80 0D 02 02 05 00 DA 2F 16 2B 15 00 00 CB [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:56]Read from MH i2c: E2 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 03 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [14:35:56]RAPDU: 90 00 [14:35:56]wFMCommunicate OK [14:35:56]wFMCommunicate request_size=4 [14:35:56]MH_SAM_APDU [14:35:56]CAPDU: 80 0D 03 02 [14:35:56]Write to MH i2c: E2 08 00 DF 0A 80 0D 03 02 00 00 00 00 64 [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:56]Read from MH i2c: E2 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 0B 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 0B 00 DF 0A 00 64 30 29 31 DF E2 A1 DE 90 00 93 [14:35:56]RAPDU: 64 30 29 31 DF E2 A1 DE 90 00 [14:35:56]wFMCommunicate OK [14:35:56]SAM_PROTO_SignData done [14:35:56]FM_MakeSignedData done [14:35:56]CreateOFDProtocolMessage [14:35:56]wFMCommunicate request_size=4 [14:35:56]MH_SAM_APDU [14:35:56]CAPDU: 80 11 00 00 [14:35:56]Write to MH i2c: E2 08 00 E0 0A 80 11 00 00 00 00 00 00 64 [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:56]Read from MH i2c: E2 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 17 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 17 00 E0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B7 [14:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:35:56]wFMCommunicate OK [14:35:56]CreateOFDProtocolMessage done [14:35:56]OFDSenderStorePacket 187365 [14:35:56]StoreOFDPacket docnum=187365 [14:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7E CB 07 01 0F 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 CC 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 DB 02 00 35 04 06 00 10 DA 2F 16 2B 15 64 30 29 31 DF E2 A1 DE [14:35:56]CheckFolder [14:35:56]dirname=/storage/ofd_packets [14:35:56]CheckFolder done [14:35:56]ProducePacketName [14:35:56]name=ofd_packets/00187365 [14:35:56]NVStorageSaveData ofd_packets/00187365 [14:35:56]File name is /storage/ofd_packets/00187365 [14:35:56]Write 301 bytes [14:35:56]NVStorageSaveData done [14:35:56]OFDSenderStorePacket done [14:35:56]KKMCreateOFDPacket done [14:35:56]NVStorageSaveData kkm_last_timestamp [14:35:56]File name is /storage/kkm_last_timestamp [14:35:56]Write 4 bytes [14:35:56]NVStorageSaveData done [14:35:56]ExternCall_PrintAddStr [14:35:56]wPrintStart [14:35:56]Write to MH i2c: 01 00 00 E1 0A EB [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 07 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 FF 0F 00 [14:35:56]RasterBufferAndPrint [14:35:56]line Счет N : (1)412523 [14:35:56]line ИНН: 02508201610067 [14:35:56]line Контрольно-Кассовый Чек [14:35:56]line ПРОДАЖА [14:35:56]line ТРК (МРК, ГНК) : 32 [14:35:56]line Товар: 2710124130 [14:35:56]line Аи-92-К-2 [14:35:56]line 20.000 * 0.00 [14:35:56]line = 0.00 [14:35:56]line НДС 12% НСП 1% [14:35:56]line > о реализуемом товаре [14:35:56]line ИТОГО: 0.00 [14:35:56]line НСП 1% : 0.00 [14:35:56]line НДС 12% : 0.00 [14:35:56]line Наличными: 0.00 [14:35:56]line Безнал.: 0.00 [14:35:56]line Место: АЗС № 92 "Партнер Нефть" [14:35:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:35:56]line СНО: Общий режим [14:35:56]line Чек 166 20.02.2025 14:35 [14:35:56]line Смена: 648 ФФД: 1.0 [14:35:56]line ЗНМ: 0300000118 [14:35:56]line РНМ: 0000000000091857 [14:35:56]line Версия ККМ: 001 [14:35:56]line Талоны: Топливные Талоны [14:35:56]line 4177335 [14:35:56]line ФМ: 0000000000871826 [14:35:56]line ФД: 187365 [14:35:56]line ФПД: 18529278896917 [14:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187365&fm=18529278896917&tin=02508201610067®Number=0000000000091857&sum=0 [14:35:57]OFD Sender: Processing packet 187365 [packets to send 49, broken 48] [14:35:57]ProducePacketName [14:35:57]name=ofd_packets/00187365 [14:35:57]OFD Sender: To server: pG, [14:35:57]CommunicateWithHost lk.salyk.kg:30040 [14:35:57]ConnectInit lk.salyk.kg [14:35:57]written 0, free lines is 4095 [14:35:57]Connected sock=10 [14:35:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7E CB 07 01 0F 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 CC 3D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 DB 02 00 35 04 06 00 10 DA 2F 16 2B 15 64 30 29 31 DF E2 A1 DE [14:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0B 50 47 00 FD 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 31 38 32 36 10 04 04 00 E5 DB 02 00 F4 03 04 00 1C E4 B6 67 B6 04 01 00 00 A5 9E 5F 8E A6 80 06 E8 [14:35:57]CommunicateWithHost err = 0 [14:35:57]CheckOFDResponse [14:35:57]1017 (14) - 77093643461234 [14:35:57]1041 (16) - 0000000000871826 [14:35:57]1040 (4) - 187365 [14:35:57]1012 (4) - 20.02.2025 08:13 [14:35:57]1206 (1) - 0 [14:35:57]OFD Sender: Remove packet 187365 [14:35:57]ProducePacketName [14:35:57]name=ofd_packets/00187365 [14:35:57]NVStorageDeleteData [14:35:57]Write to MH i2c: 01 00 00 0B 0B 16 [14:35:57]Write i2c OK [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: 01 [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: 01 07 00 [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: 01 07 00 0B 0B 00 00 00 00 00 FF 0C 28 [14:35:57]RasterBufferAndPrint [14:35:57]line [14:35:57]line [14:35:57]line [14:35:57]line [14:35:57]line [14:35:57]written 0, free lines is 3333 [14:35:57]MH_Cut [14:35:57]Write to MH i2c: D1 01 00 12 0B 01 EF [14:35:57]Write i2c OK [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: D1 [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: D1 01 00 [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: D1 01 00 12 0B 00 EE [14:35:57]Write to MH i2c: 01 00 00 13 0B 1E [14:35:57]Write i2c OK [14:35:57]MH_I2C_Read... [14:35:58]OFD Sender: No OFD packet to send [14:35:58]*** Cut start [14:35:58]*** Partial cut [14:35:58]*** CUTSNS_PIN = 1 [14:35:58]*** CUTSNS_PIN = 0 [14:35:58]*** Brake cut motor [14:35:58]Read from MH i2c: 01 [14:35:58]MH_I2C_Read... [14:35:58]*** Stop cut motor [14:35:58]*** Cut end [14:35:58]Read from MH i2c: 01 07 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: 01 07 00 13 0B 00 00 00 00 00 FF 0F 33 [14:35:58]process_action close_receipt done [14:35:58]requested_data is exist [14:35:58]produce_requested_data [14:35:58]requested_item fm.sn is exist - process it [14:35:58]wFMCommunicate request_size=4 [14:35:58]MH_SAM_APDU [14:35:58]CAPDU: 80 11 00 00 [14:35:58]Write to MH i2c: E2 08 00 14 0B 80 11 00 00 00 00 00 00 99 [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 17 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 17 00 14 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EC [14:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:35:59]wFMCommunicate OK [14:35:59]requested_item fd.num is exist - process it [14:35:59]SAM_PROTO_GetFieldsCounters [14:35:59]wFMCommunicate request_size=4 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 13 00 00 [14:35:59]Write to MH i2c: E2 08 00 15 0B 80 13 00 00 00 00 00 00 9C [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 62 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 62 00 15 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E5 DB 02 00 0E 04 04 00 88 02 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 00 [14:35:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E5 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:59]wFMCommunicate OK [14:35:59]SAM_PROTO_GetFieldsCounters done [14:35:59]requested_item shift.num is exist - process it [14:35:59]requested_item shift.opened is exist - process it [14:35:59]req_shift_opened [14:35:59]FM_GetShiftState [14:35:59]SAM_PROTO_GetShiftState [14:35:59]wFMCommunicate request_size=4 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 13 01 00 [14:35:59]Write to MH i2c: E2 08 00 16 0B 80 13 01 00 00 00 00 00 9E [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 0E 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 0E 00 16 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F0 [14:35:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:35:59]wFMCommunicate OK [14:35:59]SAM_PROTO_GetShiftState done [14:35:59]FM_GetShiftState done [14:35:59]req_shift_opened done [14:35:59]requested_item shift.open_date is exist - process it [14:35:59]req_shift_open_date [14:35:59]req_shift_open_date done [14:35:59]produce_requested_data done [14:35:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187365,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:35:59]process_action_free close_receipt [14:35:59]json_value_free [14:35:59]json_value_free done [14:35:59]process_json_proto returns [14:35:59]Send response to host [14:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187365,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:35:59]free response buf [14:35:59]execute_script done [14:35:59]execute_script returns [14:35:59]free content buf [14:35:59]Sock 7.Close socket [14:35:59]Sock 7.Thread stoped [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:55]accept exits with 9 [14:37:55]New connection [14:37:55]New thread 3067420004 created [14:37:55]Thread 3067276644 joined [14:37:55]Waiting for new connection... [14:37:55] Sock 9.Parse request [14:37:55]Sock 9.Check first char [14:37:55]Sock 9.First char is OK [14:37:55]request: POST /json_proto HTTP/1.0 [14:37:55]Method: POST [14:37:55]URL: /json_proto [14:37:55]Method is POST - this is cgi request [14:37:55]url: /json_proto [14:37:55]query_string will be loaded in cgi processing [14:37:55]execute_cgi json_proto POST (null) [14:37:55]execute_cgi path=json_proto method=POST [14:37:55]POST find Content-Length [14:37:55]Host: 172.17.46.131:8080 [14:37:55]Content-Length: 678 [14:37:55]Content-Type: application/json [14:37:55] [14:37:55]POST finish read [14:37:55]Found Content-Length = 678 [14:37:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:55]execute_script... [14:37: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)412524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:55]POST & json_proto [14:37:55]process_json_proto [14:37:55]json parsed OK: [14:37:55]protocol is kg_v1.0 [14:37:55]action value=close_receipt [14:37:55]process_action close_receipt [14:37:55]cmd_close_receipt [14:37:55]MH_GetDate [14:37:55]Write to MH i2c: F0 00 00 17 0B 11 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: F0 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: F0 09 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: F0 09 00 17 0B 00 43 3E B7 67 7E 41 4F 65 2C [14:37:55]GetLastDocTimeStamp 1740062156 [14:37:55]current date 1740062275 [14:37:55]FM_GetShiftState [14:37:55]SAM_PROTO_GetShiftState [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 01 00 [14:37:55]Write to MH i2c: E2 08 00 18 0B 80 13 01 00 00 00 00 00 A0 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 18 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F2 [14:37:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetShiftState done [14:37:55]FM_GetShiftState done [14:37:55]opened in 1740011697 [14:37:55]opened+sec_in_day 1740098097 [14:37:55]quantity*price = 150064 [14:37:55]sum+1 = 150065 [14:37:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 167 20.02.2025 14:37 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187366 ФПД: 200121153170021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143755&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187366&fm=200121153170021&tin=02508201610067®Number=0000000000091857&sum=150000 [14:37:56]StoreToDocumentArchive [14:37:56]shift 648 fd 187366 [14:37:56]save to /storage/0648/doc_00187366 [14:37:56]save last doc name /storage/0648/doc_00187366 to /storage/kkm_last_doc_name [14:37:56]save OK [14:37:56]Clear old archive folders... [14:37:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:37:56]tlvbuf is 00E4BFC0 [14:37:56]SAM_PROTO_ClearQueue [14:37:56]wFMCommunicate request_size=4 [14:37:56]MH_SAM_APDU [14:37:56]CAPDU: 80 09 00 00 [14:37:56]Write to MH i2c: E2 08 00 25 0B 80 09 00 00 00 00 00 00 A2 [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:56]Read from MH i2c: E2 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 03 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [14:37:56]RAPDU: 90 00 [14:37:56]wFMCommunicate OK [14:37:56]SAM_PROTO_ClearQueue done [14:37:56]KKMCreateOFDPacket [14:37:56]OFDProtocolAddRootSTLVToBuf [14:37:56]FM_MakeSignedData [14:37:56]FM_MakeSignedData [14:37:56]SAM_PROTO_SignData [14:37:56]wFMCommunicate request_size=4 [14:37:56]MH_SAM_APDU [14:37:56]CAPDU: 80 0D 01 02 [14:37:56]Write to MH i2c: E2 08 00 26 0B 80 0D 01 02 00 00 00 00 AA [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:56]Read from MH i2c: E2 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 03 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 03 00 26 0B 00 90 00 A5 [14:37:56]RAPDU: 90 00 [14:37:56]wFMCommunicate OK [14:37:56]wFMCommunicate request_size=255 [14:37:56]MH_SAM_APDU [14:37:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 43 3E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 DB 02 00 35 04 06 00 B6 02 56 3F [14:37:56]Write to MH i2c: E2 02 01 27 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 43 3E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 DB 02 00 35 04 06 00 B6 02 56 3F 00 00 17 [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:56]Read from MH i2c: E2 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 03 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 03 00 27 0B 00 90 00 A6 [14:37:56]RAPDU: 90 00 [14:37:56]wFMCommunicate OK [14:37:56]wFMCommunicate request_size=7 [14:37:56]MH_SAM_APDU [14:37:56]CAPDU: 80 0D 02 02 02 2A 65 [14:37:56]Write to MH i2c: E2 0A 00 28 0B 80 0D 02 02 02 00 2A 65 00 00 40 [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:56]Read from MH i2c: E2 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 03 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 03 00 28 0B 00 90 00 A7 [14:37:56]RAPDU: 90 00 [14:37:56]wFMCommunicate OK [14:37:56]wFMCommunicate request_size=4 [14:37:56]MH_SAM_APDU [14:37:56]CAPDU: 80 0D 03 02 [14:37:56]Write to MH i2c: E2 08 00 29 0B 80 0D 03 02 00 00 00 00 AF [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:56]Read from MH i2c: E2 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 0B 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 0B 00 29 0B 00 F3 A8 3B 06 3C 01 D4 F7 90 00 94 [14:37:56]RAPDU: F3 A8 3B 06 3C 01 D4 F7 90 00 [14:37:56]wFMCommunicate OK [14:37:56]SAM_PROTO_SignData done [14:37:56]FM_MakeSignedData done [14:37:56]CreateOFDProtocolMessage [14:37:56]wFMCommunicate request_size=4 [14:37:56]MH_SAM_APDU [14:37:56]CAPDU: 80 11 00 00 [14:37:56]Write to MH i2c: E2 08 00 2A 0B 80 11 00 00 00 00 00 00 AF [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:56]Read from MH i2c: E2 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 17 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: E2 17 00 2A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [14:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:37:56]wFMCommunicate OK [14:37:56]CreateOFDProtocolMessage done [14:37:56]OFDSenderStorePacket 187366 [14:37:56]StoreOFDPacket docnum=187366 [14:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 41 8C 04 01 1F 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 43 3E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 DB 02 00 35 04 06 00 B6 02 56 3F 2A 65 F3 A8 3B 06 3C 01 D4 F7 [14:37:56]CheckFolder [14:37:56]dirname=/storage/ofd_packets [14:37:56]CheckFolder done [14:37:56]ProducePacketName [14:37:56]name=ofd_packets/00187366 [14:37:56]NVStorageSaveData ofd_packets/00187366 [14:37:56]File name is /storage/ofd_packets/00187366 [14:37:56]Write 298 bytes [14:37:56]NVStorageSaveData done [14:37:56]OFDSenderStorePacket done [14:37:56]KKMCreateOFDPacket done [14:37:56]NVStorageSaveData kkm_last_timestamp [14:37:56]File name is /storage/kkm_last_timestamp [14:37:56]Write 4 bytes [14:37:56]NVStorageSaveData done [14:37:56]ExternCall_PrintAddStr [14:37:56]wPrintStart [14:37:56]Write to MH i2c: 01 00 00 2B 0B 36 [14:37:56]Write i2c OK [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: 01 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: 01 07 00 [14:37:56]MH_I2C_Read... [14:37:56]Read from MH i2c: 01 07 00 2B 0B 00 00 00 00 00 FF 0F 4B [14:37:56]RasterBufferAndPrint [14:37:56]line Счет N : (1)412524 [14:37:56]line ИНН: 02508201610067 [14:37:56]line Контрольно-Кассовый Чек [14:37:56]line ПРОДАЖА [14:37:56]line ТРК (МРК, ГНК) : 6 [14:37:56]line Товар: 2710194210 [14:37:56]line ДТ-К-5 [14:37:56]line 20.670 * 72.60 [14:37:56]line = 1500.64 [14:37:56]line НДС 12% НСП 1% [14:37:56]line > о реализуемом товаре [14:37:56]line ОКРУГЛЕНИЕ: -0.64 [14:37:56]line ИТОГО: 1500.00 [14:37:56]line Внесено: 1500.00 [14:37:56]line СДАЧА: 0.00 [14:37:56]line НСП 1% : 13.28 [14:37:56]line НДС 12% : 159.36 [14:37:56]line Наличными: 1500.00 [14:37:56]line Безнал.: 0.00 [14:37:56]line Место: АЗС № 92 "Партнер Нефть" [14:37:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:37:56]line СНО: Общий режим [14:37:56]line Чек 167 20.02.2025 14:37 [14:37:56]line Смена: 648 ФФД: 1.0 [14:37:56]line ЗНМ: 0300000118 [14:37:56]line РНМ: 0000000000091857 [14:37:56]line Версия ККМ: 001 [14:37:56]line ФМ: 0000000000871826 [14:37:56]line ФД: 187366 [14:37:56]line ФПД: 200121153170021 [14:37:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T143755&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187366&fm=200121153170021&tin=02508201610067®Number=0000000000091857&sum=150000 [14:37:57]OFD Sender: Processing packet 187366 [packets to send 49, broken 48] [14:37:57]ProducePacketName [14:37:57]name=ofd_packets/00187366 [14:37:57]OFD Sender: To server: pG, [14:37:57]CommunicateWithHost lk.salyk.kg:30040 [14:37:57]ConnectInit lk.salyk.kg [14:37:57]written 0, free lines is 4095 [14:37:57]Connected sock=10 [14:37:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 41 8C 04 01 1F 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 43 3E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 DB 02 00 35 04 06 00 B6 02 56 3F 2A 65 F3 A8 3B 06 3C 01 D4 F7 [14:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 69 AE 47 00 82 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 31 38 32 36 10 04 04 00 E6 DB 02 00 F4 03 04 00 94 E4 B6 67 B6 04 01 00 00 63 98 37 C5 04 88 67 29 [14:37:57]CommunicateWithHost err = 0 [14:37:57]CheckOFDResponse [14:37:57]1017 (14) - 77093643461234 [14:37:57]1041 (16) - 0000000000871826 [14:37:57]1040 (4) - 187366 [14:37:57]1012 (4) - 20.02.2025 08:15 [14:37:57]1206 (1) - 0 [14:37:57]OFD Sender: Remove packet 187366 [14:37:57]ProducePacketName [14:37:57]name=ofd_packets/00187366 [14:37:57]NVStorageDeleteData [14:37:57]Write to MH i2c: 01 00 00 56 0B 61 [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: 01 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: 01 07 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: 01 07 00 56 0B 00 00 00 00 00 EC 0C 60 [14:37:57]RasterBufferAndPrint [14:37:57]line [14:37:57]line [14:37:57]line [14:37:57]line [14:37:57]line [14:37:57]written 0, free lines is 3314 [14:37:57]MH_Cut [14:37:57]Write to MH i2c: D1 01 00 5D 0B 01 3A [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: D1 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: D1 01 00 [14:37:57]MH_I2C_Read... [14:37:57]Read from MH i2c: D1 01 00 5D 0B 00 39 [14:37:57]Write to MH i2c: 01 00 00 5E 0B 69 [14:37:57]Write i2c OK [14:37:57]MH_I2C_Read... [14:37:57]OFD Sender: No OFD packet to send [14:37:58]*** Cut start [14:37:58]*** Partial cut [14:37:58]*** CUTSNS_PIN = 1 [14:37:58]*** CUTSNS_PIN = 0 [14:37:58]*** Brake cut motor [14:37:58]Read from MH i2c: 01 [14:37:58]MH_I2C_Read... [14:37:58]*** Stop cut motor [14:37:58]*** Cut end [14:37:58]Read from MH i2c: 01 07 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: 01 07 00 5E 0B 00 00 00 00 00 FF 0F 7E [14:37:58]process_action close_receipt done [14:37:58]requested_data is exist [14:37:58]produce_requested_data [14:37:58]requested_item fm.sn is exist - process it [14:37:58]wFMCommunicate request_size=4 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 11 00 00 [14:37:58]Write to MH i2c: E2 08 00 5F 0B 80 11 00 00 00 00 00 00 E4 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:58]Read from MH i2c: E2 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 17 00 [14:37:58]MH_I2C_Read... [14:37:58]Read from MH i2c: E2 17 00 5F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [14:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:37:58]wFMCommunicate OK [14:37:58]requested_item fd.num is exist - process it [14:37:58]SAM_PROTO_GetFieldsCounters [14:37:58]wFMCommunicate request_size=4 [14:37:58]MH_SAM_APDU [14:37:58]CAPDU: 80 13 00 00 [14:37:58]Write to MH i2c: E2 08 00 60 0B 80 13 00 00 00 00 00 00 E7 [14:37:58]Write i2c OK [14:37:58]MH_I2C_Read... [14:37:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:59]Read from MH i2c: E2 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 62 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 62 00 60 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E6 DB 02 00 0E 04 04 00 88 02 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 4F [14:37:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E6 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:59]wFMCommunicate OK [14:37:59]SAM_PROTO_GetFieldsCounters done [14:37:59]requested_item shift.num is exist - process it [14:37:59]requested_item shift.opened is exist - process it [14:37:59]req_shift_opened [14:37:59]FM_GetShiftState [14:37:59]SAM_PROTO_GetShiftState [14:37:59]wFMCommunicate request_size=4 [14:37:59]MH_SAM_APDU [14:37:59]CAPDU: 80 13 01 00 [14:37:59]Write to MH i2c: E2 08 00 61 0B 80 13 01 00 00 00 00 00 E9 [14:37:59]Write i2c OK [14:37:59]MH_I2C_Read... [14:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:59]Read from MH i2c: E2 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 0E 00 [14:37:59]MH_I2C_Read... [14:37:59]Read from MH i2c: E2 0E 00 61 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3B [14:37:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:37:59]wFMCommunicate OK [14:37:59]SAM_PROTO_GetShiftState done [14:37:59]FM_GetShiftState done [14:37:59]req_shift_opened done [14:37:59]requested_item shift.open_date is exist - process it [14:37:59]req_shift_open_date [14:37:59]req_shift_open_date done [14:37:59]produce_requested_data done [14:37:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187366,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:37:59]process_action_free close_receipt [14:37:59]json_value_free [14:37:59]json_value_free done [14:37:59]process_json_proto returns [14:37:59]Send response to host [14:37:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187366,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:37:59]free response buf [14:37:59]execute_script done [14:37:59]execute_script returns [14:37:59]free content buf [14:37:59]Sock 9.Close socket [14:37:59]Sock 9.Thread stoped [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:27]accept exits with 7 [14:40:27]New connection [14:40:27]New thread 3067276644 created [14:40:27]Thread 3067420004 joined [14:40:27]Waiting for new connection... [14:40:27] Sock 7.Parse request [14:40:27]Sock 7.Check first char [14:40:27]Sock 7.First char is OK [14:40:27]request: POST /json_proto HTTP/1.0 [14:40:27]Method: POST [14:40:27]URL: /json_proto [14:40:27]Method is POST - this is cgi request [14:40:27]url: /json_proto [14:40:27]query_string will be loaded in cgi processing [14:40:27]execute_cgi json_proto POST (null) [14:40:27]execute_cgi path=json_proto method=POST [14:40:27]POST find Content-Length [14:40:27]Host: 172.17.46.131:8080 [14:40:27]Content-Length: 677 [14:40:27]Content-Type: application/json [14:40:27] [14:40:27]POST finish read [14:40:27]Found Content-Length = 677 [14:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:27]execute_script... [14:40: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)412525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:27]POST & json_proto [14:40:27]process_json_proto [14:40:27]json parsed OK: [14:40:27]protocol is kg_v1.0 [14:40:27]action value=close_receipt [14:40:27]process_action close_receipt [14:40:27]cmd_close_receipt [14:40:27]MH_GetDate [14:40:27]Write to MH i2c: F0 00 00 62 0B 5C [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: F0 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: F0 09 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: F0 09 00 62 0B 00 DC 3E B7 67 7E 41 4F 65 10 [14:40:27]GetLastDocTimeStamp 1740062275 [14:40:27]current date 1740062428 [14:40:27]FM_GetShiftState [14:40:27]SAM_PROTO_GetShiftState [14:40:27]wFMCommunicate request_size=4 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 13 01 00 [14:40:27]Write to MH i2c: E2 08 00 63 0B 80 13 01 00 00 00 00 00 EB [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 0E 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 0E 00 63 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3D [14:40:27]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:40:27]wFMCommunicate OK [14:40:27]SAM_PROTO_GetShiftState done [14:40:27]FM_GetShiftState done [14:40:27]opened in 1740011697 [14:40:27]opened+sec_in_day 1740098097 [14:40:27]quantity*price = 50011 [14:40:27]sum+1 = 50013 [14:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 168 20.02.2025 14:40 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187367 ФПД: 55059000975272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T144028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187367&fm=55059000975272&tin=02508201610067®Number=0000000000091857&sum=50000 [14:40:28]StoreToDocumentArchive [14:40:28]shift 648 fd 187367 [14:40:28]save to /storage/0648/doc_00187367 [14:40:28]save last doc name /storage/0648/doc_00187367 to /storage/kkm_last_doc_name [14:40:28]save OK [14:40:28]Clear old archive folders... [14:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:28]tlvbuf is 00E615E0 [14:40:28]SAM_PROTO_ClearQueue [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 09 00 00 [14:40:28]Write to MH i2c: E2 08 00 70 0B 80 09 00 00 00 00 00 00 ED [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 70 0B 00 90 00 EF [14:40:28]RAPDU: 90 00 [14:40:28]wFMCommunicate OK [14:40:28]SAM_PROTO_ClearQueue done [14:40:28]KKMCreateOFDPacket [14:40:28]OFDProtocolAddRootSTLVToBuf [14:40:28]FM_MakeSignedData [14:40:28]FM_MakeSignedData [14:40:28]SAM_PROTO_SignData [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 0D 01 02 [14:40:28]Write to MH i2c: E2 08 00 71 0B 80 0D 01 02 00 00 00 00 F5 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 71 0B 00 90 00 F0 [14:40:28]RAPDU: 90 00 [14:40:28]wFMCommunicate OK [14:40:28]wFMCommunicate request_size=255 [14:40:28]MH_SAM_APDU [14:40: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 DC 3E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 DB 02 00 35 04 06 00 32 [14:40:28]Write to MH i2c: E2 02 01 72 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 DC 3E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 DB 02 00 35 04 06 00 32 00 00 EE [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 72 0B 00 90 00 F1 [14:40:29]RAPDU: 90 00 [14:40:29]wFMCommunicate OK [14:40:29]wFMCommunicate request_size=10 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 0D 02 02 05 13 6C 31 DF A8 [14:40:29]Write to MH i2c: E2 0D 00 73 0B 80 0D 02 02 05 00 13 6C 31 DF A8 00 00 39 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 73 0B 00 90 00 F2 [14:40:29]RAPDU: 90 00 [14:40:29]wFMCommunicate OK [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 0D 03 02 [14:40:29]Write to MH i2c: E2 08 00 74 0B 80 0D 03 02 00 00 00 00 FA [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 0B 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 0B 00 74 0B 00 F4 BE C0 D6 4D EA 04 EF 90 00 6D [14:40:29]RAPDU: F4 BE C0 D6 4D EA 04 EF 90 00 [14:40:29]wFMCommunicate OK [14:40:29]SAM_PROTO_SignData done [14:40:29]FM_MakeSignedData done [14:40:29]CreateOFDProtocolMessage [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 11 00 00 [14:40:29]Write to MH i2c: E2 08 00 75 0B 80 11 00 00 00 00 00 00 FA [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 17 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 17 00 75 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [14:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:40:29]wFMCommunicate OK [14:40:29]CreateOFDProtocolMessage done [14:40:29]OFDSenderStorePacket 187367 [14:40:29]StoreOFDPacket docnum=187367 [14:40:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A9 76 07 01 DD 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 DC 3E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 DB 02 00 35 04 06 00 32 13 6C 31 DF A8 F4 BE C0 D6 4D EA 04 EF [14:40:29]CheckFolder [14:40:29]dirname=/storage/ofd_packets [14:40:29]CheckFolder done [14:40:29]ProducePacketName [14:40:29]name=ofd_packets/00187367 [14:40:29]NVStorageSaveData ofd_packets/00187367 [14:40:29]File name is /storage/ofd_packets/00187367 [14:40:29]Write 301 bytes [14:40:29]NVStorageSaveData done [14:40:29]OFDSenderStorePacket done [14:40:29]KKMCreateOFDPacket done [14:40:29]NVStorageSaveData kkm_last_timestamp [14:40:29]File name is /storage/kkm_last_timestamp [14:40:29]Write 4 bytes [14:40:29]NVStorageSaveData done [14:40:29]ExternCall_PrintAddStr [14:40:29]wPrintStart [14:40:29]Write to MH i2c: 01 00 00 76 0B 81 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 07 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 07 00 76 0B 00 00 00 00 00 FF 0F 96 [14:40:29]RasterBufferAndPrint [14:40:29]line Счет N : (1)412525 [14:40:29]line ИНН: 02508201610067 [14:40:29]line Контрольно-Кассовый Чек [14:40:29]line ПРОДАЖА [14:40:29]line ТРК (МРК, ГНК) : 12 [14:40:29]line Товар: 2710124130 [14:40:29]line Аи-92-К-2 [14:40:29]line 7.790 * 64.20 [14:40:29]line = 500.12 [14:40:29]line НДС 12% НСП 1% [14:40:29]line > о реализуемом товаре [14:40:29]line ОКРУГЛЕНИЕ: -0.12 [14:40:29]line ИТОГО: 500.00 [14:40:29]line Внесено: 500.00 [14:40:29]line СДАЧА: 0.00 [14:40:29]line НСП 1% : 4.43 [14:40:29]line НДС 12% : 53.11 [14:40:29]line Наличными: 500.00 [14:40:29]line Безнал.: 0.00 [14:40:29]line Место: АЗС № 92 "Партнер Нефть" [14:40:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:40:29]line СНО: Общий режим [14:40:29]line Чек 168 20.02.2025 14:40 [14:40:29]line Смена: 648 ФФД: 1.0 [14:40:29]line ЗНМ: 0300000118 [14:40:29]line РНМ: 0000000000091857 [14:40:29]line Версия ККМ: 001 [14:40:29]line ФМ: 0000000000871826 [14:40:29]line ФД: 187367 [14:40:29]line ФПД: 55059000975272 [14:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T144028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187367&fm=55059000975272&tin=02508201610067®Number=0000000000091857&sum=50000 [14:40:29]written 0, free lines is 4095 [14:40:29]OFD Sender: Processing packet 187367 [packets to send 49, broken 48] [14:40:29]ProducePacketName [14:40:29]name=ofd_packets/00187367 [14:40:29]OFD Sender: To server: pG, [14:40:29]CommunicateWithHost lk.salyk.kg:30040 [14:40:29]ConnectInit lk.salyk.kg [14:40:29]Connected sock=10 [14:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A9 76 07 01 DD 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 DC 3E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 DB 02 00 35 04 06 00 32 13 6C 31 DF A8 F4 BE C0 D6 4D EA 04 EF [14:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7E 83 47 00 7D 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 DB 02 00 F4 03 04 00 2D E5 B6 67 B6 04 01 00 00 9C 80 59 6F CB 23 C9 03 [14:40:29]CommunicateWithHost err = 0 [14:40:29]CheckOFDResponse [14:40:29]1017 (14) - 77093643461234 [14:40:29]1041 (16) - 0000000000871826 [14:40:29]1040 (4) - 187367 [14:40:29]1012 (4) - 20.02.2025 08:17 [14:40:29]1206 (1) - 0 [14:40:29]OFD Sender: Remove packet 187367 [14:40:29]ProducePacketName [14:40:29]name=ofd_packets/00187367 [14:40:29]NVStorageDeleteData [14:40:29]Write to MH i2c: 01 00 00 A1 0B AC [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 07 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 07 00 A1 0B 00 00 00 00 00 E4 0C A3 [14:40:29]RasterBufferAndPrint [14:40:29]line [14:40:29]line [14:40:29]line [14:40:29]line [14:40:29]line [14:40:29]written 0, free lines is 3306 [14:40:29]MH_Cut [14:40:29]Write to MH i2c: D1 01 00 A8 0B 01 85 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: D1 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: D1 01 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: D1 01 00 A8 0B 00 84 [14:40:29]Write to MH i2c: 01 00 00 A9 0B B4 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:30]OFD Sender: No OFD packet to send [14:40:30]*** Cut start [14:40:30]*** Partial cut [14:40:30]*** CUTSNS_PIN = 1 [14:40:30]*** CUTSNS_PIN = 0 [14:40:31]*** Brake cut motor [14:40:31]Read from MH i2c: 01 [14:40:31]MH_I2C_Read... [14:40:31]*** Stop cut motor [14:40:31]*** Cut end [14:40:31]Read from MH i2c: 01 07 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: 01 07 00 A9 0B 00 00 00 00 00 FF 0F C9 [14:40:31]process_action close_receipt done [14:40:31]requested_data is exist [14:40:31]produce_requested_data [14:40:31]requested_item fm.sn is exist - process it [14:40:31]wFMCommunicate request_size=4 [14:40:31]MH_SAM_APDU [14:40:31]CAPDU: 80 11 00 00 [14:40:31]Write to MH i2c: E2 08 00 AA 0B 80 11 00 00 00 00 00 00 2F [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:31]Read from MH i2c: E2 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 17 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 17 00 AA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [14:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:40:31]wFMCommunicate OK [14:40:31]requested_item fd.num is exist - process it [14:40:31]SAM_PROTO_GetFieldsCounters [14:40:31]wFMCommunicate request_size=4 [14:40:31]MH_SAM_APDU [14:40:31]CAPDU: 80 13 00 00 [14:40:31]Write to MH i2c: E2 08 00 AB 0B 80 13 00 00 00 00 00 00 32 [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:31]Read from MH i2c: E2 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 62 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 62 00 AB 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E7 DB 02 00 0E 04 04 00 88 02 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 9E [14:40: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E7 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:31]wFMCommunicate OK [14:40:31]SAM_PROTO_GetFieldsCounters done [14:40:31]requested_item shift.num is exist - process it [14:40:31]requested_item shift.opened is exist - process it [14:40:31]req_shift_opened [14:40:31]FM_GetShiftState [14:40:31]SAM_PROTO_GetShiftState [14:40:31]wFMCommunicate request_size=4 [14:40:31]MH_SAM_APDU [14:40:31]CAPDU: 80 13 01 00 [14:40:31]Write to MH i2c: E2 08 00 AC 0B 80 13 01 00 00 00 00 00 34 [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:31]Read from MH i2c: E2 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 0E 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 0E 00 AC 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 86 [14:40:31]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:40:31]wFMCommunicate OK [14:40:31]SAM_PROTO_GetShiftState done [14:40:31]FM_GetShiftState done [14:40:31]req_shift_opened done [14:40:31]requested_item shift.open_date is exist - process it [14:40:31]req_shift_open_date [14:40:31]req_shift_open_date done [14:40:31]produce_requested_data done [14:40:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187367,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:40:31]process_action_free close_receipt [14:40:31]json_value_free [14:40:31]json_value_free done [14:40:31]process_json_proto returns [14:40:31]Send response to host [14:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187367,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:40:31]free response buf [14:40:31]execute_script done [14:40:31]execute_script returns [14:40:31]free content buf [14:40:31]Sock 7.Close socket [14:40:31]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:36]accept exits with 9 [14:42:36]New connection [14:42:36]New thread 3067420004 created [14:42:36]Thread 3067276644 joined [14:42:36]Waiting for new connection... [14:42:36] Sock 9.Parse request [14:42:36]Sock 9.Check first char [14:42:36]Sock 9.First char is OK [14:42:36]request: POST /json_proto HTTP/1.0 [14:42:36]Method: POST [14:42:36]URL: /json_proto [14:42:36]Method is POST - this is cgi request [14:42:36]url: /json_proto [14:42:36]query_string will be loaded in cgi processing [14:42:36]execute_cgi json_proto POST (null) [14:42:36]execute_cgi path=json_proto method=POST [14:42:36]POST find Content-Length [14:42:36]Host: 172.17.46.131:8080 [14:42:36]Content-Length: 682 [14:42:36]Content-Type: application/json [14:42:36] [14:42:36]POST finish read [14:42:36]Found Content-Length = 682 [14:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:42:36]execute_script... [14:42: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)412526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:42:36]POST & json_proto [14:42:36]process_json_proto [14:42:36]json parsed OK: [14:42:36]protocol is kg_v1.0 [14:42:36]action value=close_receipt [14:42:36]process_action close_receipt [14:42:36]cmd_close_receipt [14:42:36]MH_GetDate [14:42:36]Write to MH i2c: F0 00 00 AD 0B A7 [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 09 00 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 09 00 AD 0B 00 5D 3F B7 67 7E 41 4F 65 DD [14:42:36]GetLastDocTimeStamp 1740062428 [14:42:36]current date 1740062557 [14:42:36]FM_GetShiftState [14:42:36]SAM_PROTO_GetShiftState [14:42:36]wFMCommunicate request_size=4 [14:42:36]MH_SAM_APDU [14:42:36]CAPDU: 80 13 01 00 [14:42:36]Write to MH i2c: E2 08 00 AE 0B 80 13 01 00 00 00 00 00 36 [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:36]Read from MH i2c: E2 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: E2 0E 00 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: E2 0E 00 AE 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 88 [14:42:36]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:42:36]wFMCommunicate OK [14:42:36]SAM_PROTO_GetShiftState done [14:42:36]FM_GetShiftState done [14:42:36]opened in 1740011697 [14:42:36]opened+sec_in_day 1740098097 [14:42:36]quantity*price = 100023 [14:42:36]sum+1 = 100025 [14:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 169 20.02.2025 14:42 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187368 ФПД: 243039112058233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T144237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187368&fm=243039112058233&tin=02508201610067®Number=0000000000091857&sum=100000 [14:42:37]StoreToDocumentArchive [14:42:37]shift 648 fd 187368 [14:42:37]save to /storage/0648/doc_00187368 [14:42:37]save last doc name /storage/0648/doc_00187368 to /storage/kkm_last_doc_name [14:42:37]save OK [14:42:37]Clear old archive folders... [14:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:37]tlvbuf is 00E5AA30 [14:42:37]SAM_PROTO_ClearQueue [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 09 00 00 [14:42:37]Write to MH i2c: E2 08 00 BB 0B 80 09 00 00 00 00 00 00 38 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 BB 0B 00 90 00 3A [14:42:37]RAPDU: 90 00 [14:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_ClearQueue done [14:42:37]KKMCreateOFDPacket [14:42:37]OFDProtocolAddRootSTLVToBuf [14:42:37]FM_MakeSignedData [14:42:37]FM_MakeSignedData [14:42:37]SAM_PROTO_SignData [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 0D 01 02 [14:42:37]Write to MH i2c: E2 08 00 BC 0B 80 0D 01 02 00 00 00 00 40 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 BC 0B 00 90 00 3B [14:42:37]RAPDU: 90 00 [14:42:37]wFMCommunicate OK [14:42:37]wFMCommunicate request_size=255 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5D 3F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DB 02 00 35 04 06 00 DD [14:42:37]Write to MH i2c: E2 02 01 BD 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5D 3F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DB 02 00 35 04 06 00 DD 00 00 CC [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 BD 0B 00 90 00 3C [14:42:37]RAPDU: 90 00 [14:42:37]wFMCommunicate OK [14:42:37]wFMCommunicate request_size=10 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 0D 02 02 05 0A F3 F0 D5 79 [14:42:37]Write to MH i2c: E2 0D 00 BE 0B 80 0D 02 02 05 00 0A F3 F0 D5 79 00 00 88 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [14:42:37]RAPDU: 90 00 [14:42:37]wFMCommunicate OK [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 0D 03 02 [14:42:37]Write to MH i2c: E2 08 00 BF 0B 80 0D 03 02 00 00 00 00 45 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0B 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0B 00 BF 0B 00 98 02 24 8A 88 E7 E1 96 90 00 74 [14:42:38]RAPDU: 98 02 24 8A 88 E7 E1 96 90 00 [14:42:38]wFMCommunicate OK [14:42:38]SAM_PROTO_SignData done [14:42:38]FM_MakeSignedData done [14:42:38]CreateOFDProtocolMessage [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 11 00 00 [14:42:38]Write to MH i2c: E2 08 00 C0 0B 80 11 00 00 00 00 00 00 45 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 17 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 17 00 C0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [14:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:42:38]wFMCommunicate OK [14:42:38]CreateOFDProtocolMessage done [14:42:38]OFDSenderStorePacket 187368 [14:42:38]StoreOFDPacket docnum=187368 [14:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AD F5 07 01 2C 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5D 3F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DB 02 00 35 04 06 00 DD 0A F3 F0 D5 79 98 02 24 8A 88 E7 E1 96 [14:42:38]CheckFolder [14:42:38]dirname=/storage/ofd_packets [14:42:38]CheckFolder done [14:42:38]ProducePacketName [14:42:38]name=ofd_packets/00187368 [14:42:38]NVStorageSaveData ofd_packets/00187368 [14:42:38]File name is /storage/ofd_packets/00187368 [14:42:38]Write 301 bytes [14:42:38]NVStorageSaveData done [14:42:38]OFDSenderStorePacket done [14:42:38]KKMCreateOFDPacket done [14:42:38]NVStorageSaveData kkm_last_timestamp [14:42:38]File name is /storage/kkm_last_timestamp [14:42:38]Write 4 bytes [14:42:38]NVStorageSaveData done [14:42:38]OFD Sender: Processing packet 187368 [packets to send 49, broken 48] [14:42:38]ProducePacketName [14:42:38]name=ofd_packets/00187368 [14:42:38]OFD Sender: To server: pG, [14:42:38]CommunicateWithHost lk.salyk.kg:30040 [14:42:38]ConnectInit lk.salyk.kg [14:42:38]ExternCall_PrintAddStr [14:42:38]wPrintStart [14:42:38]Write to MH i2c: 01 00 00 C1 0B CC [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 C1 0B 00 00 00 00 00 FF 0F E1 [14:42:38]RasterBufferAndPrint [14:42:38]line Счет N : (1)412526 [14:42:38]line ИНН: 02508201610067 [14:42:38]line Контрольно-Кассовый Чек [14:42:38]line ПРОДАЖА [14:42:38]line ТРК (МРК, ГНК) : 22 [14:42:38]line Товар: 2710124130 [14:42:38]line Аи-92-К-2 [14:42:38]line 15.580 * 64.20 [14:42:38]line = 1000.24 [14:42:38]line НДС 12% НСП 1% [14:42:38]line > о реализуемом товаре [14:42:38]line ОКРУГЛЕНИЕ: -0.24 [14:42:38]line ИТОГО: 1000.00 [14:42:38]line Внесено: 1000.00 [14:42:38]line СДАЧА: 0.00 [14:42:38]line НСП 1% : 8.85 [14:42:38]line НДС 12% : 106.22 [14:42:38]line Наличными: 1000.00 [14:42:38]line Безнал.: 0.00 [14:42:38]line Место: АЗС № 92 "Партнер Нефть" [14:42:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:42:38]line СНО: Общий режим [14:42:38]line Чек 169 20.02.2025 14:42 [14:42:38]line Смена: 648 ФФД: 1.0 [14:42:38]line ЗНМ: 0300000118 [14:42:38]line РНМ: 0000000000091857 [14:42:38]line Версия ККМ: 001 [14:42:38]line ФМ: 0000000000871826 [14:42:38]line ФД: 187368 [14:42:38]line ФПД: 243039112058233 [14:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T144237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187368&fm=243039112058233&tin=02508201610067®Number=0000000000091857&sum=100000 [14:42:38]Connected sock=11 [14:42:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AD F5 07 01 2C 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5D 3F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DB 02 00 35 04 06 00 DD 0A F3 F0 D5 79 98 02 24 8A 88 E7 E1 96 [14:42:38]written 0, free lines is 4095 [14:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A8 CC 47 00 80 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DB 02 00 F4 03 04 00 AD E5 B6 67 B6 04 01 00 00 72 08 F5 40 96 69 AD 1D [14:42:38]CommunicateWithHost err = 0 [14:42:38]CheckOFDResponse [14:42:38]1017 (14) - 77093643461234 [14:42:38]1041 (16) - 0000000000871826 [14:42:38]1040 (4) - 187368 [14:42:38]1012 (4) - 20.02.2025 08:19 [14:42:38]1206 (1) - 0 [14:42:38]OFD Sender: Remove packet 187368 [14:42:38]ProducePacketName [14:42:38]name=ofd_packets/00187368 [14:42:38]NVStorageDeleteData [14:42:38]Write to MH i2c: 01 00 00 EC 0B F7 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 EC 0B 00 00 00 00 00 EF 0C F9 [14:42:38]RasterBufferAndPrint [14:42:38]line [14:42:38]line [14:42:38]line [14:42:38]line [14:42:38]line [14:42:38]written 0, free lines is 3320 [14:42:38]MH_Cut [14:42:38]Write to MH i2c: D1 01 00 F3 0B 01 D0 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: D1 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: D1 01 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: D1 01 00 F3 0B 00 CF [14:42:38]Write to MH i2c: 01 00 00 F4 0B FF [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:39]OFD Sender: No OFD packet to send [14:42:39]*** Cut start [14:42:39]*** Partial cut [14:42:39]*** CUTSNS_PIN = 1 [14:42:39]*** CUTSNS_PIN = 0 [14:42:39]*** Brake cut motor [14:42:40]Read from MH i2c: 01 [14:42:40]MH_I2C_Read... [14:42:40]*** Stop cut motor [14:42:40]*** Cut end [14:42:40]Read from MH i2c: 01 07 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 F4 0B 00 00 00 00 00 FF 0F 14 [14:42:40]process_action close_receipt done [14:42:40]requested_data is exist [14:42:40]produce_requested_data [14:42:40]requested_item fm.sn is exist - process it [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 11 00 00 [14:42:40]Write to MH i2c: E2 08 00 F5 0B 80 11 00 00 00 00 00 00 7A [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 F5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [14:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:42:40]wFMCommunicate OK [14:42:40]requested_item fd.num is exist - process it [14:42:40]SAM_PROTO_GetFieldsCounters [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 13 00 00 [14:42:40]Write to MH i2c: E2 08 00 F6 0B 80 13 00 00 00 00 00 00 7D [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 62 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 62 00 F6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E8 DB 02 00 0E 04 04 00 88 02 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 ED [14:42: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E8 DB 02 00 0E 04 04 00 88 02 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 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_GetFieldsCounters done [14:42:40]requested_item shift.num is exist - process it [14:42:40]requested_item shift.opened is exist - process it [14:42:40]req_shift_opened [14:42:40]FM_GetShiftState [14:42:40]SAM_PROTO_GetShiftState [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 13 01 00 [14:42:40]Write to MH i2c: E2 08 00 F7 0B 80 13 01 00 00 00 00 00 7F [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0E 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0E 00 F7 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D1 [14:42:40]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_GetShiftState done [14:42:40]FM_GetShiftState done [14:42:40]req_shift_opened done [14:42:40]requested_item shift.open_date is exist - process it [14:42:40]req_shift_open_date [14:42:40]req_shift_open_date done [14:42:40]produce_requested_data done [14:42:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187368,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:42:40]process_action_free close_receipt [14:42:40]json_value_free [14:42:40]json_value_free done [14:42:40]process_json_proto returns [14:42:40]Send response to host [14:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187368,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:42:40]free response buf [14:42:40]execute_script done [14:42:40]execute_script returns [14:42:40]free content buf [14:42:40]Sock 9.Close socket [14:42:40]Sock 9.Thread stoped [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:29]accept exits with 7 [14:46:29]New connection [14:46:29]New thread 3067276644 created [14:46:29]Thread 3067420004 joined [14:46:29]Waiting for new connection... [14:46:29] Sock 7.Parse request [14:46:29]Sock 7.Check first char [14:46:29]Sock 7.First char is OK [14:46:29]request: POST /json_proto HTTP/1.0 [14:46:29]Method: POST [14:46:29]URL: /json_proto [14:46:29]Method is POST - this is cgi request [14:46:29]url: /json_proto [14:46:29]query_string will be loaded in cgi processing [14:46:29]execute_cgi json_proto POST (null) [14:46:29]execute_cgi path=json_proto method=POST [14:46:29]POST find Content-Length [14:46:29]Host: 172.17.46.131:8080 [14:46:29]Content-Length: 677 [14:46:29]Content-Type: application/json [14:46:29] [14:46:29]POST finish read [14:46:29]Found Content-Length = 677 [14:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:29]execute_script... [14:46: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)412527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:29]POST & json_proto [14:46:29]process_json_proto [14:46:29]json parsed OK: [14:46:29]protocol is kg_v1.0 [14:46:29]action value=close_receipt [14:46:29]process_action close_receipt [14:46:29]cmd_close_receipt [14:46:29]MH_GetDate [14:46:29]Write to MH i2c: F0 00 00 F8 0B F2 [14:46:29]Write i2c OK [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: F0 [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: F0 09 00 [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: F0 09 00 F8 0B 00 46 40 B7 67 7E 41 4F 65 12 [14:46:29]GetLastDocTimeStamp 1740062557 [14:46:29]current date 1740062790 [14:46:29]FM_GetShiftState [14:46:29]SAM_PROTO_GetShiftState [14:46:29]wFMCommunicate request_size=4 [14:46:29]MH_SAM_APDU [14:46:29]CAPDU: 80 13 01 00 [14:46:29]Write to MH i2c: E2 08 00 F9 0B 80 13 01 00 00 00 00 00 81 [14:46:29]Write i2c OK [14:46:29]MH_I2C_Read... [14:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:29]Read from MH i2c: E2 [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: E2 0E 00 [14:46:29]MH_I2C_Read... [14:46:29]Read from MH i2c: E2 0E 00 F9 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D3 [14:46:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:46:29]wFMCommunicate OK [14:46:29]SAM_PROTO_GetShiftState done [14:46:29]FM_GetShiftState done [14:46:29]opened in 1740011697 [14:46:29]opened+sec_in_day 1740098097 [14:46:29]quantity*price = 60027 [14:46:29]sum+1 = 60028 [14:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 170 20.02.2025 14:46 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187369 ФПД: 67587424724684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T144630&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187369&fm=67587424724684&tin=02508201610067®Number=0000000000091857&sum=60000 [14:46:31]StoreToDocumentArchive [14:46:31]shift 648 fd 187369 [14:46:31]save to /storage/0648/doc_00187369 [14:46:31]save last doc name /storage/0648/doc_00187369 to /storage/kkm_last_doc_name [14:46:31]save OK [14:46:31]Clear old archive folders... [14:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:31]tlvbuf is 00DFC2F0 [14:46:31]SAM_PROTO_ClearQueue [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 09 00 00 [14:46:31]Write to MH i2c: E2 08 00 06 0C 80 09 00 00 00 00 00 00 84 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 06 0C 00 90 00 86 [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]SAM_PROTO_ClearQueue done [14:46:31]KKMCreateOFDPacket [14:46:31]OFDProtocolAddRootSTLVToBuf [14:46:31]FM_MakeSignedData [14:46:31]FM_MakeSignedData [14:46:31]SAM_PROTO_SignData [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 01 02 [14:46:31]Write to MH i2c: E2 08 00 07 0C 80 0D 01 02 00 00 00 00 8C [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]wFMCommunicate request_size=255 [14:46:31]MH_SAM_APDU [14:46: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 46 40 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DB 02 00 35 04 06 00 3D [14:46:31]Write to MH i2c: E2 02 01 08 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 46 40 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DB 02 00 35 04 06 00 3D 00 00 56 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]wFMCommunicate request_size=10 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 02 02 05 78 6C 71 26 CC [14:46:31]Write to MH i2c: E2 0D 00 09 0C 80 0D 02 02 05 00 78 6C 71 26 CC 00 00 E0 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 03 02 [14:46:31]Write to MH i2c: E2 08 00 0A 0C 80 0D 03 02 00 00 00 00 91 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 0B 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 0B 00 0A 0C 00 12 54 2F 85 EF 21 52 CD 90 00 DB [14:46:31]RAPDU: 12 54 2F 85 EF 21 52 CD 90 00 [14:46:31]wFMCommunicate OK [14:46:31]SAM_PROTO_SignData done [14:46:31]FM_MakeSignedData done [14:46:31]CreateOFDProtocolMessage [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 11 00 00 [14:46:31]Write to MH i2c: E2 08 00 0B 0C 80 11 00 00 00 00 00 00 91 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 17 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 17 00 0B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E4 [14:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:46:31]wFMCommunicate OK [14:46:31]CreateOFDProtocolMessage done [14:46:31]OFDSenderStorePacket 187369 [14:46:31]StoreOFDPacket docnum=187369 [14:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2A E4 07 01 B8 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 46 40 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DB 02 00 35 04 06 00 3D 78 6C 71 26 CC 12 54 2F 85 EF 21 52 CD [14:46:31]CheckFolder [14:46:31]dirname=/storage/ofd_packets [14:46:31]CheckFolder done [14:46:31]ProducePacketName [14:46:31]name=ofd_packets/00187369 [14:46:31]NVStorageSaveData ofd_packets/00187369 [14:46:31]File name is /storage/ofd_packets/00187369 [14:46:31]Write 301 bytes [14:46:31]NVStorageSaveData done [14:46:31]OFDSenderStorePacket done [14:46:31]KKMCreateOFDPacket done [14:46:31]NVStorageSaveData kkm_last_timestamp [14:46:31]File name is /storage/kkm_last_timestamp [14:46:31]Write 4 bytes [14:46:31]NVStorageSaveData done [14:46:31]ExternCall_PrintAddStr [14:46:31]wPrintStart [14:46:31]Write to MH i2c: 01 00 00 0C 0C 18 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: 01 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: 01 07 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: 01 07 00 0C 0C 00 00 00 00 00 FF 0F 2D [14:46:31]RasterBufferAndPrint [14:46:31]line Счет N : (1)412527 [14:46:31]line ИНН: 02508201610067 [14:46:31]line Контрольно-Кассовый Чек [14:46:31]line ПРОДАЖА [14:46:31]line ТРК (МРК, ГНК) : 22 [14:46:31]line Товар: 2710124130 [14:46:31]line Аи-92-К-2 [14:46:31]line 9.350 * 64.20 [14:46:31]line = 600.27 [14:46:31]line НДС 12% НСП 1% [14:46:31]line > о реализуемом товаре [14:46:31]line ОКРУГЛЕНИЕ: -0.27 [14:46:31]line ИТОГО: 600.00 [14:46:31]line Внесено: 600.00 [14:46:31]line СДАЧА: 0.00 [14:46:31]line НСП 1% : 5.31 [14:46:31]line НДС 12% : 63.74 [14:46:31]line Наличными: 600.00 [14:46:31]line Безнал.: 0.00 [14:46:31]line Место: АЗС № 92 "Партнер Нефть" [14:46:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:46:31]line СНО: Общий режим [14:46:31]line Чек 170 20.02.2025 14:46 [14:46:31]line Смена: 648 ФФД: 1.0 [14:46:31]line ЗНМ: 0300000118 [14:46:31]line РНМ: 0000000000091857 [14:46:31]line Версия ККМ: 001 [14:46:31]line ФМ: 0000000000871826 [14:46:31]line ФД: 187369 [14:46:31]line ФПД: 67587424724684 [14:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T144630&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187369&fm=67587424724684&tin=02508201610067®Number=0000000000091857&sum=60000 [14:46:31]written 0, free lines is 4095 [14:46:31]OFD Sender: Processing packet 187369 [packets to send 49, broken 48] [14:46:31]ProducePacketName [14:46:31]name=ofd_packets/00187369 [14:46:31]OFD Sender: To server: pG, [14:46:31]CommunicateWithHost lk.salyk.kg:30040 [14:46:31]ConnectInit lk.salyk.kg [14:46:32]Write to MH i2c: 01 00 00 37 0C 43 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 07 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 E8 0C 3E [14:46:32]RasterBufferAndPrint [14:46:32]line [14:46:32]line [14:46:32]line [14:46:32]line [14:46:32]line [14:46:32]written 0, free lines is 3310 [14:46:32]MH_Cut [14:46:32]Write to MH i2c: D1 01 00 3E 0C 01 1C [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: D1 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: D1 01 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: D1 01 00 3E 0C 00 1B [14:46:32]Write to MH i2c: 01 00 00 3F 0C 4B [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:33]*** Cut start [14:46:33]*** Partial cut [14:46:33]*** CUTSNS_PIN = 1 [14:46:33]*** CUTSNS_PIN = 0 [14:46:33]*** Brake cut motor [14:46:33]Read from MH i2c: 01 [14:46:33]MH_I2C_Read... [14:46:33]*** Stop cut motor [14:46:33]*** Cut end [14:46:33]Read from MH i2c: 01 07 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 3F 0C 00 00 00 00 00 FF 0F 60 [14:46:33]process_action close_receipt done [14:46:33]requested_data is exist [14:46:33]produce_requested_data [14:46:33]requested_item fm.sn is exist - process it [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 11 00 00 [14:46:33]Write to MH i2c: E2 08 00 40 0C 80 11 00 00 00 00 00 00 C6 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 17 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 17 00 40 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [14:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:46:33]wFMCommunicate OK [14:46:33]requested_item fd.num is exist - process it [14:46:33]SAM_PROTO_GetFieldsCounters [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 13 00 00 [14:46:33]Write to MH i2c: E2 08 00 41 0C 80 13 00 00 00 00 00 00 C9 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 62 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 62 00 41 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E9 DB 02 00 0E 04 04 00 88 02 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 3D [14:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E9 DB 02 00 0E 04 04 00 88 02 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:46:33]wFMCommunicate OK [14:46:33]SAM_PROTO_GetFieldsCounters done [14:46:33]requested_item shift.num is exist - process it [14:46:33]requested_item shift.opened is exist - process it [14:46:33]req_shift_opened [14:46:33]FM_GetShiftState [14:46:33]SAM_PROTO_GetShiftState [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 13 01 00 [14:46:34]Write to MH i2c: E2 08 00 42 0C 80 13 01 00 00 00 00 00 CB [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 0E 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 0E 00 42 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1D [14:46:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:46:34]wFMCommunicate OK [14:46:34]SAM_PROTO_GetShiftState done [14:46:34]FM_GetShiftState done [14:46:34]req_shift_opened done [14:46:34]requested_item shift.open_date is exist - process it [14:46:34]req_shift_open_date [14:46:34]req_shift_open_date done [14:46:34]produce_requested_data done [14:46:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187369,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:46:34]process_action_free close_receipt [14:46:34]json_value_free [14:46:34]json_value_free done [14:46:34]process_json_proto returns [14:46:34]Send response to host [14:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187369,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:46:34]free response buf [14:46:34]execute_script done [14:46:34]execute_script returns [14:46:34]free content buf [14:46:34]Sock 7.Close socket [14:46:34]Sock 7.Thread stoped [14:46:45]accept exits with 9 [14:46:45]New connection [14:46:45]New thread 3067420004 created [14:46:45]Thread 3067276644 joined [14:46:45]Waiting for new connection... [14:46:45] Sock 9.Parse request [14:46:45]Sock 9.Check first char [14:46:45]Sock 9.First char is OK [14:46:45]request: POST /json_proto HTTP/1.0 [14:46:45]Method: POST [14:46:45]URL: /json_proto [14:46:45]Method is POST - this is cgi request [14:46:45]url: /json_proto [14:46:45]query_string will be loaded in cgi processing [14:46:45]execute_cgi json_proto POST (null) [14:46:45]execute_cgi path=json_proto method=POST [14:46:45]POST find Content-Length [14:46:45]Host: 172.17.46.131:8080 [14:46:45]Content-Length: 677 [14:46:45]Content-Type: application/json [14:46:45] [14:46:45]POST finish read [14:46:45]Found Content-Length = 677 [14:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:45]execute_script... [14:46:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:45]POST & json_proto [14:46:45]process_json_proto [14:46:45]json parsed OK: [14:46:45]protocol is kg_v1.0 [14:46:45]action value=close_receipt [14:46:45]process_action close_receipt [14:46:45]cmd_close_receipt [14:46:45]MH_GetDate [14:46:45]Write to MH i2c: F0 00 00 43 0C 3E [14:46:45]Write i2c OK [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: F0 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: F0 09 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: F0 09 00 43 0C 00 56 40 B7 67 7E 41 4F 65 6E [14:46:45]GetLastDocTimeStamp 1740062790 [14:46:45]current date 1740062806 [14:46:45]FM_GetShiftState [14:46:45]SAM_PROTO_GetShiftState [14:46:45]wFMCommunicate request_size=4 [14:46:45]MH_SAM_APDU [14:46:45]CAPDU: 80 13 01 00 [14:46:45]Write to MH i2c: E2 08 00 44 0C 80 13 01 00 00 00 00 00 CD [14:46:45]Write i2c OK [14:46:45]MH_I2C_Read... [14:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:45]Read from MH i2c: E2 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: E2 0E 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: E2 0E 00 44 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1F [14:46:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:46:45]wFMCommunicate OK [14:46:45]SAM_PROTO_GetShiftState done [14:46:45]FM_GetShiftState done [14:46:45]opened in 1740011697 [14:46:45]opened+sec_in_day 1740098097 [14:46:45]quantity*price = 50011 [14:46:45]sum+1 = 50013 [14:46:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 171 20.02.2025 14:46 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187370 ФПД: 183164682495723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T144646&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187370&fm=183164682495723&tin=02508201610067®Number=0000000000091857&sum=50000 [14:46:46]StoreToDocumentArchive [14:46:46]shift 648 fd 187370 [14:46:46]save to /storage/0648/doc_00187370 [14:46:46]save last doc name /storage/0648/doc_00187370 to /storage/kkm_last_doc_name [14:46:46]save OK [14:46:46]Clear old archive folders... [14:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:46]tlvbuf is 00E25800 [14:46:46]SAM_PROTO_ClearQueue [14:46:46]wFMCommunicate request_size=4 [14:46:46]MH_SAM_APDU [14:46:46]CAPDU: 80 09 00 00 [14:46:46]Write to MH i2c: E2 08 00 51 0C 80 09 00 00 00 00 00 00 CF [14:46:46]Write i2c OK [14:46:46]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 51 0C 00 90 00 D1 [14:46:47]RAPDU: 90 00 [14:46:47]wFMCommunicate OK [14:46:47]SAM_PROTO_ClearQueue done [14:46:47]KKMCreateOFDPacket [14:46:47]OFDProtocolAddRootSTLVToBuf [14:46:47]FM_MakeSignedData [14:46:47]FM_MakeSignedData [14:46:47]SAM_PROTO_SignData [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 0D 01 02 [14:46:47]Write to MH i2c: E2 08 00 52 0C 80 0D 01 02 00 00 00 00 D7 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [14:46:47]RAPDU: 90 00 [14:46:47]wFMCommunicate OK [14:46:47]wFMCommunicate request_size=255 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 56 40 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DB 02 00 35 04 06 00 A6 [14:46:47]Write to MH i2c: E2 02 01 53 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 56 40 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DB 02 00 35 04 06 00 A6 00 00 C6 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [14:46:47]RAPDU: 90 00 [14:46:47]wFMCommunicate OK [14:46:47]wFMCommunicate request_size=10 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 0D 02 02 05 96 59 D5 E6 EB [14:46:47]Write to MH i2c: E2 0D 00 54 0C 80 0D 02 02 05 00 96 59 D5 E6 EB 00 00 79 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 03 00 54 0C 00 90 00 D4 [14:46:47]RAPDU: 90 00 [14:46:47]wFMCommunicate OK [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 0D 03 02 [14:46:47]Write to MH i2c: E2 08 00 55 0C 80 0D 03 02 00 00 00 00 DC [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 0B 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 0B 00 55 0C 00 EB D1 20 0B E2 CE C4 05 90 00 3D [14:46:47]RAPDU: EB D1 20 0B E2 CE C4 05 90 00 [14:46:47]wFMCommunicate OK [14:46:47]SAM_PROTO_SignData done [14:46:47]FM_MakeSignedData done [14:46:47]CreateOFDProtocolMessage [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 11 00 00 [14:46:47]Write to MH i2c: E2 08 00 56 0C 80 11 00 00 00 00 00 00 DC [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 17 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 17 00 56 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [14:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:46:47]wFMCommunicate OK [14:46:47]CreateOFDProtocolMessage done [14:46:47]OFDSenderStorePacket 187370 [14:46:47]StoreOFDPacket docnum=187370 [14:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 48 83 07 01 23 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 56 40 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DB 02 00 35 04 06 00 A6 96 59 D5 E6 EB EB D1 20 0B E2 CE C4 05 [14:46:47]CheckFolder [14:46:47]dirname=/storage/ofd_packets [14:46:47]CheckFolder done [14:46:47]ProducePacketName [14:46:47]name=ofd_packets/00187370 [14:46:47]NVStorageSaveData ofd_packets/00187370 [14:46:47]File name is /storage/ofd_packets/00187370 [14:46:47]Write 301 bytes [14:46:47]NVStorageSaveData done [14:46:47]OFDSenderStorePacket done [14:46:47]KKMCreateOFDPacket done [14:46:47]NVStorageSaveData kkm_last_timestamp [14:46:47]File name is /storage/kkm_last_timestamp [14:46:47]Write 4 bytes [14:46:47]NVStorageSaveData done [14:46:47]ExternCall_PrintAddStr [14:46:47]wPrintStart [14:46:47]Write to MH i2c: 01 00 00 57 0C 63 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 07 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 07 00 57 0C 00 00 00 00 00 FF 0F 78 [14:46:47]RasterBufferAndPrint [14:46:47]line Счет N : (1)412528 [14:46:47]line ИНН: 02508201610067 [14:46:47]line Контрольно-Кассовый Чек [14:46:47]line ПРОДАЖА [14:46:47]line ТРК (МРК, ГНК) : 12 [14:46:47]line Товар: 2710124130 [14:46:47]line Аи-92-К-2 [14:46:47]line 7.790 * 64.20 [14:46:47]line = 500.12 [14:46:47]line НДС 12% НСП 1% [14:46:47]line > о реализуемом товаре [14:46:47]line ОКРУГЛЕНИЕ: -0.12 [14:46:47]line ИТОГО: 500.00 [14:46:47]line Внесено: 500.00 [14:46:47]line СДАЧА: 0.00 [14:46:47]line НСП 1% : 4.43 [14:46:47]line НДС 12% : 53.11 [14:46:47]line Наличными: 500.00 [14:46:47]line Безнал.: 0.00 [14:46:47]line Место: АЗС № 92 "Партнер Нефть" [14:46:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:46:47]line СНО: Общий режим [14:46:47]line Чек 171 20.02.2025 14:46 [14:46:47]line Смена: 648 ФФД: 1.0 [14:46:47]line ЗНМ: 0300000118 [14:46:47]line РНМ: 0000000000091857 [14:46:47]line Версия ККМ: 001 [14:46:47]line ФМ: 0000000000871826 [14:46:47]line ФД: 187370 [14:46:47]line ФПД: 183164682495723 [14:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T144646&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187370&fm=183164682495723&tin=02508201610067®Number=0000000000091857&sum=50000 [14:46:47]written 0, free lines is 4095 [14:46:48]Write to MH i2c: 01 00 00 82 0C 8E [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 07 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 07 00 82 0C 00 00 00 00 00 E0 0C 81 [14:46:48]RasterBufferAndPrint [14:46:48]line [14:46:48]line [14:46:48]line [14:46:48]line [14:46:48]line [14:46:48]written 0, free lines is 3302 [14:46:48]MH_Cut [14:46:48]Write to MH i2c: D1 01 00 89 0C 01 67 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: D1 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: D1 01 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: D1 01 00 89 0C 00 66 [14:46:48]Write to MH i2c: 01 00 00 8A 0C 96 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** Cut start [14:46:48]*** Partial cut [14:46:48]*** CUTSNS_PIN = 1 [14:46:49]*** CUTSNS_PIN = 0 [14:46:49]*** Brake cut motor [14:46:49]Read from MH i2c: 01 [14:46:49]MH_I2C_Read... [14:46:49]*** Stop cut motor [14:46:49]*** Cut end [14:46:49]Read from MH i2c: 01 07 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: 01 07 00 8A 0C 00 00 00 00 00 FF 0F AB [14:46:49]process_action close_receipt done [14:46:49]requested_data is exist [14:46:49]produce_requested_data [14:46:49]requested_item fm.sn is exist - process it [14:46:49]wFMCommunicate request_size=4 [14:46:49]MH_SAM_APDU [14:46:49]CAPDU: 80 11 00 00 [14:46:49]Write to MH i2c: E2 08 00 8B 0C 80 11 00 00 00 00 00 00 11 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:49]Read from MH i2c: E2 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 17 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 17 00 8B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [14:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:46:49]wFMCommunicate OK [14:46:49]requested_item fd.num is exist - process it [14:46:49]SAM_PROTO_GetFieldsCounters [14:46:49]wFMCommunicate request_size=4 [14:46:49]MH_SAM_APDU [14:46:49]CAPDU: 80 13 00 00 [14:46:49]Write to MH i2c: E2 08 00 8C 0C 80 13 00 00 00 00 00 00 14 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:49]Read from MH i2c: E2 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 62 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 62 00 8C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EA DB 02 00 0E 04 04 00 88 02 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 8C [14:46:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EA DB 02 00 0E 04 04 00 88 02 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:46:49]wFMCommunicate OK [14:46:49]SAM_PROTO_GetFieldsCounters done [14:46:49]requested_item shift.num is exist - process it [14:46:49]requested_item shift.opened is exist - process it [14:46:49]req_shift_opened [14:46:49]FM_GetShiftState [14:46:49]SAM_PROTO_GetShiftState [14:46:49]wFMCommunicate request_size=4 [14:46:49]MH_SAM_APDU [14:46:49]CAPDU: 80 13 01 00 [14:46:49]Write to MH i2c: E2 08 00 8D 0C 80 13 01 00 00 00 00 00 16 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:49]Read from MH i2c: E2 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 0E 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: E2 0E 00 8D 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 68 [14:46:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:46:49]wFMCommunicate OK [14:46:49]SAM_PROTO_GetShiftState done [14:46:49]FM_GetShiftState done [14:46:49]req_shift_opened done [14:46:49]requested_item shift.open_date is exist - process it [14:46:49]req_shift_open_date [14:46:49]req_shift_open_date done [14:46:49]produce_requested_data done [14:46:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187370,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:46:49]process_action_free close_receipt [14:46:49]json_value_free [14:46:49]json_value_free done [14:46:49]process_json_proto returns [14:46:49]Send response to host [14:46:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187370,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:46:49]free response buf [14:46:49]execute_script done [14:46:49]execute_script returns [14:46:49]free content buf [14:46:49]Sock 9.Close socket [14:46:49]Sock 9.Thread stoped [14:48:45]ConnectInit Can't connect to host [14:48:45]CommunicateWithHost connect error [14:48:45]CommunicateWithHost err = -1 [14:48:45]OFD Sender: Server communicate error [14:48:45]OFD Sender: Processing packet 187369 [packets to send 50, broken 48] [14:48:45]ProducePacketName [14:48:45]name=ofd_packets/00187369 [14:48:45]OFD Sender: To server: pG, [14:48:45]CommunicateWithHost lk.salyk.kg:30040 [14:48:45]ConnectInit lk.salyk.kg [14:48:45]Connected sock=9 [14: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 31 38 32 36 0F 01 00 00 2A E4 07 01 B8 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 46 40 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DB 02 00 35 04 06 00 3D 78 6C 71 26 CC 12 54 2F 85 EF 21 52 CD [14:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BD DF 47 00 0D 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DB 02 00 F4 03 04 00 1C E7 B6 67 B6 04 01 00 00 B2 5A 0A 0A 55 DA 59 C7 [14:48:45]CommunicateWithHost err = 0 [14:48:45]CheckOFDResponse [14:48:45]1017 (14) - 77093643461234 [14:48:45]1041 (16) - 0000000000871826 [14:48:45]1040 (4) - 187369 [14:48:45]1012 (4) - 20.02.2025 08:26 [14:48:45]1206 (1) - 0 [14:48:45]OFD Sender: Remove packet 187369 [14:48:45]ProducePacketName [14:48:45]name=ofd_packets/00187369 [14:48:45]NVStorageDeleteData [14:48:46]OFD Sender: Processing packet 187370 [packets to send 49, broken 48] [14:48:46]ProducePacketName [14:48:46]name=ofd_packets/00187370 [14:48:46]OFD Sender: To server: pG, [14:48:46]CommunicateWithHost lk.salyk.kg:30040 [14:48:46]ConnectInit lk.salyk.kg [14:48:46]Connected sock=9 [14: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 31 38 32 36 0F 01 00 00 48 83 07 01 23 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 56 40 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DB 02 00 35 04 06 00 A6 96 59 D5 E6 EB EB D1 20 0B E2 CE C4 05 [14:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9D 56 47 00 C5 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 31 38 32 36 10 04 04 00 EA DB 02 00 F4 03 04 00 1D E7 B6 67 B6 04 01 00 00 95 10 AD 6E 95 20 15 E4 [14:48:46]CommunicateWithHost err = 0 [14:48:46]CheckOFDResponse [14:48:46]1017 (14) - 77093643461234 [14:48:46]1041 (16) - 0000000000871826 [14:48:46]1040 (4) - 187370 [14:48:46]1012 (4) - 20.02.2025 08:26 [14:48:46]1206 (1) - 0 [14:48:46]OFD Sender: Remove packet 187370 [14:48:46]ProducePacketName [14:48:46]name=ofd_packets/00187370 [14:48:46]NVStorageDeleteData [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:53:59]accept exits with 7 [14:53:59]New connection [14:53:59]New thread 3067276644 created [14:53:59]Thread 3067420004 joined [14:53:59]Waiting for new connection... [14:53:59] Sock 7.Parse request [14:53:59]Sock 7.Check first char [14:53:59]Sock 7.First char is OK [14:53:59]request: POST /json_proto HTTP/1.0 [14:53:59]Method: POST [14:53:59]URL: /json_proto [14:53:59]Method is POST - this is cgi request [14:53:59]url: /json_proto [14:53:59]query_string will be loaded in cgi processing [14:53:59]execute_cgi json_proto POST (null) [14:53:59]execute_cgi path=json_proto method=POST [14:53:59]POST find Content-Length [14:53:59]Host: 172.17.46.131:8080 [14:53:59]Content-Length: 682 [14:53:59]Content-Type: application/json [14:53:59] [14:53:59]POST finish read [14:53:59]Found Content-Length = 682 [14:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 17.450, "sum" : 1120.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:59]execute_script... [14:53: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)412529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 17.450, "sum" : 1120.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:59]POST & json_proto [14:53:59]process_json_proto [14:53:59]json parsed OK: [14:53:59]protocol is kg_v1.0 [14:53:59]action value=close_receipt [14:53:59]process_action close_receipt [14:53:59]cmd_close_receipt [14:53:59]MH_GetDate [14:53:59]Write to MH i2c: F0 00 00 8E 0C 89 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: F0 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: F0 09 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: F0 09 00 8E 0C 00 08 42 B7 67 7E 41 4F 65 6D [14:53:59]GetLastDocTimeStamp 1740062806 [14:53:59]current date 1740063240 [14:53:59]FM_GetShiftState [14:53:59]SAM_PROTO_GetShiftState [14:53:59]wFMCommunicate request_size=4 [14:53:59]MH_SAM_APDU [14:53:59]CAPDU: 80 13 01 00 [14:53:59]Write to MH i2c: E2 08 00 8F 0C 80 13 01 00 00 00 00 00 18 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:59]Read from MH i2c: E2 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 0E 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: E2 0E 00 8F 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6A [14:53:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:53:59]wFMCommunicate OK [14:53:59]SAM_PROTO_GetShiftState done [14:53:59]FM_GetShiftState done [14:53:59]opened in 1740011697 [14:53:59]opened+sec_in_day 1740098097 [14:53:59]quantity*price = 112029 [14:53:59]sum+1 = 112030 [14:53:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1120.00 Внесено: 1120.00 СДАЧА: 0.00 НСП 1% : 9.91 НДС 12% : 118.97 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 172 20.02.2025 14:54 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187371 ФПД: 9079341757982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T145400&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187371&fm=9079341757982&tin=02508201610067®Number=0000000000091857&sum=112000 [14:54:01]StoreToDocumentArchive [14:54:01]shift 648 fd 187371 [14:54:01]save to /storage/0648/doc_00187371 [14:54:01]save last doc name /storage/0648/doc_00187371 to /storage/kkm_last_doc_name [14:54:01]save OK [14:54:01]Clear old archive folders... [14:54:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:01]tlvbuf is 00E0C430 [14:54:01]SAM_PROTO_ClearQueue [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 09 00 00 [14:54:01]Write to MH i2c: E2 08 00 9C 0C 80 09 00 00 00 00 00 00 1A [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 9C 0C 00 90 00 1C [14:54:01]RAPDU: 90 00 [14:54:01]wFMCommunicate OK [14:54:01]SAM_PROTO_ClearQueue done [14:54:01]KKMCreateOFDPacket [14:54:01]OFDProtocolAddRootSTLVToBuf [14:54:01]FM_MakeSignedData [14:54:01]FM_MakeSignedData [14:54:01]SAM_PROTO_SignData [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 0D 01 02 [14:54:01]Write to MH i2c: E2 08 00 9D 0C 80 0D 01 02 00 00 00 00 22 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 9D 0C 00 90 00 1D [14:54:01]RAPDU: 90 00 [14:54:01]wFMCommunicate OK [14:54:01]wFMCommunicate request_size=255 [14:54:01]MH_SAM_APDU [14:54: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 32 FF 03 08 00 03 2A 44 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9D B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 2E 00 00 00 00 07 04 06 00 80 B5 01 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 08 42 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DB 02 00 35 04 06 00 08 [14:54:01]Write to MH i2c: E2 02 01 9E 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 32 FF 03 08 00 03 2A 44 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9D B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 2E 00 00 00 00 07 04 06 00 80 B5 01 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 08 42 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DB 02 00 35 04 06 00 08 00 00 7F [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 9E 0C 00 90 00 1E [14:54:01]RAPDU: 90 00 [14:54:01]wFMCommunicate OK [14:54:01]wFMCommunicate request_size=10 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 0D 02 02 05 41 F2 F0 B6 1E [14:54:01]Write to MH i2c: E2 0D 00 9F 0C 80 0D 02 02 05 00 41 F2 F0 B6 1E 00 00 26 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 03 00 9F 0C 00 90 00 1F [14:54:01]RAPDU: 90 00 [14:54:01]wFMCommunicate OK [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 0D 03 02 [14:54:01]Write to MH i2c: E2 08 00 A0 0C 80 0D 03 02 00 00 00 00 27 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 0B 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 0B 00 A0 0C 00 09 36 12 E5 F6 CC B0 F6 90 00 C6 [14:54:01]RAPDU: 09 36 12 E5 F6 CC B0 F6 90 00 [14:54:01]wFMCommunicate OK [14:54:01]SAM_PROTO_SignData done [14:54:01]FM_MakeSignedData done [14:54:01]CreateOFDProtocolMessage [14:54:01]wFMCommunicate request_size=4 [14:54:01]MH_SAM_APDU [14:54:01]CAPDU: 80 11 00 00 [14:54:01]Write to MH i2c: E2 08 00 A1 0C 80 11 00 00 00 00 00 00 27 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:01]Read from MH i2c: E2 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 17 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: E2 17 00 A1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [14:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:54:01]wFMCommunicate OK [14:54:01]CreateOFDProtocolMessage done [14:54:01]OFDSenderStorePacket 187371 [14:54:01]StoreOFDPacket docnum=187371 [14:54:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 61 C0 07 01 57 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2A 44 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9D B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 2E 00 00 00 00 07 04 06 00 80 B5 01 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 08 42 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DB 02 00 35 04 06 00 08 41 F2 F0 B6 1E 09 36 12 E5 F6 CC B0 F6 [14:54:01]CheckFolder [14:54:01]dirname=/storage/ofd_packets [14:54:01]CheckFolder done [14:54:01]ProducePacketName [14:54:01]name=ofd_packets/00187371 [14:54:01]NVStorageSaveData ofd_packets/00187371 [14:54:01]File name is /storage/ofd_packets/00187371 [14:54:01]Write 301 bytes [14:54:01]NVStorageSaveData done [14:54:01]OFDSenderStorePacket done [14:54:01]KKMCreateOFDPacket done [14:54:01]NVStorageSaveData kkm_last_timestamp [14:54:01]File name is /storage/kkm_last_timestamp [14:54:01]Write 4 bytes [14:54:01]NVStorageSaveData done [14:54:01]ExternCall_PrintAddStr [14:54:01]wPrintStart [14:54:01]Write to MH i2c: 01 00 00 A2 0C AE [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 A2 0C 00 00 00 00 00 FF 0F C3 [14:54:01]RasterBufferAndPrint [14:54:01]line Счет N : (1)412529 [14:54:01]line ИНН: 02508201610067 [14:54:01]line Контрольно-Кассовый Чек [14:54:01]line ПРОДАЖА [14:54:01]line ТРК (МРК, ГНК) : 12 [14:54:01]line Товар: 2710124130 [14:54:01]line Аи-92-К-2 [14:54:01]line 17.450 * 64.20 [14:54:01]line = 1120.29 [14:54:01]line НДС 12% НСП 1% [14:54:01]line > о реализуемом товаре [14:54:01]line ОКРУГЛЕНИЕ: -0.29 [14:54:01]line ИТОГО: 1120.00 [14:54:01]line Внесено: 1120.00 [14:54:01]line СДАЧА: 0.00 [14:54:01]line НСП 1% : 9.91 [14:54:01]line НДС 12% : 118.97 [14:54:01]line Наличными: 1120.00 [14:54:01]line Безнал.: 0.00 [14:54:01]line Место: АЗС № 92 "Партнер Нефть" [14:54:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:54:01]line СНО: Общий режим [14:54:01]line Чек 172 20.02.2025 14:54 [14:54:01]line Смена: 648 ФФД: 1.0 [14:54:01]line ЗНМ: 0300000118 [14:54:01]line РНМ: 0000000000091857 [14:54:01]line Версия ККМ: 001 [14:54:01]line ФМ: 0000000000871826 [14:54:01]line ФД: 187371 [14:54:01]line ФПД: 9079341757982 [14:54:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T145400&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187371&fm=9079341757982&tin=02508201610067®Number=0000000000091857&sum=112000 [14:54:01]OFD Sender: Processing packet 187371 [packets to send 49, broken 48] [14:54:01]ProducePacketName [14:54:01]name=ofd_packets/00187371 [14:54:01]OFD Sender: To server: pG, [14:54:01]CommunicateWithHost lk.salyk.kg:30040 [14:54:01]ConnectInit lk.salyk.kg [14:54:01]written 0, free lines is 4095 [14:54:02]Connected sock=10 [14:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 61 C0 07 01 57 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2A 44 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9D B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 2E 00 00 00 00 07 04 06 00 80 B5 01 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 08 42 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DB 02 00 35 04 06 00 08 41 F2 F0 B6 1E 09 36 12 E5 F6 CC B0 F6 [14:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 52 7B 47 00 CD 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DB 02 00 F4 03 04 00 59 E8 B6 67 B6 04 01 00 00 18 20 54 E8 31 D5 18 D7 [14:54:02]CommunicateWithHost err = 0 [14:54:02]CheckOFDResponse [14:54:02]1017 (14) - 77093643461234 [14:54:02]1041 (16) - 0000000000871826 [14:54:02]1040 (4) - 187371 [14:54:02]1012 (4) - 20.02.2025 08:31 [14:54:02]1206 (1) - 0 [14:54:02]OFD Sender: Remove packet 187371 [14:54:02]ProducePacketName [14:54:02]name=ofd_packets/00187371 [14:54:02]NVStorageDeleteData [14:54:02]Write to MH i2c: 01 00 00 CD 0C D9 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: 01 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: 01 07 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: 01 07 00 CD 0C 00 00 00 00 00 EF 0C DB [14:54:02]RasterBufferAndPrint [14:54:02]line [14:54:02]line [14:54:02]line [14:54:02]line [14:54:02]line [14:54:02]written 0, free lines is 3317 [14:54:02]MH_Cut [14:54:02]Write to MH i2c: D1 01 00 D4 0C 01 B2 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: D1 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: D1 01 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: D1 01 00 D4 0C 00 B1 [14:54:02]Write to MH i2c: 01 00 00 D5 0C E1 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]OFD Sender: No OFD packet to send [14:54:03]*** Cut start [14:54:03]*** Partial cut [14:54:03]*** CUTSNS_PIN = 1 [14:54:03]*** CUTSNS_PIN = 0 [14:54:03]*** Brake cut motor [14:54:03]Read from MH i2c: 01 [14:54:03]MH_I2C_Read... [14:54:03]*** Stop cut motor [14:54:03]*** Cut end [14:54:03]Read from MH i2c: 01 07 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 FF 0F F6 [14:54:03]process_action close_receipt done [14:54:03]requested_data is exist [14:54:03]produce_requested_data [14:54:03]requested_item fm.sn is exist - process it [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 11 00 00 [14:54:03]Write to MH i2c: E2 08 00 D6 0C 80 11 00 00 00 00 00 00 5C [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 D6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [14:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:54:03]wFMCommunicate OK [14:54:03]requested_item fd.num is exist - process it [14:54:03]SAM_PROTO_GetFieldsCounters [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 13 00 00 [14:54:03]Write to MH i2c: E2 08 00 D7 0C 80 13 00 00 00 00 00 00 5F [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 62 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 62 00 D7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EB DB 02 00 0E 04 04 00 88 02 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 DB [14:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EB DB 02 00 0E 04 04 00 88 02 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:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_GetFieldsCounters done [14:54:03]requested_item shift.num is exist - process it [14:54:03]requested_item shift.opened is exist - process it [14:54:03]req_shift_opened [14:54:03]FM_GetShiftState [14:54:03]SAM_PROTO_GetShiftState [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 13 01 00 [14:54:03]Write to MH i2c: E2 08 00 D8 0C 80 13 01 00 00 00 00 00 61 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0E 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0E 00 D8 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B3 [14:54:03]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_GetShiftState done [14:54:03]FM_GetShiftState done [14:54:03]req_shift_opened done [14:54:03]requested_item shift.open_date is exist - process it [14:54:03]req_shift_open_date [14:54:03]req_shift_open_date done [14:54:03]produce_requested_data done [14:54:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187371,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:54:03]process_action_free close_receipt [14:54:03]json_value_free [14:54:03]json_value_free done [14:54:03]process_json_proto returns [14:54:03]Send response to host [14:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187371,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:54:03]free response buf [14:54:03]execute_script done [14:54:03]execute_script returns [14:54:03]free content buf [14:54:03]Sock 7.Close socket [14:54:03]Sock 7.Thread stoped [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:34]accept exits with 9 [14:58:34]New connection [14:58:34]New thread 3067420004 created [14:58:34]Thread 3067276644 joined [14:58:34]Waiting for new connection... [14:58:34] Sock 9.Parse request [14:58:34]Sock 9.Check first char [14:58:34]Sock 9.First char is OK [14:58:34]request: POST /json_proto HTTP/1.0 [14:58:34]Method: POST [14:58:34]URL: /json_proto [14:58:34]Method is POST - this is cgi request [14:58:34]url: /json_proto [14:58:34]query_string will be loaded in cgi processing [14:58:34]execute_cgi json_proto POST (null) [14:58:34]execute_cgi path=json_proto method=POST [14:58:34]POST find Content-Length [14:58:34]Host: 172.17.46.131:8080 [14:58:34]Content-Length: 754 [14:58:34]Content-Type: application/json [14:58:34] [14:58:34]POST finish read [14:58:34]Found Content-Length = 754 [14:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:34]execute_script... [14: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)412530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:34]POST & json_proto [14:58:34]process_json_proto [14:58:34]json parsed OK: [14:58:34]protocol is kg_v1.0 [14:58:34]action value=close_receipt [14:58:34]process_action close_receipt [14:58:34]cmd_close_receipt [14:58:34]MH_GetDate [14:58:34]Write to MH i2c: F0 00 00 D9 0C D4 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: F0 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: F0 09 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: F0 09 00 D9 0C 00 1B 43 B7 67 7E 41 4F 65 CC [14:58:34]GetLastDocTimeStamp 1740063240 [14:58:34]current date 1740063515 [14:58:34]FM_GetShiftState [14:58:34]SAM_PROTO_GetShiftState [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 13 01 00 [14:58:34]Write to MH i2c: E2 08 00 DA 0C 80 13 01 00 00 00 00 00 63 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 0E 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 0E 00 DA 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B5 [14:58:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:58:34]wFMCommunicate OK [14:58:34]SAM_PROTO_GetShiftState done [14:58:34]FM_GetShiftState done [14:58:34]opened in 1740011697 [14:58:34]opened+sec_in_day 1740098097 [14:58:34]quantity*price = 0 [14:58:34]sum+1 = 1 [14:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 173 20.02.2025 14:58 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30159190 ФМ: 0000000000871826 ФД: 187372 ФПД: 69749707373972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T145835&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187372&fm=69749707373972&tin=02508201610067®Number=0000000000091857&sum=0 [14:58:35]StoreToDocumentArchive [14:58:35]shift 648 fd 187372 [14:58:35]save to /storage/0648/doc_00187372 [14:58:35]save last doc name /storage/0648/doc_00187372 to /storage/kkm_last_doc_name [14:58:35]save OK [14:58:35]Clear old archive folders... [14:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:35]tlvbuf is 00E0BED0 [14:58:35]SAM_PROTO_ClearQueue [14:58:35]wFMCommunicate request_size=4 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 09 00 00 [14:58:35]Write to MH i2c: E2 08 00 E7 0C 80 09 00 00 00 00 00 00 65 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 E7 0C 00 90 00 67 [14:58:35]RAPDU: 90 00 [14:58:35]wFMCommunicate OK [14:58:35]SAM_PROTO_ClearQueue done [14:58:35]KKMCreateOFDPacket [14:58:35]OFDProtocolAddRootSTLVToBuf [14:58:35]FM_MakeSignedData [14:58:35]FM_MakeSignedData [14:58:35]SAM_PROTO_SignData [14:58:35]wFMCommunicate request_size=4 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 0D 01 02 [14:58:35]Write to MH i2c: E2 08 00 E8 0C 80 0D 01 02 00 00 00 00 6D [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [14:58:35]RAPDU: 90 00 [14:58:35]wFMCommunicate OK [14:58:35]wFMCommunicate request_size=255 [14:58:35]MH_SAM_APDU [14: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 1B 43 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DB 02 00 35 04 06 00 3F [14:58:35]Write to MH i2c: E2 02 01 E9 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 1B 43 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DB 02 00 35 04 06 00 3F 00 00 6B [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 E9 0C 00 90 00 69 [14:58:36]RAPDU: 90 00 [14:58:36]wFMCommunicate OK [14:58:36]wFMCommunicate request_size=10 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 0D 02 02 05 6F DE 87 FD 94 [14:58:36]Write to MH i2c: E2 0D 00 EA 0C 80 0D 02 02 05 00 6F DE 87 FD 94 00 00 DF [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 03 00 EA 0C 00 90 00 6A [14:58:36]RAPDU: 90 00 [14:58:36]wFMCommunicate OK [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 0D 03 02 [14:58:36]Write to MH i2c: E2 08 00 EB 0C 80 0D 03 02 00 00 00 00 72 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 0B 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 0B 00 EB 0C 00 5A 4E 72 20 01 7E BA 76 90 00 5C [14:58:36]RAPDU: 5A 4E 72 20 01 7E BA 76 90 00 [14:58:36]wFMCommunicate OK [14:58:36]SAM_PROTO_SignData done [14:58:36]FM_MakeSignedData done [14:58:36]CreateOFDProtocolMessage [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 11 00 00 [14:58:36]Write to MH i2c: E2 08 00 EC 0C 80 11 00 00 00 00 00 00 72 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 17 00 [14:58:36]MH_I2C_Read... [14:58:36]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 31 38 32 36 90 00 C5 [14:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:58:36]wFMCommunicate OK [14:58:36]CreateOFDProtocolMessage done [14:58:36]OFDSenderStorePacket 187372 [14:58:36]StoreOFDPacket docnum=187372 [14:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7D BC 07 01 DE 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 1B 43 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DB 02 00 35 04 06 00 3F 6F DE 87 FD 94 5A 4E 72 20 01 7E BA 76 [14:58:36]CheckFolder [14:58:36]dirname=/storage/ofd_packets [14:58:36]CheckFolder done [14:58:36]ProducePacketName [14:58:36]name=ofd_packets/00187372 [14:58:36]NVStorageSaveData ofd_packets/00187372 [14:58:36]File name is /storage/ofd_packets/00187372 [14:58:36]Write 301 bytes [14:58:36]NVStorageSaveData done [14:58:36]OFDSenderStorePacket done [14:58:36]KKMCreateOFDPacket done [14:58:36]NVStorageSaveData kkm_last_timestamp [14:58:36]File name is /storage/kkm_last_timestamp [14:58:36]Write 4 bytes [14:58:36]NVStorageSaveData done [14:58:36]OFD Sender: Processing packet 187372 [packets to send 49, broken 48] [14:58:36]ProducePacketName [14:58:36]name=ofd_packets/00187372 [14:58:36]OFD Sender: To server: pG, [14:58:36]CommunicateWithHost lk.salyk.kg:30040 [14:58:36]ConnectInit lk.salyk.kg [14:58:36]ExternCall_PrintAddStr [14:58:36]wPrintStart [14:58:36]Write to MH i2c: 01 00 00 ED 0C F9 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 FF 0F 0E [14:58:36]RasterBufferAndPrint [14:58:36]line Счет N : (1)412530 [14:58:36]line ИНН: 02508201610067 [14:58:36]line Контрольно-Кассовый Чек [14:58:36]line ПРОДАЖА [14:58:36]line ТРК (МРК, ГНК) : 32 [14:58:36]line Товар: 2710124130 [14:58:36]line Аи-92-К-2 [14:58:36]line 10.000 * 0.00 [14:58:36]line = 0.00 [14:58:36]line НДС 12% НСП 1% [14:58:36]line > о реализуемом товаре [14:58:36]line ИТОГО: 0.00 [14:58:36]line НСП 1% : 0.00 [14:58:36]line НДС 12% : 0.00 [14:58:36]line Наличными: 0.00 [14:58:36]line Безнал.: 0.00 [14:58:36]line Место: АЗС № 92 "Партнер Нефть" [14:58:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:58:36]line СНО: Общий режим [14:58:36]line Чек 173 20.02.2025 14:58 [14:58:36]line Смена: 648 ФФД: 1.0 [14:58:36]line ЗНМ: 0300000118 [14:58:36]line РНМ: 0000000000091857 [14:58:36]line Версия ККМ: 001 [14:58:36]line Талоны: ТК ГПНА Online [14:58:36]line 30159190 [14:58:36]line ФМ: 0000000000871826 [14:58:36]line ФД: 187372 [14:58:36]line ФПД: 69749707373972 [14:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T145835&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187372&fm=69749707373972&tin=02508201610067®Number=0000000000091857&sum=0 [14:58:36]Connected sock=11 [14: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 31 38 32 36 0F 01 00 00 7D BC 07 01 DE 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 1B 43 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DB 02 00 35 04 06 00 3F 6F DE 87 FD 94 5A 4E 72 20 01 7E BA 76 [14:58:36]written 0, free lines is 4095 [14:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 50 45 47 00 F9 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DB 02 00 F4 03 04 00 6C E9 B6 67 B6 04 01 00 00 99 9C 3E 41 AD 55 09 BF [14:58:36]CommunicateWithHost err = 0 [14:58:36]CheckOFDResponse [14:58:36]1017 (14) - 77093643461234 [14:58:36]1041 (16) - 0000000000871826 [14:58:36]1040 (4) - 187372 [14:58:36]1012 (4) - 20.02.2025 08:35 [14:58:36]1206 (1) - 0 [14:58:36]OFD Sender: Remove packet 187372 [14:58:36]ProducePacketName [14:58:36]name=ofd_packets/00187372 [14:58:36]NVStorageDeleteData [14:58:37]Write to MH i2c: 01 00 00 17 0D 24 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 07 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 07 00 17 0D 00 00 00 00 00 FB 0C 32 [14:58:37]RasterBufferAndPrint [14:58:37]line [14:58:37]line [14:58:37]line [14:58:37]line [14:58:37]line [14:58:37]written 0, free lines is 3329 [14:58:37]MH_Cut [14:58:37]Write to MH i2c: D1 01 00 1E 0D 01 FD [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: D1 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: D1 01 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: D1 01 00 1E 0D 00 FC [14:58:37]Write to MH i2c: 01 00 00 1F 0D 2C [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]OFD Sender: No OFD packet to send [14:58:37]*** Cut start [14:58:37]*** Partial cut [14:58:37]*** CUTSNS_PIN = 1 [14:58:37]*** CUTSNS_PIN = 0 [14:58:38]*** Brake cut motor [14:58:38]Read from MH i2c: 01 [14:58:38]MH_I2C_Read... [14:58:38]*** Stop cut motor [14:58:38]*** Cut end [14:58:38]Read from MH i2c: 01 07 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 FF 0F 41 [14:58:38]process_action close_receipt done [14:58:38]requested_data is exist [14:58:38]produce_requested_data [14:58:38]requested_item fm.sn is exist - process it [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 11 00 00 [14:58:38]Write to MH i2c: E2 08 00 20 0D 80 11 00 00 00 00 00 00 A7 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 17 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 17 00 20 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [14:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:58:38]wFMCommunicate OK [14:58:38]requested_item fd.num is exist - process it [14:58:38]SAM_PROTO_GetFieldsCounters [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 13 00 00 [14:58:38]Write to MH i2c: E2 08 00 21 0D 80 13 00 00 00 00 00 00 AA [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 62 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 62 00 21 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EC DB 02 00 0E 04 04 00 88 02 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 2A [14: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EC DB 02 00 0E 04 04 00 88 02 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:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_GetFieldsCounters done [14:58:38]requested_item shift.num is exist - process it [14:58:38]requested_item shift.opened is exist - process it [14:58:38]req_shift_opened [14:58:38]FM_GetShiftState [14:58:38]SAM_PROTO_GetShiftState [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 13 01 00 [14:58:38]Write to MH i2c: E2 08 00 22 0D 80 13 01 00 00 00 00 00 AC [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0E 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0E 00 22 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FE [14:58:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_GetShiftState done [14:58:38]FM_GetShiftState done [14:58:38]req_shift_opened done [14:58:38]requested_item shift.open_date is exist - process it [14:58:38]req_shift_open_date [14:58:38]req_shift_open_date done [14:58:38]produce_requested_data done [14:58:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187372,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:58:38]process_action_free close_receipt [14:58:38]json_value_free [14:58:38]json_value_free done [14:58:38]process_json_proto returns [14:58:38]Send response to host [14:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187372,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:58:38]free response buf [14:58:38]execute_script done [14:58:38]execute_script returns [14:58:38]free content buf [14:58:38]Sock 9.Close socket [14:58:38]Sock 9.Thread stoped [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:53]accept exits with 10 [14:58:53]New connection [14:58:53]New thread 3067276644 created [14:58:53]Thread 3067420004 joined [14:58:53]Waiting for new connection... [14:58:53] Sock 10.Parse request [14:58:53]Sock 10.Check first char [14:58:53]Sock 10.First char is OK [14:58:53]request: POST /json_proto HTTP/1.0 [14:58:53]Method: POST [14:58:53]URL: /json_proto [14:58:53]Method is POST - this is cgi request [14:58:53]url: /json_proto [14:58:53]query_string will be loaded in cgi processing [14:58:53]execute_cgi json_proto POST (null) [14:58:53]execute_cgi path=json_proto method=POST [14:58:53]POST find Content-Length [14:58:53]Host: 172.17.46.131:8080 [14:58:53]Content-Length: 682 [14:58:53]Content-Type: application/json [14:58:53] [14:58:53]POST finish read [14:58:53]Found Content-Length = 682 [14:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [14:58:53]execute_script... [14:58: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)412531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [14:58:53]POST & json_proto [14:58:53]process_json_proto [14:58:53]json parsed OK: [14:58:53]protocol is kg_v1.0 [14:58:53]action value=close_receipt [14:58:53]process_action close_receipt [14:58:53]cmd_close_receipt [14:58:53]MH_GetDate [14:58:53]Write to MH i2c: F0 00 00 23 0D 1F [14:58:53]Write i2c OK [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: F0 [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: F0 09 00 [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: F0 09 00 23 0D 00 2E 43 B7 67 7E 41 4F 65 2A [14:58:53]GetLastDocTimeStamp 1740063515 [14:58:53]current date 1740063534 [14:58:53]FM_GetShiftState [14:58:53]SAM_PROTO_GetShiftState [14:58:53]wFMCommunicate request_size=4 [14:58:53]MH_SAM_APDU [14:58:53]CAPDU: 80 13 01 00 [14:58:53]Write to MH i2c: E2 08 00 24 0D 80 13 01 00 00 00 00 00 AE [14:58:53]Write i2c OK [14:58:53]MH_I2C_Read... [14:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:53]Read from MH i2c: E2 [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: E2 0E 00 [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: E2 0E 00 24 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 00 [14:58:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:58:53]wFMCommunicate OK [14:58:53]SAM_PROTO_GetShiftState done [14:58:53]FM_GetShiftState done [14:58:53]opened in 1740011697 [14:58:53]opened+sec_in_day 1740098097 [14:58:53]quantity*price = 100012 [14:58:53]sum+1 = 100014 [14:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 174 20.02.2025 14:58 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187373 ФПД: 212414078400168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T145854&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187373&fm=212414078400168&tin=02508201610067®Number=0000000000091857&sum=100000 [14:58:54]StoreToDocumentArchive [14:58:54]shift 648 fd 187373 [14:58:54]save to /storage/0648/doc_00187373 [14:58:54]save last doc name /storage/0648/doc_00187373 to /storage/kkm_last_doc_name [14:58:54]save OK [14:58:54]Clear old archive folders... [14:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:54]tlvbuf is 00E5B220 [14:58:54]SAM_PROTO_ClearQueue [14:58:54]wFMCommunicate request_size=4 [14:58:54]MH_SAM_APDU [14:58:54]CAPDU: 80 09 00 00 [14:58:54]Write to MH i2c: E2 08 00 31 0D 80 09 00 00 00 00 00 00 B0 [14:58:54]Write i2c OK [14:58:54]MH_I2C_Read... [14:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:54]Read from MH i2c: E2 [14:58:54]MH_I2C_Read... [14:58:54]Read from MH i2c: E2 03 00 [14:58:54]MH_I2C_Read... [14:58:54]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [14:58:54]RAPDU: 90 00 [14:58:54]wFMCommunicate OK [14:58:54]SAM_PROTO_ClearQueue done [14:58:54]KKMCreateOFDPacket [14:58:54]OFDProtocolAddRootSTLVToBuf [14:58:54]FM_MakeSignedData [14:58:54]FM_MakeSignedData [14:58:54]SAM_PROTO_SignData [14:58:54]wFMCommunicate request_size=4 [14:58:54]MH_SAM_APDU [14:58:54]CAPDU: 80 0D 01 02 [14:58:54]Write to MH i2c: E2 08 00 32 0D 80 0D 01 02 00 00 00 00 B8 [14:58:54]Write i2c OK [14:58:54]MH_I2C_Read... [14:58:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:54]Read from MH i2c: E2 [14:58:54]MH_I2C_Read... [14:58:54]Read from MH i2c: E2 03 00 [14:58:54]MH_I2C_Read... [14:58:54]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [14:58:54]RAPDU: 90 00 [14:58:54]wFMCommunicate OK [14:58:54]wFMCommunicate request_size=255 [14:58:54]MH_SAM_APDU [14:58:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 AE 00 00 00 F4 03 04 00 2E 43 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED DB 02 00 35 04 06 00 C1 [14:58:54]Write to MH i2c: E2 02 01 33 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 AE 00 00 00 F4 03 04 00 2E 43 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED DB 02 00 35 04 06 00 C1 00 00 7B [14:58:54]Write i2c OK [14:58:54]MH_I2C_Read... [14:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:54]Read from MH i2c: E2 [14:58:54]MH_I2C_Read... [14:58:54]Read from MH i2c: E2 03 00 [14:58:54]MH_I2C_Read... [14:58:54]Read from MH i2c: E2 03 00 33 0D 00 90 00 B4 [14:58:54]RAPDU: 90 00 [14:58:54]wFMCommunicate OK [14:58:54]wFMCommunicate request_size=10 [14:58:54]MH_SAM_APDU [14:58:54]CAPDU: 80 0D 02 02 05 30 81 B0 36 A8 [14:58:54]Write to MH i2c: E2 0D 00 34 0D 80 0D 02 02 05 00 30 81 B0 36 A8 00 00 04 [14:58:54]Write i2c OK [14:58:54]MH_I2C_Read... [14:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:55]Read from MH i2c: E2 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: E2 03 00 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: E2 03 00 34 0D 00 90 00 B5 [14:58:55]RAPDU: 90 00 [14:58:55]wFMCommunicate OK [14:58:55]wFMCommunicate request_size=4 [14:58:55]MH_SAM_APDU [14:58:55]CAPDU: 80 0D 03 02 [14:58:55]Write to MH i2c: E2 08 00 35 0D 80 0D 03 02 00 00 00 00 BD [14:58:55]Write i2c OK [14:58:55]MH_I2C_Read... [14:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:55]Read from MH i2c: E2 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: E2 0B 00 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: E2 0B 00 35 0D 00 9B 36 07 27 DF 67 D6 1E 90 00 F7 [14:58:55]RAPDU: 9B 36 07 27 DF 67 D6 1E 90 00 [14:58:55]wFMCommunicate OK [14:58:55]SAM_PROTO_SignData done [14:58:55]FM_MakeSignedData done [14:58:55]CreateOFDProtocolMessage [14:58:55]wFMCommunicate request_size=4 [14:58:55]MH_SAM_APDU [14:58:55]CAPDU: 80 11 00 00 [14:58:55]Write to MH i2c: E2 08 00 36 0D 80 11 00 00 00 00 00 00 BD [14:58:55]Write i2c OK [14:58:55]MH_I2C_Read... [14:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:55]Read from MH i2c: E2 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: E2 17 00 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: E2 17 00 36 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [14:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:58:55]wFMCommunicate OK [14:58:55]CreateOFDProtocolMessage done [14:58:55]OFDSenderStorePacket 187373 [14:58:55]StoreOFDPacket docnum=187373 [14:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9C D5 07 01 7C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AE 00 00 00 F4 03 04 00 2E 43 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED DB 02 00 35 04 06 00 C1 30 81 B0 36 A8 9B 36 07 27 DF 67 D6 1E [14:58:55]CheckFolder [14:58:55]dirname=/storage/ofd_packets [14:58:55]CheckFolder done [14:58:55]ProducePacketName [14:58:55]name=ofd_packets/00187373 [14:58:55]NVStorageSaveData ofd_packets/00187373 [14:58:55]File name is /storage/ofd_packets/00187373 [14:58:55]Write 301 bytes [14:58:55]NVStorageSaveData done [14:58:55]OFDSenderStorePacket done [14:58:55]KKMCreateOFDPacket done [14:58:55]NVStorageSaveData kkm_last_timestamp [14:58:55]File name is /storage/kkm_last_timestamp [14:58:55]Write 4 bytes [14:58:55]NVStorageSaveData done [14:58:55]ExternCall_PrintAddStr [14:58:55]wPrintStart [14:58:55]Write to MH i2c: 01 00 00 37 0D 44 [14:58:55]Write i2c OK [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: 01 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: 01 07 00 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: 01 07 00 37 0D 00 00 00 00 00 FF 0F 59 [14:58:55]RasterBufferAndPrint [14:58:55]line Счет N : (1)412531 [14:58:55]line ИНН: 02508201610067 [14:58:55]line Контрольно-Кассовый Чек [14:58:55]line ПРОДАЖА [14:58:55]line ТРК (МРК, ГНК) : 13 [14:58:55]line Товар: 2710124500 [14:58:55]line Аи-95-К-5 [14:58:55]line 13.910 * 71.90 [14:58:55]line = 1000.13 [14:58:55]line НДС 12% НСП 1% [14:58:55]line > о реализуемом товаре [14:58:55]line ОКРУГЛЕНИЕ: -0.13 [14:58:55]line ИТОГО: 1000.00 [14:58:55]line Внесено: 1000.00 [14:58:55]line СДАЧА: 0.00 [14:58:55]line НСП 1% : 8.85 [14:58:55]line НДС 12% : 106.21 [14:58:55]line Наличными: 1000.00 [14:58:55]line Безнал.: 0.00 [14:58:55]line Место: АЗС № 92 "Партнер Нефть" [14:58:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:58:55]line СНО: Общий режим [14:58:55]line Чек 174 20.02.2025 14:58 [14:58:55]line Смена: 648 ФФД: 1.0 [14:58:55]line ЗНМ: 0300000118 [14:58:55]line РНМ: 0000000000091857 [14:58:55]line Версия ККМ: 001 [14:58:55]line ФМ: 0000000000871826 [14:58:55]line ФД: 187373 [14:58:55]line ФПД: 212414078400168 [14:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T145854&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187373&fm=212414078400168&tin=02508201610067®Number=0000000000091857&sum=100000 [14:58:55]OFD Sender: Processing packet 187373 [packets to send 49, broken 48] [14:58:55]ProducePacketName [14:58:55]name=ofd_packets/00187373 [14:58:55]OFD Sender: To server: pG, [14:58:55]CommunicateWithHost lk.salyk.kg:30040 [14:58:55]ConnectInit lk.salyk.kg [14:58:55]written 0, free lines is 4095 [14:58:55]Connected sock=9 [14:58:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9C D5 07 01 7C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AE 00 00 00 F4 03 04 00 2E 43 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED DB 02 00 35 04 06 00 C1 30 81 B0 36 A8 9B 36 07 27 DF 67 D6 1E [14:58:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 90 16 47 00 A7 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 31 38 32 36 10 04 04 00 ED DB 02 00 F4 03 04 00 7F E9 B6 67 B6 04 01 00 00 54 A3 90 3F E8 43 55 63 [14:58:55]CommunicateWithHost err = 0 [14:58:55]CheckOFDResponse [14:58:55]1017 (14) - 77093643461234 [14:58:55]1041 (16) - 0000000000871826 [14:58:55]1040 (4) - 187373 [14:58:55]1012 (4) - 20.02.2025 08:36 [14:58:55]1206 (1) - 0 [14:58:55]OFD Sender: Remove packet 187373 [14:58:55]ProducePacketName [14:58:55]name=ofd_packets/00187373 [14:58:55]NVStorageDeleteData [14:58:55]Write to MH i2c: 01 00 00 62 0D 6F [14:58:55]Write i2c OK [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: 01 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: 01 07 00 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: 01 07 00 62 0D 00 00 00 00 00 E3 0C 65 [14:58:55]RasterBufferAndPrint [14:58:55]line [14:58:55]line [14:58:55]line [14:58:55]line [14:58:55]line [14:58:55]written 0, free lines is 3305 [14:58:55]MH_Cut [14:58:55]Write to MH i2c: D1 01 00 69 0D 01 48 [14:58:55]Write i2c OK [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: D1 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: D1 01 00 [14:58:55]MH_I2C_Read... [14:58:55]Read from MH i2c: D1 01 00 69 0D 00 47 [14:58:55]Write to MH i2c: 01 00 00 6A 0D 77 [14:58:55]Write i2c OK [14:58:55]MH_I2C_Read... [14:58:56]OFD Sender: No OFD packet to send [14:58:56]*** Cut start [14:58:56]*** Partial cut [14:58:56]*** CUTSNS_PIN = 1 [14:58:56]*** CUTSNS_PIN = 0 [14:58:56]*** Brake cut motor [14:58:57]Read from MH i2c: 01 [14:58:57]MH_I2C_Read... [14:58:57]*** Stop cut motor [14:58:57]*** Cut end [14:58:57]Read from MH i2c: 01 07 00 [14:58:57]MH_I2C_Read... [14:58:57]Read from MH i2c: 01 07 00 6A 0D 00 00 00 00 00 FF 0F 8C [14:58:57]process_action close_receipt done [14:58:57]requested_data is exist [14:58:57]produce_requested_data [14:58:57]requested_item fm.sn is exist - process it [14:58:57]wFMCommunicate request_size=4 [14:58:57]MH_SAM_APDU [14:58:57]CAPDU: 80 11 00 00 [14:58:57]Write to MH i2c: E2 08 00 6B 0D 80 11 00 00 00 00 00 00 F2 [14:58:57]Write i2c OK [14:58:57]MH_I2C_Read... [14:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:57]Read from MH i2c: E2 [14:58:57]MH_I2C_Read... [14:58:57]Read from MH i2c: E2 17 00 [14:58:57]MH_I2C_Read... [14:58:57]Read from MH i2c: E2 17 00 6B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [14:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:58:57]wFMCommunicate OK [14:58:57]requested_item fd.num is exist - process it [14:58:57]SAM_PROTO_GetFieldsCounters [14:58:57]wFMCommunicate request_size=4 [14:58:57]MH_SAM_APDU [14:58:57]CAPDU: 80 13 00 00 [14:58:57]Write to MH i2c: E2 08 00 6C 0D 80 13 00 00 00 00 00 00 F5 [14:58:57]Write i2c OK [14:58:57]MH_I2C_Read... [14:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:57]Read from MH i2c: E2 [14:58:57]MH_I2C_Read... [14:58:57]Read from MH i2c: E2 62 00 [14:58:57]MH_I2C_Read... [14:58:57]Read from MH i2c: E2 62 00 6C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 ED DB 02 00 0E 04 04 00 88 02 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 79 [14:58: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 ED DB 02 00 0E 04 04 00 88 02 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:58:57]wFMCommunicate OK [14:58:57]SAM_PROTO_GetFieldsCounters done [14:58:57]requested_item shift.num is exist - process it [14:58:57]requested_item shift.opened is exist - process it [14:58:57]req_shift_opened [14:58:57]FM_GetShiftState [14:58:57]SAM_PROTO_GetShiftState [14:58:57]wFMCommunicate request_size=4 [14:58:57]MH_SAM_APDU [14:58:57]CAPDU: 80 13 01 00 [14:58:57]Write to MH i2c: E2 08 00 6D 0D 80 13 01 00 00 00 00 00 F7 [14:58:57]Write i2c OK [14:58:57]MH_I2C_Read... [14:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:57]Read from MH i2c: E2 [14:58:57]MH_I2C_Read... [14:58:57]Read from MH i2c: E2 0E 00 [14:58:57]MH_I2C_Read... [14:58:57]Read from MH i2c: E2 0E 00 6D 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 49 [14:58:57]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [14:58:57]wFMCommunicate OK [14:58:57]SAM_PROTO_GetShiftState done [14:58:57]FM_GetShiftState done [14:58:57]req_shift_opened done [14:58:57]requested_item shift.open_date is exist - process it [14:58:57]req_shift_open_date [14:58:57]req_shift_open_date done [14:58:57]produce_requested_data done [14:58:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187373,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [14:58:57]process_action_free close_receipt [14:58:57]json_value_free [14:58:57]json_value_free done [14:58:57]process_json_proto returns [14:58:57]Send response to host [14:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187373,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [14:58:57]free response buf [14:58:57]execute_script done [14:58:57]execute_script returns [14:58:57]free content buf [14:58:57]Sock 10.Close socket [14:58:57]Sock 10.Thread stoped [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:38]accept exits with 7 [15:02:38]New connection [15:02:38]New thread 3067420004 created [15:02:38]Thread 3067276644 joined [15:02:38]Waiting for new connection... [15:02:38] Sock 7.Parse request [15:02:38]Sock 7.Check first char [15:02:38]Sock 7.First char is OK [15:02:38]request: POST /json_proto HTTP/1.0 [15:02:38]Method: POST [15:02:38]URL: /json_proto [15:02:38]Method is POST - this is cgi request [15:02:38]url: /json_proto [15:02:38]query_string will be loaded in cgi processing [15:02:38]execute_cgi json_proto POST (null) [15:02:38]execute_cgi path=json_proto method=POST [15:02:38]POST find Content-Length [15:02:38]Host: 172.17.46.131:8080 [15:02:38]Content-Length: 803 [15:02:38]Content-Type: application/json [15:02:38] [15:02:38]POST finish read [15:02:38]Found Content-Length = 803 [15:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 46.730, "sum" : 3000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:38]execute_script... [15:02: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)412532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 46.730, "sum" : 3000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:38]POST & json_proto [15:02:38]process_json_proto [15:02:38]json parsed OK: [15:02:38]protocol is kg_v1.0 [15:02:38]action value=close_receipt [15:02:38]process_action close_receipt [15:02:38]cmd_close_receipt [15:02:38]MH_GetDate [15:02:38]Write to MH i2c: F0 00 00 6E 0D 6A [15:02:38]Write i2c OK [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: F0 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: F0 09 00 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: F0 09 00 6E 0D 00 0F 44 B7 67 7E 41 4F 65 57 [15:02:38]GetLastDocTimeStamp 1740063534 [15:02:38]current date 1740063759 [15:02:38]FM_GetShiftState [15:02:38]SAM_PROTO_GetShiftState [15:02:38]wFMCommunicate request_size=4 [15:02:38]MH_SAM_APDU [15:02:38]CAPDU: 80 13 01 00 [15:02:38]Write to MH i2c: E2 08 00 6F 0D 80 13 01 00 00 00 00 00 F9 [15:02:38]Write i2c OK [15:02:38]MH_I2C_Read... [15:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:38]Read from MH i2c: E2 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: E2 0E 00 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: E2 0E 00 6F 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4B [15:02:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:02:38]wFMCommunicate OK [15:02:38]SAM_PROTO_GetShiftState done [15:02:38]FM_GetShiftState done [15:02:38]opened in 1740011697 [15:02:38]opened+sec_in_day 1740098097 [15:02:38]quantity*price = 300006 [15:02:38]sum+1 = 300008 [15:02:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.07 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 0.00 Безнал.: 3000.07 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 175 20.02.2025 15:02 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187374 ФПД: 57272477930633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T150239&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187374&fm=57272477930633&tin=02508201610067®Number=0000000000091857&sum=300007 [15:02:39]StoreToDocumentArchive [15:02:39]shift 648 fd 187374 [15:02:39]save to /storage/0648/doc_00187374 [15:02:39]save last doc name /storage/0648/doc_00187374 to /storage/kkm_last_doc_name [15:02:39]save OK [15:02:39]Clear old archive folders... [15:02:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:39]tlvbuf is 00E1B950 [15:02:39]SAM_PROTO_ClearQueue [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 09 00 00 [15:02:39]Write to MH i2c: E2 08 00 7C 0D 80 09 00 00 00 00 00 00 FB [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 7C 0D 00 90 00 FD [15:02:39]RAPDU: 90 00 [15:02:39]wFMCommunicate OK [15:02:39]SAM_PROTO_ClearQueue done [15:02:39]KKMCreateOFDPacket [15:02:39]OFDProtocolAddRootSTLVToBuf [15:02:39]FM_MakeSignedData [15:02:39]FM_MakeSignedData [15:02:39]SAM_PROTO_SignData [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 0D 01 02 [15:02:39]Write to MH i2c: E2 08 00 7D 0D 80 0D 01 02 00 00 00 00 03 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 7D 0D 00 90 00 FE [15:02:39]RAPDU: 90 00 [15:02:39]wFMCommunicate OK [15:02:39]wFMCommunicate request_size=255 [15:02:39]MH_SAM_APDU [15:02: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 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 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 E7 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 0F 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DB 02 00 35 04 06 00 34 [15:02:39]Write to MH i2c: E2 02 01 7E 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 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 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 E7 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 0F 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DB 02 00 35 04 06 00 34 00 00 F7 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 7E 0D 00 90 00 FF [15:02:39]RAPDU: 90 00 [15:02:39]wFMCommunicate OK [15:02:39]wFMCommunicate request_size=10 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 0D 02 02 05 16 C9 B3 D4 89 [15:02:39]Write to MH i2c: E2 0D 00 7F 0D 80 0D 02 02 05 00 16 C9 B3 D4 89 00 00 FF [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 7F 0D 00 90 00 00 [15:02:39]RAPDU: 90 00 [15:02:39]wFMCommunicate OK [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 0D 03 02 [15:02:39]Write to MH i2c: E2 08 00 80 0D 80 0D 03 02 00 00 00 00 08 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 0B 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 0B 00 80 0D 00 67 86 80 33 6E D2 E9 F7 90 00 C9 [15:02:39]RAPDU: 67 86 80 33 6E D2 E9 F7 90 00 [15:02:39]wFMCommunicate OK [15:02:39]SAM_PROTO_SignData done [15:02:39]FM_MakeSignedData done [15:02:39]CreateOFDProtocolMessage [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 11 00 00 [15:02:39]Write to MH i2c: E2 08 00 81 0D 80 11 00 00 00 00 00 00 08 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 17 00 [15:02:39]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 17 00 81 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [15:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:02:40]wFMCommunicate OK [15:02:40]CreateOFDProtocolMessage done [15:02:40]OFDSenderStorePacket 187374 [15:02:40]StoreOFDPacket docnum=187374 [15:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E9 82 07 01 E5 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 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 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 E7 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 0F 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DB 02 00 35 04 06 00 34 16 C9 B3 D4 89 67 86 80 33 6E D2 E9 F7 [15:02:40]CheckFolder [15:02:40]dirname=/storage/ofd_packets [15:02:40]CheckFolder done [15:02:40]ProducePacketName [15:02:40]name=ofd_packets/00187374 [15:02:40]NVStorageSaveData ofd_packets/00187374 [15:02:40]File name is /storage/ofd_packets/00187374 [15:02:40]Write 301 bytes [15:02:40]NVStorageSaveData done [15:02:40]OFDSenderStorePacket done [15:02:40]KKMCreateOFDPacket done [15:02:40]NVStorageSaveData kkm_last_timestamp [15:02:40]File name is /storage/kkm_last_timestamp [15:02:40]Write 4 bytes [15:02:40]NVStorageSaveData done [15:02:40]ExternCall_PrintAddStr [15:02:40]wPrintStart [15:02:40]Write to MH i2c: 01 00 00 82 0D 8F [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 07 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FF 0F A4 [15:02:40]RasterBufferAndPrint [15:02:40]line Счет N : (1)412532 [15:02:40]line ИНН: 02508201610067 [15:02:40]line Контрольно-Кассовый Чек [15:02:40]line ПРОДАЖА [15:02:40]line ТРК (МРК, ГНК) : 42 [15:02:40]line Товар: 2710124130 [15:02:40]line Аи-92-К-2 [15:02:40]line 46.730 * 64.20 [15:02:40]line = 3000.07 [15:02:40]line НДС 12% НСП 1% [15:02:40]line > о реализуемом товаре [15:02:40]line ИТОГО: 3000.07 [15:02:40]line НСП 1% : 26.55 [15:02:40]line НДС 12% : 318.59 [15:02:40]line Наличными: 0.00 [15:02:40]line Безнал.: 3000.07 [15:02:40]line Место: АЗС № 92 "Партнер Нефть" [15:02:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:02:40]line СНО: Общий режим [15:02:40]line Чек 175 20.02.2025 15:02 [15:02:40]line Смена: 648 ФФД: 1.0 [15:02:40]line ЗНМ: 0300000118 [15:02:40]line РНМ: 0000000000091857 [15:02:40]line Версия ККМ: 001 [15:02:40]line Платежная система: O! деньги [15:02:40]line ФМ: 0000000000871826 [15:02:40]line ФД: 187374 [15:02:40]line ФПД: 57272477930633 [15:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T150239&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187374&fm=57272477930633&tin=02508201610067®Number=0000000000091857&sum=300007 [15:02:40]written 0, free lines is 4095 [15:02:40]OFD Sender: Processing packet 187374 [packets to send 49, broken 48] [15:02:40]ProducePacketName [15:02:40]name=ofd_packets/00187374 [15:02:40]OFD Sender: To server: pG, [15:02:40]CommunicateWithHost lk.salyk.kg:30040 [15:02:40]ConnectInit lk.salyk.kg [15:02:40]Connected sock=10 [15:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E9 82 07 01 E5 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 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 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 E7 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 0F 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DB 02 00 35 04 06 00 34 16 C9 B3 D4 89 67 86 80 33 6E D2 E9 F7 [15:02:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D 7C 47 00 F2 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DB 02 00 F4 03 04 00 5F EA B6 67 B6 04 01 00 00 6B 2F E9 DB 8D C4 21 5E [15:02:40]CommunicateWithHost err = 0 [15:02:40]CheckOFDResponse [15:02:40]1017 (14) - 77093643461234 [15:02:40]1041 (16) - 0000000000871826 [15:02:40]1040 (4) - 187374 [15:02:40]1012 (4) - 20.02.2025 08:39 [15:02:40]1206 (1) - 0 [15:02:40]OFD Sender: Remove packet 187374 [15:02:40]ProducePacketName [15:02:40]name=ofd_packets/00187374 [15:02:40]NVStorageDeleteData [15:02:40]Write to MH i2c: 01 00 00 AC 0D B9 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 07 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0C CB [15:02:40]RasterBufferAndPrint [15:02:40]line [15:02:40]line [15:02:40]line [15:02:40]line [15:02:40]line [15:02:40]written 0, free lines is 3336 [15:02:40]MH_Cut [15:02:40]Write to MH i2c: D1 01 00 B3 0D 01 92 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: D1 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: D1 01 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: D1 01 00 B3 0D 00 91 [15:02:40]Write to MH i2c: 01 00 00 B4 0D C1 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:41]OFD Sender: No OFD packet to send [15:02:41]*** Cut start [15:02:41]*** Partial cut [15:02:41]*** CUTSNS_PIN = 1 [15:02:41]*** CUTSNS_PIN = 0 [15:02:41]*** Brake cut motor [15:02:42]Read from MH i2c: 01 [15:02:42]MH_I2C_Read... [15:02:42]*** Stop cut motor [15:02:42]*** Cut end [15:02:42]Read from MH i2c: 01 07 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: 01 07 00 B4 0D 00 00 00 00 00 FF 0F D6 [15:02:42]process_action close_receipt done [15:02:42]requested_data is exist [15:02:42]produce_requested_data [15:02:42]requested_item fm.sn is exist - process it [15:02:42]wFMCommunicate request_size=4 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 11 00 00 [15:02:42]Write to MH i2c: E2 08 00 B5 0D 80 11 00 00 00 00 00 00 3C [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 17 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 17 00 B5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [15:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:02:42]wFMCommunicate OK [15:02:42]requested_item fd.num is exist - process it [15:02:42]SAM_PROTO_GetFieldsCounters [15:02:42]wFMCommunicate request_size=4 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 13 00 00 [15:02:42]Write to MH i2c: E2 08 00 B6 0D 80 13 00 00 00 00 00 00 3F [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 62 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 62 00 B6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EE DB 02 00 0E 04 04 00 88 02 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 C7 [15:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EE DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:42]wFMCommunicate OK [15:02:42]SAM_PROTO_GetFieldsCounters done [15:02:42]requested_item shift.num is exist - process it [15:02:42]requested_item shift.opened is exist - process it [15:02:42]req_shift_opened [15:02:42]FM_GetShiftState [15:02:42]SAM_PROTO_GetShiftState [15:02:42]wFMCommunicate request_size=4 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 13 01 00 [15:02:42]Write to MH i2c: E2 08 00 B7 0D 80 13 01 00 00 00 00 00 41 [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 0E 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 0E 00 B7 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 93 [15:02:42]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:02:42]wFMCommunicate OK [15:02:42]SAM_PROTO_GetShiftState done [15:02:42]FM_GetShiftState done [15:02:42]req_shift_opened done [15:02:42]requested_item shift.open_date is exist - process it [15:02:42]req_shift_open_date [15:02:42]req_shift_open_date done [15:02:42]produce_requested_data done [15:02:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187374,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:02:42]process_action_free close_receipt [15:02:42]json_value_free [15:02:42]json_value_free done [15:02:42]process_json_proto returns [15:02:42]Send response to host [15:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187374,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:02:42]free response buf [15:02:42]execute_script done [15:02:42]execute_script returns [15:02:42]free content buf [15:02:42]Sock 7.Close socket [15:02:42]Sock 7.Thread stoped [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:00]accept exits with 9 [15:03:00]New connection [15:03:00]New thread 3067276644 created [15:03:00]Thread 3067420004 joined [15:03:00]Waiting for new connection... [15:03:00] Sock 9.Parse request [15:03:00]Sock 9.Check first char [15:03:00]Sock 9.First char is OK [15:03:00]request: POST /json_proto HTTP/1.0 [15:03:00]Method: POST [15:03:00]URL: /json_proto [15:03:00]Method is POST - this is cgi request [15:03:00]url: /json_proto [15:03:00]query_string will be loaded in cgi processing [15:03:00]execute_cgi json_proto POST (null) [15:03:00]execute_cgi path=json_proto method=POST [15:03:00]POST find Content-Length [15:03:00]Host: 172.17.46.131:8080 [15:03:00]Content-Length: 682 [15:03:00]Content-Type: application/json [15:03:00] [15:03:00]POST finish read [15:03:00]Found Content-Length = 682 [15:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:03:00]execute_script... [15:03: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)412533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:03:00]POST & json_proto [15:03:00]process_json_proto [15:03:00]json parsed OK: [15:03:00]protocol is kg_v1.0 [15:03:00]action value=close_receipt [15:03:00]process_action close_receipt [15:03:00]cmd_close_receipt [15:03:00]MH_GetDate [15:03:00]Write to MH i2c: F0 00 00 B8 0D B4 [15:03:00]Write i2c OK [15:03:00]MH_I2C_Read... [15:03:00]Read from MH i2c: F0 [15:03:00]MH_I2C_Read... [15:03:00]Read from MH i2c: F0 09 00 [15:03:00]MH_I2C_Read... [15:03:00]Read from MH i2c: F0 09 00 B8 0D 00 25 44 B7 67 7E 41 4F 65 B7 [15:03:00]GetLastDocTimeStamp 1740063759 [15:03:00]current date 1740063781 [15:03:00]FM_GetShiftState [15:03:00]SAM_PROTO_GetShiftState [15:03:00]wFMCommunicate request_size=4 [15:03:00]MH_SAM_APDU [15:03:00]CAPDU: 80 13 01 00 [15:03:00]Write to MH i2c: E2 08 00 B9 0D 80 13 01 00 00 00 00 00 43 [15:03:00]Write i2c OK [15:03:00]MH_I2C_Read... [15:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:00]Read from MH i2c: E2 [15:03:00]MH_I2C_Read... [15:03:00]Read from MH i2c: E2 0E 00 [15:03:00]MH_I2C_Read... [15:03:00]Read from MH i2c: E2 0E 00 B9 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 95 [15:03:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:03:00]wFMCommunicate OK [15:03:00]SAM_PROTO_GetShiftState done [15:03:00]FM_GetShiftState done [15:03:00]opened in 1740011697 [15:03:00]opened+sec_in_day 1740098097 [15:03:00]quantity*price = 100023 [15:03:00]sum+1 = 100025 [15:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 176 20.02.2025 15:03 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187375 ФПД: 113783121043603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T150301&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187375&fm=113783121043603&tin=02508201610067®Number=0000000000091857&sum=100000 [15:03:01]StoreToDocumentArchive [15:03:01]shift 648 fd 187375 [15:03:01]save to /storage/0648/doc_00187375 [15:03:01]save last doc name /storage/0648/doc_00187375 to /storage/kkm_last_doc_name [15:03:01]save OK [15:03:01]Clear old archive folders... [15:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:01]tlvbuf is 00E4FFC0 [15:03:01]SAM_PROTO_ClearQueue [15:03:01]wFMCommunicate request_size=4 [15:03:01]MH_SAM_APDU [15:03:01]CAPDU: 80 09 00 00 [15:03:01]Write to MH i2c: E2 08 00 C6 0D 80 09 00 00 00 00 00 00 45 [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:01]Read from MH i2c: E2 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 03 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 03 00 C6 0D 00 90 00 47 [15:03:01]RAPDU: 90 00 [15:03:01]wFMCommunicate OK [15:03:01]SAM_PROTO_ClearQueue done [15:03:01]KKMCreateOFDPacket [15:03:01]OFDProtocolAddRootSTLVToBuf [15:03:01]FM_MakeSignedData [15:03:01]FM_MakeSignedData [15:03:01]SAM_PROTO_SignData [15:03:01]wFMCommunicate request_size=4 [15:03:01]MH_SAM_APDU [15:03:01]CAPDU: 80 0D 01 02 [15:03:01]Write to MH i2c: E2 08 00 C7 0D 80 0D 01 02 00 00 00 00 4D [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:01]Read from MH i2c: E2 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 03 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 03 00 C7 0D 00 90 00 48 [15:03:01]RAPDU: 90 00 [15:03:01]wFMCommunicate OK [15:03:01]wFMCommunicate request_size=255 [15:03:01]MH_SAM_APDU [15:03: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 25 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DB 02 00 35 04 06 00 67 [15:03:01]Write to MH i2c: E2 02 01 C8 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 25 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DB 02 00 35 04 06 00 67 00 00 3E [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:01]Read from MH i2c: E2 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 03 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 03 00 C8 0D 00 90 00 49 [15:03:01]RAPDU: 90 00 [15:03:01]wFMCommunicate OK [15:03:01]wFMCommunicate request_size=10 [15:03:01]MH_SAM_APDU [15:03:01]CAPDU: 80 0D 02 02 05 7C 32 82 E0 93 [15:03:01]Write to MH i2c: E2 0D 00 C9 0D 80 0D 02 02 05 00 7C 32 82 E0 93 00 00 FD [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:01]Read from MH i2c: E2 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 03 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 03 00 C9 0D 00 90 00 4A [15:03:01]RAPDU: 90 00 [15:03:01]wFMCommunicate OK [15:03:01]wFMCommunicate request_size=4 [15:03:01]MH_SAM_APDU [15:03:01]CAPDU: 80 0D 03 02 [15:03:01]Write to MH i2c: E2 08 00 CA 0D 80 0D 03 02 00 00 00 00 52 [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:01]Read from MH i2c: E2 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 0B 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 0B 00 CA 0D 00 B9 10 1D B9 9F 6B 0E 7C 90 00 86 [15:03:01]RAPDU: B9 10 1D B9 9F 6B 0E 7C 90 00 [15:03:01]wFMCommunicate OK [15:03:01]SAM_PROTO_SignData done [15:03:01]FM_MakeSignedData done [15:03:01]CreateOFDProtocolMessage [15:03:01]wFMCommunicate request_size=4 [15:03:01]MH_SAM_APDU [15:03:01]CAPDU: 80 11 00 00 [15:03:01]Write to MH i2c: E2 08 00 CB 0D 80 11 00 00 00 00 00 00 52 [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 17 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 17 00 CB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [15:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:03:02]wFMCommunicate OK [15:03:02]CreateOFDProtocolMessage done [15:03:02]OFDSenderStorePacket 187375 [15:03:02]StoreOFDPacket docnum=187375 [15:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FC 19 07 01 34 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 25 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DB 02 00 35 04 06 00 67 7C 32 82 E0 93 B9 10 1D B9 9F 6B 0E 7C [15:03:02]CheckFolder [15:03:02]dirname=/storage/ofd_packets [15:03:02]CheckFolder done [15:03:02]ProducePacketName [15:03:02]name=ofd_packets/00187375 [15:03:02]NVStorageSaveData ofd_packets/00187375 [15:03:02]File name is /storage/ofd_packets/00187375 [15:03:02]Write 301 bytes [15:03:02]NVStorageSaveData done [15:03:02]OFDSenderStorePacket done [15:03:02]KKMCreateOFDPacket done [15:03:02]NVStorageSaveData kkm_last_timestamp [15:03:02]File name is /storage/kkm_last_timestamp [15:03:02]Write 4 bytes [15:03:02]NVStorageSaveData done [15:03:02]ExternCall_PrintAddStr [15:03:02]wPrintStart [15:03:02]Write to MH i2c: 01 00 00 CC 0D D9 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 07 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 FF 0F EE [15:03:02]RasterBufferAndPrint [15:03:02]line Счет N : (1)412533 [15:03:02]line ИНН: 02508201610067 [15:03:02]line Контрольно-Кассовый Чек [15:03:02]line ПРОДАЖА [15:03:02]line ТРК (МРК, ГНК) : 32 [15:03:02]line Товар: 2710124130 [15:03:02]line Аи-92-К-2 [15:03:02]line 15.580 * 64.20 [15:03:02]line = 1000.24 [15:03:02]line НДС 12% НСП 1% [15:03:02]line > о реализуемом товаре [15:03:02]line ОКРУГЛЕНИЕ: -0.24 [15:03:02]line ИТОГО: 1000.00 [15:03:02]line Внесено: 1000.00 [15:03:02]line СДАЧА: 0.00 [15:03:02]line НСП 1% : 8.85 [15:03:02]line НДС 12% : 106.22 [15:03:02]line Наличными: 1000.00 [15:03:02]line Безнал.: 0.00 [15:03:02]line Место: АЗС № 92 "Партнер Нефть" [15:03:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:03:02]line СНО: Общий режим [15:03:02]line Чек 176 20.02.2025 15:03 [15:03:02]line Смена: 648 ФФД: 1.0 [15:03:02]line ЗНМ: 0300000118 [15:03:02]line РНМ: 0000000000091857 [15:03:02]line Версия ККМ: 001 [15:03:02]line ФМ: 0000000000871826 [15:03:02]line ФД: 187375 [15:03:02]line ФПД: 113783121043603 [15:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T150301&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187375&fm=113783121043603&tin=02508201610067®Number=0000000000091857&sum=100000 [15:03:02]OFD Sender: Processing packet 187375 [packets to send 49, broken 48] [15:03:02]ProducePacketName [15:03:02]name=ofd_packets/00187375 [15:03:02]OFD Sender: To server: pG, [15:03:02]CommunicateWithHost lk.salyk.kg:30040 [15:03:02]ConnectInit lk.salyk.kg [15:03:02]written 0, free lines is 4095 [15:03:02]Connected sock=10 [15:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FC 19 07 01 34 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 25 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DB 02 00 35 04 06 00 67 7C 32 82 E0 93 B9 10 1D B9 9F 6B 0E 7C [15:03:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5D BB 47 00 48 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DB 02 00 F4 03 04 00 76 EA B6 67 B6 04 01 00 00 9F 75 B6 4E 03 11 20 AB [15:03:02]CommunicateWithHost err = 0 [15:03:02]CheckOFDResponse [15:03:02]1017 (14) - 77093643461234 [15:03:02]1041 (16) - 0000000000871826 [15:03:02]1040 (4) - 187375 [15:03:02]1012 (4) - 20.02.2025 08:40 [15:03:02]1206 (1) - 0 [15:03:02]OFD Sender: Remove packet 187375 [15:03:02]ProducePacketName [15:03:02]name=ofd_packets/00187375 [15:03:02]NVStorageDeleteData [15:03:02]Write to MH i2c: 01 00 00 F7 0D 04 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 07 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 F8 0C 0F [15:03:02]RasterBufferAndPrint [15:03:02]line [15:03:02]line [15:03:02]line [15:03:02]line [15:03:02]line [15:03:02]written 0, free lines is 3326 [15:03:02]MH_Cut [15:03:02]Write to MH i2c: D1 01 00 FE 0D 01 DD [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: D1 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: D1 01 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: D1 01 00 FE 0D 00 DC [15:03:02]Write to MH i2c: 01 00 00 FF 0D 0C [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:03]OFD Sender: No OFD packet to send [15:03:03]*** Cut start [15:03:03]*** Partial cut [15:03:03]*** CUTSNS_PIN = 1 [15:03:03]*** CUTSNS_PIN = 0 [15:03:03]*** Brake cut motor [15:03:04]Read from MH i2c: 01 [15:03:04]MH_I2C_Read... [15:03:04]*** Stop cut motor [15:03:04]*** Cut end [15:03:04]Read from MH i2c: 01 07 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 FF 0D 00 00 00 00 00 FF 0F 21 [15:03:04]process_action close_receipt done [15:03:04]requested_data is exist [15:03:04]produce_requested_data [15:03:04]requested_item fm.sn is exist - process it [15:03:04]wFMCommunicate request_size=4 [15:03:04]MH_SAM_APDU [15:03:04]CAPDU: 80 11 00 00 [15:03:04]Write to MH i2c: E2 08 00 00 0E 80 11 00 00 00 00 00 00 88 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:04]Read from MH i2c: E2 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 17 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 17 00 00 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [15:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:03:04]wFMCommunicate OK [15:03:04]requested_item fd.num is exist - process it [15:03:04]SAM_PROTO_GetFieldsCounters [15:03:04]wFMCommunicate request_size=4 [15:03:04]MH_SAM_APDU [15:03:04]CAPDU: 80 13 00 00 [15:03:04]Write to MH i2c: E2 08 00 01 0E 80 13 00 00 00 00 00 00 8B [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:04]Read from MH i2c: E2 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 62 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 62 00 01 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EF DB 02 00 0E 04 04 00 88 02 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 17 [15:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EF DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:04]wFMCommunicate OK [15:03:04]SAM_PROTO_GetFieldsCounters done [15:03:04]requested_item shift.num is exist - process it [15:03:04]requested_item shift.opened is exist - process it [15:03:04]req_shift_opened [15:03:04]FM_GetShiftState [15:03:04]SAM_PROTO_GetShiftState [15:03:04]wFMCommunicate request_size=4 [15:03:04]MH_SAM_APDU [15:03:04]CAPDU: 80 13 01 00 [15:03:04]Write to MH i2c: E2 08 00 02 0E 80 13 01 00 00 00 00 00 8D [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:04]Read from MH i2c: E2 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 0E 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: E2 0E 00 02 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DF [15:03:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:03:04]wFMCommunicate OK [15:03:04]SAM_PROTO_GetShiftState done [15:03:04]FM_GetShiftState done [15:03:04]req_shift_opened done [15:03:04]requested_item shift.open_date is exist - process it [15:03:04]req_shift_open_date [15:03:04]req_shift_open_date done [15:03:04]produce_requested_data done [15:03:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187375,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:03:04]process_action_free close_receipt [15:03:04]json_value_free [15:03:04]json_value_free done [15:03:04]process_json_proto returns [15:03:04]Send response to host [15:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187375,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:03:04]free response buf [15:03:04]execute_script done [15:03:04]execute_script returns [15:03:04]free content buf [15:03:04]Sock 9.Close socket [15:03:04]Sock 9.Thread stoped [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:56]accept exits with 7 [15:04:56]New connection [15:04:56]New thread 3067420004 created [15:04:56]Thread 3067276644 joined [15:04:56]Waiting for new connection... [15:04:56] Sock 7.Parse request [15:04:56]Sock 7.Check first char [15:04:56]Sock 7.First char is OK [15:04:56]request: POST /json_proto HTTP/1.0 [15:04:56]Method: POST [15:04:56]URL: /json_proto [15:04:56]Method is POST - this is cgi request [15:04:56]url: /json_proto [15:04:56]query_string will be loaded in cgi processing [15:04:56]execute_cgi json_proto POST (null) [15:04:56]execute_cgi path=json_proto method=POST [15:04:56]POST find Content-Length [15:04:56]Host: 172.17.46.131:8080 [15:04:56]Content-Length: 677 [15:04:56]Content-Type: application/json [15:04:56] [15:04:56]POST finish read [15:04:56]Found Content-Length = 677 [15:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "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:04:56]execute_script... [15: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)412534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "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:04:56]POST & json_proto [15:04:56]process_json_proto [15:04:56]json parsed OK: [15:04:56]protocol is kg_v1.0 [15:04:56]action value=close_receipt [15:04:56]process_action close_receipt [15:04:56]cmd_close_receipt [15:04:56]MH_GetDate [15:04:56]Write to MH i2c: F0 00 00 03 0E 00 [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: F0 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: F0 09 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: F0 09 00 03 0E 00 99 44 B7 67 7E 41 4F 65 77 [15:04:56]GetLastDocTimeStamp 1740063781 [15:04:56]current date 1740063897 [15:04:56]FM_GetShiftState [15:04:56]SAM_PROTO_GetShiftState [15:04:56]wFMCommunicate request_size=4 [15:04:56]MH_SAM_APDU [15:04:56]CAPDU: 80 13 01 00 [15:04:56]Write to MH i2c: E2 08 00 04 0E 80 13 01 00 00 00 00 00 8F [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:56]Read from MH i2c: E2 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 0E 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 0E 00 04 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E1 [15:04:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:04:56]wFMCommunicate OK [15:04:56]SAM_PROTO_GetShiftState done [15:04:56]FM_GetShiftState done [15:04:56]opened in 1740011697 [15:04:56]opened+sec_in_day 1740098097 [15:04:56]quantity*price = 20030 [15:04:56]sum+1 = 20031 [15:04:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 177 20.02.2025 15:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187376 ФПД: 144541720628109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T150457&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187376&fm=144541720628109&tin=02508201610067®Number=0000000000091857&sum=20000 [15:04:57]StoreToDocumentArchive [15:04:57]shift 648 fd 187376 [15:04:57]save to /storage/0648/doc_00187376 [15:04:57]save last doc name /storage/0648/doc_00187376 to /storage/kkm_last_doc_name [15:04:57]save OK [15:04:57]Clear old archive folders... [15:04:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:57]tlvbuf is 00E5A930 [15:04:57]SAM_PROTO_ClearQueue [15:04:57]wFMCommunicate request_size=4 [15:04:57]MH_SAM_APDU [15:04:57]CAPDU: 80 09 00 00 [15:04:57]Write to MH i2c: E2 08 00 11 0E 80 09 00 00 00 00 00 00 91 [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:57]Read from MH i2c: E2 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 03 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 03 00 11 0E 00 90 00 93 [15:04:57]RAPDU: 90 00 [15:04:57]wFMCommunicate OK [15:04:57]SAM_PROTO_ClearQueue done [15:04:57]KKMCreateOFDPacket [15:04:57]OFDProtocolAddRootSTLVToBuf [15:04:57]FM_MakeSignedData [15:04:57]FM_MakeSignedData [15:04:57]SAM_PROTO_SignData [15:04:57]wFMCommunicate request_size=4 [15:04:57]MH_SAM_APDU [15:04:57]CAPDU: 80 0D 01 02 [15:04:57]Write to MH i2c: E2 08 00 12 0E 80 0D 01 02 00 00 00 00 99 [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:57]Read from MH i2c: E2 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 03 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: E2 03 00 12 0E 00 90 00 94 [15:04:57]RAPDU: 90 00 [15:04:57]wFMCommunicate OK [15:04:57]wFMCommunicate request_size=255 [15:04:57]MH_SAM_APDU [15: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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 B1 00 00 00 F4 03 04 00 99 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DB 02 00 35 04 06 00 83 [15:04:57]Write to MH i2c: E2 02 01 13 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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 B1 00 00 00 F4 03 04 00 99 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DB 02 00 35 04 06 00 83 00 00 04 [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 13 0E 00 90 00 95 [15:04:58]RAPDU: 90 00 [15:04:58]wFMCommunicate OK [15:04:58]wFMCommunicate request_size=10 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 0D 02 02 05 75 BD E9 CB 8D [15:04:58]Write to MH i2c: E2 0D 00 14 0E 80 0D 02 02 05 00 75 BD E9 CB 8D 00 00 19 [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 03 00 14 0E 00 90 00 96 [15:04:58]RAPDU: 90 00 [15:04:58]wFMCommunicate OK [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 0D 03 02 [15:04:58]Write to MH i2c: E2 08 00 15 0E 80 0D 03 02 00 00 00 00 9E [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 0B 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 0B 00 15 0E 00 0D 25 EC 8E 74 8B EF B2 90 00 EB [15:04:58]RAPDU: 0D 25 EC 8E 74 8B EF B2 90 00 [15:04:58]wFMCommunicate OK [15:04:58]SAM_PROTO_SignData done [15:04:58]FM_MakeSignedData done [15:04:58]CreateOFDProtocolMessage [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 11 00 00 [15:04:58]Write to MH i2c: E2 08 00 16 0E 80 11 00 00 00 00 00 00 9E [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 17 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 17 00 16 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [15:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:04:58]wFMCommunicate OK [15:04:58]CreateOFDProtocolMessage done [15:04:58]OFDSenderStorePacket 187376 [15:04:58]StoreOFDPacket docnum=187376 [15:04:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3B 3C 07 01 2A 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 B1 00 00 00 F4 03 04 00 99 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DB 02 00 35 04 06 00 83 75 BD E9 CB 8D 0D 25 EC 8E 74 8B EF B2 [15:04:58]CheckFolder [15:04:58]dirname=/storage/ofd_packets [15:04:58]CheckFolder done [15:04:58]ProducePacketName [15:04:58]name=ofd_packets/00187376 [15:04:58]NVStorageSaveData ofd_packets/00187376 [15:04:58]File name is /storage/ofd_packets/00187376 [15:04:58]Write 301 bytes [15:04:58]NVStorageSaveData done [15:04:58]OFDSenderStorePacket done [15:04:58]KKMCreateOFDPacket done [15:04:58]NVStorageSaveData kkm_last_timestamp [15:04:58]File name is /storage/kkm_last_timestamp [15:04:58]Write 4 bytes [15:04:58]NVStorageSaveData done [15:04:58]ExternCall_PrintAddStr [15:04:58]wPrintStart [15:04:58]Write to MH i2c: 01 00 00 17 0E 25 [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: 01 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: 01 07 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: 01 07 00 17 0E 00 00 00 00 00 FF 0F 3A [15:04:58]RasterBufferAndPrint [15:04:58]line Счет N : (1)412534 [15:04:58]line ИНН: 02508201610067 [15:04:58]line Контрольно-Кассовый Чек [15:04:58]line ПРОДАЖА [15:04:58]line ТРК (МРК, ГНК) : 12 [15:04:58]line Товар: 2710124130 [15:04:58]line Аи-92-К-2 [15:04:58]line 3.120 * 64.20 [15:04:58]line = 200.30 [15:04:58]line НДС 12% НСП 1% [15:04:58]line > о реализуемом товаре [15:04:58]line ОКРУГЛЕНИЕ: -0.30 [15:04:58]line ИТОГО: 200.00 [15:04:58]line Внесено: 200.00 [15:04:58]line СДАЧА: 0.00 [15:04:58]line НСП 1% : 1.77 [15:04:58]line НДС 12% : 21.27 [15:04:58]line Наличными: 200.00 [15:04:58]line Безнал.: 0.00 [15:04:58]line Место: АЗС № 92 "Партнер Нефть" [15:04:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:04:58]line СНО: Общий режим [15:04:58]line Чек 177 20.02.2025 15:04 [15:04:58]line Смена: 648 ФФД: 1.0 [15:04:58]line ЗНМ: 0300000118 [15:04:58]line РНМ: 0000000000091857 [15:04:58]line Версия ККМ: 001 [15:04:58]line ФМ: 0000000000871826 [15:04:58]line ФД: 187376 [15:04:58]line ФПД: 144541720628109 [15:04:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T150457&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187376&fm=144541720628109&tin=02508201610067®Number=0000000000091857&sum=20000 [15:04:58]written 0, free lines is 4095 [15:04:58]OFD Sender: Processing packet 187376 [packets to send 49, broken 48] [15:04:58]ProducePacketName [15:04:58]name=ofd_packets/00187376 [15:04:58]OFD Sender: To server: pG, [15:04:58]CommunicateWithHost lk.salyk.kg:30040 [15:04:58]ConnectInit lk.salyk.kg [15:04:58]Write to MH i2c: 01 00 00 42 0E 50 [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: 01 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: 01 07 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: 01 07 00 42 0E 00 00 00 00 00 E4 0C 47 [15:04:58]RasterBufferAndPrint [15:04:58]line [15:04:58]line [15:04:58]line [15:04:58]line [15:04:58]line [15:04:58]written 0, free lines is 3306 [15:04:58]MH_Cut [15:04:58]Write to MH i2c: D1 01 00 49 0E 01 29 [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: D1 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: D1 01 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: D1 01 00 49 0E 00 28 [15:04:58]Write to MH i2c: 01 00 00 4A 0E 58 [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:59]*** Cut start [15:04:59]*** Partial cut [15:04:59]*** CUTSNS_PIN = 1 [15:04:59]*** CUTSNS_PIN = 0 [15:05:00]*** Brake cut motor [15:05:00]Read from MH i2c: 01 [15:05:00]MH_I2C_Read... [15:05:00]*** Stop cut motor [15:05:00]*** Cut end [15:05:00]Read from MH i2c: 01 07 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: 01 07 00 4A 0E 00 00 00 00 00 FF 0F 6D [15:05:00]process_action close_receipt done [15:05:00]requested_data is exist [15:05:00]produce_requested_data [15:05:00]requested_item fm.sn is exist - process it [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 11 00 00 [15:05:00]Write to MH i2c: E2 08 00 4B 0E 80 11 00 00 00 00 00 00 D3 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 17 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 17 00 4B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 26 [15:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:05:00]wFMCommunicate OK [15:05:00]requested_item fd.num is exist - process it [15:05:00]SAM_PROTO_GetFieldsCounters [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 13 00 00 [15:05:00]Write to MH i2c: E2 08 00 4C 0E 80 13 00 00 00 00 00 00 D6 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 62 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 62 00 4C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F0 DB 02 00 0E 04 04 00 88 02 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 66 [15: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F0 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:00]wFMCommunicate OK [15:05:00]SAM_PROTO_GetFieldsCounters done [15:05:00]requested_item shift.num is exist - process it [15:05:00]requested_item shift.opened is exist - process it [15:05:00]req_shift_opened [15:05:00]FM_GetShiftState [15:05:00]SAM_PROTO_GetShiftState [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 13 01 00 [15:05:00]Write to MH i2c: E2 08 00 4D 0E 80 13 01 00 00 00 00 00 D8 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 0E 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 0E 00 4D 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2A [15:05:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:05:00]wFMCommunicate OK [15:05:00]SAM_PROTO_GetShiftState done [15:05:00]FM_GetShiftState done [15:05:00]req_shift_opened done [15:05:00]requested_item shift.open_date is exist - process it [15:05:00]req_shift_open_date [15:05:00]req_shift_open_date done [15:05:00]produce_requested_data done [15:05:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187376,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:05:00]process_action_free close_receipt [15:05:00]json_value_free [15:05:00]json_value_free done [15:05:00]process_json_proto returns [15:05:00]Send response to host [15:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187376,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:05:00]free response buf [15:05:00]execute_script done [15:05:00]execute_script returns [15:05:00]free content buf [15:05:00]Sock 7.Close socket [15:05:00]Sock 7.Thread stoped [15:07:10]ConnectInit Can't connect to host [15:07:10]CommunicateWithHost connect error [15:07:10]CommunicateWithHost err = -1 [15:07:10]OFD Sender: Server communicate error [15:07:15]OFD Sender: Processing packet 187376 [packets to send 49, broken 48] [15:07:15]ProducePacketName [15:07:15]name=ofd_packets/00187376 [15:07:15]OFD Sender: To server: pG, [15:07:15]CommunicateWithHost lk.salyk.kg:30040 [15:07:15]ConnectInit lk.salyk.kg [15:07:16]Connected sock=7 [15:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3B 3C 07 01 2A 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 B1 00 00 00 F4 03 04 00 99 44 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DB 02 00 35 04 06 00 83 75 BD E9 CB 8D 0D 25 EC 8E 74 8B EF B2 [15:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 24 16 47 00 7C 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DB 02 00 F4 03 04 00 73 EB B6 67 B6 04 01 00 00 39 7D 17 99 D6 2A 74 A2 [15:07:16]CommunicateWithHost err = 0 [15:07:16]CheckOFDResponse [15:07:16]1017 (14) - 77093643461234 [15:07:16]1041 (16) - 0000000000871826 [15:07:16]1040 (4) - 187376 [15:07:16]1012 (4) - 20.02.2025 08:44 [15:07:16]1206 (1) - 0 [15:07:16]OFD Sender: Remove packet 187376 [15:07:16]ProducePacketName [15:07:16]name=ofd_packets/00187376 [15:07:16]NVStorageDeleteData [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:08]accept exits with 9 [15:09:08]New connection [15:09:08]New thread 3067276644 created [15:09:08]Thread 3067420004 joined [15:09:08]Waiting for new connection... [15:09:08] Sock 9.Parse request [15:09:08]Sock 9.Check first char [15:09:08]Sock 9.First char is OK [15:09:08]request: POST /json_proto HTTP/1.0 [15:09:08]Method: POST [15:09:08]URL: /json_proto [15:09:08]Method is POST - this is cgi request [15:09:08]url: /json_proto [15:09:08]query_string will be loaded in cgi processing [15:09:08]execute_cgi json_proto POST (null) [15:09:08]execute_cgi path=json_proto method=POST [15:09:08]POST find Content-Length [15:09:08]Host: 172.17.46.131:8080 [15:09:08]Content-Length: 674 [15:09:08]Content-Type: application/json [15:09:08] [15:09:08]POST finish read [15:09:08]Found Content-Length = 674 [15:09:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:08]execute_script... [15:09: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)412535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:08]POST & json_proto [15:09:08]process_json_proto [15:09:08]json parsed OK: [15:09:08]protocol is kg_v1.0 [15:09:08]action value=close_receipt [15:09:08]process_action close_receipt [15:09:08]cmd_close_receipt [15:09:08]MH_GetDate [15:09:08]Write to MH i2c: F0 00 00 4E 0E 4B [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: F0 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: F0 09 00 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: F0 09 00 4E 0E 00 95 45 B7 67 7E 41 4F 65 BF [15:09:08]GetLastDocTimeStamp 1740063897 [15:09:08]current date 1740064149 [15:09:08]FM_GetShiftState [15:09:08]SAM_PROTO_GetShiftState [15:09:08]wFMCommunicate request_size=4 [15:09:08]MH_SAM_APDU [15:09:08]CAPDU: 80 13 01 00 [15:09:08]Write to MH i2c: E2 08 00 4F 0E 80 13 01 00 00 00 00 00 DA [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:08]Read from MH i2c: E2 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 0E 00 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 0E 00 4F 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2C [15:09:08]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:09:08]wFMCommunicate OK [15:09:08]SAM_PROTO_GetShiftState done [15:09:08]FM_GetShiftState done [15:09:08]opened in 1740011697 [15:09:08]opened+sec_in_day 1740098097 [15:09:08]quantity*price = 90024 [15:09:08]sum+1 = 90025 [15:09:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 178 20.02.2025 15:09 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187377 ФПД: 235587263242513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T150909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187377&fm=235587263242513&tin=02508201610067®Number=0000000000091857&sum=90000 [15:09:10]StoreToDocumentArchive [15:09:10]shift 648 fd 187377 [15:09:10]save to /storage/0648/doc_00187377 [15:09:10]save last doc name /storage/0648/doc_00187377 to /storage/kkm_last_doc_name [15:09:10]save OK [15:09:10]Clear old archive folders... [15:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:09:10]tlvbuf is B6F33BD0 [15:09:10]SAM_PROTO_ClearQueue [15:09:10]wFMCommunicate request_size=4 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 09 00 00 [15:09:10]Write to MH i2c: E2 08 00 5C 0E 80 09 00 00 00 00 00 00 DC [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 5C 0E 00 90 00 DE [15:09:10]RAPDU: 90 00 [15:09:10]wFMCommunicate OK [15:09:10]SAM_PROTO_ClearQueue done [15:09:10]KKMCreateOFDPacket [15:09:10]OFDProtocolAddRootSTLVToBuf [15:09:10]FM_MakeSignedData [15:09:10]FM_MakeSignedData [15:09:10]SAM_PROTO_SignData [15:09:10]wFMCommunicate request_size=4 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 0D 01 02 [15:09:10]Write to MH i2c: E2 08 00 5D 0E 80 0D 01 02 00 00 00 00 E4 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 5D 0E 00 90 00 DF [15:09:10]RAPDU: 90 00 [15:09:10]wFMCommunicate OK [15:09:10]wFMCommunicate request_size=255 [15:09:10]MH_SAM_APDU [15:09: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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 B2 00 00 00 F4 03 04 00 95 45 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DB 02 00 35 04 06 00 D6 43 EF 23 [15:09:10]Write to MH i2c: E2 02 01 5E 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 B2 00 00 00 F4 03 04 00 95 45 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DB 02 00 35 04 06 00 D6 43 EF 23 00 00 10 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 5E 0E 00 90 00 E0 [15:09:10]RAPDU: 90 00 [15:09:10]wFMCommunicate OK [15:09:10]wFMCommunicate request_size=7 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 0D 02 02 02 A1 11 [15:09:10]Write to MH i2c: E2 0A 00 5F 0E 80 0D 02 02 02 00 A1 11 00 00 9D [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 03 00 5F 0E 00 90 00 E1 [15:09:10]RAPDU: 90 00 [15:09:10]wFMCommunicate OK [15:09:10]wFMCommunicate request_size=4 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 0D 03 02 [15:09:10]Write to MH i2c: E2 08 00 60 0E 80 0D 03 02 00 00 00 00 E9 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 0B 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 0B 00 60 0E 00 7D 22 E8 38 3A 54 56 17 90 00 A4 [15:09:10]RAPDU: 7D 22 E8 38 3A 54 56 17 90 00 [15:09:10]wFMCommunicate OK [15:09:10]SAM_PROTO_SignData done [15:09:10]FM_MakeSignedData done [15:09:10]CreateOFDProtocolMessage [15:09:10]wFMCommunicate request_size=4 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 11 00 00 [15:09:10]Write to MH i2c: E2 08 00 61 0E 80 11 00 00 00 00 00 00 E9 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 17 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 17 00 61 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3C [15:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:09:10]wFMCommunicate OK [15:09:10]CreateOFDProtocolMessage done [15:09:10]OFDSenderStorePacket 187377 [15:09:10]StoreOFDPacket docnum=187377 [15:09:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 55 EF 04 01 7E D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 B2 00 00 00 F4 03 04 00 95 45 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DB 02 00 35 04 06 00 D6 43 EF 23 A1 11 7D 22 E8 38 3A 54 56 17 [15:09:10]CheckFolder [15:09:10]dirname=/storage/ofd_packets [15:09:10]CheckFolder done [15:09:10]ProducePacketName [15:09:10]name=ofd_packets/00187377 [15:09:10]NVStorageSaveData ofd_packets/00187377 [15:09:10]File name is /storage/ofd_packets/00187377 [15:09:10]Write 298 bytes [15:09:10]NVStorageSaveData done [15:09:10]OFDSenderStorePacket done [15:09:10]KKMCreateOFDPacket done [15:09:10]NVStorageSaveData kkm_last_timestamp [15:09:10]File name is /storage/kkm_last_timestamp [15:09:10]Write 4 bytes [15:09:10]NVStorageSaveData done [15:09:10]ExternCall_PrintAddStr [15:09:10]wPrintStart [15:09:10]Write to MH i2c: 01 00 00 62 0E 70 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: 01 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: 01 07 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 FF 0F 85 [15:09:10]RasterBufferAndPrint [15:09:10]line Счет N : (1)412535 [15:09:10]line ИНН: 02508201610067 [15:09:10]line Контрольно-Кассовый Чек [15:09:10]line ПРОДАЖА [15:09:10]line ТРК (МРК, ГНК) : 6 [15:09:10]line Товар: 2710194210 [15:09:10]line ДТ-К-5 [15:09:10]line 12.400 * 72.60 [15:09:10]line = 900.24 [15:09:10]line НДС 12% НСП 1% [15:09:10]line > о реализуемом товаре [15:09:10]line ОКРУГЛЕНИЕ: -0.24 [15:09:10]line ИТОГО: 900.00 [15:09:10]line Внесено: 900.00 [15:09:10]line СДАЧА: 0.00 [15:09:10]line НСП 1% : 7.97 [15:09:10]line НДС 12% : 95.60 [15:09:10]line Наличными: 900.00 [15:09:10]line Безнал.: 0.00 [15:09:10]line Место: АЗС № 92 "Партнер Нефть" [15:09:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:09:10]line СНО: Общий режим [15:09:10]line Чек 178 20.02.2025 15:09 [15:09:10]line Смена: 648 ФФД: 1.0 [15:09:10]line ЗНМ: 0300000118 [15:09:10]line РНМ: 0000000000091857 [15:09:10]line Версия ККМ: 001 [15:09:10]line ФМ: 0000000000871826 [15:09:10]line ФД: 187377 [15:09:10]line ФПД: 235587263242513 [15:09:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T150909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187377&fm=235587263242513&tin=02508201610067®Number=0000000000091857&sum=90000 [15:09:10]OFD Sender: Processing packet 187377 [packets to send 49, broken 48] [15:09:10]ProducePacketName [15:09:10]name=ofd_packets/00187377 [15:09:10]OFD Sender: To server: pG, [15:09:10]CommunicateWithHost lk.salyk.kg:30040 [15:09:10]ConnectInit lk.salyk.kg [15:09:10]written 0, free lines is 4095 [15:09:11]Connected sock=10 [15:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 55 EF 04 01 7E D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 B2 00 00 00 F4 03 04 00 95 45 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DB 02 00 35 04 06 00 D6 43 EF 23 A1 11 7D 22 E8 38 3A 54 56 17 [15:09:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 12 0D 47 00 EE 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DB 02 00 F4 03 04 00 E6 EB B6 67 B6 04 01 00 00 04 C7 B3 76 97 FA 02 55 [15:09:11]CommunicateWithHost err = 0 [15:09:11]CheckOFDResponse [15:09:11]1017 (14) - 77093643461234 [15:09:11]1041 (16) - 0000000000871826 [15:09:11]1040 (4) - 187377 [15:09:11]1012 (4) - 20.02.2025 08:46 [15:09:11]1206 (1) - 0 [15:09:11]OFD Sender: Remove packet 187377 [15:09:11]ProducePacketName [15:09:11]name=ofd_packets/00187377 [15:09:11]NVStorageDeleteData [15:09:11]Write to MH i2c: 01 00 00 8D 0E 9B [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 07 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 07 00 8D 0E 00 00 00 00 00 ED 0C 9B [15:09:11]RasterBufferAndPrint [15:09:11]line [15:09:11]line [15:09:11]line [15:09:11]line [15:09:11]line [15:09:11]written 0, free lines is 3318 [15:09:11]MH_Cut [15:09:11]Write to MH i2c: D1 01 00 94 0E 01 74 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: D1 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: D1 01 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: D1 01 00 94 0E 00 73 [15:09:11]Write to MH i2c: 01 00 00 95 0E A3 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]OFD Sender: No OFD packet to send [15:09:12]*** Cut start [15:09:12]*** Partial cut [15:09:12]*** CUTSNS_PIN = 1 [15:09:12]*** CUTSNS_PIN = 0 [15:09:12]*** Brake cut motor [15:09:12]Read from MH i2c: 01 [15:09:12]MH_I2C_Read... [15:09:12]*** Stop cut motor [15:09:12]*** Cut end [15:09:12]Read from MH i2c: 01 07 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 95 0E 00 00 00 00 00 FF 0F B8 [15:09:12]process_action close_receipt done [15:09:12]requested_data is exist [15:09:12]produce_requested_data [15:09:12]requested_item fm.sn is exist - process it [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 11 00 00 [15:09:12]Write to MH i2c: E2 08 00 96 0E 80 11 00 00 00 00 00 00 1E [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 17 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 17 00 96 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 71 [15:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:09:12]wFMCommunicate OK [15:09:12]requested_item fd.num is exist - process it [15:09:12]SAM_PROTO_GetFieldsCounters [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 13 00 00 [15:09:12]Write to MH i2c: E2 08 00 97 0E 80 13 00 00 00 00 00 00 21 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 62 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 62 00 97 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F1 DB 02 00 0E 04 04 00 88 02 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 B5 [15:09:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F1 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:12]wFMCommunicate OK [15:09:12]SAM_PROTO_GetFieldsCounters done [15:09:12]requested_item shift.num is exist - process it [15:09:12]requested_item shift.opened is exist - process it [15:09:12]req_shift_opened [15:09:12]FM_GetShiftState [15:09:12]SAM_PROTO_GetShiftState [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 13 01 00 [15:09:12]Write to MH i2c: E2 08 00 98 0E 80 13 01 00 00 00 00 00 23 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 0E 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 0E 00 98 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 75 [15:09:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:09:13]wFMCommunicate OK [15:09:13]SAM_PROTO_GetShiftState done [15:09:13]FM_GetShiftState done [15:09:13]req_shift_opened done [15:09:13]requested_item shift.open_date is exist - process it [15:09:13]req_shift_open_date [15:09:13]req_shift_open_date done [15:09:13]produce_requested_data done [15:09:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187377,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:09:13]process_action_free close_receipt [15:09:13]json_value_free [15:09:13]json_value_free done [15:09:13]process_json_proto returns [15:09:13]Send response to host [15:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187377,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:09:13]free response buf [15:09:13]execute_script done [15:09:13]execute_script returns [15:09:13]free content buf [15:09:13]Sock 9.Close socket [15:09:13]Sock 9.Thread stoped [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:46]accept exits with 7 [15:14:46]New connection [15:14:46]New thread 3067420004 created [15:14:46]Thread 3067276644 joined [15:14:46]Waiting for new connection... [15:14:46] Sock 7.Parse request [15:14:46]Sock 7.Check first char [15:14:46]Sock 7.First char is OK [15:14:46]request: POST /json_proto HTTP/1.0 [15:14:46]Method: POST [15:14:46]URL: /json_proto [15:14:46]Method is POST - this is cgi request [15:14:46]url: /json_proto [15:14:46]query_string will be loaded in cgi processing [15:14:46]execute_cgi json_proto POST (null) [15:14:46]execute_cgi path=json_proto method=POST [15:14:46]POST find Content-Length [15:14:46]Host: 172.17.46.131:8080 [15:14:46]Content-Length: 678 [15:14:46]Content-Type: application/json [15:14:46] [15:14:46]POST finish read [15:14:46]Found Content-Length = 678 [15:14:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:46]execute_script... [15: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)412536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:46]POST & json_proto [15:14:46]process_json_proto [15:14:46]json parsed OK: [15:14:46]protocol is kg_v1.0 [15:14:46]action value=close_receipt [15:14:46]process_action close_receipt [15:14:46]cmd_close_receipt [15:14:46]MH_GetDate [15:14:46]Write to MH i2c: F0 00 00 99 0E 96 [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: F0 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: F0 09 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: F0 09 00 99 0E 00 E7 46 B7 67 7E 41 4F 65 5D [15:14:46]GetLastDocTimeStamp 1740064149 [15:14:46]current date 1740064487 [15:14:46]FM_GetShiftState [15:14:46]SAM_PROTO_GetShiftState [15:14:46]wFMCommunicate request_size=4 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 13 01 00 [15:14:46]Write to MH i2c: E2 08 00 9A 0E 80 13 01 00 00 00 00 00 25 [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 0E 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 0E 00 9A 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 77 [15:14:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:14:46]wFMCommunicate OK [15:14:46]SAM_PROTO_GetShiftState done [15:14:46]FM_GetShiftState done [15:14:46]opened in 1740011697 [15:14:46]opened+sec_in_day 1740098097 [15:14:46]quantity*price = 200013 [15:14:46]sum+1 = 200014 [15:14:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 179 20.02.2025 15:14 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187378 ФПД: 89455215101573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T151448&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187378&fm=89455215101573&tin=02508201610067®Number=0000000000091857&sum=200000 [15:14:48]StoreToDocumentArchive [15:14:48]shift 648 fd 187378 [15:14:48]save to /storage/0648/doc_00187378 [15:14:48]save last doc name /storage/0648/doc_00187378 to /storage/kkm_last_doc_name [15:14:48]save OK [15:14:48]Clear old archive folders... [15:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:14:48]tlvbuf is 00E1EAD0 [15:14:48]SAM_PROTO_ClearQueue [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 09 00 00 [15:14:48]Write to MH i2c: E2 08 00 A7 0E 80 09 00 00 00 00 00 00 27 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 A7 0E 00 90 00 29 [15:14:48]RAPDU: 90 00 [15:14:48]wFMCommunicate OK [15:14:48]SAM_PROTO_ClearQueue done [15:14:48]KKMCreateOFDPacket [15:14:48]OFDProtocolAddRootSTLVToBuf [15:14:48]FM_MakeSignedData [15:14:48]FM_MakeSignedData [15:14:48]SAM_PROTO_SignData [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 0D 01 02 [15:14:48]Write to MH i2c: E2 08 00 A8 0E 80 0D 01 02 00 00 00 00 2F [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 A8 0E 00 90 00 2A [15:14:48]RAPDU: 90 00 [15:14:48]wFMCommunicate OK [15:14:48]wFMCommunicate request_size=255 [15:14:48]MH_SAM_APDU [15:14: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E8 46 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DB 02 00 35 04 06 00 51 5B EA 51 [15:14:48]Write to MH i2c: E2 02 01 A9 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E8 46 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DB 02 00 35 04 06 00 51 5B EA 51 00 00 88 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 A9 0E 00 90 00 2B [15:14:48]RAPDU: 90 00 [15:14:48]wFMCommunicate OK [15:14:48]wFMCommunicate request_size=7 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 0D 02 02 02 C6 85 [15:14:48]Write to MH i2c: E2 0A 00 AA 0E 80 0D 02 02 02 00 C6 85 00 00 81 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 AA 0E 00 90 00 2C [15:14:48]RAPDU: 90 00 [15:14:48]wFMCommunicate OK [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 0D 03 02 [15:14:48]Write to MH i2c: E2 08 00 AB 0E 80 0D 03 02 00 00 00 00 34 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 0B 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 0B 00 AB 0E 00 31 5B 29 45 31 CF 4F 95 90 00 13 [15:14:48]RAPDU: 31 5B 29 45 31 CF 4F 95 90 00 [15:14:48]wFMCommunicate OK [15:14:48]SAM_PROTO_SignData done [15:14:48]FM_MakeSignedData done [15:14:48]CreateOFDProtocolMessage [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 11 00 00 [15:14:48]Write to MH i2c: E2 08 00 AC 0E 80 11 00 00 00 00 00 00 34 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 17 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 17 00 AC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [15:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:14:48]wFMCommunicate OK [15:14:48]CreateOFDProtocolMessage done [15:14:48]OFDSenderStorePacket 187378 [15:14:48]StoreOFDPacket docnum=187378 [15:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 19 00 04 01 F3 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E8 46 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DB 02 00 35 04 06 00 51 5B EA 51 C6 85 31 5B 29 45 31 CF 4F 95 [15:14:48]CheckFolder [15:14:48]dirname=/storage/ofd_packets [15:14:48]CheckFolder done [15:14:48]ProducePacketName [15:14:48]name=ofd_packets/00187378 [15:14:48]NVStorageSaveData ofd_packets/00187378 [15:14:48]File name is /storage/ofd_packets/00187378 [15:14:48]Write 298 bytes [15:14:48]NVStorageSaveData done [15:14:48]OFDSenderStorePacket done [15:14:48]KKMCreateOFDPacket done [15:14:48]NVStorageSaveData kkm_last_timestamp [15:14:48]File name is /storage/kkm_last_timestamp [15:14:48]Write 4 bytes [15:14:48]NVStorageSaveData done [15:14:48]ExternCall_PrintAddStr [15:14:48]wPrintStart [15:14:48]Write to MH i2c: 01 00 00 AD 0E BB [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: 01 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: 01 07 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: 01 07 00 AD 0E 00 00 00 00 00 FF 0F D0 [15:14:48]RasterBufferAndPrint [15:14:48]line Счет N : (1)412536 [15:14:48]line ИНН: 02508201610067 [15:14:48]line Контрольно-Кассовый Чек [15:14:48]line ПРОДАЖА [15:14:48]line ТРК (МРК, ГНК) : 5 [15:14:48]line Товар: 2710194210 [15:14:48]line ДТ-К-5 [15:14:48]line 27.550 * 72.60 [15:14:48]line = 2000.13 [15:14:48]line НДС 12% НСП 1% [15:14:48]line > о реализуемом товаре [15:14:48]line ОКРУГЛЕНИЕ: -0.13 [15:14:48]line ИТОГО: 2000.00 [15:14:48]line Внесено: 2000.00 [15:14:48]line СДАЧА: 0.00 [15:14:48]line НСП 1% : 17.70 [15:14:48]line НДС 12% : 212.40 [15:14:48]line Наличными: 2000.00 [15:14:48]line Безнал.: 0.00 [15:14:48]line Место: АЗС № 92 "Партнер Нефть" [15:14:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:14:48]line СНО: Общий режим [15:14:48]line Чек 179 20.02.2025 15:14 [15:14:48]line Смена: 648 ФФД: 1.0 [15:14:48]line ЗНМ: 0300000118 [15:14:48]line РНМ: 0000000000091857 [15:14:48]line Версия ККМ: 001 [15:14:48]line ФМ: 0000000000871826 [15:14:48]line ФД: 187378 [15:14:48]line ФПД: 89455215101573 [15:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T151448&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187378&fm=89455215101573&tin=02508201610067®Number=0000000000091857&sum=200000 [15:14:48]OFD Sender: Processing packet 187378 [packets to send 49, broken 48] [15:14:48]ProducePacketName [15:14:48]name=ofd_packets/00187378 [15:14:48]OFD Sender: To server: pG, [15:14:48]CommunicateWithHost lk.salyk.kg:30040 [15:14:48]ConnectInit lk.salyk.kg [15:14:48]written 0, free lines is 4095 [15:14:49]Connected sock=11 [15: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 31 38 32 36 0C 01 00 00 19 00 04 01 F3 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E8 46 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DB 02 00 35 04 06 00 51 5B EA 51 C6 85 31 5B 29 45 31 CF 4F 95 [15:14:49]Write to MH i2c: 01 00 00 D8 0E E6 [15:14:49]Write i2c OK [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: 01 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: 01 07 00 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: 01 07 00 D8 0E 00 00 00 00 00 EE 0C E7 [15:14:49]RasterBufferAndPrint [15:14:49]line [15:14:49]line [15:14:49]line [15:14:49]line [15:14:49]line [15:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C6 43 47 00 C1 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DB 02 00 F4 03 04 00 38 ED B6 67 B6 04 01 00 00 18 E1 43 65 78 1A 44 B9 [15:14:49]CommunicateWithHost err = 0 [15:14:49]CheckOFDResponse [15:14:49]1017 (14) - 77093643461234 [15:14:49]1041 (16) - 0000000000871826 [15:14:49]1040 (4) - 187378 [15:14:49]1012 (4) - 20.02.2025 08:52 [15:14:49]1206 (1) - 0 [15:14:49]OFD Sender: Remove packet 187378 [15:14:49]ProducePacketName [15:14:49]name=ofd_packets/00187378 [15:14:49]NVStorageDeleteData [15:14:49]written 0, free lines is 3316 [15:14:49]MH_Cut [15:14:49]Write to MH i2c: D1 01 00 DF 0E 01 BF [15:14:49]Write i2c OK [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: D1 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: D1 01 00 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: D1 01 00 DF 0E 00 BE [15:14:49]Write to MH i2c: 01 00 00 E0 0E EE [15:14:49]Write i2c OK [15:14:49]MH_I2C_Read... [15:14:49]OFD Sender: No OFD packet to send [15:14:50]*** Cut start [15:14:50]*** Partial cut [15:14:50]*** CUTSNS_PIN = 1 [15:14:50]*** CUTSNS_PIN = 0 [15:14:50]*** Brake cut motor [15:14:50]Read from MH i2c: 01 [15:14:50]MH_I2C_Read... [15:14:50]*** Stop cut motor [15:14:50]*** Cut end [15:14:50]Read from MH i2c: 01 07 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: 01 07 00 E0 0E 00 00 00 00 00 FF 0F 03 [15:14:50]process_action close_receipt done [15:14:50]requested_data is exist [15:14:50]produce_requested_data [15:14:50]requested_item fm.sn is exist - process it [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 11 00 00 [15:14:50]Write to MH i2c: E2 08 00 E1 0E 80 11 00 00 00 00 00 00 69 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 17 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 17 00 E1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BC [15:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:14:50]wFMCommunicate OK [15:14:50]requested_item fd.num is exist - process it [15:14:50]SAM_PROTO_GetFieldsCounters [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 13 00 00 [15:14:50]Write to MH i2c: E2 08 00 E2 0E 80 13 00 00 00 00 00 00 6C [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:51]Read from MH i2c: E2 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: E2 62 00 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: E2 62 00 E2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F2 DB 02 00 0E 04 04 00 88 02 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 04 [15:14:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F2 DB 02 00 0E 04 04 00 88 02 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 [15:14:51]wFMCommunicate OK [15:14:51]SAM_PROTO_GetFieldsCounters done [15:14:51]requested_item shift.num is exist - process it [15:14:51]requested_item shift.opened is exist - process it [15:14:51]req_shift_opened [15:14:51]FM_GetShiftState [15:14:51]SAM_PROTO_GetShiftState [15:14:51]wFMCommunicate request_size=4 [15:14:51]MH_SAM_APDU [15:14:51]CAPDU: 80 13 01 00 [15:14:51]Write to MH i2c: E2 08 00 E3 0E 80 13 01 00 00 00 00 00 6E [15:14:51]Write i2c OK [15:14:51]MH_I2C_Read... [15:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:51]Read from MH i2c: E2 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: E2 0E 00 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: E2 0E 00 E3 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C0 [15:14:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:14:51]wFMCommunicate OK [15:14:51]SAM_PROTO_GetShiftState done [15:14:51]FM_GetShiftState done [15:14:51]req_shift_opened done [15:14:51]requested_item shift.open_date is exist - process it [15:14:51]req_shift_open_date [15:14:51]req_shift_open_date done [15:14:51]produce_requested_data done [15:14:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187378,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:14:51]process_action_free close_receipt [15:14:51]json_value_free [15:14:51]json_value_free done [15:14:51]process_json_proto returns [15:14:51]Send response to host [15:14:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187378,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:14:51]free response buf [15:14:51]execute_script done [15:14:51]execute_script returns [15:14:51]free content buf [15:14:51]Sock 7.Close socket [15:14:51]Sock 7.Thread stoped [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:52]accept exits with 9 [15:16:52]New connection [15:16:52]New thread 3067276644 created [15:16:52]Thread 3067420004 joined [15:16:52]Waiting for new connection... [15:16:52] Sock 9.Parse request [15:16:52]Sock 9.Check first char [15:16:52]Sock 9.First char is OK [15:16:52]request: POST /json_proto HTTP/1.0 [15:16:52]Method: POST [15:16:52]URL: /json_proto [15:16:52]Method is POST - this is cgi request [15:16:52]url: /json_proto [15:16:52]query_string will be loaded in cgi processing [15:16:52]execute_cgi json_proto POST (null) [15:16:52]execute_cgi path=json_proto method=POST [15:16:52]POST find Content-Length [15:16:52]Host: 172.17.46.131:8080 [15:16:52]Content-Length: 678 [15:16:52]Content-Type: application/json [15:16:52] [15:16:52]POST finish read [15:16:52]Found Content-Length = 678 [15:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:52]execute_script... [15:16: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)412537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:52]POST & json_proto [15:16:52]process_json_proto [15:16:52]json parsed OK: [15:16:52]protocol is kg_v1.0 [15:16:52]action value=close_receipt [15:16:52]process_action close_receipt [15:16:52]cmd_close_receipt [15:16:52]MH_GetDate [15:16:52]Write to MH i2c: F0 00 00 E4 0E E1 [15:16:52]Write i2c OK [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: F0 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: F0 09 00 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: F0 09 00 E4 0E 00 65 47 B7 67 7E 41 4F 65 27 [15:16:52]GetLastDocTimeStamp 1740064488 [15:16:52]current date 1740064613 [15:16:52]FM_GetShiftState [15:16:52]SAM_PROTO_GetShiftState [15:16:52]wFMCommunicate request_size=4 [15:16:52]MH_SAM_APDU [15:16:52]CAPDU: 80 13 01 00 [15:16:52]Write to MH i2c: E2 08 00 E5 0E 80 13 01 00 00 00 00 00 70 [15:16:52]Write i2c OK [15:16:52]MH_I2C_Read... [15:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:52]Read from MH i2c: E2 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: E2 0E 00 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: E2 0E 00 E5 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C2 [15:16:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:16:52]wFMCommunicate OK [15:16:52]SAM_PROTO_GetShiftState done [15:16:52]FM_GetShiftState done [15:16:52]opened in 1740011697 [15:16:52]opened+sec_in_day 1740098097 [15:16:52]quantity*price = 300055 [15:16:52]sum+1 = 300057 [15:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 180 20.02.2025 15:16 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187379 ФПД: 19774405176683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T151653&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187379&fm=19774405176683&tin=02508201610067®Number=0000000000091857&sum=300000 [15:16:53]StoreToDocumentArchive [15:16:53]shift 648 fd 187379 [15:16:53]save to /storage/0648/doc_00187379 [15:16:53]save last doc name /storage/0648/doc_00187379 to /storage/kkm_last_doc_name [15:16:53]save OK [15:16:53]Clear old archive folders... [15:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:53]tlvbuf is 00E1BA00 [15:16:53]SAM_PROTO_ClearQueue [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 09 00 00 [15:16:53]Write to MH i2c: E2 08 00 F2 0E 80 09 00 00 00 00 00 00 72 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 F2 0E 00 90 00 74 [15:16:53]RAPDU: 90 00 [15:16:53]wFMCommunicate OK [15:16:53]SAM_PROTO_ClearQueue done [15:16:53]KKMCreateOFDPacket [15:16:53]OFDProtocolAddRootSTLVToBuf [15:16:53]FM_MakeSignedData [15:16:53]FM_MakeSignedData [15:16:53]SAM_PROTO_SignData [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 0D 01 02 [15:16:53]Write to MH i2c: E2 08 00 F3 0E 80 0D 01 02 00 00 00 00 7A [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 F3 0E 00 90 00 75 [15:16:53]RAPDU: 90 00 [15:16:53]wFMCommunicate OK [15:16:53]wFMCommunicate request_size=255 [15:16:53]MH_SAM_APDU [15:16: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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 65 47 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 DB 02 00 35 04 06 00 11 FC 16 65 [15:16:53]Write to MH i2c: E2 02 01 F4 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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 65 47 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 DB 02 00 35 04 06 00 11 FC 16 65 00 00 C2 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 F4 0E 00 90 00 76 [15:16:54]RAPDU: 90 00 [15:16:54]wFMCommunicate OK [15:16:54]wFMCommunicate request_size=7 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 0D 02 02 02 6D 6B [15:16:54]Write to MH i2c: E2 0A 00 F5 0E 80 0D 02 02 02 00 6D 6B 00 00 59 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 F5 0E 00 90 00 77 [15:16:54]RAPDU: 90 00 [15:16:54]wFMCommunicate OK [15:16:54]wFMCommunicate request_size=4 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 0D 03 02 [15:16:54]Write to MH i2c: E2 08 00 F6 0E 80 0D 03 02 00 00 00 00 7F [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 0B 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 0B 00 F6 0E 00 B8 FE F8 36 09 D5 70 6E 90 00 20 [15:16:54]RAPDU: B8 FE F8 36 09 D5 70 6E 90 00 [15:16:54]wFMCommunicate OK [15:16:54]SAM_PROTO_SignData done [15:16:54]FM_MakeSignedData done [15:16:54]CreateOFDProtocolMessage [15:16:54]wFMCommunicate request_size=4 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 11 00 00 [15:16:54]Write to MH i2c: E2 08 00 F7 0E 80 11 00 00 00 00 00 00 7F [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 17 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 17 00 F7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D2 [15:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:16:54]wFMCommunicate OK [15:16:54]CreateOFDProtocolMessage done [15:16:54]OFDSenderStorePacket 187379 [15:16:54]StoreOFDPacket docnum=187379 [15:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F2 E2 04 01 5F 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 65 47 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 DB 02 00 35 04 06 00 11 FC 16 65 6D 6B B8 FE F8 36 09 D5 70 6E [15:16:54]CheckFolder [15:16:54]dirname=/storage/ofd_packets [15:16:54]CheckFolder done [15:16:54]ProducePacketName [15:16:54]name=ofd_packets/00187379 [15:16:54]NVStorageSaveData ofd_packets/00187379 [15:16:54]File name is /storage/ofd_packets/00187379 [15:16:54]Write 298 bytes [15:16:54]NVStorageSaveData done [15:16:54]OFDSenderStorePacket done [15:16:54]KKMCreateOFDPacket done [15:16:54]NVStorageSaveData kkm_last_timestamp [15:16:54]File name is /storage/kkm_last_timestamp [15:16:54]Write 4 bytes [15:16:54]NVStorageSaveData done [15:16:54]ExternCall_PrintAddStr [15:16:54]wPrintStart [15:16:54]Write to MH i2c: 01 00 00 F8 0E 06 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 07 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 FF 0F 1B [15:16:54]RasterBufferAndPrint [15:16:54]line Счет N : (1)412537 [15:16:54]line ИНН: 02508201610067 [15:16:54]line Контрольно-Кассовый Чек [15:16:54]line ПРОДАЖА [15:16:54]line ТРК (МРК, ГНК) : 6 [15:16:54]line Товар: 2710194210 [15:16:54]line ДТ-К-5 [15:16:54]line 41.330 * 72.60 [15:16:54]line = 3000.56 [15:16:54]line НДС 12% НСП 1% [15:16:54]line > о реализуемом товаре [15:16:54]line ОКРУГЛЕНИЕ: -0.56 [15:16:54]line ИТОГО: 3000.00 [15:16:54]line Внесено: 3000.00 [15:16:54]line СДАЧА: 0.00 [15:16:54]line НСП 1% : 26.55 [15:16:54]line НДС 12% : 318.64 [15:16:54]line Наличными: 3000.00 [15:16:54]line Безнал.: 0.00 [15:16:54]line Место: АЗС № 92 "Партнер Нефть" [15:16:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:16:54]line СНО: Общий режим [15:16:54]line Чек 180 20.02.2025 15:16 [15:16:54]line Смена: 648 ФФД: 1.0 [15:16:54]line ЗНМ: 0300000118 [15:16:54]line РНМ: 0000000000091857 [15:16:54]line Версия ККМ: 001 [15:16:54]line ФМ: 0000000000871826 [15:16:54]line ФД: 187379 [15:16:54]line ФПД: 19774405176683 [15:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T151653&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187379&fm=19774405176683&tin=02508201610067®Number=0000000000091857&sum=300000 [15:16:54]OFD Sender: Processing packet 187379 [packets to send 49, broken 48] [15:16:54]ProducePacketName [15:16:54]name=ofd_packets/00187379 [15:16:54]OFD Sender: To server: pG, [15:16:54]CommunicateWithHost lk.salyk.kg:30040 [15:16:54]ConnectInit lk.salyk.kg [15:16:54]written 0, free lines is 4095 [15:16:55]Write to MH i2c: 01 00 00 23 0F 32 [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 07 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 07 00 23 0F 00 00 00 00 00 EB 0C 30 [15:16:55]RasterBufferAndPrint [15:16:55]line [15:16:55]line [15:16:55]line [15:16:55]line [15:16:55]line [15:16:55]written 0, free lines is 3313 [15:16:55]MH_Cut [15:16:55]Write to MH i2c: D1 01 00 2A 0F 01 0B [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: D1 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: D1 01 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: D1 01 00 2A 0F 00 0A [15:16:55]Write to MH i2c: 01 00 00 2B 0F 3A [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Connected sock=10 [15:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F2 E2 04 01 5F 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 65 47 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 DB 02 00 35 04 06 00 11 FC 16 65 6D 6B B8 FE F8 36 09 D5 70 6E [15:16:55]*** Cut start [15:16:55]*** Partial cut [15:16:55]*** CUTSNS_PIN = 1 [15:16:55]*** CUTSNS_PIN = 0 [15:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 06 8A 47 00 68 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 31 38 32 36 10 04 04 00 F3 DB 02 00 F4 03 04 00 B7 ED B6 67 B6 04 01 00 00 3D 20 19 1F 5A E7 37 28 [15:16:55]CommunicateWithHost err = 0 [15:16:55]CheckOFDResponse [15:16:55]1017 (14) - 77093643461234 [15:16:55]1041 (16) - 0000000000871826 [15:16:55]1040 (4) - 187379 [15:16:55]1012 (4) - 20.02.2025 08:54 [15:16:55]1206 (1) - 0 [15:16:55]OFD Sender: Remove packet 187379 [15:16:55]ProducePacketName [15:16:55]name=ofd_packets/00187379 [15:16:55]NVStorageDeleteData [15:16:56]*** Brake cut motor [15:16:56]OFD Sender: No OFD packet to send [15:16:56]Read from MH i2c: 01 [15:16:56]MH_I2C_Read... [15:16:56]*** Stop cut motor [15:16:56]*** Cut end [15:16:56]Read from MH i2c: 01 07 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: 01 07 00 2B 0F 00 00 00 00 00 FF 0F 4F [15:16:56]process_action close_receipt done [15:16:56]requested_data is exist [15:16:56]produce_requested_data [15:16:56]requested_item fm.sn is exist - process it [15:16:56]wFMCommunicate request_size=4 [15:16:56]MH_SAM_APDU [15:16:56]CAPDU: 80 11 00 00 [15:16:56]Write to MH i2c: E2 08 00 2C 0F 80 11 00 00 00 00 00 00 B5 [15:16:56]Write i2c OK [15:16:56]MH_I2C_Read... [15:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:56]Read from MH i2c: E2 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 17 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 17 00 2C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [15:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:16:56]wFMCommunicate OK [15:16:56]requested_item fd.num is exist - process it [15:16:56]SAM_PROTO_GetFieldsCounters [15:16:56]wFMCommunicate request_size=4 [15:16:56]MH_SAM_APDU [15:16:56]CAPDU: 80 13 00 00 [15:16:56]Write to MH i2c: E2 08 00 2D 0F 80 13 00 00 00 00 00 00 B8 [15:16:56]Write i2c OK [15:16:56]MH_I2C_Read... [15:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:56]Read from MH i2c: E2 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 62 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 62 00 2D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F3 DB 02 00 0E 04 04 00 88 02 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 54 [15:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F3 DB 02 00 0E 04 04 00 88 02 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 [15:16:56]wFMCommunicate OK [15:16:56]SAM_PROTO_GetFieldsCounters done [15:16:56]requested_item shift.num is exist - process it [15:16:56]requested_item shift.opened is exist - process it [15:16:56]req_shift_opened [15:16:56]FM_GetShiftState [15:16:56]SAM_PROTO_GetShiftState [15:16:56]wFMCommunicate request_size=4 [15:16:56]MH_SAM_APDU [15:16:56]CAPDU: 80 13 01 00 [15:16:56]Write to MH i2c: E2 08 00 2E 0F 80 13 01 00 00 00 00 00 BA [15:16:56]Write i2c OK [15:16:56]MH_I2C_Read... [15:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:56]Read from MH i2c: E2 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 0E 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 0E 00 2E 0F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0C [15:16:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:16:56]wFMCommunicate OK [15:16:56]SAM_PROTO_GetShiftState done [15:16:56]FM_GetShiftState done [15:16:56]req_shift_opened done [15:16:56]requested_item shift.open_date is exist - process it [15:16:56]req_shift_open_date [15:16:56]req_shift_open_date done [15:16:56]produce_requested_data done [15:16:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187379,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:16:56]process_action_free close_receipt [15:16:56]json_value_free [15:16:56]json_value_free done [15:16:56]process_json_proto returns [15:16:56]Send response to host [15:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187379,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:16:56]free response buf [15:16:56]execute_script done [15:16:56]execute_script returns [15:16:56]free content buf [15:16:56]Sock 9.Close socket [15:16:56]Sock 9.Thread stoped [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:20]accept exits with 7 [15:20:20]New connection [15:20:20]New thread 3067420004 created [15:20:20]Thread 3067276644 joined [15:20:20]Waiting for new connection... [15:20:20] Sock 7.Parse request [15:20:20]Sock 7.Check first char [15:20:20]Sock 7.First char is OK [15:20:20]request: POST /json_proto HTTP/1.0 [15:20:20]Method: POST [15:20:20]URL: /json_proto [15:20:20]Method is POST - this is cgi request [15:20:20]url: /json_proto [15:20:20]query_string will be loaded in cgi processing [15:20:20]execute_cgi json_proto POST (null) [15:20:20]execute_cgi path=json_proto method=POST [15:20:20]POST find Content-Length [15:20:20]Host: 172.17.46.131:8080 [15:20:20]Content-Length: 682 [15:20:20]Content-Type: application/json [15:20:20] [15:20:20]POST finish read [15:20:20]Found Content-Length = 682 [15:20:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:20:20]execute_script... [15:20: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)412538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:20:20]POST & json_proto [15:20:20]process_json_proto [15:20:20]json parsed OK: [15:20:20]protocol is kg_v1.0 [15:20:20]action value=close_receipt [15:20:20]process_action close_receipt [15:20:20]cmd_close_receipt [15:20:20]MH_GetDate [15:20:20]Write to MH i2c: F0 00 00 2F 0F 2D [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: F0 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: F0 09 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: F0 09 00 2F 0F 00 35 48 B7 67 7E 41 4F 65 44 [15:20:20]GetLastDocTimeStamp 1740064613 [15:20:20]current date 1740064821 [15:20:20]FM_GetShiftState [15:20:20]SAM_PROTO_GetShiftState [15:20:20]wFMCommunicate request_size=4 [15:20:20]MH_SAM_APDU [15:20:20]CAPDU: 80 13 01 00 [15:20:20]Write to MH i2c: E2 08 00 30 0F 80 13 01 00 00 00 00 00 BC [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 0E 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 0E 00 30 0F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0E [15:20:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:20:20]wFMCommunicate OK [15:20:20]SAM_PROTO_GetShiftState done [15:20:20]FM_GetShiftState done [15:20:20]opened in 1740011697 [15:20:20]opened+sec_in_day 1740098097 [15:20:20]quantity*price = 100023 [15:20:20]sum+1 = 100025 [15:20:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 181 20.02.2025 15:20 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187380 ФПД: 210738841974728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T152021&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187380&fm=210738841974728&tin=02508201610067®Number=0000000000091857&sum=100000 [15:20:21]StoreToDocumentArchive [15:20:21]shift 648 fd 187380 [15:20:21]save to /storage/0648/doc_00187380 [15:20:21]save last doc name /storage/0648/doc_00187380 to /storage/kkm_last_doc_name [15:20:21]save OK [15:20:21]Clear old archive folders... [15:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:21]tlvbuf is 00E72E20 [15:20:21]SAM_PROTO_ClearQueue [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 09 00 00 [15:20:21]Write to MH i2c: E2 08 00 3D 0F 80 09 00 00 00 00 00 00 BE [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 3D 0F 00 90 00 C0 [15:20:21]RAPDU: 90 00 [15:20:21]wFMCommunicate OK [15:20:21]SAM_PROTO_ClearQueue done [15:20:21]KKMCreateOFDPacket [15:20:21]OFDProtocolAddRootSTLVToBuf [15:20:21]FM_MakeSignedData [15:20:21]FM_MakeSignedData [15:20:21]SAM_PROTO_SignData [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 0D 01 02 [15:20:21]Write to MH i2c: E2 08 00 3E 0F 80 0D 01 02 00 00 00 00 C6 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 3E 0F 00 90 00 C1 [15:20:21]RAPDU: 90 00 [15:20:21]wFMCommunicate OK [15:20:21]wFMCommunicate request_size=255 [15:20:21]MH_SAM_APDU [15:20: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 35 48 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 DB 02 00 35 04 06 00 BF [15:20:21]Write to MH i2c: E2 02 01 3F 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 35 48 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 DB 02 00 35 04 06 00 BF 00 00 2D [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]OFD Sender: No OFD packet to send [15:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 3F 0F 00 90 00 C2 [15:20:21]RAPDU: 90 00 [15:20:21]wFMCommunicate OK [15:20:21]wFMCommunicate request_size=10 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 0D 02 02 05 AA 75 D0 F7 C8 [15:20:21]Write to MH i2c: E2 0D 00 40 0F 80 0D 02 02 05 00 AA 75 D0 F7 C8 00 00 81 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 40 0F 00 90 00 C3 [15:20:21]RAPDU: 90 00 [15:20:21]wFMCommunicate OK [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 0D 03 02 [15:20:21]Write to MH i2c: E2 08 00 41 0F 80 0D 03 02 00 00 00 00 CB [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 0B 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 0B 00 41 0F 00 59 33 56 D0 F2 C1 82 5A 90 00 0D [15:20:21]RAPDU: 59 33 56 D0 F2 C1 82 5A 90 00 [15:20:21]wFMCommunicate OK [15:20:21]SAM_PROTO_SignData done [15:20:21]FM_MakeSignedData done [15:20:21]CreateOFDProtocolMessage [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 11 00 00 [15:20:21]Write to MH i2c: E2 08 00 42 0F 80 11 00 00 00 00 00 00 CB [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:22]Read from MH i2c: E2 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 17 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 17 00 42 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1E [15:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:20:22]wFMCommunicate OK [15:20:22]CreateOFDProtocolMessage done [15:20:22]OFDSenderStorePacket 187380 [15:20:22]StoreOFDPacket docnum=187380 [15:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 79 18 07 01 BF 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 35 48 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 DB 02 00 35 04 06 00 BF AA 75 D0 F7 C8 59 33 56 D0 F2 C1 82 5A [15:20:22]CheckFolder [15:20:22]dirname=/storage/ofd_packets [15:20:22]CheckFolder done [15:20:22]ProducePacketName [15:20:22]name=ofd_packets/00187380 [15:20:22]NVStorageSaveData ofd_packets/00187380 [15:20:22]File name is /storage/ofd_packets/00187380 [15:20:22]Write 301 bytes [15:20:22]NVStorageSaveData done [15:20:22]OFDSenderStorePacket done [15:20:22]KKMCreateOFDPacket done [15:20:22]NVStorageSaveData kkm_last_timestamp [15:20:22]File name is /storage/kkm_last_timestamp [15:20:22]Write 4 bytes [15:20:22]NVStorageSaveData done [15:20:22]ExternCall_PrintAddStr [15:20:22]wPrintStart [15:20:22]Write to MH i2c: 01 00 00 43 0F 52 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 07 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 07 00 43 0F 00 00 00 00 00 FF 0F 67 [15:20:22]RasterBufferAndPrint [15:20:22]line Счет N : (1)412538 [15:20:22]line ИНН: 02508201610067 [15:20:22]line Контрольно-Кассовый Чек [15:20:22]line ПРОДАЖА [15:20:22]line ТРК (МРК, ГНК) : 32 [15:20:22]line Товар: 2710124130 [15:20:22]line Аи-92-К-2 [15:20:22]line 15.580 * 64.20 [15:20:22]line = 1000.24 [15:20:22]line НДС 12% НСП 1% [15:20:22]line > о реализуемом товаре [15:20:22]line ОКРУГЛЕНИЕ: -0.24 [15:20:22]line ИТОГО: 1000.00 [15:20:22]line Внесено: 1000.00 [15:20:22]line СДАЧА: 0.00 [15:20:22]line НСП 1% : 8.85 [15:20:22]line НДС 12% : 106.22 [15:20:22]line Наличными: 1000.00 [15:20:22]line Безнал.: 0.00 [15:20:22]line Место: АЗС № 92 "Партнер Нефть" [15:20:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:20:22]line СНО: Общий режим [15:20:22]line Чек 181 20.02.2025 15:20 [15:20:22]line Смена: 648 ФФД: 1.0 [15:20:22]line ЗНМ: 0300000118 [15:20:22]line РНМ: 0000000000091857 [15:20:22]line Версия ККМ: 001 [15:20:22]line ФМ: 0000000000871826 [15:20:22]line ФД: 187380 [15:20:22]line ФПД: 210738841974728 [15:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T152021&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187380&fm=210738841974728&tin=02508201610067®Number=0000000000091857&sum=100000 [15:20:22]OFD Sender: Processing packet 187380 [packets to send 49, broken 48] [15:20:22]ProducePacketName [15:20:22]name=ofd_packets/00187380 [15:20:22]OFD Sender: To server: pG, [15:20:22]CommunicateWithHost lk.salyk.kg:30040 [15:20:22]ConnectInit lk.salyk.kg [15:20:22]written 0, free lines is 4095 [15:20:22]Connected sock=10 [15:20:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 79 18 07 01 BF 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 35 48 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 DB 02 00 35 04 06 00 BF AA 75 D0 F7 C8 59 33 56 D0 F2 C1 82 5A [15:20:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F6 1A 47 00 0F 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 31 38 32 36 10 04 04 00 F4 DB 02 00 F4 03 04 00 86 EE B6 67 B6 04 01 00 00 81 A6 34 F7 7A A3 EF D0 [15:20:22]CommunicateWithHost err = 0 [15:20:22]CheckOFDResponse [15:20:22]1017 (14) - 77093643461234 [15:20:22]1041 (16) - 0000000000871826 [15:20:22]1040 (4) - 187380 [15:20:22]1012 (4) - 20.02.2025 08:57 [15:20:22]1206 (1) - 0 [15:20:22]OFD Sender: Remove packet 187380 [15:20:22]ProducePacketName [15:20:22]name=ofd_packets/00187380 [15:20:22]NVStorageDeleteData [15:20:22]Write to MH i2c: 01 00 00 6E 0F 7D [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 07 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 07 00 6E 0F 00 00 00 00 00 EB 0C 7B [15:20:22]RasterBufferAndPrint [15:20:22]line [15:20:22]line [15:20:22]line [15:20:22]line [15:20:22]line [15:20:22]written 0, free lines is 3317 [15:20:22]MH_Cut [15:20:22]Write to MH i2c: D1 01 00 75 0F 01 56 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: D1 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: D1 01 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: D1 01 00 75 0F 00 55 [15:20:22]Write to MH i2c: 01 00 00 76 0F 85 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:23]OFD Sender: No OFD packet to send [15:20:23]*** Cut start [15:20:23]*** Partial cut [15:20:23]*** CUTSNS_PIN = 1 [15:20:23]*** CUTSNS_PIN = 0 [15:20:23]*** Brake cut motor [15:20:24]Read from MH i2c: 01 [15:20:24]MH_I2C_Read... [15:20:24]*** Stop cut motor [15:20:24]*** Cut end [15:20:24]Read from MH i2c: 01 07 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: 01 07 00 76 0F 00 00 00 00 00 FF 0F 9A [15:20:24]process_action close_receipt done [15:20:24]requested_data is exist [15:20:24]produce_requested_data [15:20:24]requested_item fm.sn is exist - process it [15:20:24]wFMCommunicate request_size=4 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 11 00 00 [15:20:24]Write to MH i2c: E2 08 00 77 0F 80 11 00 00 00 00 00 00 00 [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 17 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 17 00 77 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [15:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:20:24]wFMCommunicate OK [15:20:24]requested_item fd.num is exist - process it [15:20:24]SAM_PROTO_GetFieldsCounters [15:20:24]wFMCommunicate request_size=4 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 13 00 00 [15:20:24]Write to MH i2c: E2 08 00 78 0F 80 13 00 00 00 00 00 00 03 [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 62 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 62 00 78 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F4 DB 02 00 0E 04 04 00 88 02 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 A3 [15:20:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F4 DB 02 00 0E 04 04 00 88 02 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 [15:20:24]wFMCommunicate OK [15:20:24]SAM_PROTO_GetFieldsCounters done [15:20:24]requested_item shift.num is exist - process it [15:20:24]requested_item shift.opened is exist - process it [15:20:24]req_shift_opened [15:20:24]FM_GetShiftState [15:20:24]SAM_PROTO_GetShiftState [15:20:24]wFMCommunicate request_size=4 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 13 01 00 [15:20:24]Write to MH i2c: E2 08 00 79 0F 80 13 01 00 00 00 00 00 05 [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 0E 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 0E 00 79 0F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 57 [15:20:24]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:20:24]wFMCommunicate OK [15:20:24]SAM_PROTO_GetShiftState done [15:20:24]FM_GetShiftState done [15:20:24]req_shift_opened done [15:20:24]requested_item shift.open_date is exist - process it [15:20:24]req_shift_open_date [15:20:24]req_shift_open_date done [15:20:24]produce_requested_data done [15:20:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187380,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:20:24]process_action_free close_receipt [15:20:24]json_value_free [15:20:24]json_value_free done [15:20:24]process_json_proto returns [15:20:24]Send response to host [15:20:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187380,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:20:24]free response buf [15:20:24]execute_script done [15:20:24]execute_script returns [15:20:24]free content buf [15:20:24]Sock 7.Close socket [15:20:24]Sock 7.Thread stoped [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:56]accept exits with 9 [15:28:56]New connection [15:28:56]New thread 3067276644 created [15:28:56]Thread 3067420004 joined [15:28:56]Waiting for new connection... [15:28:56] Sock 9.Parse request [15:28:56]Sock 9.Check first char [15:28:56]Sock 9.First char is OK [15:28:56]request: POST /json_proto HTTP/1.0 [15:28:56]Method: POST [15:28:56]URL: /json_proto [15:28:56]Method is POST - this is cgi request [15:28:56]url: /json_proto [15:28:56]query_string will be loaded in cgi processing [15:28:56]execute_cgi json_proto POST (null) [15:28:56]execute_cgi path=json_proto method=POST [15:28:56]POST find Content-Length [15:28:56]Host: 172.17.46.131:8080 [15:28:56]Content-Length: 682 [15:28:56]Content-Type: application/json [15:28:56] [15:28:56]POST finish read [15:28:56]Found Content-Length = 682 [15:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:28:56]execute_script... [15: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)412539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:28:56]POST & json_proto [15:28:56]process_json_proto [15:28:56]json parsed OK: [15:28:56]protocol is kg_v1.0 [15:28:56]action value=close_receipt [15:28:56]process_action close_receipt [15:28:56]cmd_close_receipt [15:28:56]MH_GetDate [15:28:56]Write to MH i2c: F0 00 00 7A 0F 78 [15:28:56]Write i2c OK [15:28:56]MH_I2C_Read... [15:28:56]Read from MH i2c: F0 [15:28:56]MH_I2C_Read... [15:28:56]Read from MH i2c: F0 09 00 [15:28:56]MH_I2C_Read... [15:28:56]Read from MH i2c: F0 09 00 7A 0F 00 39 4A B7 67 7E 41 4F 65 95 [15:28:56]GetLastDocTimeStamp 1740064821 [15:28:56]current date 1740065337 [15:28:56]FM_GetShiftState [15:28:56]SAM_PROTO_GetShiftState [15:28:56]wFMCommunicate request_size=4 [15:28:56]MH_SAM_APDU [15:28:56]CAPDU: 80 13 01 00 [15:28:56]Write to MH i2c: E2 08 00 7B 0F 80 13 01 00 00 00 00 00 07 [15:28:56]Write i2c OK [15:28:56]MH_I2C_Read... [15:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:56]Read from MH i2c: E2 [15:28:56]MH_I2C_Read... [15:28:56]Read from MH i2c: E2 0E 00 [15:28:56]MH_I2C_Read... [15:28:56]Read from MH i2c: E2 0E 00 7B 0F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 59 [15:28:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:28:56]wFMCommunicate OK [15:28:56]SAM_PROTO_GetShiftState done [15:28:56]FM_GetShiftState done [15:28:56]opened in 1740011697 [15:28:56]opened+sec_in_day 1740098097 [15:28:56]quantity*price = 100023 [15:28:56]sum+1 = 100025 [15:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 182 20.02.2025 15:28 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187381 ФПД: 154225695864145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T152857&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187381&fm=154225695864145&tin=02508201610067®Number=0000000000091857&sum=100000 [15:28:57]StoreToDocumentArchive [15:28:57]shift 648 fd 187381 [15:28:57]save to /storage/0648/doc_00187381 [15:28:57]save last doc name /storage/0648/doc_00187381 to /storage/kkm_last_doc_name [15:28:57]save OK [15:28:57]Clear old archive folders... [15:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:57]tlvbuf is 00E1BBC0 [15:28:57]SAM_PROTO_ClearQueue [15:28:57]wFMCommunicate request_size=4 [15:28:57]MH_SAM_APDU [15:28:57]CAPDU: 80 09 00 00 [15:28:57]Write to MH i2c: E2 08 00 88 0F 80 09 00 00 00 00 00 00 09 [15:28:57]Write i2c OK [15:28:57]MH_I2C_Read... [15:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:57]Read from MH i2c: E2 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 03 00 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 03 00 88 0F 00 90 00 0B [15:28:57]RAPDU: 90 00 [15:28:57]wFMCommunicate OK [15:28:57]SAM_PROTO_ClearQueue done [15:28:57]KKMCreateOFDPacket [15:28:57]OFDProtocolAddRootSTLVToBuf [15:28:57]FM_MakeSignedData [15:28:57]FM_MakeSignedData [15:28:57]SAM_PROTO_SignData [15:28:57]wFMCommunicate request_size=4 [15:28:57]MH_SAM_APDU [15:28:57]CAPDU: 80 0D 01 02 [15:28:57]Write to MH i2c: E2 08 00 89 0F 80 0D 01 02 00 00 00 00 11 [15:28:57]Write i2c OK [15:28:57]MH_I2C_Read... [15:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:57]Read from MH i2c: E2 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 03 00 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 03 00 89 0F 00 90 00 0C [15:28:57]RAPDU: 90 00 [15:28:57]wFMCommunicate OK [15:28:57]wFMCommunicate request_size=255 [15:28:57]MH_SAM_APDU [15: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 39 4A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DB 02 00 35 04 06 00 8C [15:28:57]Write to MH i2c: E2 02 01 8A 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 39 4A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DB 02 00 35 04 06 00 8C 00 00 4D [15:28:57]Write i2c OK [15:28:57]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 03 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 03 00 8A 0F 00 90 00 0D [15:28:58]RAPDU: 90 00 [15:28:58]wFMCommunicate OK [15:28:58]wFMCommunicate request_size=10 [15:28:58]MH_SAM_APDU [15:28:58]CAPDU: 80 0D 02 02 05 44 77 D1 35 51 [15:28:58]Write to MH i2c: E2 0D 00 8B 0F 80 0D 02 02 05 00 44 77 D1 35 51 00 00 30 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 03 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 03 00 8B 0F 00 90 00 0E [15:28:58]RAPDU: 90 00 [15:28:58]wFMCommunicate OK [15:28:58]wFMCommunicate request_size=4 [15:28:58]MH_SAM_APDU [15:28:58]CAPDU: 80 0D 03 02 [15:28:58]Write to MH i2c: E2 08 00 8C 0F 80 0D 03 02 00 00 00 00 16 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 0B 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 0B 00 8C 0F 00 D4 C6 F5 4B 05 EC 52 70 90 00 A4 [15:28:58]RAPDU: D4 C6 F5 4B 05 EC 52 70 90 00 [15:28:58]wFMCommunicate OK [15:28:58]SAM_PROTO_SignData done [15:28:58]FM_MakeSignedData done [15:28:58]CreateOFDProtocolMessage [15:28:58]wFMCommunicate request_size=4 [15:28:58]MH_SAM_APDU [15:28:58]CAPDU: 80 11 00 00 [15:28:58]Write to MH i2c: E2 08 00 8D 0F 80 11 00 00 00 00 00 00 16 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 17 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 17 00 8D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 69 [15:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:28:58]wFMCommunicate OK [15:28:58]CreateOFDProtocolMessage done [15:28:58]OFDSenderStorePacket 187381 [15:28:58]StoreOFDPacket docnum=187381 [15:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7A 1D 07 01 E1 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 39 4A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DB 02 00 35 04 06 00 8C 44 77 D1 35 51 D4 C6 F5 4B 05 EC 52 70 [15:28:58]CheckFolder [15:28:58]dirname=/storage/ofd_packets [15:28:58]CheckFolder done [15:28:58]ProducePacketName [15:28:58]name=ofd_packets/00187381 [15:28:58]NVStorageSaveData ofd_packets/00187381 [15:28:58]File name is /storage/ofd_packets/00187381 [15:28:58]Write 301 bytes [15:28:58]NVStorageSaveData done [15:28:58]OFDSenderStorePacket done [15:28:58]KKMCreateOFDPacket done [15:28:58]NVStorageSaveData kkm_last_timestamp [15:28:58]File name is /storage/kkm_last_timestamp [15:28:58]Write 4 bytes [15:28:58]NVStorageSaveData done [15:28:58]ExternCall_PrintAddStr [15:28:58]wPrintStart [15:28:58]Write to MH i2c: 01 00 00 8E 0F 9D [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: 01 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: 01 07 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: 01 07 00 8E 0F 00 00 00 00 00 FF 0F B2 [15:28:58]RasterBufferAndPrint [15:28:58]line Счет N : (1)412539 [15:28:58]line ИНН: 02508201610067 [15:28:58]line Контрольно-Кассовый Чек [15:28:58]line ПРОДАЖА [15:28:58]line ТРК (МРК, ГНК) : 32 [15:28:58]line Товар: 2710124130 [15:28:58]line Аи-92-К-2 [15:28:58]line 15.580 * 64.20 [15:28:58]line = 1000.24 [15:28:58]line НДС 12% НСП 1% [15:28:58]line > о реализуемом товаре [15:28:58]line ОКРУГЛЕНИЕ: -0.24 [15:28:58]line ИТОГО: 1000.00 [15:28:58]line Внесено: 1000.00 [15:28:58]line СДАЧА: 0.00 [15:28:58]line НСП 1% : 8.85 [15:28:58]line НДС 12% : 106.22 [15:28:58]line Наличными: 1000.00 [15:28:58]line Безнал.: 0.00 [15:28:58]line Место: АЗС № 92 "Партнер Нефть" [15:28:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:28:58]line СНО: Общий режим [15:28:58]line Чек 182 20.02.2025 15:28 [15:28:58]line Смена: 648 ФФД: 1.0 [15:28:58]line ЗНМ: 0300000118 [15:28:58]line РНМ: 0000000000091857 [15:28:58]line Версия ККМ: 001 [15:28:58]line ФМ: 0000000000871826 [15:28:58]line ФД: 187381 [15:28:58]line ФПД: 154225695864145 [15:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T152857&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187381&fm=154225695864145&tin=02508201610067®Number=0000000000091857&sum=100000 [15:28:58]OFD Sender: Processing packet 187381 [packets to send 49, broken 48] [15:28:58]ProducePacketName [15:28:58]name=ofd_packets/00187381 [15:28:58]OFD Sender: To server: pG, [15:28:58]CommunicateWithHost lk.salyk.kg:30040 [15:28:58]ConnectInit lk.salyk.kg [15:28:58]written 0, free lines is 4095 [15:28:58]Connected sock=10 [15: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 31 38 32 36 0F 01 00 00 7A 1D 07 01 E1 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 39 4A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DB 02 00 35 04 06 00 8C 44 77 D1 35 51 D4 C6 F5 4B 05 EC 52 70 [15:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9B 8D 47 00 DC 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DB 02 00 F4 03 04 00 8A F0 B6 67 B6 04 01 00 00 D5 26 AC 86 0B 0F 6D 98 [15:28:58]CommunicateWithHost err = 0 [15:28:58]CheckOFDResponse [15:28:58]1017 (14) - 77093643461234 [15:28:58]1041 (16) - 0000000000871826 [15:28:58]1040 (4) - 187381 [15:28:58]1012 (4) - 20.02.2025 09:06 [15:28:58]1206 (1) - 0 [15:28:58]OFD Sender: Remove packet 187381 [15:28:58]ProducePacketName [15:28:58]name=ofd_packets/00187381 [15:28:58]NVStorageDeleteData [15:28:58]Write to MH i2c: 01 00 00 B9 0F C8 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: 01 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: 01 07 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: 01 07 00 B9 0F 00 00 00 00 00 E4 0C BF [15:28:58]RasterBufferAndPrint [15:28:58]line [15:28:58]line [15:28:58]line [15:28:58]line [15:28:58]line [15:28:58]written 0, free lines is 3306 [15:28:58]MH_Cut [15:28:58]Write to MH i2c: D1 01 00 C0 0F 01 A1 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: D1 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: D1 01 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: D1 01 00 C0 0F 00 A0 [15:28:58]Write to MH i2c: 01 00 00 C1 0F D0 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:59]OFD Sender: No OFD packet to send [15:28:59]*** Cut start [15:28:59]*** Partial cut [15:28:59]*** CUTSNS_PIN = 1 [15:28:59]*** CUTSNS_PIN = 0 [15:29:00]*** Brake cut motor [15:29:00]Read from MH i2c: 01 [15:29:00]MH_I2C_Read... [15:29:00]*** Stop cut motor [15:29:00]*** Cut end [15:29:00]Read from MH i2c: 01 07 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: 01 07 00 C1 0F 00 00 00 00 00 FF 0F E5 [15:29:00]process_action close_receipt done [15:29:00]requested_data is exist [15:29:00]produce_requested_data [15:29:00]requested_item fm.sn is exist - process it [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 11 00 00 [15:29:00]Write to MH i2c: E2 08 00 C2 0F 80 11 00 00 00 00 00 00 4B [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 17 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 17 00 C2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [15:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:29:00]wFMCommunicate OK [15:29:00]requested_item fd.num is exist - process it [15:29:00]SAM_PROTO_GetFieldsCounters [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 13 00 00 [15:29:00]Write to MH i2c: E2 08 00 C3 0F 80 13 00 00 00 00 00 00 4E [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 62 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 62 00 C3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F5 DB 02 00 0E 04 04 00 88 02 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 F2 [15: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F5 DB 02 00 0E 04 04 00 88 02 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 [15:29:00]wFMCommunicate OK [15:29:00]SAM_PROTO_GetFieldsCounters done [15:29:00]requested_item shift.num is exist - process it [15:29:00]requested_item shift.opened is exist - process it [15:29:00]req_shift_opened [15:29:00]FM_GetShiftState [15:29:00]SAM_PROTO_GetShiftState [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 13 01 00 [15:29:00]Write to MH i2c: E2 08 00 C4 0F 80 13 01 00 00 00 00 00 50 [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 0E 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 0E 00 C4 0F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A2 [15:29:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:29:00]wFMCommunicate OK [15:29:00]SAM_PROTO_GetShiftState done [15:29:00]FM_GetShiftState done [15:29:00]req_shift_opened done [15:29:00]requested_item shift.open_date is exist - process it [15:29:00]req_shift_open_date [15:29:00]req_shift_open_date done [15:29:00]produce_requested_data done [15:29:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187381,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:29:00]process_action_free close_receipt [15:29:00]json_value_free [15:29:00]json_value_free done [15:29:00]process_json_proto returns [15:29:00]Send response to host [15:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187381,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:29:00]free response buf [15:29:00]execute_script done [15:29:00]execute_script returns [15:29:00]free content buf [15:29:00]Sock 9.Close socket [15:29:00]Sock 9.Thread stoped [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:20]accept exits with 7 [15:32:20]New connection [15:32:20]New thread 3067420004 created [15:32:20]Thread 3067276644 joined [15:32:20]Waiting for new connection... [15:32:20] Sock 7.Parse request [15:32:20]Sock 7.Check first char [15:32:20]Sock 7.First char is OK [15:32:20]request: POST /json_proto HTTP/1.0 [15:32:20]Method: POST [15:32:20]URL: /json_proto [15:32:20]Method is POST - this is cgi request [15:32:20]url: /json_proto [15:32:20]query_string will be loaded in cgi processing [15:32:20]execute_cgi json_proto POST (null) [15:32:20]execute_cgi path=json_proto method=POST [15:32:20]POST find Content-Length [15:32:20]Host: 172.17.46.131:8080 [15:32:20]Content-Length: 677 [15:32:20]Content-Type: application/json [15:32:20] [15:32:20]POST finish read [15:32:20]Found Content-Length = 677 [15:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:20]execute_script... [15:32: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)412541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:20]POST & json_proto [15:32:20]process_json_proto [15:32:20]json parsed OK: [15:32:20]protocol is kg_v1.0 [15:32:20]action value=close_receipt [15:32:20]process_action close_receipt [15:32:20]cmd_close_receipt [15:32:20]MH_GetDate [15:32:20]Write to MH i2c: F0 00 00 C5 0F C3 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: F0 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: F0 09 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: F0 09 00 C5 0F 00 05 4B B7 67 7E 41 4F 65 AD [15:32:20]GetLastDocTimeStamp 1740065337 [15:32:20]current date 1740065541 [15:32:20]FM_GetShiftState [15:32:20]SAM_PROTO_GetShiftState [15:32:20]wFMCommunicate request_size=4 [15:32:20]MH_SAM_APDU [15:32:20]CAPDU: 80 13 01 00 [15:32:20]Write to MH i2c: E2 08 00 C6 0F 80 13 01 00 00 00 00 00 52 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:20]Read from MH i2c: E2 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 0E 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 0E 00 C6 0F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A4 [15:32:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:32:20]wFMCommunicate OK [15:32:20]SAM_PROTO_GetShiftState done [15:32:20]FM_GetShiftState done [15:32:20]opened in 1740011697 [15:32:20]opened+sec_in_day 1740098097 [15:32:20]quantity*price = 40060 [15:32:20]sum+1 = 40062 [15:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 183 20.02.2025 15:32 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187382 ФПД: 80088606647729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153221&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187382&fm=80088606647729&tin=02508201610067®Number=0000000000091857&sum=40000 [15:32:21]StoreToDocumentArchive [15:32:21]shift 648 fd 187382 [15:32:21]save to /storage/0648/doc_00187382 [15:32:21]save last doc name /storage/0648/doc_00187382 to /storage/kkm_last_doc_name [15:32:21]save OK [15:32:21]Clear old archive folders... [15:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:21]tlvbuf is 00E5B0C0 [15:32:21]SAM_PROTO_ClearQueue [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 09 00 00 [15:32:21]Write to MH i2c: E2 08 00 D3 0F 80 09 00 00 00 00 00 00 54 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 D3 0F 00 90 00 56 [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_ClearQueue done [15:32:21]KKMCreateOFDPacket [15:32:21]OFDProtocolAddRootSTLVToBuf [15:32:21]FM_MakeSignedData [15:32:21]FM_MakeSignedData [15:32:21]SAM_PROTO_SignData [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 01 02 [15:32:21]Write to MH i2c: E2 08 00 D4 0F 80 0D 01 02 00 00 00 00 5C [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 D4 0F 00 90 00 57 [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=255 [15:32:21]MH_SAM_APDU [15:32: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 B7 00 00 00 F4 03 04 00 05 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DB 02 00 35 04 06 00 48 [15:32:21]Write to MH i2c: E2 02 01 D5 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 B7 00 00 00 F4 03 04 00 05 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DB 02 00 35 04 06 00 48 00 00 B9 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 D5 0F 00 90 00 58 [15:32:22]RAPDU: 90 00 [15:32:22]wFMCommunicate OK [15:32:22]wFMCommunicate request_size=10 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 0D 02 02 05 D7 14 F3 25 B1 [15:32:22]Write to MH i2c: E2 0D 00 D6 0F 80 0D 02 02 05 00 D7 14 F3 25 B1 00 00 1D [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 D6 0F 00 90 00 59 [15:32:22]RAPDU: 90 00 [15:32:22]wFMCommunicate OK [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 0D 03 02 [15:32:22]Write to MH i2c: E2 08 00 D7 0F 80 0D 03 02 00 00 00 00 61 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 0B 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 0B 00 D7 0F 00 4B 86 23 20 BB CA AD 1A 90 00 C2 [15:32:22]RAPDU: 4B 86 23 20 BB CA AD 1A 90 00 [15:32:22]wFMCommunicate OK [15:32:22]SAM_PROTO_SignData done [15:32:22]FM_MakeSignedData done [15:32:22]CreateOFDProtocolMessage [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 11 00 00 [15:32:22]Write to MH i2c: E2 08 00 D8 0F 80 11 00 00 00 00 00 00 61 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 D8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B4 [15:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:32:22]wFMCommunicate OK [15:32:22]CreateOFDProtocolMessage done [15:32:22]OFDSenderStorePacket 187382 [15:32:22]StoreOFDPacket docnum=187382 [15:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F 38 07 01 18 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 B7 00 00 00 F4 03 04 00 05 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DB 02 00 35 04 06 00 48 D7 14 F3 25 B1 4B 86 23 20 BB CA AD 1A [15:32:22]CheckFolder [15:32:22]dirname=/storage/ofd_packets [15:32:22]CheckFolder done [15:32:22]ProducePacketName [15:32:22]name=ofd_packets/00187382 [15:32:22]NVStorageSaveData ofd_packets/00187382 [15:32:22]File name is /storage/ofd_packets/00187382 [15:32:22]Write 301 bytes [15:32:22]NVStorageSaveData done [15:32:22]OFDSenderStorePacket done [15:32:22]KKMCreateOFDPacket done [15:32:22]NVStorageSaveData kkm_last_timestamp [15:32:22]File name is /storage/kkm_last_timestamp [15:32:22]Write 4 bytes [15:32:22]NVStorageSaveData done [15:32:22]ExternCall_PrintAddStr [15:32:22]wPrintStart [15:32:22]Write to MH i2c: 01 00 00 D9 0F E8 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 D9 0F 00 00 00 00 00 FF 0F FD [15:32:22]RasterBufferAndPrint [15:32:22]line Счет N : (1)412541 [15:32:22]line ИНН: 02508201610067 [15:32:22]line Контрольно-Кассовый Чек [15:32:22]line ПРОДАЖА [15:32:22]line ТРК (МРК, ГНК) : 32 [15:32:22]line Товар: 2710124130 [15:32:22]line Аи-92-К-2 [15:32:22]line 6.240 * 64.20 [15:32:22]line = 400.61 [15:32:22]line НДС 12% НСП 1% [15:32:22]line > о реализуемом товаре [15:32:22]line ОКРУГЛЕНИЕ: -0.61 [15:32:22]line ИТОГО: 400.00 [15:32:22]line Внесено: 400.00 [15:32:22]line СДАЧА: 0.00 [15:32:22]line НСП 1% : 3.54 [15:32:22]line НДС 12% : 42.54 [15:32:22]line Наличными: 400.00 [15:32:22]line Безнал.: 0.00 [15:32:22]line Место: АЗС № 92 "Партнер Нефть" [15:32:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:32:22]line СНО: Общий режим [15:32:22]line Чек 183 20.02.2025 15:32 [15:32:22]line Смена: 648 ФФД: 1.0 [15:32:22]line ЗНМ: 0300000118 [15:32:22]line РНМ: 0000000000091857 [15:32:22]line Версия ККМ: 001 [15:32:22]line ФМ: 0000000000871826 [15:32:22]line ФД: 187382 [15:32:22]line ФПД: 80088606647729 [15:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153221&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187382&fm=80088606647729&tin=02508201610067®Number=0000000000091857&sum=40000 [15:32:22]OFD Sender: Processing packet 187382 [packets to send 49, broken 48] [15:32:22]ProducePacketName [15:32:22]name=ofd_packets/00187382 [15:32:22]OFD Sender: To server: pG, [15:32:22]CommunicateWithHost lk.salyk.kg:30040 [15:32:22]ConnectInit lk.salyk.kg [15:32:22]written 0, free lines is 4095 [15:32:22]Connected sock=10 [15:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F 38 07 01 18 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 B7 00 00 00 F4 03 04 00 05 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DB 02 00 35 04 06 00 48 D7 14 F3 25 B1 4B 86 23 20 BB CA AD 1A [15:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F2 8B 47 00 B2 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 31 38 32 36 10 04 04 00 F6 DB 02 00 F4 03 04 00 56 F1 B6 67 B6 04 01 00 00 73 C0 F1 03 C0 99 85 D2 [15:32:23]CommunicateWithHost err = 0 [15:32:23]CheckOFDResponse [15:32:23]1017 (14) - 77093643461234 [15:32:23]1041 (16) - 0000000000871826 [15:32:23]1040 (4) - 187382 [15:32:23]1012 (4) - 20.02.2025 09:09 [15:32:23]1206 (1) - 0 [15:32:23]OFD Sender: Remove packet 187382 [15:32:23]ProducePacketName [15:32:23]name=ofd_packets/00187382 [15:32:23]NVStorageDeleteData [15:32:23]Write to MH i2c: 01 00 00 04 10 14 [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: 01 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: 01 07 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: 01 07 00 04 10 00 00 00 00 00 E3 0C 0A [15:32:23]RasterBufferAndPrint [15:32:23]line [15:32:23]line [15:32:23]line [15:32:23]line [15:32:23]line [15:32:23]written 0, free lines is 3305 [15:32:23]MH_Cut [15:32:23]Write to MH i2c: D1 01 00 0B 10 01 ED [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: D1 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: D1 01 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: D1 01 00 0B 10 00 EC [15:32:23]Write to MH i2c: 01 00 00 0C 10 1C [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]OFD Sender: No OFD packet to send [15:32:23]*** Cut start [15:32:23]*** Partial cut [15:32:23]*** CUTSNS_PIN = 1 [15:32:23]*** CUTSNS_PIN = 0 [15:32:24]*** Brake cut motor [15:32:24]Read from MH i2c: 01 [15:32:24]MH_I2C_Read... [15:32:24]*** Stop cut motor [15:32:24]*** Cut end [15:32:24]Read from MH i2c: 01 07 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: 01 07 00 0C 10 00 00 00 00 00 FF 0F 31 [15:32:24]process_action close_receipt done [15:32:24]requested_data is exist [15:32:24]produce_requested_data [15:32:24]requested_item fm.sn is exist - process it [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 11 00 00 [15:32:24]Write to MH i2c: E2 08 00 0D 10 80 11 00 00 00 00 00 00 97 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 17 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 17 00 0D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [15:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:32:24]wFMCommunicate OK [15:32:24]requested_item fd.num is exist - process it [15:32:24]SAM_PROTO_GetFieldsCounters [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 13 00 00 [15:32:24]Write to MH i2c: E2 08 00 0E 10 80 13 00 00 00 00 00 00 9A [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 62 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 62 00 0E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F6 DB 02 00 0E 04 04 00 88 02 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 42 [15:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F6 DB 02 00 0E 04 04 00 88 02 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 [15:32:24]wFMCommunicate OK [15:32:24]SAM_PROTO_GetFieldsCounters done [15:32:24]requested_item shift.num is exist - process it [15:32:24]requested_item shift.opened is exist - process it [15:32:24]req_shift_opened [15:32:24]FM_GetShiftState [15:32:24]SAM_PROTO_GetShiftState [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 13 01 00 [15:32:24]Write to MH i2c: E2 08 00 0F 10 80 13 01 00 00 00 00 00 9C [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 0E 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 0E 00 0F 10 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EE [15:32:24]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:32:24]wFMCommunicate OK [15:32:24]SAM_PROTO_GetShiftState done [15:32:24]FM_GetShiftState done [15:32:24]req_shift_opened done [15:32:24]requested_item shift.open_date is exist - process it [15:32:24]req_shift_open_date [15:32:24]req_shift_open_date done [15:32:24]produce_requested_data done [15:32:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187382,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:32:24]process_action_free close_receipt [15:32:24]json_value_free [15:32:24]json_value_free done [15:32:24]process_json_proto returns [15:32:24]Send response to host [15:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187382,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:32:24]free response buf [15:32:24]execute_script done [15:32:24]execute_script returns [15:32:24]free content buf [15:32:24]Sock 7.Close socket [15:32:24]Sock 7.Thread stoped [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:41]accept exits with 9 [15:32:41]New connection [15:32:41]New thread 3067276644 created [15:32:41]Thread 3067420004 joined [15:32:41]Waiting for new connection... [15:32:41] Sock 9.Parse request [15:32:41]Sock 9.Check first char [15:32:41]Sock 9.First char is OK [15:32:41]request: POST /json_proto HTTP/1.0 [15:32:41]Method: POST [15:32:41]URL: /json_proto [15:32:41]Method is POST - this is cgi request [15:32:41]url: /json_proto [15:32:41]query_string will be loaded in cgi processing [15:32:41]execute_cgi json_proto POST (null) [15:32:41]execute_cgi path=json_proto method=POST [15:32:41]POST find Content-Length [15:32:41]Host: 172.17.46.131:8080 [15:32:41]Content-Length: 799 [15:32:41]Content-Type: application/json [15:32:41] [15:32:41]POST finish read [15:32:41]Found Content-Length = 799 [15:32:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:41]execute_script... [15:32: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)412540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:41]POST & json_proto [15:32:41]process_json_proto [15:32:41]json parsed OK: [15:32:41]protocol is kg_v1.0 [15:32:41]action value=close_receipt [15:32:41]process_action close_receipt [15:32:41]cmd_close_receipt [15:32:41]MH_GetDate [15:32:41]Write to MH i2c: F0 00 00 10 10 0F [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: F0 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: F0 09 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: F0 09 00 10 10 00 1A 4B B7 67 7E 41 4F 65 0E [15:32:41]GetLastDocTimeStamp 1740065541 [15:32:41]current date 1740065562 [15:32:41]FM_GetShiftState [15:32:41]SAM_PROTO_GetShiftState [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 13 01 00 [15:32:41]Write to MH i2c: E2 08 00 11 10 80 13 01 00 00 00 00 00 9E [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 0E 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 0E 00 11 10 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F0 [15:32:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:32:41]wFMCommunicate OK [15:32:41]SAM_PROTO_GetShiftState done [15:32:41]FM_GetShiftState done [15:32:41]opened in 1740011697 [15:32:41]opened+sec_in_day 1740098097 [15:32:41]quantity*price = 300055 [15:32:41]sum+1 = 300057 [15:32:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 184 20.02.2025 15:32 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187383 ФПД: 255880640660533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153242&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187383&fm=255880640660533&tin=02508201610067®Number=0000000000091857&sum=300056 [15:32:42]StoreToDocumentArchive [15:32:42]shift 648 fd 187383 [15:32:42]save to /storage/0648/doc_00187383 [15:32:42]save last doc name /storage/0648/doc_00187383 to /storage/kkm_last_doc_name [15:32:42]save OK [15:32:42]Clear old archive folders... [15:32:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:32:42]tlvbuf is B6F1A380 [15:32:42]SAM_PROTO_ClearQueue [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 09 00 00 [15:32:42]Write to MH i2c: E2 08 00 1E 10 80 09 00 00 00 00 00 00 A0 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 1E 10 00 90 00 A2 [15:32:42]RAPDU: 90 00 [15:32:42]wFMCommunicate OK [15:32:42]SAM_PROTO_ClearQueue done [15:32:42]KKMCreateOFDPacket [15:32:42]OFDProtocolAddRootSTLVToBuf [15:32:42]FM_MakeSignedData [15:32:42]FM_MakeSignedData [15:32:42]SAM_PROTO_SignData [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 0D 01 02 [15:32:42]Write to MH i2c: E2 08 00 1F 10 80 0D 01 02 00 00 00 00 A8 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:42]Read from MH i2c: E2 03 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 1F 10 00 90 00 A3 [15:32:42]RAPDU: 90 00 [15:32:42]wFMCommunicate OK [15:32:42]wFMCommunicate request_size=255 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 1A 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DB 02 00 35 04 06 00 E8 B8 DA B1 [15:32:42]Write to MH i2c: E2 02 01 20 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 1A 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DB 02 00 35 04 06 00 E8 B8 DA B1 00 00 C6 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 20 10 00 90 00 A4 [15:32:42]RAPDU: 90 00 [15:32:42]wFMCommunicate OK [15:32:42]wFMCommunicate request_size=7 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 0D 02 02 02 04 35 [15:32:42]Write to MH i2c: E2 0A 00 21 10 80 0D 02 02 02 00 04 35 00 00 E8 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 03 00 21 10 00 90 00 A5 [15:32:42]RAPDU: 90 00 [15:32:42]wFMCommunicate OK [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 0D 03 02 [15:32:42]Write to MH i2c: E2 08 00 22 10 80 0D 03 02 00 00 00 00 AD [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 0B 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 0B 00 22 10 00 AB 83 DE 16 EA 37 C3 80 90 00 34 [15:32:42]RAPDU: AB 83 DE 16 EA 37 C3 80 90 00 [15:32:42]wFMCommunicate OK [15:32:42]SAM_PROTO_SignData done [15:32:42]FM_MakeSignedData done [15:32:42]CreateOFDProtocolMessage [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 11 00 00 [15:32:42]Write to MH i2c: E2 08 00 23 10 80 11 00 00 00 00 00 00 AD [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:43]Read from MH i2c: E2 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 17 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: E2 17 00 23 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 00 [15:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:32:43]wFMCommunicate OK [15:32:43]CreateOFDProtocolMessage done [15:32:43]OFDSenderStorePacket 187383 [15:32:43]StoreOFDPacket docnum=187383 [15:32:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F0 EC 04 01 43 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 1A 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DB 02 00 35 04 06 00 E8 B8 DA B1 04 35 AB 83 DE 16 EA 37 C3 80 [15:32:43]CheckFolder [15:32:43]dirname=/storage/ofd_packets [15:32:43]CheckFolder done [15:32:43]ProducePacketName [15:32:43]name=ofd_packets/00187383 [15:32:43]NVStorageSaveData ofd_packets/00187383 [15:32:43]File name is /storage/ofd_packets/00187383 [15:32:43]Write 298 bytes [15:32:43]NVStorageSaveData done [15:32:43]OFDSenderStorePacket done [15:32:43]KKMCreateOFDPacket done [15:32:43]NVStorageSaveData kkm_last_timestamp [15:32:43]File name is /storage/kkm_last_timestamp [15:32:43]Write 4 bytes [15:32:43]NVStorageSaveData done [15:32:43]ExternCall_PrintAddStr [15:32:43]wPrintStart [15:32:43]Write to MH i2c: 01 00 00 24 10 34 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 07 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 07 00 24 10 00 00 00 00 00 FF 0F 49 [15:32:43]RasterBufferAndPrint [15:32:43]line Счет N : (1)412540 [15:32:43]line ИНН: 02508201610067 [15:32:43]line Контрольно-Кассовый Чек [15:32:43]line ПРОДАЖА [15:32:43]line ТРК (МРК, ГНК) : 5 [15:32:43]line Товар: 2710194210 [15:32:43]line ДТ-К-5 [15:32:43]line 41.330 * 72.60 [15:32:43]line = 3000.56 [15:32:43]line НДС 12% НСП 1% [15:32:43]line > о реализуемом товаре [15:32:43]line ИТОГО: 3000.56 [15:32:43]line НСП 1% : 26.55 [15:32:43]line НДС 12% : 318.64 [15:32:43]line Наличными: 0.00 [15:32:43]line Безнал.: 3000.56 [15:32:43]line Место: АЗС № 92 "Партнер Нефть" [15:32:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:32:43]line СНО: Общий режим [15:32:43]line Чек 184 20.02.2025 15:32 [15:32:43]line Смена: 648 ФФД: 1.0 [15:32:43]line ЗНМ: 0300000118 [15:32:43]line РНМ: 0000000000091857 [15:32:43]line Версия ККМ: 001 [15:32:43]line Платежная система: O! деньги [15:32:43]line ФМ: 0000000000871826 [15:32:43]line ФД: 187383 [15:32:43]line ФПД: 255880640660533 [15:32:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153242&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187383&fm=255880640660533&tin=02508201610067®Number=0000000000091857&sum=300056 [15:32:43]OFD Sender: Processing packet 187383 [packets to send 49, broken 48] [15:32:43]ProducePacketName [15:32:43]name=ofd_packets/00187383 [15:32:43]OFD Sender: To server: pG, [15:32:43]CommunicateWithHost lk.salyk.kg:30040 [15:32:43]ConnectInit lk.salyk.kg [15:32:43]written 0, free lines is 4095 [15:32:43]Connected sock=10 [15:32:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F0 EC 04 01 43 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 1A 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DB 02 00 35 04 06 00 E8 B8 DA B1 04 35 AB 83 DE 16 EA 37 C3 80 [15:32:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BA E4 47 00 AC 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 31 38 32 36 10 04 04 00 F7 DB 02 00 F4 03 04 00 6B F1 B6 67 B6 04 01 00 00 2A D0 26 B4 0F 3A 63 9E [15:32:43]CommunicateWithHost err = 0 [15:32:43]CheckOFDResponse [15:32:43]1017 (14) - 77093643461234 [15:32:43]1041 (16) - 0000000000871826 [15:32:43]1040 (4) - 187383 [15:32:43]1012 (4) - 20.02.2025 09:10 [15:32:43]1206 (1) - 0 [15:32:43]OFD Sender: Remove packet 187383 [15:32:43]ProducePacketName [15:32:43]name=ofd_packets/00187383 [15:32:43]NVStorageDeleteData [15:32:43]Write to MH i2c: 01 00 00 4E 10 5E [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 07 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: 01 07 00 4E 10 00 00 00 00 00 09 0D 7B [15:32:43]RasterBufferAndPrint [15:32:43]line [15:32:43]line [15:32:43]line [15:32:43]line [15:32:43]line [15:32:43]written 0, free lines is 3344 [15:32:43]MH_Cut [15:32:43]Write to MH i2c: D1 01 00 55 10 01 37 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: D1 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: D1 01 00 [15:32:43]MH_I2C_Read... [15:32:43]Read from MH i2c: D1 01 00 55 10 00 36 [15:32:43]Write to MH i2c: 01 00 00 56 10 66 [15:32:43]Write i2c OK [15:32:43]MH_I2C_Read... [15:32:44]OFD Sender: No OFD packet to send [15:32:44]*** Cut start [15:32:44]*** Partial cut [15:32:44]*** CUTSNS_PIN = 1 [15:32:44]*** CUTSNS_PIN = 0 [15:32:44]*** Brake cut motor [15:32:45]Read from MH i2c: 01 [15:32:45]MH_I2C_Read... [15:32:45]*** Stop cut motor [15:32:45]*** Cut end [15:32:45]Read from MH i2c: 01 07 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: 01 07 00 56 10 00 00 00 00 00 FF 0F 7B [15:32:45]process_action close_receipt done [15:32:45]requested_data is exist [15:32:45]produce_requested_data [15:32:45]requested_item fm.sn is exist - process it [15:32:45]wFMCommunicate request_size=4 [15:32:45]MH_SAM_APDU [15:32:45]CAPDU: 80 11 00 00 [15:32:45]Write to MH i2c: E2 08 00 57 10 80 11 00 00 00 00 00 00 E1 [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:45]Read from MH i2c: E2 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 17 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 17 00 57 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 34 [15:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:32:45]wFMCommunicate OK [15:32:45]requested_item fd.num is exist - process it [15:32:45]SAM_PROTO_GetFieldsCounters [15:32:45]wFMCommunicate request_size=4 [15:32:45]MH_SAM_APDU [15:32:45]CAPDU: 80 13 00 00 [15:32:45]Write to MH i2c: E2 08 00 58 10 80 13 00 00 00 00 00 00 E4 [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:45]Read from MH i2c: E2 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 62 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 62 00 58 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F7 DB 02 00 0E 04 04 00 88 02 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 90 [15:32:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F7 DB 02 00 0E 04 04 00 88 02 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 [15:32:45]wFMCommunicate OK [15:32:45]SAM_PROTO_GetFieldsCounters done [15:32:45]requested_item shift.num is exist - process it [15:32:45]requested_item shift.opened is exist - process it [15:32:45]req_shift_opened [15:32:45]FM_GetShiftState [15:32:45]SAM_PROTO_GetShiftState [15:32:45]wFMCommunicate request_size=4 [15:32:45]MH_SAM_APDU [15:32:45]CAPDU: 80 13 01 00 [15:32:45]Write to MH i2c: E2 08 00 59 10 80 13 01 00 00 00 00 00 E6 [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:45]Read from MH i2c: E2 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 0E 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 0E 00 59 10 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 38 [15:32:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:32:45]wFMCommunicate OK [15:32:45]SAM_PROTO_GetShiftState done [15:32:45]FM_GetShiftState done [15:32:45]req_shift_opened done [15:32:45]requested_item shift.open_date is exist - process it [15:32:45]req_shift_open_date [15:32:45]req_shift_open_date done [15:32:45]produce_requested_data done [15:32:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187383,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:32:45]process_action_free close_receipt [15:32:45]json_value_free [15:32:45]json_value_free done [15:32:45]process_json_proto returns [15:32:45]Send response to host [15:32:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187383,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:32:45]free response buf [15:32:45]execute_script done [15:32:45]execute_script returns [15:32:45]free content buf [15:32:45]Sock 9.Close socket [15:32:45]Sock 9.Thread stoped [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:12]accept exits with 7 [15:33:12]New connection [15:33:12]New thread 3067420004 created [15:33:12]Thread 3067276644 joined [15:33:12]Waiting for new connection... [15:33:12] Sock 7.Parse request [15:33:12]Sock 7.Check first char [15:33:12]Sock 7.First char is OK [15:33:12]request: POST /json_proto HTTP/1.0 [15:33:12]Method: POST [15:33:12]URL: /json_proto [15:33:12]Method is POST - this is cgi request [15:33:12]url: /json_proto [15:33:12]query_string will be loaded in cgi processing [15:33:12]execute_cgi json_proto POST (null) [15:33:12]execute_cgi path=json_proto method=POST [15:33:12]POST find Content-Length [15:33:12]Host: 172.17.46.131:8080 [15:33:12]Content-Length: 800 [15:33:12]Content-Type: application/json [15:33:12] [15:33:12]POST finish read [15:33:12]Found Content-Length = 800 [15:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2109454", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:12]execute_script... [15:33: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)412542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2109454", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:12]POST & json_proto [15:33:12]process_json_proto [15:33:12]json parsed OK: [15:33:12]protocol is kg_v1.0 [15:33:12]action value=close_receipt [15:33:12]process_action close_receipt [15:33:12]cmd_close_receipt [15:33:12]MH_GetDate [15:33:12]Write to MH i2c: F0 00 00 5A 10 59 [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: F0 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: F0 09 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: F0 09 00 5A 10 00 39 4B B7 67 7E 41 4F 65 77 [15:33:12]GetLastDocTimeStamp 1740065562 [15:33:12]current date 1740065593 [15:33:12]FM_GetShiftState [15:33:12]SAM_PROTO_GetShiftState [15:33:12]wFMCommunicate request_size=4 [15:33:12]MH_SAM_APDU [15:33:12]CAPDU: 80 13 01 00 [15:33:12]Write to MH i2c: E2 08 00 5B 10 80 13 01 00 00 00 00 00 E8 [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:12]Read from MH i2c: E2 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 0E 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 0E 00 5B 10 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3A [15:33:12]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:33:12]wFMCommunicate OK [15:33:12]SAM_PROTO_GetShiftState done [15:33:12]FM_GetShiftState done [15:33:12]opened in 1740011697 [15:33:12]opened+sec_in_day 1740098097 [15:33:12]quantity*price = 0 [15:33:12]sum+1 = 1 [15:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 185 20.02.2025 15:33 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 2109454 ФМ: 0000000000871826 ФД: 187384 ФПД: 70765743143670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153313&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187384&fm=70765743143670&tin=02508201610067®Number=0000000000091857&sum=0 [15:33:13]StoreToDocumentArchive [15:33:13]shift 648 fd 187384 [15:33:13]save to /storage/0648/doc_00187384 [15:33:13]save last doc name /storage/0648/doc_00187384 to /storage/kkm_last_doc_name [15:33:13]save OK [15:33:13]Clear old archive folders... [15:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:13]tlvbuf is 00E1BBF0 [15:33:13]SAM_PROTO_ClearQueue [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 09 00 00 [15:33:13]Write to MH i2c: E2 08 00 68 10 80 09 00 00 00 00 00 00 EA [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 68 10 00 90 00 EC [15:33:13]RAPDU: 90 00 [15:33:13]wFMCommunicate OK [15:33:13]SAM_PROTO_ClearQueue done [15:33:13]KKMCreateOFDPacket [15:33:13]OFDProtocolAddRootSTLVToBuf [15:33:13]FM_MakeSignedData [15:33:13]FM_MakeSignedData [15:33:13]SAM_PROTO_SignData [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 0D 01 02 [15:33:13]Write to MH i2c: E2 08 00 69 10 80 0D 01 02 00 00 00 00 F2 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 69 10 00 90 00 ED [15:33:13]RAPDU: 90 00 [15:33:13]wFMCommunicate OK [15:33:13]wFMCommunicate request_size=255 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 39 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DB 02 00 35 04 06 00 40 [15:33:13]Write to MH i2c: E2 02 01 6A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 39 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DB 02 00 35 04 06 00 40 00 00 6D [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 6A 10 00 90 00 EE [15:33:13]RAPDU: 90 00 [15:33:13]wFMCommunicate OK [15:33:13]wFMCommunicate request_size=10 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 0D 02 02 05 5C 6E FB 7A F6 [15:33:13]Write to MH i2c: E2 0D 00 6B 10 80 0D 02 02 05 00 5C 6E FB 7A F6 00 00 34 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 6B 10 00 90 00 EF [15:33:13]RAPDU: 90 00 [15:33:13]wFMCommunicate OK [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 0D 03 02 [15:33:13]Write to MH i2c: E2 08 00 6C 10 80 0D 03 02 00 00 00 00 F7 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 0B 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 0B 00 6C 10 00 D7 94 9C ED 2F 48 10 B1 90 00 24 [15:33:13]RAPDU: D7 94 9C ED 2F 48 10 B1 90 00 [15:33:13]wFMCommunicate OK [15:33:13]SAM_PROTO_SignData done [15:33:13]FM_MakeSignedData done [15:33:13]CreateOFDProtocolMessage [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 11 00 00 [15:33:13]Write to MH i2c: E2 08 00 6D 10 80 11 00 00 00 00 00 00 F7 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 17 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 17 00 6D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4A [15:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:33:13]wFMCommunicate OK [15:33:13]CreateOFDProtocolMessage done [15:33:13]OFDSenderStorePacket 187384 [15:33:13]StoreOFDPacket docnum=187384 [15:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 0F 07 01 43 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 39 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DB 02 00 35 04 06 00 40 5C 6E FB 7A F6 D7 94 9C ED 2F 48 10 B1 [15:33:13]CheckFolder [15:33:13]dirname=/storage/ofd_packets [15:33:13]CheckFolder done [15:33:13]ProducePacketName [15:33:13]name=ofd_packets/00187384 [15:33:13]NVStorageSaveData ofd_packets/00187384 [15:33:13]File name is /storage/ofd_packets/00187384 [15:33:13]Write 301 bytes [15:33:13]NVStorageSaveData done [15:33:13]OFDSenderStorePacket done [15:33:13]KKMCreateOFDPacket done [15:33:13]NVStorageSaveData kkm_last_timestamp [15:33:13]File name is /storage/kkm_last_timestamp [15:33:13]Write 4 bytes [15:33:13]NVStorageSaveData done [15:33:13]ExternCall_PrintAddStr [15:33:13]wPrintStart [15:33:13]Write to MH i2c: 01 00 00 6E 10 7E [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 07 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 07 00 6E 10 00 00 00 00 00 FF 0F 93 [15:33:13]RasterBufferAndPrint [15:33:13]line Счет N : (1)412542 [15:33:13]line ИНН: 02508201610067 [15:33:13]line Контрольно-Кассовый Чек [15:33:13]line ПРОДАЖА [15:33:13]line ТРК (МРК, ГНК) : 23 [15:33:13]line Товар: 2710124500 [15:33:13]line Аи-95-К-5 [15:33:13]line 20.000 * 0.00 [15:33:13]line = 0.00 [15:33:13]line НДС 12% НСП 1% [15:33:13]line > о реализуемом товаре [15:33:13]line ИТОГО: 0.00 [15:33:13]line НСП 1% : 0.00 [15:33:13]line НДС 12% : 0.00 [15:33:13]line Наличными: 0.00 [15:33:13]line Безнал.: 0.00 [15:33:13]line Место: АЗС № 92 "Партнер Нефть" [15:33:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:33:13]line СНО: Общий режим [15:33:13]line Чек 185 20.02.2025 15:33 [15:33:13]line Смена: 648 ФФД: 1.0 [15:33:13]line ЗНМ: 0300000118 [15:33:13]line РНМ: 0000000000091857 [15:33:13]line Версия ККМ: 001 [15:33:13]line Талоны: Топливные Талоны [15:33:13]line 2109454 [15:33:13]line ФМ: 0000000000871826 [15:33:13]line ФД: 187384 [15:33:13]line ФПД: 70765743143670 [15:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153313&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187384&fm=70765743143670&tin=02508201610067®Number=0000000000091857&sum=0 [15:33:13]written 0, free lines is 4095 [15:33:13]OFD Sender: Processing packet 187384 [packets to send 49, broken 48] [15:33:13]ProducePacketName [15:33:13]name=ofd_packets/00187384 [15:33:14]OFD Sender: To server: pG, [15:33:14]CommunicateWithHost lk.salyk.kg:30040 [15:33:14]ConnectInit lk.salyk.kg [15:33:14]Write to MH i2c: 01 00 00 98 10 A8 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 07 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 07 00 98 10 00 00 00 00 00 F9 0C B4 [15:33:14]RasterBufferAndPrint [15:33:14]line [15:33:14]line [15:33:14]line [15:33:14]line [15:33:14]line [15:33:14]written 0, free lines is 3327 [15:33:14]MH_Cut [15:33:14]Write to MH i2c: D1 01 00 9F 10 01 81 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: D1 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: D1 01 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: D1 01 00 9F 10 00 80 [15:33:14]Write to MH i2c: 01 00 00 A0 10 B0 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]Connected sock=10 [15:33:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 0F 07 01 43 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 39 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DB 02 00 35 04 06 00 40 5C 6E FB 7A F6 D7 94 9C ED 2F 48 10 B1 [15:33:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DA C9 47 00 57 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DB 02 00 F4 03 04 00 89 F1 B6 67 B6 04 01 00 00 B8 50 F7 C6 B3 9A 38 C4 [15:33:14]CommunicateWithHost err = 0 [15:33:14]CheckOFDResponse [15:33:14]1017 (14) - 77093643461234 [15:33:14]1041 (16) - 0000000000871826 [15:33:14]1040 (4) - 187384 [15:33:14]1012 (4) - 20.02.2025 09:10 [15:33:14]1206 (1) - 0 [15:33:14]OFD Sender: Remove packet 187384 [15:33:14]ProducePacketName [15:33:14]name=ofd_packets/00187384 [15:33:14]NVStorageDeleteData [15:33:15]*** Cut start [15:33:15]*** Partial cut [15:33:15]*** CUTSNS_PIN = 1 [15:33:15]*** CUTSNS_PIN = 0 [15:33:15]OFD Sender: No OFD packet to send [15:33:15]*** Brake cut motor [15:33:15]Read from MH i2c: 01 [15:33:15]MH_I2C_Read... [15:33:15]*** Stop cut motor [15:33:15]*** Cut end [15:33:15]Read from MH i2c: 01 07 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: 01 07 00 A0 10 00 00 00 00 00 FF 0F C5 [15:33:15]process_action close_receipt done [15:33:15]requested_data is exist [15:33:15]produce_requested_data [15:33:15]requested_item fm.sn is exist - process it [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 11 00 00 [15:33:15]Write to MH i2c: E2 08 00 A1 10 80 11 00 00 00 00 00 00 2B [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 17 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 17 00 A1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7E [15:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:33:15]wFMCommunicate OK [15:33:15]requested_item fd.num is exist - process it [15:33:15]SAM_PROTO_GetFieldsCounters [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 13 00 00 [15:33:15]Write to MH i2c: E2 08 00 A2 10 80 13 00 00 00 00 00 00 2E [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 62 00 [15:33:15]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 62 00 A2 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F8 DB 02 00 0E 04 04 00 88 02 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 DE [15:33:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F8 DB 02 00 0E 04 04 00 88 02 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 [15:33:16]wFMCommunicate OK [15:33:16]SAM_PROTO_GetFieldsCounters done [15:33:16]requested_item shift.num is exist - process it [15:33:16]requested_item shift.opened is exist - process it [15:33:16]req_shift_opened [15:33:16]FM_GetShiftState [15:33:16]SAM_PROTO_GetShiftState [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 13 01 00 [15:33:16]Write to MH i2c: E2 08 00 A3 10 80 13 01 00 00 00 00 00 30 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 0E 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 0E 00 A3 10 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 82 [15:33:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:33:16]wFMCommunicate OK [15:33:16]SAM_PROTO_GetShiftState done [15:33:16]FM_GetShiftState done [15:33:16]req_shift_opened done [15:33:16]requested_item shift.open_date is exist - process it [15:33:16]req_shift_open_date [15:33:16]req_shift_open_date done [15:33:16]produce_requested_data done [15:33:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187384,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:33:16]process_action_free close_receipt [15:33:16]json_value_free [15:33:16]json_value_free done [15:33:16]process_json_proto returns [15:33:16]Send response to host [15:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187384,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:33:16]free response buf [15:33:16]execute_script done [15:33:16]execute_script returns [15:33:16]free content buf [15:33:16]Sock 7.Close socket [15:33:16]Sock 7.Thread stoped [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:33:56]accept exits with 9 [15:33:56]New connection [15:33:56]New thread 3067276644 created [15:33:56]Thread 3067420004 joined [15:33:56]Waiting for new connection... [15:33:56] Sock 9.Parse request [15:33:56]Sock 9.Check first char [15:33:56]Sock 9.First char is OK [15:33:56]request: POST /json_proto HTTP/1.0 [15:33:56]Method: POST [15:33:56]URL: /json_proto [15:33:56]Method is POST - this is cgi request [15:33:56]url: /json_proto [15:33:56]query_string will be loaded in cgi processing [15:33:56]execute_cgi json_proto POST (null) [15:33:56]execute_cgi path=json_proto method=POST [15:33:56]POST find Content-Length [15:33:56]Host: 172.17.46.131:8080 [15:33:56]Content-Length: 682 [15:33:56]Content-Type: application/json [15:33:56] [15:33:56]POST finish read [15:33:56]Found Content-Length = 682 [15:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:33:56]execute_script... [15:33: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)412544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:33:56]POST & json_proto [15:33:56]process_json_proto [15:33:56]json parsed OK: [15:33:56]protocol is kg_v1.0 [15:33:56]action value=close_receipt [15:33:56]process_action close_receipt [15:33:56]cmd_close_receipt [15:33:56]MH_GetDate [15:33:56]Write to MH i2c: F0 00 00 A4 10 A3 [15:33:56]Write i2c OK [15:33:56]MH_I2C_Read... [15:33:56]Read from MH i2c: F0 [15:33:56]MH_I2C_Read... [15:33:56]Read from MH i2c: F0 09 00 [15:33:56]MH_I2C_Read... [15:33:56]Read from MH i2c: F0 09 00 A4 10 00 66 4B B7 67 7E 41 4F 65 EE [15:33:56]GetLastDocTimeStamp 1740065593 [15:33:56]current date 1740065638 [15:33:56]FM_GetShiftState [15:33:56]SAM_PROTO_GetShiftState [15:33:56]wFMCommunicate request_size=4 [15:33:56]MH_SAM_APDU [15:33:56]CAPDU: 80 13 01 00 [15:33:56]Write to MH i2c: E2 08 00 A5 10 80 13 01 00 00 00 00 00 32 [15:33:56]Write i2c OK [15:33:56]MH_I2C_Read... [15:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:57]Read from MH i2c: E2 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 0E 00 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 0E 00 A5 10 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 84 [15:33:57]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:33:57]wFMCommunicate OK [15:33:57]SAM_PROTO_GetShiftState done [15:33:57]FM_GetShiftState done [15:33:57]opened in 1740011697 [15:33:57]opened+sec_in_day 1740098097 [15:33:57]quantity*price = 100023 [15:33:57]sum+1 = 100025 [15:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 186 20.02.2025 15:33 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187385 ФПД: 208442018568284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153358&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187385&fm=208442018568284&tin=02508201610067®Number=0000000000091857&sum=100000 [15:33:58]StoreToDocumentArchive [15:33:58]shift 648 fd 187385 [15:33:58]save to /storage/0648/doc_00187385 [15:33:58]save last doc name /storage/0648/doc_00187385 to /storage/kkm_last_doc_name [15:33:58]save OK [15:33:58]Clear old archive folders... [15:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:58]tlvbuf is 00E1BED0 [15:33:58]SAM_PROTO_ClearQueue [15:33:58]wFMCommunicate request_size=4 [15:33:58]MH_SAM_APDU [15:33:58]CAPDU: 80 09 00 00 [15:33:58]Write to MH i2c: E2 08 00 B2 10 80 09 00 00 00 00 00 00 34 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:58]Read from MH i2c: E2 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 03 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 03 00 B2 10 00 90 00 36 [15:33:58]RAPDU: 90 00 [15:33:58]wFMCommunicate OK [15:33:58]SAM_PROTO_ClearQueue done [15:33:58]KKMCreateOFDPacket [15:33:58]OFDProtocolAddRootSTLVToBuf [15:33:58]FM_MakeSignedData [15:33:58]FM_MakeSignedData [15:33:58]SAM_PROTO_SignData [15:33:58]wFMCommunicate request_size=4 [15:33:58]MH_SAM_APDU [15:33:58]CAPDU: 80 0D 01 02 [15:33:58]Write to MH i2c: E2 08 00 B3 10 80 0D 01 02 00 00 00 00 3C [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:58]Read from MH i2c: E2 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 03 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 03 00 B3 10 00 90 00 37 [15:33:58]RAPDU: 90 00 [15:33:58]wFMCommunicate OK [15:33:58]wFMCommunicate request_size=255 [15:33:58]MH_SAM_APDU [15:33: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 66 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DB 02 00 35 04 06 00 BD [15:33:58]Write to MH i2c: E2 02 01 B4 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 66 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DB 02 00 35 04 06 00 BD 00 00 DF [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:58]Read from MH i2c: E2 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 03 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 03 00 B4 10 00 90 00 38 [15:33:58]RAPDU: 90 00 [15:33:58]wFMCommunicate OK [15:33:58]wFMCommunicate request_size=10 [15:33:58]MH_SAM_APDU [15:33:58]CAPDU: 80 0D 02 02 05 93 B0 79 18 5C [15:33:58]Write to MH i2c: E2 0D 00 B5 10 80 0D 02 02 05 00 93 B0 79 18 5C 00 00 79 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:58]Read from MH i2c: E2 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 03 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 03 00 B5 10 00 90 00 39 [15:33:58]RAPDU: 90 00 [15:33:58]wFMCommunicate OK [15:33:58]wFMCommunicate request_size=4 [15:33:58]MH_SAM_APDU [15:33:58]CAPDU: 80 0D 03 02 [15:33:58]Write to MH i2c: E2 08 00 B6 10 80 0D 03 02 00 00 00 00 41 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:58]Read from MH i2c: E2 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 0B 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 0B 00 B6 10 00 F7 D6 B1 86 B7 A2 F8 BB 90 00 52 [15:33:58]RAPDU: F7 D6 B1 86 B7 A2 F8 BB 90 00 [15:33:58]wFMCommunicate OK [15:33:58]SAM_PROTO_SignData done [15:33:58]FM_MakeSignedData done [15:33:58]CreateOFDProtocolMessage [15:33:58]wFMCommunicate request_size=4 [15:33:58]MH_SAM_APDU [15:33:58]CAPDU: 80 11 00 00 [15:33:58]Write to MH i2c: E2 08 00 B7 10 80 11 00 00 00 00 00 00 41 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:58]Read from MH i2c: E2 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 17 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: E2 17 00 B7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 94 [15:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:33:58]wFMCommunicate OK [15:33:58]CreateOFDProtocolMessage done [15:33:58]OFDSenderStorePacket 187385 [15:33:58]StoreOFDPacket docnum=187385 [15:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 15 07 01 01 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 66 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DB 02 00 35 04 06 00 BD 93 B0 79 18 5C F7 D6 B1 86 B7 A2 F8 BB [15:33:58]CheckFolder [15:33:58]dirname=/storage/ofd_packets [15:33:58]CheckFolder done [15:33:58]ProducePacketName [15:33:58]name=ofd_packets/00187385 [15:33:58]NVStorageSaveData ofd_packets/00187385 [15:33:58]File name is /storage/ofd_packets/00187385 [15:33:58]Write 301 bytes [15:33:58]NVStorageSaveData done [15:33:58]OFDSenderStorePacket done [15:33:58]KKMCreateOFDPacket done [15:33:58]NVStorageSaveData kkm_last_timestamp [15:33:58]File name is /storage/kkm_last_timestamp [15:33:58]Write 4 bytes [15:33:58]NVStorageSaveData done [15:33:58]ExternCall_PrintAddStr [15:33:58]wPrintStart [15:33:58]Write to MH i2c: 01 00 00 B8 10 C8 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: 01 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: 01 07 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: 01 07 00 B8 10 00 00 00 00 00 FF 0F DD [15:33:58]RasterBufferAndPrint [15:33:58]line Счет N : (1)412544 [15:33:58]line ИНН: 02508201610067 [15:33:58]line Контрольно-Кассовый Чек [15:33:58]line ПРОДАЖА [15:33:58]line ТРК (МРК, ГНК) : 12 [15:33:58]line Товар: 2710124130 [15:33:58]line Аи-92-К-2 [15:33:58]line 15.580 * 64.20 [15:33:58]line = 1000.24 [15:33:58]line НДС 12% НСП 1% [15:33:58]line > о реализуемом товаре [15:33:58]line ОКРУГЛЕНИЕ: -0.24 [15:33:58]line ИТОГО: 1000.00 [15:33:58]line Внесено: 1000.00 [15:33:58]line СДАЧА: 0.00 [15:33:58]line НСП 1% : 8.85 [15:33:58]line НДС 12% : 106.22 [15:33:58]line Наличными: 1000.00 [15:33:58]line Безнал.: 0.00 [15:33:58]line Место: АЗС № 92 "Партнер Нефть" [15:33:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:33:58]line СНО: Общий режим [15:33:58]line Чек 186 20.02.2025 15:33 [15:33:58]line Смена: 648 ФФД: 1.0 [15:33:58]line ЗНМ: 0300000118 [15:33:58]line РНМ: 0000000000091857 [15:33:58]line Версия ККМ: 001 [15:33:58]line ФМ: 0000000000871826 [15:33:58]line ФД: 187385 [15:33:58]line ФПД: 208442018568284 [15:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153358&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187385&fm=208442018568284&tin=02508201610067®Number=0000000000091857&sum=100000 [15:33:59]OFD Sender: Processing packet 187385 [packets to send 49, broken 48] [15:33:59]ProducePacketName [15:33:59]name=ofd_packets/00187385 [15:33:59]OFD Sender: To server: pG, [15:33:59]CommunicateWithHost lk.salyk.kg:30040 [15:33:59]ConnectInit lk.salyk.kg [15:33:59]written 0, free lines is 4095 [15:33:59]Connected sock=10 [15:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 15 07 01 01 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 66 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DB 02 00 35 04 06 00 BD 93 B0 79 18 5C F7 D6 B1 86 B7 A2 F8 BB [15:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C2 E1 47 00 A2 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DB 02 00 F4 03 04 00 B6 F1 B6 67 B6 04 01 00 00 13 BE B5 3A 37 32 C6 C2 [15:33:59]CommunicateWithHost err = 0 [15:33:59]CheckOFDResponse [15:33:59]1017 (14) - 77093643461234 [15:33:59]1041 (16) - 0000000000871826 [15:33:59]1040 (4) - 187385 [15:33:59]1012 (4) - 20.02.2025 09:11 [15:33:59]1206 (1) - 0 [15:33:59]OFD Sender: Remove packet 187385 [15:33:59]ProducePacketName [15:33:59]name=ofd_packets/00187385 [15:33:59]NVStorageDeleteData [15:33:59]Write to MH i2c: 01 00 00 E3 10 F3 [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: 01 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: 01 07 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: 01 07 00 E3 10 00 00 00 00 00 F4 0C FA [15:33:59]RasterBufferAndPrint [15:33:59]line [15:33:59]line [15:33:59]line [15:33:59]line [15:33:59]line [15:33:59]written 0, free lines is 3322 [15:33:59]MH_Cut [15:33:59]Write to MH i2c: D1 01 00 EA 10 01 CC [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: D1 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: D1 01 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: D1 01 00 EA 10 00 CB [15:33:59]Write to MH i2c: 01 00 00 EB 10 FB [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]OFD Sender: No OFD packet to send [15:34:00]*** Cut start [15:34:00]*** Partial cut [15:34:00]*** CUTSNS_PIN = 1 [15:34:00]*** CUTSNS_PIN = 0 [15:34:00]*** Brake cut motor [15:34:00]Read from MH i2c: 01 [15:34:00]MH_I2C_Read... [15:34:00]*** Stop cut motor [15:34:00]*** Cut end [15:34:00]Read from MH i2c: 01 07 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: 01 07 00 EB 10 00 00 00 00 00 FF 0F 10 [15:34:00]process_action close_receipt done [15:34:00]requested_data is exist [15:34:00]produce_requested_data [15:34:00]requested_item fm.sn is exist - process it [15:34:00]wFMCommunicate request_size=4 [15:34:00]MH_SAM_APDU [15:34:00]CAPDU: 80 11 00 00 [15:34:00]Write to MH i2c: E2 08 00 EC 10 80 11 00 00 00 00 00 00 76 [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:00]Read from MH i2c: E2 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 17 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 17 00 EC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [15:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:34:00]wFMCommunicate OK [15:34:00]requested_item fd.num is exist - process it [15:34:00]SAM_PROTO_GetFieldsCounters [15:34:00]wFMCommunicate request_size=4 [15:34:00]MH_SAM_APDU [15:34:00]CAPDU: 80 13 00 00 [15:34:00]Write to MH i2c: E2 08 00 ED 10 80 13 00 00 00 00 00 00 79 [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:01]Read from MH i2c: E2 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 62 00 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 62 00 ED 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F9 DB 02 00 0E 04 04 00 88 02 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 2D [15:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F9 DB 02 00 0E 04 04 00 88 02 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 [15:34:01]wFMCommunicate OK [15:34:01]SAM_PROTO_GetFieldsCounters done [15:34:01]requested_item shift.num is exist - process it [15:34:01]requested_item shift.opened is exist - process it [15:34:01]req_shift_opened [15:34:01]FM_GetShiftState [15:34:01]SAM_PROTO_GetShiftState [15:34:01]wFMCommunicate request_size=4 [15:34:01]MH_SAM_APDU [15:34:01]CAPDU: 80 13 01 00 [15:34:01]Write to MH i2c: E2 08 00 EE 10 80 13 01 00 00 00 00 00 7B [15:34:01]Write i2c OK [15:34:01]MH_I2C_Read... [15:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:01]Read from MH i2c: E2 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 0E 00 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 0E 00 EE 10 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CD [15:34:01]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:34:01]wFMCommunicate OK [15:34:01]SAM_PROTO_GetShiftState done [15:34:01]FM_GetShiftState done [15:34:01]req_shift_opened done [15:34:01]requested_item shift.open_date is exist - process it [15:34:01]req_shift_open_date [15:34:01]req_shift_open_date done [15:34:01]produce_requested_data done [15:34:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187385,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:34:01]process_action_free close_receipt [15:34:01]json_value_free [15:34:01]json_value_free done [15:34:01]process_json_proto returns [15:34:01]Send response to host [15:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187385,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:34:01]free response buf [15:34:01]execute_script done [15:34:01]execute_script returns [15:34:01]free content buf [15:34:01]Sock 9.Close socket [15:34:01]Sock 9.Thread stoped [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:46]accept exits with 7 [15:35:46]New connection [15:35:46]New thread 3067420004 created [15:35:46]Thread 3067276644 joined [15:35:46]Waiting for new connection... [15:35:46] Sock 7.Parse request [15:35:46]Sock 7.Check first char [15:35:46]Sock 7.First char is OK [15:35:46]request: POST /json_proto HTTP/1.0 [15:35:46]Method: POST [15:35:46]URL: /json_proto [15:35:46]Method is POST - this is cgi request [15:35:46]url: /json_proto [15:35:46]query_string will be loaded in cgi processing [15:35:46]execute_cgi json_proto POST (null) [15:35:46]execute_cgi path=json_proto method=POST [15:35:46]POST find Content-Length [15:35:46]Host: 172.17.46.131:8080 [15:35:46]Content-Length: 682 [15:35:46]Content-Type: application/json [15:35:46] [15:35:46]POST finish read [15:35:46]Found Content-Length = 682 [15:35:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [15:35:46]execute_script... [15:35:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [15:35:46]POST & json_proto [15:35:46]process_json_proto [15:35:46]json parsed OK: [15:35:46]protocol is kg_v1.0 [15:35:46]action value=close_receipt [15:35:46]process_action close_receipt [15:35:46]cmd_close_receipt [15:35:46]MH_GetDate [15:35:46]Write to MH i2c: F0 00 00 EF 10 EE [15:35:46]Write i2c OK [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: F0 [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: F0 09 00 [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: F0 09 00 EF 10 00 D3 4B B7 67 7E 41 4F 65 A6 [15:35:46]GetLastDocTimeStamp 1740065638 [15:35:46]current date 1740065747 [15:35:46]FM_GetShiftState [15:35:46]SAM_PROTO_GetShiftState [15:35:46]wFMCommunicate request_size=4 [15:35:46]MH_SAM_APDU [15:35:46]CAPDU: 80 13 01 00 [15:35:46]Write to MH i2c: E2 08 00 F0 10 80 13 01 00 00 00 00 00 7D [15:35:46]Write i2c OK [15:35:46]MH_I2C_Read... [15:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:46]Read from MH i2c: E2 [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: E2 0E 00 [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: E2 0E 00 F0 10 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CF [15:35:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:35:46]wFMCommunicate OK [15:35:46]SAM_PROTO_GetShiftState done [15:35:46]FM_GetShiftState done [15:35:46]opened in 1740011697 [15:35:46]opened+sec_in_day 1740098097 [15:35:46]quantity*price = 200025 [15:35:46]sum+1 = 200027 [15:35:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 187 20.02.2025 15:35 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187386 ФПД: 163855651135062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153547&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187386&fm=163855651135062&tin=02508201610067®Number=0000000000091857&sum=200000 [15:35:47]StoreToDocumentArchive [15:35:47]shift 648 fd 187386 [15:35:47]save to /storage/0648/doc_00187386 [15:35:47]save last doc name /storage/0648/doc_00187386 to /storage/kkm_last_doc_name [15:35:47]save OK [15:35:47]Clear old archive folders... [15:35:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:47]tlvbuf is 00E0BE40 [15:35:47]SAM_PROTO_ClearQueue [15:35:47]wFMCommunicate request_size=4 [15:35:47]MH_SAM_APDU [15:35:47]CAPDU: 80 09 00 00 [15:35:47]Write to MH i2c: E2 08 00 FD 10 80 09 00 00 00 00 00 00 7F [15:35:47]Write i2c OK [15:35:47]MH_I2C_Read... [15:35:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:47]Read from MH i2c: E2 [15:35:47]MH_I2C_Read... [15:35:47]Read from MH i2c: E2 03 00 [15:35:47]MH_I2C_Read... [15:35:47]Read from MH i2c: E2 03 00 FD 10 00 90 00 81 [15:35:48]RAPDU: 90 00 [15:35:48]wFMCommunicate OK [15:35:48]SAM_PROTO_ClearQueue done [15:35:48]KKMCreateOFDPacket [15:35:48]OFDProtocolAddRootSTLVToBuf [15:35:48]FM_MakeSignedData [15:35:48]FM_MakeSignedData [15:35:48]SAM_PROTO_SignData [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 0D 01 02 [15:35:48]Write to MH i2c: E2 08 00 FE 10 80 0D 01 02 00 00 00 00 87 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 FE 10 00 90 00 82 [15:35:48]RAPDU: 90 00 [15:35:48]wFMCommunicate OK [15:35:48]wFMCommunicate request_size=255 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 BB 00 00 00 F4 03 04 00 D3 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DB 02 00 35 04 06 00 95 [15:35:48]Write to MH i2c: E2 02 01 FF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 BB 00 00 00 F4 03 04 00 D3 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DB 02 00 35 04 06 00 95 00 00 17 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 FF 10 00 90 00 83 [15:35:48]RAPDU: 90 00 [15:35:48]wFMCommunicate OK [15:35:48]wFMCommunicate request_size=10 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 0D 02 02 05 06 9D E1 5E 56 [15:35:48]Write to MH i2c: E2 0D 00 00 11 80 0D 02 02 05 00 06 9D E1 5E 56 00 00 CD [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 03 00 00 11 00 90 00 85 [15:35:48]RAPDU: 90 00 [15:35:48]wFMCommunicate OK [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 0D 03 02 [15:35:48]Write to MH i2c: E2 08 00 01 11 80 0D 03 02 00 00 00 00 8D [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 0B 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 0B 00 01 11 00 A3 9D C4 B8 98 2E 75 70 90 00 F5 [15:35:48]RAPDU: A3 9D C4 B8 98 2E 75 70 90 00 [15:35:48]wFMCommunicate OK [15:35:48]SAM_PROTO_SignData done [15:35:48]FM_MakeSignedData done [15:35:48]CreateOFDProtocolMessage [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 11 00 00 [15:35:48]Write to MH i2c: E2 08 00 02 11 80 11 00 00 00 00 00 00 8D [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 17 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 17 00 02 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E0 [15:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:35:48]wFMCommunicate OK [15:35:48]CreateOFDProtocolMessage done [15:35:48]OFDSenderStorePacket 187386 [15:35:48]StoreOFDPacket docnum=187386 [15:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 DC 07 01 9D 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 D3 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DB 02 00 35 04 06 00 95 06 9D E1 5E 56 A3 9D C4 B8 98 2E 75 70 [15:35:48]CheckFolder [15:35:48]dirname=/storage/ofd_packets [15:35:48]CheckFolder done [15:35:48]ProducePacketName [15:35:48]name=ofd_packets/00187386 [15:35:48]NVStorageSaveData ofd_packets/00187386 [15:35:48]File name is /storage/ofd_packets/00187386 [15:35:48]Write 301 bytes [15:35:48]NVStorageSaveData done [15:35:48]OFDSenderStorePacket done [15:35:48]KKMCreateOFDPacket done [15:35:48]NVStorageSaveData kkm_last_timestamp [15:35:48]File name is /storage/kkm_last_timestamp [15:35:48]Write 4 bytes [15:35:48]NVStorageSaveData done [15:35:48]ExternCall_PrintAddStr [15:35:48]wPrintStart [15:35:48]Write to MH i2c: 01 00 00 03 11 14 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: 01 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: 01 07 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: 01 07 00 03 11 00 00 00 00 00 FF 0F 29 [15:35:48]RasterBufferAndPrint [15:35:48]line Счет N : (1)412545 [15:35:48]line ИНН: 02508201610067 [15:35:48]line Контрольно-Кассовый Чек [15:35:48]line ПРОДАЖА [15:35:48]line ТРК (МРК, ГНК) : 33 [15:35:48]line Товар: 2710124500 [15:35:48]line Аи-95-К-5 [15:35:48]line 27.820 * 71.90 [15:35:48]line = 2000.26 [15:35:48]line НДС 12% НСП 1% [15:35:48]line > о реализуемом товаре [15:35:48]line ОКРУГЛЕНИЕ: -0.26 [15:35:48]line ИТОГО: 2000.00 [15:35:48]line Внесено: 2000.00 [15:35:48]line СДАЧА: 0.00 [15:35:48]line НСП 1% : 17.70 [15:35:48]line НДС 12% : 212.42 [15:35:48]line Наличными: 2000.00 [15:35:48]line Безнал.: 0.00 [15:35:48]line Место: АЗС № 92 "Партнер Нефть" [15:35:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:35:48]line СНО: Общий режим [15:35:48]line Чек 187 20.02.2025 15:35 [15:35:48]line Смена: 648 ФФД: 1.0 [15:35:48]line ЗНМ: 0300000118 [15:35:48]line РНМ: 0000000000091857 [15:35:48]line Версия ККМ: 001 [15:35:48]line ФМ: 0000000000871826 [15:35:48]line ФД: 187386 [15:35:48]line ФПД: 163855651135062 [15:35:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153547&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187386&fm=163855651135062&tin=02508201610067®Number=0000000000091857&sum=200000 [15:35:48]OFD Sender: Processing packet 187386 [packets to send 49, broken 48] [15:35:48]ProducePacketName [15:35:48]name=ofd_packets/00187386 [15:35:48]OFD Sender: To server: pG, [15:35:48]CommunicateWithHost lk.salyk.kg:30040 [15:35:48]ConnectInit lk.salyk.kg [15:35:48]written 0, free lines is 4095 [15:35:48]Connected sock=10 [15:35:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 DC 07 01 9D 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 D3 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DB 02 00 35 04 06 00 95 06 9D E1 5E 56 A3 9D C4 B8 98 2E 75 70 [15:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0D DB 47 00 73 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 31 38 32 36 10 04 04 00 FA DB 02 00 F4 03 04 00 24 F2 B6 67 B6 04 01 00 00 03 71 3D B7 64 DD 26 9F [15:35:49]CommunicateWithHost err = 0 [15:35:49]CheckOFDResponse [15:35:49]1017 (14) - 77093643461234 [15:35:49]1041 (16) - 0000000000871826 [15:35:49]1040 (4) - 187386 [15:35:49]1012 (4) - 20.02.2025 09:13 [15:35:49]1206 (1) - 0 [15:35:49]OFD Sender: Remove packet 187386 [15:35:49]ProducePacketName [15:35:49]name=ofd_packets/00187386 [15:35:49]NVStorageDeleteData [15:35:49]Write to MH i2c: 01 00 00 2E 11 3F [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 07 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 F3 0C 45 [15:35:49]RasterBufferAndPrint [15:35:49]line [15:35:49]line [15:35:49]line [15:35:49]line [15:35:49]line [15:35:49]written 0, free lines is 3321 [15:35:49]MH_Cut [15:35:49]Write to MH i2c: D1 01 00 35 11 01 18 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: D1 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: D1 01 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: D1 01 00 35 11 00 17 [15:35:49]Write to MH i2c: 01 00 00 36 11 47 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]OFD Sender: No OFD packet to send [15:35:49]*** Cut start [15:35:49]*** Partial cut [15:35:49]*** CUTSNS_PIN = 1 [15:35:50]*** CUTSNS_PIN = 0 [15:35:50]*** Brake cut motor [15:35:50]Read from MH i2c: 01 [15:35:50]MH_I2C_Read... [15:35:50]*** Stop cut motor [15:35:50]*** Cut end [15:35:50]Read from MH i2c: 01 07 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 FF 0F 5C [15:35:50]process_action close_receipt done [15:35:50]requested_data is exist [15:35:50]produce_requested_data [15:35:50]requested_item fm.sn is exist - process it [15:35:50]wFMCommunicate request_size=4 [15:35:50]MH_SAM_APDU [15:35:50]CAPDU: 80 11 00 00 [15:35:50]Write to MH i2c: E2 08 00 37 11 80 11 00 00 00 00 00 00 C2 [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:50]Read from MH i2c: E2 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 17 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 17 00 37 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 15 [15:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:35:50]wFMCommunicate OK [15:35:50]requested_item fd.num is exist - process it [15:35:50]SAM_PROTO_GetFieldsCounters [15:35:50]wFMCommunicate request_size=4 [15:35:50]MH_SAM_APDU [15:35:50]CAPDU: 80 13 00 00 [15:35:50]Write to MH i2c: E2 08 00 38 11 80 13 00 00 00 00 00 00 C5 [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:50]Read from MH i2c: E2 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 62 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 62 00 38 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FA DB 02 00 0E 04 04 00 88 02 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 7D [15:35:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FA DB 02 00 0E 04 04 00 88 02 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 [15:35:50]wFMCommunicate OK [15:35:50]SAM_PROTO_GetFieldsCounters done [15:35:50]requested_item shift.num is exist - process it [15:35:50]requested_item shift.opened is exist - process it [15:35:50]req_shift_opened [15:35:50]FM_GetShiftState [15:35:50]SAM_PROTO_GetShiftState [15:35:50]wFMCommunicate request_size=4 [15:35:50]MH_SAM_APDU [15:35:50]CAPDU: 80 13 01 00 [15:35:50]Write to MH i2c: E2 08 00 39 11 80 13 01 00 00 00 00 00 C7 [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:50]Read from MH i2c: E2 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 0E 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 0E 00 39 11 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 19 [15:35:50]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:35:50]wFMCommunicate OK [15:35:50]SAM_PROTO_GetShiftState done [15:35:50]FM_GetShiftState done [15:35:50]req_shift_opened done [15:35:50]requested_item shift.open_date is exist - process it [15:35:50]req_shift_open_date [15:35:50]req_shift_open_date done [15:35:50]produce_requested_data done [15:35:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187386,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:35:50]process_action_free close_receipt [15:35:50]json_value_free [15:35:50]json_value_free done [15:35:50]process_json_proto returns [15:35:50]Send response to host [15:35:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187386,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:35:50]free response buf [15:35:50]execute_script done [15:35:50]execute_script returns [15:35:50]free content buf [15:35:50]Sock 7.Close socket [15:35:50]Sock 7.Thread stoped [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:02]accept exits with 9 [15:36:02]New connection [15:36:02]New thread 3067276644 created [15:36:02]Thread 3067420004 joined [15:36:02]Waiting for new connection... [15:36:02] Sock 9.Parse request [15:36:02]Sock 9.Check first char [15:36:02]Sock 9.First char is OK [15:36:02]request: POST /json_proto HTTP/1.0 [15:36:02]Method: POST [15:36:02]URL: /json_proto [15:36:02]Method is POST - this is cgi request [15:36:02]url: /json_proto [15:36:02]query_string will be loaded in cgi processing [15:36:02]execute_cgi json_proto POST (null) [15:36:02]execute_cgi path=json_proto method=POST [15:36:02]POST find Content-Length [15:36:02]Host: 172.17.46.131:8080 [15:36:02]Content-Length: 677 [15:36:02]Content-Type: application/json [15:36:02] [15:36:02]POST finish read [15:36:02]Found Content-Length = 677 [15:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:36:02]execute_script... [15:36: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)412546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:36:02]POST & json_proto [15:36:02]process_json_proto [15:36:02]json parsed OK: [15:36:02]protocol is kg_v1.0 [15:36:02]action value=close_receipt [15:36:02]process_action close_receipt [15:36:02]cmd_close_receipt [15:36:02]MH_GetDate [15:36:02]Write to MH i2c: F0 00 00 3A 11 3A [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: F0 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: F0 09 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: F0 09 00 3A 11 00 E3 4B B7 67 7E 41 4F 65 02 [15:36:02]GetLastDocTimeStamp 1740065747 [15:36:02]current date 1740065763 [15:36:02]FM_GetShiftState [15:36:02]SAM_PROTO_GetShiftState [15:36:02]wFMCommunicate request_size=4 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 13 01 00 [15:36:02]Write to MH i2c: E2 08 00 3B 11 80 13 01 00 00 00 00 00 C9 [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 0E 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 0E 00 3B 11 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1B [15:36:02]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:36:02]wFMCommunicate OK [15:36:02]SAM_PROTO_GetShiftState done [15:36:02]FM_GetShiftState done [15:36:02]opened in 1740011697 [15:36:02]opened+sec_in_day 1740098097 [15:36:02]quantity*price = 50011 [15:36:02]sum+1 = 50013 [15:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 188 20.02.2025 15:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187387 ФПД: 232891606095071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153603&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187387&fm=232891606095071&tin=02508201610067®Number=0000000000091857&sum=50000 [15:36:03]StoreToDocumentArchive [15:36:03]shift 648 fd 187387 [15:36:03]save to /storage/0648/doc_00187387 [15:36:03]save last doc name /storage/0648/doc_00187387 to /storage/kkm_last_doc_name [15:36:03]save OK [15:36:03]Clear old archive folders... [15:36:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:03]tlvbuf is 00E4F780 [15:36:03]SAM_PROTO_ClearQueue [15:36:03]wFMCommunicate request_size=4 [15:36:03]MH_SAM_APDU [15:36:03]CAPDU: 80 09 00 00 [15:36:03]Write to MH i2c: E2 08 00 48 11 80 09 00 00 00 00 00 00 CB [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:03]Read from MH i2c: E2 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 03 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 03 00 48 11 00 90 00 CD [15:36:03]RAPDU: 90 00 [15:36:03]wFMCommunicate OK [15:36:03]SAM_PROTO_ClearQueue done [15:36:03]KKMCreateOFDPacket [15:36:03]OFDProtocolAddRootSTLVToBuf [15:36:03]FM_MakeSignedData [15:36:03]FM_MakeSignedData [15:36:03]SAM_PROTO_SignData [15:36:03]wFMCommunicate request_size=4 [15:36:03]MH_SAM_APDU [15:36:03]CAPDU: 80 0D 01 02 [15:36:03]Write to MH i2c: E2 08 00 49 11 80 0D 01 02 00 00 00 00 D3 [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:03]Read from MH i2c: E2 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 03 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 03 00 49 11 00 90 00 CE [15:36:03]RAPDU: 90 00 [15:36:03]wFMCommunicate OK [15:36:03]wFMCommunicate request_size=255 [15:36:03]MH_SAM_APDU [15:36: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 E3 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DB 02 00 35 04 06 00 D3 [15:36:03]Write to MH i2c: E2 02 01 4A 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 E3 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DB 02 00 35 04 06 00 D3 00 00 A9 [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:03]Read from MH i2c: E2 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 03 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 03 00 4A 11 00 90 00 CF [15:36:03]RAPDU: 90 00 [15:36:03]wFMCommunicate OK [15:36:03]wFMCommunicate request_size=10 [15:36:03]MH_SAM_APDU [15:36:03]CAPDU: 80 0D 02 02 05 D0 4D 73 D4 DF [15:36:03]Write to MH i2c: E2 0D 00 4B 11 80 0D 02 02 05 00 D0 4D 73 D4 DF 00 00 23 [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:03]Read from MH i2c: E2 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 03 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 03 00 4B 11 00 90 00 D0 [15:36:03]RAPDU: 90 00 [15:36:03]wFMCommunicate OK [15:36:03]wFMCommunicate request_size=4 [15:36:03]MH_SAM_APDU [15:36:03]CAPDU: 80 0D 03 02 [15:36:03]Write to MH i2c: E2 08 00 4C 11 80 0D 03 02 00 00 00 00 D8 [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:03]Read from MH i2c: E2 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 0B 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 0B 00 4C 11 00 F2 98 96 4F 5D 7D AA 4F 90 00 1B [15:36:03]RAPDU: F2 98 96 4F 5D 7D AA 4F 90 00 [15:36:03]wFMCommunicate OK [15:36:03]SAM_PROTO_SignData done [15:36:03]FM_MakeSignedData done [15:36:03]CreateOFDProtocolMessage [15:36:03]wFMCommunicate request_size=4 [15:36:03]MH_SAM_APDU [15:36:03]CAPDU: 80 11 00 00 [15:36:03]Write to MH i2c: E2 08 00 4D 11 80 11 00 00 00 00 00 00 D8 [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:03]Read from MH i2c: E2 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 17 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 17 00 4D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2B [15:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:36:03]wFMCommunicate OK [15:36:03]CreateOFDProtocolMessage done [15:36:03]OFDSenderStorePacket 187387 [15:36:03]StoreOFDPacket docnum=187387 [15:36:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 45 A0 07 01 55 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 E3 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DB 02 00 35 04 06 00 D3 D0 4D 73 D4 DF F2 98 96 4F 5D 7D AA 4F [15:36:03]CheckFolder [15:36:03]dirname=/storage/ofd_packets [15:36:03]CheckFolder done [15:36:03]ProducePacketName [15:36:03]name=ofd_packets/00187387 [15:36:03]NVStorageSaveData ofd_packets/00187387 [15:36:03]File name is /storage/ofd_packets/00187387 [15:36:03]Write 301 bytes [15:36:03]NVStorageSaveData done [15:36:03]OFDSenderStorePacket done [15:36:03]KKMCreateOFDPacket done [15:36:03]NVStorageSaveData kkm_last_timestamp [15:36:03]File name is /storage/kkm_last_timestamp [15:36:03]Write 4 bytes [15:36:03]NVStorageSaveData done [15:36:03]ExternCall_PrintAddStr [15:36:03]wPrintStart [15:36:03]Write to MH i2c: 01 00 00 4E 11 5F [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 07 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 07 00 4E 11 00 00 00 00 00 FF 0F 74 [15:36:03]RasterBufferAndPrint [15:36:03]line Счет N : (1)412546 [15:36:03]line ИНН: 02508201610067 [15:36:03]line Контрольно-Кассовый Чек [15:36:03]line ПРОДАЖА [15:36:03]line ТРК (МРК, ГНК) : 22 [15:36:03]line Товар: 2710124130 [15:36:03]line Аи-92-К-2 [15:36:03]line 7.790 * 64.20 [15:36:03]line = 500.12 [15:36:03]line НДС 12% НСП 1% [15:36:03]line > о реализуемом товаре [15:36:03]line ОКРУГЛЕНИЕ: -0.12 [15:36:03]line ИТОГО: 500.00 [15:36:03]line Внесено: 500.00 [15:36:03]line СДАЧА: 0.00 [15:36:03]line НСП 1% : 4.43 [15:36:03]line НДС 12% : 53.11 [15:36:03]line Наличными: 500.00 [15:36:03]line Безнал.: 0.00 [15:36:03]line Место: АЗС № 92 "Партнер Нефть" [15:36:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:36:03]line СНО: Общий режим [15:36:03]line Чек 188 20.02.2025 15:36 [15:36:03]line Смена: 648 ФФД: 1.0 [15:36:03]line ЗНМ: 0300000118 [15:36:03]line РНМ: 0000000000091857 [15:36:03]line Версия ККМ: 001 [15:36:03]line ФМ: 0000000000871826 [15:36:03]line ФД: 187387 [15:36:03]line ФПД: 232891606095071 [15:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T153603&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187387&fm=232891606095071&tin=02508201610067®Number=0000000000091857&sum=50000 [15:36:04]written 0, free lines is 4095 [15:36:04]OFD Sender: Processing packet 187387 [packets to send 49, broken 48] [15:36:04]ProducePacketName [15:36:04]name=ofd_packets/00187387 [15:36:04]OFD Sender: To server: pG, [15:36:04]CommunicateWithHost lk.salyk.kg:30040 [15:36:04]ConnectInit lk.salyk.kg [15:36:04]Connected sock=10 [15:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 45 A0 07 01 55 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 E3 4B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DB 02 00 35 04 06 00 D3 D0 4D 73 D4 DF F2 98 96 4F 5D 7D AA 4F [15:36:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C3 A7 47 00 FF 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DB 02 00 F4 03 04 00 33 F2 B6 67 B6 04 01 00 00 AD C8 F5 BC A3 E1 D0 E8 [15:36:04]CommunicateWithHost err = 0 [15:36:04]CheckOFDResponse [15:36:04]1017 (14) - 77093643461234 [15:36:04]1041 (16) - 0000000000871826 [15:36:04]1040 (4) - 187387 [15:36:04]1012 (4) - 20.02.2025 09:13 [15:36:04]1206 (1) - 0 [15:36:04]OFD Sender: Remove packet 187387 [15:36:04]ProducePacketName [15:36:04]name=ofd_packets/00187387 [15:36:04]NVStorageDeleteData [15:36:04]Write to MH i2c: 01 00 00 79 11 8A [15:36:04]Write i2c OK [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: 01 [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: 01 07 00 [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: 01 07 00 79 11 00 00 00 00 00 EF 0C 8C [15:36:04]RasterBufferAndPrint [15:36:04]line [15:36:04]line [15:36:04]line [15:36:04]line [15:36:04]line [15:36:04]written 0, free lines is 3321 [15:36:04]MH_Cut [15:36:04]Write to MH i2c: D1 01 00 80 11 01 63 [15:36:04]Write i2c OK [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: D1 [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: D1 01 00 [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: D1 01 00 80 11 00 62 [15:36:04]Write to MH i2c: 01 00 00 81 11 92 [15:36:04]Write i2c OK [15:36:04]MH_I2C_Read... [15:36:05]OFD Sender: No OFD packet to send [15:36:05]*** Cut start [15:36:05]*** Partial cut [15:36:05]*** CUTSNS_PIN = 1 [15:36:05]*** CUTSNS_PIN = 0 [15:36:05]*** Brake cut motor [15:36:05]Read from MH i2c: 01 [15:36:06]MH_I2C_Read... [15:36:06]*** Stop cut motor [15:36:06]*** Cut end [15:36:06]Read from MH i2c: 01 07 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: 01 07 00 81 11 00 00 00 00 00 FF 0F A7 [15:36:06]process_action close_receipt done [15:36:06]requested_data is exist [15:36:06]produce_requested_data [15:36:06]requested_item fm.sn is exist - process it [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 11 00 00 [15:36:06]Write to MH i2c: E2 08 00 82 11 80 11 00 00 00 00 00 00 0D [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 17 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 17 00 82 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 60 [15:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:36:06]wFMCommunicate OK [15:36:06]requested_item fd.num is exist - process it [15:36:06]SAM_PROTO_GetFieldsCounters [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 13 00 00 [15:36:06]Write to MH i2c: E2 08 00 83 11 80 13 00 00 00 00 00 00 10 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 62 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 62 00 83 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FB DB 02 00 0E 04 04 00 88 02 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 CC [15:36:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FB DB 02 00 0E 04 04 00 88 02 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 [15:36:06]wFMCommunicate OK [15:36:06]SAM_PROTO_GetFieldsCounters done [15:36:06]requested_item shift.num is exist - process it [15:36:06]requested_item shift.opened is exist - process it [15:36:06]req_shift_opened [15:36:06]FM_GetShiftState [15:36:06]SAM_PROTO_GetShiftState [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 13 01 00 [15:36:06]Write to MH i2c: E2 08 00 84 11 80 13 01 00 00 00 00 00 12 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 0E 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 0E 00 84 11 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 64 [15:36:06]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:36:06]wFMCommunicate OK [15:36:06]SAM_PROTO_GetShiftState done [15:36:06]FM_GetShiftState done [15:36:06]req_shift_opened done [15:36:06]requested_item shift.open_date is exist - process it [15:36:06]req_shift_open_date [15:36:06]req_shift_open_date done [15:36:06]produce_requested_data done [15:36:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187387,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:36:06]process_action_free close_receipt [15:36:06]json_value_free [15:36:06]json_value_free done [15:36:06]process_json_proto returns [15:36:06]Send response to host [15:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187387,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:36:06]free response buf [15:36:06]execute_script done [15:36:06]execute_script returns [15:36:06]free content buf [15:36:06]Sock 9.Close socket [15:36:06]Sock 9.Thread stoped [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:34]accept exits with 7 [15:40:34]New connection [15:40:34]New thread 3067420004 created [15:40:34]Thread 3067276644 joined [15:40:34]Waiting for new connection... [15:40:34] Sock 7.Parse request [15:40:34]Sock 7.Check first char [15:40:34]Sock 7.First char is OK [15:40:34]request: POST /json_proto HTTP/1.0 [15:40:34]Method: POST [15:40:34]URL: /json_proto [15:40:34]Method is POST - this is cgi request [15:40:34]url: /json_proto [15:40:34]query_string will be loaded in cgi processing [15:40:34]execute_cgi json_proto POST (null) [15:40:34]execute_cgi path=json_proto method=POST [15:40:34]POST find Content-Length [15:40:34]Host: 172.17.46.131:8080 [15:40:34]Content-Length: 682 [15:40:34]Content-Type: application/json [15:40:34] [15:40:34]POST finish read [15:40:34]Found Content-Length = 682 [15:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [15:40:34]execute_script... [15:40: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)412547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [15:40:34]POST & json_proto [15:40:34]process_json_proto [15:40:34]json parsed OK: [15:40:34]protocol is kg_v1.0 [15:40:34]action value=close_receipt [15:40:34]process_action close_receipt [15:40:34]cmd_close_receipt [15:40:34]MH_GetDate [15:40:34]Write to MH i2c: F0 00 00 85 11 85 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: F0 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: F0 09 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: F0 09 00 85 11 00 F4 4C B7 67 7E 41 4F 65 5F [15:40:34]GetLastDocTimeStamp 1740065763 [15:40:34]current date 1740066036 [15:40:34]FM_GetShiftState [15:40:34]SAM_PROTO_GetShiftState [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 13 01 00 [15:40:34]Write to MH i2c: E2 08 00 86 11 80 13 01 00 00 00 00 00 14 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 0E 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 0E 00 86 11 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 66 [15:40:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:40:34]wFMCommunicate OK [15:40:34]SAM_PROTO_GetShiftState done [15:40:34]FM_GetShiftState done [15:40:34]opened in 1740011697 [15:40:34]opened+sec_in_day 1740098097 [15:40:34]quantity*price = 100012 [15:40:34]sum+1 = 100014 [15:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 189 20.02.2025 15:40 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187388 ФПД: 107585390864018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T154036&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187388&fm=107585390864018&tin=02508201610067®Number=0000000000091857&sum=100000 [15:40:36]StoreToDocumentArchive [15:40:36]shift 648 fd 187388 [15:40:36]save to /storage/0648/doc_00187388 [15:40:36]save last doc name /storage/0648/doc_00187388 to /storage/kkm_last_doc_name [15:40:36]save OK [15:40:36]Clear old archive folders... [15:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:36]tlvbuf is B6F1A380 [15:40:36]SAM_PROTO_ClearQueue [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 09 00 00 [15:40:36]Write to MH i2c: E2 08 00 93 11 80 09 00 00 00 00 00 00 16 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 03 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 03 00 93 11 00 90 00 18 [15:40:36]RAPDU: 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_ClearQueue done [15:40:36]KKMCreateOFDPacket [15:40:36]OFDProtocolAddRootSTLVToBuf [15:40:36]FM_MakeSignedData [15:40:36]FM_MakeSignedData [15:40:36]SAM_PROTO_SignData [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 0D 01 02 [15:40:36]Write to MH i2c: E2 08 00 94 11 80 0D 01 02 00 00 00 00 1E [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 03 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 03 00 94 11 00 90 00 19 [15:40:36]RAPDU: 90 00 [15:40:36]wFMCommunicate OK [15:40:36]wFMCommunicate request_size=255 [15:40:36]MH_SAM_APDU [15:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 BD 00 00 00 F4 03 04 00 F4 4C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DB 02 00 35 04 06 00 61 [15:40:36]Write to MH i2c: E2 02 01 95 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 BD 00 00 00 F4 03 04 00 F4 4C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DB 02 00 35 04 06 00 61 00 00 6E [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 03 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 03 00 95 11 00 90 00 1A [15:40:36]RAPDU: 90 00 [15:40:36]wFMCommunicate OK [15:40:36]wFMCommunicate request_size=10 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 0D 02 02 05 D9 2D 01 66 92 [15:40:36]Write to MH i2c: E2 0D 00 96 11 80 0D 02 02 05 00 D9 2D 01 66 92 00 00 2A [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 03 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 03 00 96 11 00 90 00 1B [15:40:36]RAPDU: 90 00 [15:40:36]wFMCommunicate OK [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 0D 03 02 [15:40:36]Write to MH i2c: E2 08 00 97 11 80 0D 03 02 00 00 00 00 23 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0B 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0B 00 97 11 00 2B 60 87 37 67 CD EF 27 90 00 B7 [15:40:36]RAPDU: 2B 60 87 37 67 CD EF 27 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_SignData done [15:40:36]FM_MakeSignedData done [15:40:36]CreateOFDProtocolMessage [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 11 00 00 [15:40:36]Write to MH i2c: E2 08 00 98 11 80 11 00 00 00 00 00 00 23 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 98 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 76 [15:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:40:36]wFMCommunicate OK [15:40:36]CreateOFDProtocolMessage done [15:40:36]OFDSenderStorePacket 187388 [15:40:36]StoreOFDPacket docnum=187388 [15:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CA 8F 07 01 3E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 BD 00 00 00 F4 03 04 00 F4 4C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DB 02 00 35 04 06 00 61 D9 2D 01 66 92 2B 60 87 37 67 CD EF 27 [15:40:36]CheckFolder [15:40:36]dirname=/storage/ofd_packets [15:40:36]CheckFolder done [15:40:36]ProducePacketName [15:40:36]name=ofd_packets/00187388 [15:40:36]NVStorageSaveData ofd_packets/00187388 [15:40:36]File name is /storage/ofd_packets/00187388 [15:40:36]Write 301 bytes [15:40:36]NVStorageSaveData done [15:40:36]OFDSenderStorePacket done [15:40:36]KKMCreateOFDPacket done [15:40:36]NVStorageSaveData kkm_last_timestamp [15:40:36]File name is /storage/kkm_last_timestamp [15:40:36]Write 4 bytes [15:40:36]NVStorageSaveData done [15:40:36]ExternCall_PrintAddStr [15:40:36]wPrintStart [15:40:36]Write to MH i2c: 01 00 00 99 11 AA [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 99 11 00 00 00 00 00 FF 0F BF [15:40:36]RasterBufferAndPrint [15:40:36]line Счет N : (1)412547 [15:40:36]line ИНН: 02508201610067 [15:40:36]line Контрольно-Кассовый Чек [15:40:36]line ПРОДАЖА [15:40:36]line ТРК (МРК, ГНК) : 43 [15:40:36]line Товар: 2710124500 [15:40:36]line Аи-95-К-5 [15:40:36]line 13.910 * 71.90 [15:40:36]line = 1000.13 [15:40:36]line НДС 12% НСП 1% [15:40:36]line > о реализуемом товаре [15:40:36]line ОКРУГЛЕНИЕ: -0.13 [15:40:36]line ИТОГО: 1000.00 [15:40:36]line Внесено: 1000.00 [15:40:36]line СДАЧА: 0.00 [15:40:36]line НСП 1% : 8.85 [15:40:36]line НДС 12% : 106.21 [15:40:36]line Наличными: 1000.00 [15:40:36]line Безнал.: 0.00 [15:40:36]line Место: АЗС № 92 "Партнер Нефть" [15:40:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:40:36]line СНО: Общий режим [15:40:36]line Чек 189 20.02.2025 15:40 [15:40:36]line Смена: 648 ФФД: 1.0 [15:40:36]line ЗНМ: 0300000118 [15:40:36]line РНМ: 0000000000091857 [15:40:36]line Версия ККМ: 001 [15:40:36]line ФМ: 0000000000871826 [15:40:36]line ФД: 187388 [15:40:36]line ФПД: 107585390864018 [15:40:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T154036&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187388&fm=107585390864018&tin=02508201610067®Number=0000000000091857&sum=100000 [15:40:36]OFD Sender: Processing packet 187388 [packets to send 49, broken 48] [15:40:36]ProducePacketName [15:40:36]name=ofd_packets/00187388 [15:40:36]OFD Sender: To server: pG, [15:40:36]CommunicateWithHost lk.salyk.kg:30040 [15:40:36]ConnectInit lk.salyk.kg [15:40:36]written 0, free lines is 4095 [15:40:37]Connected sock=10 [15:40:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CA 8F 07 01 3E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 BD 00 00 00 F4 03 04 00 F4 4C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DB 02 00 35 04 06 00 61 D9 2D 01 66 92 2B 60 87 37 67 CD EF 27 [15:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 51 6C 47 00 F6 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DB 02 00 F4 03 04 00 44 F3 B6 67 B6 04 01 00 00 AE 47 EA C6 7A B2 DC 8A [15:40:37]CommunicateWithHost err = 0 [15:40:37]CheckOFDResponse [15:40:37]1017 (14) - 77093643461234 [15:40:37]1041 (16) - 0000000000871826 [15:40:37]1040 (4) - 187388 [15:40:37]1012 (4) - 20.02.2025 09:17 [15:40:37]1206 (1) - 0 [15:40:37]OFD Sender: Remove packet 187388 [15:40:37]ProducePacketName [15:40:37]name=ofd_packets/00187388 [15:40:37]NVStorageDeleteData [15:40:37]Write to MH i2c: 01 00 00 C4 11 D5 [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: 01 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: 01 07 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: 01 07 00 C4 11 00 00 00 00 00 F8 0C E0 [15:40:37]RasterBufferAndPrint [15:40:37]line [15:40:37]line [15:40:37]line [15:40:37]line [15:40:37]line [15:40:37]written 0, free lines is 3326 [15:40:37]MH_Cut [15:40:37]Write to MH i2c: D1 01 00 CB 11 01 AE [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: D1 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: D1 01 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: D1 01 00 CB 11 00 AD [15:40:37]Write to MH i2c: 01 00 00 CC 11 DD [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]OFD Sender: No OFD packet to send [15:40:38]*** Cut start [15:40:38]*** Partial cut [15:40:38]*** CUTSNS_PIN = 1 [15:40:38]*** CUTSNS_PIN = 0 [15:40:38]*** Brake cut motor [15:40:38]Read from MH i2c: 01 [15:40:38]MH_I2C_Read... [15:40:38]*** Stop cut motor [15:40:38]*** Cut end [15:40:38]Read from MH i2c: 01 07 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 07 00 CC 11 00 00 00 00 00 FF 0F F2 [15:40:38]process_action close_receipt done [15:40:38]requested_data is exist [15:40:38]produce_requested_data [15:40:38]requested_item fm.sn is exist - process it [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 11 00 00 [15:40:38]Write to MH i2c: E2 08 00 CD 11 80 11 00 00 00 00 00 00 58 [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 17 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 17 00 CD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AB [15:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:40:38]wFMCommunicate OK [15:40:38]requested_item fd.num is exist - process it [15:40:38]SAM_PROTO_GetFieldsCounters [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 13 00 00 [15:40:38]Write to MH i2c: E2 08 00 CE 11 80 13 00 00 00 00 00 00 5B [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 62 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 62 00 CE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FC DB 02 00 0E 04 04 00 88 02 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 1B [15:40:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FC DB 02 00 0E 04 04 00 88 02 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 [15:40:38]wFMCommunicate OK [15:40:38]SAM_PROTO_GetFieldsCounters done [15:40:38]requested_item shift.num is exist - process it [15:40:38]requested_item shift.opened is exist - process it [15:40:38]req_shift_opened [15:40:38]FM_GetShiftState [15:40:38]SAM_PROTO_GetShiftState [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 13 01 00 [15:40:38]Write to MH i2c: E2 08 00 CF 11 80 13 01 00 00 00 00 00 5D [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:39]Read from MH i2c: E2 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: E2 0E 00 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: E2 0E 00 CF 11 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AF [15:40:39]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:40:39]wFMCommunicate OK [15:40:39]SAM_PROTO_GetShiftState done [15:40:39]FM_GetShiftState done [15:40:39]req_shift_opened done [15:40:39]requested_item shift.open_date is exist - process it [15:40:39]req_shift_open_date [15:40:39]req_shift_open_date done [15:40:39]produce_requested_data done [15:40:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187388,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:40:39]process_action_free close_receipt [15:40:39]json_value_free [15:40:39]json_value_free done [15:40:39]process_json_proto returns [15:40:39]Send response to host [15:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187388,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:40:39]free response buf [15:40:39]execute_script done [15:40:39]execute_script returns [15:40:39]free content buf [15:40:39]Sock 7.Close socket [15:40:39]Sock 7.Thread stoped [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]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:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:38]accept exits with 9 [15:45:38]New connection [15:45:38]New thread 3067276644 created [15:45:38]Thread 3067420004 joined [15:45:38]Waiting for new connection... [15:45:38] Sock 9.Parse request [15:45:38]Sock 9.Check first char [15:45:38]Sock 9.First char is OK [15:45:38]request: POST /json_proto HTTP/1.0 [15:45:38]Method: POST [15:45:38]URL: /json_proto [15:45:38]Method is POST - this is cgi request [15:45:38]url: /json_proto [15:45:38]query_string will be loaded in cgi processing [15:45:38]execute_cgi json_proto POST (null) [15:45:38]execute_cgi path=json_proto method=POST [15:45:38]POST find Content-Length [15:45:38]Host: 172.17.46.131:8080 [15:45:38]Content-Length: 677 [15:45:38]Content-Type: application/json [15:45:38] [15:45:38]POST finish read [15:45:38]Found Content-Length = 677 [15:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 2.340, "sum" : 150.23, "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" ] } } [15:45:38]execute_script... [15:45:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 2.340, "sum" : 150.23, "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" ] } } [15:45:38]POST & json_proto [15:45:38]process_json_proto [15:45:38]json parsed OK: [15:45:38]protocol is kg_v1.0 [15:45:38]action value=close_receipt [15:45:38]process_action close_receipt [15:45:38]cmd_close_receipt [15:45:38]MH_GetDate [15:45:38]Write to MH i2c: F0 00 00 D0 11 D0 [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: F0 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: F0 09 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: F0 09 00 D0 11 00 23 4E B7 67 7E 41 4F 65 DB [15:45:38]GetLastDocTimeStamp 1740066036 [15:45:38]current date 1740066339 [15:45:38]FM_GetShiftState [15:45:38]SAM_PROTO_GetShiftState [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 13 01 00 [15:45:38]Write to MH i2c: E2 08 00 D1 11 80 13 01 00 00 00 00 00 5F [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:38]Read from MH i2c: E2 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 0E 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 0E 00 D1 11 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B1 [15:45:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:45:38]wFMCommunicate OK [15:45:38]SAM_PROTO_GetShiftState done [15:45:38]FM_GetShiftState done [15:45:38]opened in 1740011697 [15:45:38]opened+sec_in_day 1740098097 [15:45:38]quantity*price = 15022 [15:45:38]sum+1 = 15024 [15:45:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.95 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 190 20.02.2025 15:45 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187389 ФПД: 10379121543130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T154539&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187389&fm=10379121543130&tin=02508201610067®Number=0000000000091857&sum=15000 [15:45:39]StoreToDocumentArchive [15:45:39]shift 648 fd 187389 [15:45:39]save to /storage/0648/doc_00187389 [15:45:39]save last doc name /storage/0648/doc_00187389 to /storage/kkm_last_doc_name [15:45:39]save OK [15:45:39]Clear old archive folders... [15:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:39]tlvbuf is B6E1A2A0 [15:45:39]SAM_PROTO_ClearQueue [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 09 00 00 [15:45:39]Write to MH i2c: E2 08 00 DE 11 80 09 00 00 00 00 00 00 61 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 DE 11 00 90 00 63 [15:45:39]RAPDU: 90 00 [15:45:39]wFMCommunicate OK [15:45:39]SAM_PROTO_ClearQueue done [15:45:39]KKMCreateOFDPacket [15:45:39]OFDProtocolAddRootSTLVToBuf [15:45:39]FM_MakeSignedData [15:45:39]FM_MakeSignedData [15:45:39]SAM_PROTO_SignData [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 0D 01 02 [15:45:39]Write to MH i2c: E2 08 00 DF 11 80 0D 01 02 00 00 00 00 69 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 DF 11 00 90 00 64 [15:45:39]RAPDU: 90 00 [15:45:39]wFMCommunicate OK [15:45:39]wFMCommunicate request_size=255 [15:45:39]MH_SAM_APDU [15:45: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 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 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 3B 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 BE 00 00 00 F4 03 04 00 23 4E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DB 02 00 35 04 06 00 09 [15:45:39]Write to MH i2c: E2 02 01 E0 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 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 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 3B 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 BE 00 00 00 F4 03 04 00 23 4E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DB 02 00 35 04 06 00 09 00 00 DC [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 E0 11 00 90 00 65 [15:45:40]RAPDU: 90 00 [15:45:40]wFMCommunicate OK [15:45:40]wFMCommunicate request_size=10 [15:45:40]MH_SAM_APDU [15:45:40]CAPDU: 80 0D 02 02 05 70 93 DA 47 DA [15:45:40]Write to MH i2c: E2 0D 00 E1 11 80 0D 02 02 05 00 70 93 DA 47 DA 00 00 74 [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 03 00 E1 11 00 90 00 66 [15:45:40]RAPDU: 90 00 [15:45:40]wFMCommunicate OK [15:45:40]wFMCommunicate request_size=4 [15:45:40]MH_SAM_APDU [15:45:40]CAPDU: 80 0D 03 02 [15:45:40]Write to MH i2c: E2 08 00 E2 11 80 0D 03 02 00 00 00 00 6E [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 0B 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 0B 00 E2 11 00 09 C2 48 6C 55 5E 84 0B 90 00 30 [15:45:40]RAPDU: 09 C2 48 6C 55 5E 84 0B 90 00 [15:45:40]wFMCommunicate OK [15:45:40]SAM_PROTO_SignData done [15:45:40]FM_MakeSignedData done [15:45:40]CreateOFDProtocolMessage [15:45:40]wFMCommunicate request_size=4 [15:45:40]MH_SAM_APDU [15:45:40]CAPDU: 80 11 00 00 [15:45:40]Write to MH i2c: E2 08 00 E3 11 80 11 00 00 00 00 00 00 6E [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 17 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 17 00 E3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C1 [15:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:45:40]wFMCommunicate OK [15:45:40]CreateOFDProtocolMessage done [15:45:40]OFDSenderStorePacket 187389 [15:45:40]StoreOFDPacket docnum=187389 [15:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DB DC 07 01 95 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 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 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 3B 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 BE 00 00 00 F4 03 04 00 23 4E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DB 02 00 35 04 06 00 09 70 93 DA 47 DA 09 C2 48 6C 55 5E 84 0B [15:45:40]CheckFolder [15:45:40]dirname=/storage/ofd_packets [15:45:40]CheckFolder done [15:45:40]ProducePacketName [15:45:40]name=ofd_packets/00187389 [15:45:40]NVStorageSaveData ofd_packets/00187389 [15:45:40]File name is /storage/ofd_packets/00187389 [15:45:40]Write 301 bytes [15:45:40]NVStorageSaveData done [15:45:40]OFDSenderStorePacket done [15:45:40]KKMCreateOFDPacket done [15:45:40]NVStorageSaveData kkm_last_timestamp [15:45:40]File name is /storage/kkm_last_timestamp [15:45:40]Write 4 bytes [15:45:40]NVStorageSaveData done [15:45:40]ExternCall_PrintAddStr [15:45:40]wPrintStart [15:45:40]Write to MH i2c: 01 00 00 E4 11 F5 [15:45:40]Write i2c OK [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: 01 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: 01 07 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: 01 07 00 E4 11 00 00 00 00 00 FF 0F 0A [15:45:40]RasterBufferAndPrint [15:45:40]line Счет N : (1)412549 [15:45:40]line ИНН: 02508201610067 [15:45:40]line Контрольно-Кассовый Чек [15:45:40]line ПРОДАЖА [15:45:40]line ТРК (МРК, ГНК) : 22 [15:45:40]line Товар: 2710124130 [15:45:40]line Аи-92-К-2 [15:45:40]line 2.340 * 64.20 [15:45:40]line = 150.23 [15:45:40]line НДС 12% НСП 1% [15:45:40]line > о реализуемом товаре [15:45:40]line ОКРУГЛЕНИЕ: -0.23 [15:45:40]line ИТОГО: 150.00 [15:45:40]line Внесено: 150.00 [15:45:40]line СДАЧА: 0.00 [15:45:40]line НСП 1% : 1.33 [15:45:40]line НДС 12% : 15.95 [15:45:40]line Наличными: 150.00 [15:45:40]line Безнал.: 0.00 [15:45:40]line Место: АЗС № 92 "Партнер Нефть" [15:45:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:45:40]line СНО: Общий режим [15:45:40]line Чек 190 20.02.2025 15:45 [15:45:40]line Смена: 648 ФФД: 1.0 [15:45:40]line ЗНМ: 0300000118 [15:45:40]line РНМ: 0000000000091857 [15:45:40]line Версия ККМ: 001 [15:45:40]line ФМ: 0000000000871826 [15:45:40]line ФД: 187389 [15:45:40]line ФПД: 10379121543130 [15:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T154539&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187389&fm=10379121543130&tin=02508201610067®Number=0000000000091857&sum=15000 [15:45:40]OFD Sender: Processing packet 187389 [packets to send 49, broken 48] [15:45:40]ProducePacketName [15:45:40]name=ofd_packets/00187389 [15:45:40]OFD Sender: To server: pG, [15:45:40]CommunicateWithHost lk.salyk.kg:30040 [15:45:40]ConnectInit lk.salyk.kg [15:45:40]written 0, free lines is 4095 [15:45:40]Connected sock=10 [15:45:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DB DC 07 01 95 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 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 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 3B 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 BE 00 00 00 F4 03 04 00 23 4E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DB 02 00 35 04 06 00 09 70 93 DA 47 DA 09 C2 48 6C 55 5E 84 0B [15:45:41]Write to MH i2c: 01 00 00 0F 12 21 [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 07 00 [15:45:41]MH_I2C_Read... [15:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3A 04 47 00 18 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DB 02 00 F4 03 04 00 74 F4 B6 67 B6 04 01 00 00 3B 84 3E 10 EC F1 A5 55 [15:45:41]CommunicateWithHost err = 0 [15:45:41]CheckOFDResponse [15:45:41]1017 (14) - 77093643461234 [15:45:41]1041 (16) - 0000000000871826 [15:45:41]1040 (4) - 187389 [15:45:41]1012 (4) - 20.02.2025 09:23 [15:45:41]1206 (1) - 0 [15:45:41]OFD Sender: Remove packet 187389 [15:45:41]ProducePacketName [15:45:41]name=ofd_packets/00187389 [15:45:41]NVStorageDeleteData [15:45:41]Read from MH i2c: 01 07 00 0F 12 00 00 00 00 00 E4 0C 18 [15:45:41]RasterBufferAndPrint [15:45:41]line [15:45:41]line [15:45:41]line [15:45:41]line [15:45:41]line [15:45:41]written 0, free lines is 3342 [15:45:41]MH_Cut [15:45:41]Write to MH i2c: D1 01 00 16 12 01 FA [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: D1 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: D1 01 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: D1 01 00 16 12 00 F9 [15:45:41]Write to MH i2c: 01 00 00 17 12 29 [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]OFD Sender: No OFD packet to send [15:45:41]*** Cut start [15:45:41]*** Partial cut [15:45:41]*** CUTSNS_PIN = 1 [15:45:41]*** CUTSNS_PIN = 0 [15:45:42]*** Brake cut motor [15:45:42]Read from MH i2c: 01 [15:45:42]MH_I2C_Read... [15:45:42]*** Stop cut motor [15:45:42]*** Cut end [15:45:42]Read from MH i2c: 01 07 00 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: 01 07 00 17 12 00 00 00 00 00 FF 0F 3E [15:45:42]process_action close_receipt done [15:45:42]requested_data is exist [15:45:42]produce_requested_data [15:45:42]requested_item fm.sn is exist - process it [15:45:42]wFMCommunicate request_size=4 [15:45:42]MH_SAM_APDU [15:45:42]CAPDU: 80 11 00 00 [15:45:42]Write to MH i2c: E2 08 00 18 12 80 11 00 00 00 00 00 00 A4 [15:45:42]Write i2c OK [15:45:42]MH_I2C_Read... [15:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:42]Read from MH i2c: E2 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 17 00 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 17 00 18 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [15:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:45:42]wFMCommunicate OK [15:45:42]requested_item fd.num is exist - process it [15:45:42]SAM_PROTO_GetFieldsCounters [15:45:42]wFMCommunicate request_size=4 [15:45:42]MH_SAM_APDU [15:45:42]CAPDU: 80 13 00 00 [15:45:42]Write to MH i2c: E2 08 00 19 12 80 13 00 00 00 00 00 00 A7 [15:45:42]Write i2c OK [15:45:42]MH_I2C_Read... [15:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:42]Read from MH i2c: E2 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 62 00 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 62 00 19 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FD DB 02 00 0E 04 04 00 88 02 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 6B [15: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FD DB 02 00 0E 04 04 00 88 02 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 [15:45:42]wFMCommunicate OK [15:45:42]SAM_PROTO_GetFieldsCounters done [15:45:42]requested_item shift.num is exist - process it [15:45:42]requested_item shift.opened is exist - process it [15:45:42]req_shift_opened [15:45:42]FM_GetShiftState [15:45:42]SAM_PROTO_GetShiftState [15:45:42]wFMCommunicate request_size=4 [15:45:42]MH_SAM_APDU [15:45:42]CAPDU: 80 13 01 00 [15:45:42]Write to MH i2c: E2 08 00 1A 12 80 13 01 00 00 00 00 00 A9 [15:45:42]Write i2c OK [15:45:42]MH_I2C_Read... [15:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:42]Read from MH i2c: E2 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 0E 00 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 0E 00 1A 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FB [15:45:42]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:45:42]wFMCommunicate OK [15:45:42]SAM_PROTO_GetShiftState done [15:45:42]FM_GetShiftState done [15:45:42]req_shift_opened done [15:45:42]requested_item shift.open_date is exist - process it [15:45:42]req_shift_open_date [15:45:42]req_shift_open_date done [15:45:42]produce_requested_data done [15:45:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187389,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:45:42]process_action_free close_receipt [15:45:42]json_value_free [15:45:42]json_value_free done [15:45:42]process_json_proto returns [15:45:42]Send response to host [15:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187389,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:45:42]free response buf [15:45:42]execute_script done [15:45:42]execute_script returns [15:45:42]free content buf [15:45:42]Sock 9.Close socket [15:45:42]Sock 9.Thread stoped [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:45:57]accept exits with 7 [15:45:57]New connection [15:45:57]New thread 3067420004 created [15:45:57]Thread 3067276644 joined [15:45:57]Waiting for new connection... [15:45:57] Sock 7.Parse request [15:45:57]Sock 7.Check first char [15:45:57]Sock 7.First char is OK [15:45:57]request: POST /json_proto HTTP/1.0 [15:45:57]Method: POST [15:45:57]URL: /json_proto [15:45:57]Method is POST - this is cgi request [15:45:57]url: /json_proto [15:45:57]query_string will be loaded in cgi processing [15:45:57]execute_cgi json_proto POST (null) [15:45:57]execute_cgi path=json_proto method=POST [15:45:57]POST find Content-Length [15:45:57]Host: 172.17.46.131:8080 [15:45:57]Content-Length: 678 [15:45:57]Content-Type: application/json [15:45:57] [15:45:57]POST finish read [15:45:57]Found Content-Length = 678 [15:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:57]execute_script... [15:45:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:57]POST & json_proto [15:45:57]process_json_proto [15:45:57]json parsed OK: [15:45:57]protocol is kg_v1.0 [15:45:57]action value=close_receipt [15:45:57]process_action close_receipt [15:45:57]cmd_close_receipt [15:45:57]MH_GetDate [15:45:57]Write to MH i2c: F0 00 00 1B 12 1C [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 09 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: F0 09 00 1B 12 00 37 4E B7 67 7E 41 4F 65 3B [15:45:57]GetLastDocTimeStamp 1740066339 [15:45:57]current date 1740066359 [15:45:57]FM_GetShiftState [15:45:57]SAM_PROTO_GetShiftState [15:45:57]wFMCommunicate request_size=4 [15:45:57]MH_SAM_APDU [15:45:57]CAPDU: 80 13 01 00 [15:45:57]Write to MH i2c: E2 08 00 1C 12 80 13 01 00 00 00 00 00 AB [15:45:57]Write i2c OK [15:45:57]MH_I2C_Read... [15:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:57]Read from MH i2c: E2 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 0E 00 [15:45:57]MH_I2C_Read... [15:45:57]Read from MH i2c: E2 0E 00 1C 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FD [15:45:57]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:45:57]wFMCommunicate OK [15:45:57]SAM_PROTO_GetShiftState done [15:45:57]FM_GetShiftState done [15:45:57]opened in 1740011697 [15:45:57]opened+sec_in_day 1740098097 [15:45:57]quantity*price = 150064 [15:45:57]sum+1 = 150065 [15:45:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 191 20.02.2025 15:45 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187390 ФПД: 62023475937467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T154559&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187390&fm=62023475937467&tin=02508201610067®Number=0000000000091857&sum=150000 [15:45:58]StoreToDocumentArchive [15:45:58]shift 648 fd 187390 [15:45:58]save to /storage/0648/doc_00187390 [15:45:58]save last doc name /storage/0648/doc_00187390 to /storage/kkm_last_doc_name [15:45:58]save OK [15:45:58]Clear old archive folders... [15:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:45:58]tlvbuf is 00E4F990 [15:45:58]SAM_PROTO_ClearQueue [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 09 00 00 [15:45:58]Write to MH i2c: E2 08 00 29 12 80 09 00 00 00 00 00 00 AD [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 29 12 00 90 00 AF [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_ClearQueue done [15:45:59]KKMCreateOFDPacket [15:45:59]OFDProtocolAddRootSTLVToBuf [15:45:59]FM_MakeSignedData [15:45:59]FM_MakeSignedData [15:45:59]SAM_PROTO_SignData [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 01 02 [15:45:59]Write to MH i2c: E2 08 00 2A 12 80 0D 01 02 00 00 00 00 B5 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 2A 12 00 90 00 B0 [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=255 [15:45:59]MH_SAM_APDU [15:45: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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 37 4E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DB 02 00 35 04 06 00 38 68 F7 40 [15:45:59]Write to MH i2c: E2 02 01 2B 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 37 4E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DB 02 00 35 04 06 00 38 68 F7 40 00 00 E0 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=7 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 02 02 02 40 BB [15:45:59]Write to MH i2c: E2 0A 00 2C 12 80 0D 02 02 02 00 40 BB 00 00 B7 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 2C 12 00 90 00 B2 [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 03 02 [15:45:59]Write to MH i2c: E2 08 00 2D 12 80 0D 03 02 00 00 00 00 BA [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0B 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0B 00 2D 12 00 A6 11 72 C3 91 82 3D 5B 90 00 52 [15:45:59]RAPDU: A6 11 72 C3 91 82 3D 5B 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_SignData done [15:45:59]FM_MakeSignedData done [15:45:59]CreateOFDProtocolMessage [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 11 00 00 [15:45:59]Write to MH i2c: E2 08 00 2E 12 80 11 00 00 00 00 00 00 BA [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 17 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 17 00 2E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0D [15:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:45:59]wFMCommunicate OK [15:45:59]CreateOFDProtocolMessage done [15:45:59]OFDSenderStorePacket 187390 [15:45:59]StoreOFDPacket docnum=187390 [15:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E2 DF 04 01 D3 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 37 4E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DB 02 00 35 04 06 00 38 68 F7 40 40 BB A6 11 72 C3 91 82 3D 5B [15:45:59]CheckFolder [15:45:59]dirname=/storage/ofd_packets [15:45:59]CheckFolder done [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00187390 [15:45:59]NVStorageSaveData ofd_packets/00187390 [15:45:59]File name is /storage/ofd_packets/00187390 [15:45:59]Write 298 bytes [15:45:59]NVStorageSaveData done [15:45:59]OFDSenderStorePacket done [15:45:59]KKMCreateOFDPacket done [15:45:59]NVStorageSaveData kkm_last_timestamp [15:45:59]File name is /storage/kkm_last_timestamp [15:45:59]Write 4 bytes [15:45:59]NVStorageSaveData done [15:45:59]ExternCall_PrintAddStr [15:45:59]wPrintStart [15:45:59]Write to MH i2c: 01 00 00 2F 12 41 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 2F 12 00 00 00 00 00 FF 0F 56 [15:45:59]RasterBufferAndPrint [15:45:59]line Счет N : (1)412548 [15:45:59]line ИНН: 02508201610067 [15:45:59]line Контрольно-Кассовый Чек [15:45:59]line ПРОДАЖА [15:45:59]line ТРК (МРК, ГНК) : 5 [15:45:59]line Товар: 2710194210 [15:45:59]line ДТ-К-5 [15:45:59]line 20.670 * 72.60 [15:45:59]line = 1500.64 [15:45:59]line НДС 12% НСП 1% [15:45:59]line > о реализуемом товаре [15:45:59]line ОКРУГЛЕНИЕ: -0.64 [15:45:59]line ИТОГО: 1500.00 [15:45:59]line Внесено: 1500.00 [15:45:59]line СДАЧА: 0.00 [15:45:59]line НСП 1% : 13.28 [15:45:59]line НДС 12% : 159.36 [15:45:59]line Наличными: 1500.00 [15:45:59]line Безнал.: 0.00 [15:45:59]line Место: АЗС № 92 "Партнер Нефть" [15:45:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:45:59]line СНО: Общий режим [15:45:59]line Чек 191 20.02.2025 15:45 [15:45:59]line Смена: 648 ФФД: 1.0 [15:45:59]line ЗНМ: 0300000118 [15:45:59]line РНМ: 0000000000091857 [15:45:59]line Версия ККМ: 001 [15:45:59]line ФМ: 0000000000871826 [15:45:59]line ФД: 187390 [15:45:59]line ФПД: 62023475937467 [15:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T154559&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187390&fm=62023475937467&tin=02508201610067®Number=0000000000091857&sum=150000 [15:45:59]OFD Sender: Processing packet 187390 [packets to send 49, broken 48] [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00187390 [15:45:59]OFD Sender: To server: pG, [15:45:59]CommunicateWithHost lk.salyk.kg:30040 [15:45:59]ConnectInit lk.salyk.kg [15:45:59]written 0, free lines is 4095 [15:46:00]Connected sock=10 [15:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E2 DF 04 01 D3 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 37 4E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DB 02 00 35 04 06 00 38 68 F7 40 40 BB A6 11 72 C3 91 82 3D 5B [15:46:00]Write to MH i2c: 01 00 00 5A 12 6C [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 07 00 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 07 00 5A 12 00 00 00 00 00 F3 0C 72 [15:46:00]RasterBufferAndPrint [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]written 0, free lines is 3321 [15:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 65 76 47 00 B6 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DB 02 00 F4 03 04 00 87 F4 B6 67 B6 04 01 00 00 EC 87 FE 8E 7A CF B6 62 [15:46:00]CommunicateWithHost err = 0 [15:46:00]CheckOFDResponse [15:46:00]1017 (14) - 77093643461234 [15:46:00]1041 (16) - 0000000000871826 [15:46:00]1040 (4) - 187390 [15:46:00]1012 (4) - 20.02.2025 09:23 [15:46:00]1206 (1) - 0 [15:46:00]OFD Sender: Remove packet 187390 [15:46:00]ProducePacketName [15:46:00]name=ofd_packets/00187390 [15:46:00]NVStorageDeleteData [15:46:00]MH_Cut [15:46:00]Write to MH i2c: D1 01 00 61 12 01 45 [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 01 00 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 01 00 61 12 00 44 [15:46:00]Write to MH i2c: 01 00 00 62 12 74 [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:00]OFD Sender: No OFD packet to send [15:46:00]*** Cut start [15:46:00]*** Partial cut [15:46:00]*** CUTSNS_PIN = 1 [15:46:01]*** CUTSNS_PIN = 0 [15:46:01]*** Brake cut motor [15:46:01]Read from MH i2c: 01 [15:46:01]MH_I2C_Read... [15:46:01]*** Stop cut motor [15:46:01]*** Cut end [15:46:01]Read from MH i2c: 01 07 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: 01 07 00 62 12 00 00 00 00 00 FF 0F 89 [15:46:01]process_action close_receipt done [15:46:01]requested_data is exist [15:46:01]produce_requested_data [15:46:01]requested_item fm.sn is exist - process it [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 11 00 00 [15:46:01]Write to MH i2c: E2 08 00 63 12 80 11 00 00 00 00 00 00 EF [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 17 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 17 00 63 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [15:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:46:01]wFMCommunicate OK [15:46:01]requested_item fd.num is exist - process it [15:46:01]SAM_PROTO_GetFieldsCounters [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 13 00 00 [15:46:01]Write to MH i2c: E2 08 00 64 12 80 13 00 00 00 00 00 00 F2 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 62 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 62 00 64 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FE DB 02 00 0E 04 04 00 88 02 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 BA [15:46:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FE DB 02 00 0E 04 04 00 88 02 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:46:01]wFMCommunicate OK [15:46:01]SAM_PROTO_GetFieldsCounters done [15:46:01]requested_item shift.num is exist - process it [15:46:01]requested_item shift.opened is exist - process it [15:46:01]req_shift_opened [15:46:01]FM_GetShiftState [15:46:01]SAM_PROTO_GetShiftState [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 13 01 00 [15:46:01]Write to MH i2c: E2 08 00 65 12 80 13 01 00 00 00 00 00 F4 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 0E 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 0E 00 65 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 46 [15:46:01]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:46:01]wFMCommunicate OK [15:46:01]SAM_PROTO_GetShiftState done [15:46:01]FM_GetShiftState done [15:46:01]req_shift_opened done [15:46:01]requested_item shift.open_date is exist - process it [15:46:01]req_shift_open_date [15:46:01]req_shift_open_date done [15:46:01]produce_requested_data done [15:46:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187390,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:46:01]process_action_free close_receipt [15:46:01]json_value_free [15:46:01]json_value_free done [15:46:01]process_json_proto returns [15:46:01]Send response to host [15:46:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187390,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:46:01]free response buf [15:46:01]execute_script done [15:46:01]execute_script returns [15:46:01]free content buf [15:46:01]Sock 7.Close socket [15:46:01]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:14]accept exits with 9 [15:50:14]New connection [15:50:14]New thread 3067276644 created [15:50:14]Thread 3067420004 joined [15:50:14]Waiting for new connection... [15:50:14] Sock 9.Parse request [15:50:14]Sock 9.Check first char [15:50:14]Sock 9.First char is OK [15:50:14]request: POST /json_proto HTTP/1.0 [15:50:14]Method: POST [15:50:14]URL: /json_proto [15:50:14]Method is POST - this is cgi request [15:50:14]url: /json_proto [15:50:14]query_string will be loaded in cgi processing [15:50:14]execute_cgi json_proto POST (null) [15:50:14]execute_cgi path=json_proto method=POST [15:50:14]POST find Content-Length [15:50:14]Host: 172.17.46.131:8080 [15:50:14]Content-Length: 788 [15:50:14]Content-Type: application/json [15:50:14] [15:50:14]POST finish read [15:50:14]Found Content-Length = 788 [15:50:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 75.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99916", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:14]execute_script... [15:50: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)412550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 75.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99916", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:14]POST & json_proto [15:50:14]process_json_proto [15:50:14]json parsed OK: [15:50:14]protocol is kg_v1.0 [15:50:14]action value=close_receipt [15:50:14]process_action close_receipt [15:50:14]cmd_close_receipt [15:50:14]MH_GetDate [15:50:14]Write to MH i2c: F0 00 00 66 12 67 [15:50:14]Write i2c OK [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: F0 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: F0 09 00 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: F0 09 00 66 12 00 37 4F B7 67 7E 41 4F 65 87 [15:50:14]GetLastDocTimeStamp 1740066359 [15:50:14]current date 1740066615 [15:50:14]FM_GetShiftState [15:50:14]SAM_PROTO_GetShiftState [15:50:14]wFMCommunicate request_size=4 [15:50:14]MH_SAM_APDU [15:50:14]CAPDU: 80 13 01 00 [15:50:14]Write to MH i2c: E2 08 00 67 12 80 13 01 00 00 00 00 00 F6 [15:50:14]Write i2c OK [15:50:14]MH_I2C_Read... [15:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:14]Read from MH i2c: E2 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 0E 00 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 0E 00 67 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 48 [15:50:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:50:14]wFMCommunicate OK [15:50:14]SAM_PROTO_GetShiftState done [15:50:14]FM_GetShiftState done [15:50:14]opened in 1740011697 [15:50:14]opened+sec_in_day 1740098097 [15:50:14]quantity*price = 0 [15:50:14]sum+1 = 1 [15:50:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 192 20.02.2025 15:50 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99916 ФМ: 0000000000871826 ФД: 187391 ФПД: 68341653016317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T155015&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187391&fm=68341653016317&tin=02508201610067®Number=0000000000091857&sum=0 [15:50:15]StoreToDocumentArchive [15:50:15]shift 648 fd 187391 [15:50:15]save to /storage/0648/doc_00187391 [15:50:15]save last doc name /storage/0648/doc_00187391 to /storage/kkm_last_doc_name [15:50:15]save OK [15:50:15]Clear old archive folders... [15:50:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:50:15]tlvbuf is 00E696E0 [15:50:15]SAM_PROTO_ClearQueue [15:50:15]wFMCommunicate request_size=4 [15:50:15]MH_SAM_APDU [15:50:15]CAPDU: 80 09 00 00 [15:50:15]Write to MH i2c: E2 08 00 74 12 80 09 00 00 00 00 00 00 F8 [15:50:15]Write i2c OK [15:50:15]MH_I2C_Read... [15:50:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:15]Read from MH i2c: E2 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 03 00 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 03 00 74 12 00 90 00 FA [15:50:15]RAPDU: 90 00 [15:50:15]wFMCommunicate OK [15:50:15]SAM_PROTO_ClearQueue done [15:50:15]KKMCreateOFDPacket [15:50:15]OFDProtocolAddRootSTLVToBuf [15:50:15]FM_MakeSignedData [15:50:15]FM_MakeSignedData [15:50:15]SAM_PROTO_SignData [15:50:15]wFMCommunicate request_size=4 [15:50:15]MH_SAM_APDU [15:50:15]CAPDU: 80 0D 01 02 [15:50:15]Write to MH i2c: E2 08 00 75 12 80 0D 01 02 00 00 00 00 00 [15:50:15]Write i2c OK [15:50:15]MH_I2C_Read... [15:50:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:15]Read from MH i2c: E2 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 03 00 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [15:50:15]RAPDU: 90 00 [15:50:15]wFMCommunicate OK [15:50:15]wFMCommunicate request_size=255 [15:50:15]MH_SAM_APDU [15:50: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 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 37 4F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DB 02 00 35 04 06 00 3E 28 07 F3 [15:50:15]Write to MH i2c: E2 02 01 76 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 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 37 4F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DB 02 00 35 04 06 00 3E 28 07 F3 00 00 A9 [15:50:15]Write i2c OK [15:50:15]MH_I2C_Read... [15:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:15]Read from MH i2c: E2 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 03 00 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [15:50:15]RAPDU: 90 00 [15:50:15]wFMCommunicate OK [15:50:15]wFMCommunicate request_size=7 [15:50:15]MH_SAM_APDU [15:50:15]CAPDU: 80 0D 02 02 02 8E FD [15:50:15]Write to MH i2c: E2 0A 00 77 12 80 0D 02 02 02 00 8E FD 00 00 92 [15:50:15]Write i2c OK [15:50:15]MH_I2C_Read... [15:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:15]Read from MH i2c: E2 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 03 00 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 03 00 77 12 00 90 00 FD [15:50:15]RAPDU: 90 00 [15:50:15]wFMCommunicate OK [15:50:15]wFMCommunicate request_size=4 [15:50:15]MH_SAM_APDU [15:50:15]CAPDU: 80 0D 03 02 [15:50:15]Write to MH i2c: E2 08 00 78 12 80 0D 03 02 00 00 00 00 05 [15:50:15]Write i2c OK [15:50:15]MH_I2C_Read... [15:50:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:15]Read from MH i2c: E2 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 0B 00 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 0B 00 78 12 00 D6 E9 3F 06 3A 69 4A 29 90 00 20 [15:50:15]RAPDU: D6 E9 3F 06 3A 69 4A 29 90 00 [15:50:15]wFMCommunicate OK [15:50:15]SAM_PROTO_SignData done [15:50:15]FM_MakeSignedData done [15:50:15]CreateOFDProtocolMessage [15:50:15]wFMCommunicate request_size=4 [15:50:15]MH_SAM_APDU [15:50:15]CAPDU: 80 11 00 00 [15:50:15]Write to MH i2c: E2 08 00 79 12 80 11 00 00 00 00 00 00 05 [15:50:15]Write i2c OK [15:50:15]MH_I2C_Read... [15:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:15]Read from MH i2c: E2 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 17 00 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: E2 17 00 79 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [15:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:50:15]wFMCommunicate OK [15:50:15]CreateOFDProtocolMessage done [15:50:15]OFDSenderStorePacket 187391 [15:50:15]StoreOFDPacket docnum=187391 [15:50:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8D 37 04 01 A3 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 37 4F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DB 02 00 35 04 06 00 3E 28 07 F3 8E FD D6 E9 3F 06 3A 69 4A 29 [15:50:15]CheckFolder [15:50:15]dirname=/storage/ofd_packets [15:50:15]CheckFolder done [15:50:15]ProducePacketName [15:50:15]name=ofd_packets/00187391 [15:50:15]NVStorageSaveData ofd_packets/00187391 [15:50:15]File name is /storage/ofd_packets/00187391 [15:50:15]Write 298 bytes [15:50:15]NVStorageSaveData done [15:50:15]OFDSenderStorePacket done [15:50:15]KKMCreateOFDPacket done [15:50:15]NVStorageSaveData kkm_last_timestamp [15:50:15]File name is /storage/kkm_last_timestamp [15:50:15]Write 4 bytes [15:50:15]NVStorageSaveData done [15:50:15]ExternCall_PrintAddStr [15:50:15]wPrintStart [15:50:15]Write to MH i2c: 01 00 00 7A 12 8C [15:50:15]Write i2c OK [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: 01 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: 01 07 00 [15:50:15]MH_I2C_Read... [15:50:15]Read from MH i2c: 01 07 00 7A 12 00 00 00 00 00 FF 0F A1 [15:50:15]RasterBufferAndPrint [15:50:15]line Счет N : (1)412550 [15:50:15]line ИНН: 02508201610067 [15:50:15]line Контрольно-Кассовый Чек [15:50:15]line ПРОДАЖА [15:50:15]line ТРК (МРК, ГНК) : 6 [15:50:15]line Товар: 2710194210 [15:50:15]line ДТ-К-5 [15:50:15]line 75.000 * 0.00 [15:50:15]line = 0.00 [15:50:15]line НДС 12% НСП 1% [15:50:15]line > о реализуемом товаре [15:50:15]line ИТОГО: 0.00 [15:50:15]line НСП 1% : 0.00 [15:50:15]line НДС 12% : 0.00 [15:50:15]line Наличными: 0.00 [15:50:15]line Безнал.: 0.00 [15:50:15]line Место: АЗС № 92 "Партнер Нефть" [15:50:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:50:15]line СНО: Общий режим [15:50:15]line Чек 192 20.02.2025 15:50 [15:50:15]line Смена: 648 ФФД: 1.0 [15:50:15]line ЗНМ: 0300000118 [15:50:15]line РНМ: 0000000000091857 [15:50:15]line Версия ККМ: 001 [15:50:15]line Талоны: Топливная Карта [15:50:15]line 99916 [15:50:15]line ФМ: 0000000000871826 [15:50:15]line ФД: 187391 [15:50:15]line ФПД: 68341653016317 [15:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T155015&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187391&fm=68341653016317&tin=02508201610067®Number=0000000000091857&sum=0 [15:50:16]OFD Sender: Processing packet 187391 [packets to send 49, broken 48] [15:50:16]ProducePacketName [15:50:16]name=ofd_packets/00187391 [15:50:16]OFD Sender: To server: pG, [15:50:16]CommunicateWithHost lk.salyk.kg:30040 [15:50:16]ConnectInit lk.salyk.kg [15:50:16]written 0, free lines is 4095 [15:50:16]Connected sock=10 [15:50:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8D 37 04 01 A3 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 24 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 37 4F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DB 02 00 35 04 06 00 3E 28 07 F3 8E FD D6 E9 3F 06 3A 69 4A 29 [15:50:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 42 83 47 00 91 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DB 02 00 F4 03 04 00 87 F5 B6 67 B6 04 01 00 00 4F B6 BA 94 C0 73 BA 0F [15:50:16]CommunicateWithHost err = 0 [15:50:16]CheckOFDResponse [15:50:16]1017 (14) - 77093643461234 [15:50:16]1041 (16) - 0000000000871826 [15:50:16]1040 (4) - 187391 [15:50:16]1012 (4) - 20.02.2025 09:27 [15:50:16]1206 (1) - 0 [15:50:16]OFD Sender: Remove packet 187391 [15:50:16]ProducePacketName [15:50:16]name=ofd_packets/00187391 [15:50:16]NVStorageDeleteData [15:50:16]Write to MH i2c: 01 00 00 A4 12 B6 [15:50:16]Write i2c OK [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: 01 [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: 01 07 00 [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: 01 07 00 A4 12 00 00 00 00 00 F5 0C BE [15:50:16]RasterBufferAndPrint [15:50:16]line [15:50:16]line [15:50:16]line [15:50:16]line [15:50:16]line [15:50:16]written 0, free lines is 3323 [15:50:16]MH_Cut [15:50:16]Write to MH i2c: D1 01 00 AB 12 01 8F [15:50:16]Write i2c OK [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: D1 [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: D1 01 00 [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: D1 01 00 AB 12 00 8E [15:50:16]Write to MH i2c: 01 00 00 AC 12 BE [15:50:16]Write i2c OK [15:50:16]MH_I2C_Read... [15:50:17]OFD Sender: No OFD packet to send [15:50:17]*** Cut start [15:50:17]*** Partial cut [15:50:17]*** CUTSNS_PIN = 1 [15:50:17]*** CUTSNS_PIN = 0 [15:50:17]*** Brake cut motor [15:50:18]Read from MH i2c: 01 [15:50:18]MH_I2C_Read... [15:50:18]*** Stop cut motor [15:50:18]*** Cut end [15:50:18]Read from MH i2c: 01 07 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: 01 07 00 AC 12 00 00 00 00 00 FF 0F D3 [15:50:18]process_action close_receipt done [15:50:18]requested_data is exist [15:50:18]produce_requested_data [15:50:18]requested_item fm.sn is exist - process it [15:50:18]wFMCommunicate request_size=4 [15:50:18]MH_SAM_APDU [15:50:18]CAPDU: 80 11 00 00 [15:50:18]Write to MH i2c: E2 08 00 AD 12 80 11 00 00 00 00 00 00 39 [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:18]Read from MH i2c: E2 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 17 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 17 00 AD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [15:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:50:18]wFMCommunicate OK [15:50:18]requested_item fd.num is exist - process it [15:50:18]SAM_PROTO_GetFieldsCounters [15:50:18]wFMCommunicate request_size=4 [15:50:18]MH_SAM_APDU [15:50:18]CAPDU: 80 13 00 00 [15:50:18]Write to MH i2c: E2 08 00 AE 12 80 13 00 00 00 00 00 00 3C [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:18]Read from MH i2c: E2 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 62 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 62 00 AE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FF DB 02 00 0E 04 04 00 88 02 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 08 [15:50:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FF DB 02 00 0E 04 04 00 88 02 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:50:18]wFMCommunicate OK [15:50:18]SAM_PROTO_GetFieldsCounters done [15:50:18]requested_item shift.num is exist - process it [15:50:18]requested_item shift.opened is exist - process it [15:50:18]req_shift_opened [15:50:18]FM_GetShiftState [15:50:18]SAM_PROTO_GetShiftState [15:50:18]wFMCommunicate request_size=4 [15:50:18]MH_SAM_APDU [15:50:18]CAPDU: 80 13 01 00 [15:50:18]Write to MH i2c: E2 08 00 AF 12 80 13 01 00 00 00 00 00 3E [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:18]Read from MH i2c: E2 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 0E 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 0E 00 AF 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 90 [15:50:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:50:18]wFMCommunicate OK [15:50:18]SAM_PROTO_GetShiftState done [15:50:18]FM_GetShiftState done [15:50:18]req_shift_opened done [15:50:18]requested_item shift.open_date is exist - process it [15:50:18]req_shift_open_date [15:50:18]req_shift_open_date done [15:50:18]produce_requested_data done [15:50:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187391,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:50:18]process_action_free close_receipt [15:50:18]json_value_free [15:50:18]json_value_free done [15:50:18]process_json_proto returns [15:50:18]Send response to host [15:50:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187391,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:50:18]free response buf [15:50:18]execute_script done [15:50:18]execute_script returns [15:50:18]free content buf [15:50:18]Sock 9.Close socket [15:50:18]Sock 9.Thread stoped [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:03]accept exits with 7 [15:51:03]New connection [15:51:03]New thread 3067420004 created [15:51:03]Thread 3067276644 joined [15:51:03]Waiting for new connection... [15:51:03] Sock 7.Parse request [15:51:03]Sock 7.Check first char [15:51:03]Sock 7.First char is OK [15:51:03]request: POST /json_proto HTTP/1.0 [15:51:03]Method: POST [15:51:03]URL: /json_proto [15:51:03]Method is POST - this is cgi request [15:51:03]url: /json_proto [15:51:03]query_string will be loaded in cgi processing [15:51:03]execute_cgi json_proto POST (null) [15:51:03]execute_cgi path=json_proto method=POST [15:51:03]POST find Content-Length [15:51:03]Host: 172.17.46.131:8080 [15:51:03]Content-Length: 682 [15:51:03]Content-Type: application/json [15:51:03] [15:51:03]POST finish read [15:51:03]Found Content-Length = 682 [15:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:03]execute_script... [15:51: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)412551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:03]POST & json_proto [15:51:03]process_json_proto [15:51:03]json parsed OK: [15:51:03]protocol is kg_v1.0 [15:51:03]action value=close_receipt [15:51:03]process_action close_receipt [15:51:03]cmd_close_receipt [15:51:03]MH_GetDate [15:51:03]Write to MH i2c: F0 00 00 B0 12 B1 [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: F0 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: F0 09 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: F0 09 00 B0 12 00 69 4F B7 67 7E 41 4F 65 03 [15:51:03]GetLastDocTimeStamp 1740066615 [15:51:03]current date 1740066665 [15:51:03]FM_GetShiftState [15:51:03]SAM_PROTO_GetShiftState [15:51:03]wFMCommunicate request_size=4 [15:51:03]MH_SAM_APDU [15:51:03]CAPDU: 80 13 01 00 [15:51:03]Write to MH i2c: E2 08 00 B1 12 80 13 01 00 00 00 00 00 40 [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:04]Read from MH i2c: E2 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 0E 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 0E 00 B1 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 92 [15:51:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:51:04]wFMCommunicate OK [15:51:04]SAM_PROTO_GetShiftState done [15:51:04]FM_GetShiftState done [15:51:04]opened in 1740011697 [15:51:04]opened+sec_in_day 1740098097 [15:51:04]quantity*price = 200047 [15:51:04]sum+1 = 200048 [15:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 193 20.02.2025 15:51 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187392 ФПД: 32375349903294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T155105&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187392&fm=32375349903294&tin=02508201610067®Number=0000000000091857&sum=200000 [15:51:05]StoreToDocumentArchive [15:51:05]shift 648 fd 187392 [15:51:05]save to /storage/0648/doc_00187392 [15:51:05]save last doc name /storage/0648/doc_00187392 to /storage/kkm_last_doc_name [15:51:05]save OK [15:51:05]Clear old archive folders... [15:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:05]tlvbuf is 00E4F610 [15:51:05]SAM_PROTO_ClearQueue [15:51:05]wFMCommunicate request_size=4 [15:51:05]MH_SAM_APDU [15:51:05]CAPDU: 80 09 00 00 [15:51:05]Write to MH i2c: E2 08 00 BE 12 80 09 00 00 00 00 00 00 42 [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [15:51:05]RAPDU: 90 00 [15:51:05]wFMCommunicate OK [15:51:05]SAM_PROTO_ClearQueue done [15:51:05]KKMCreateOFDPacket [15:51:05]OFDProtocolAddRootSTLVToBuf [15:51:05]FM_MakeSignedData [15:51:05]FM_MakeSignedData [15:51:05]SAM_PROTO_SignData [15:51:05]wFMCommunicate request_size=4 [15:51:05]MH_SAM_APDU [15:51:05]CAPDU: 80 0D 01 02 [15:51:05]Write to MH i2c: E2 08 00 BF 12 80 0D 01 02 00 00 00 00 4A [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [15:51:05]RAPDU: 90 00 [15:51:05]wFMCommunicate OK [15:51:05]wFMCommunicate request_size=255 [15:51:05]MH_SAM_APDU [15:51: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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 69 4F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DC 02 00 35 04 06 00 1D [15:51:05]Write to MH i2c: E2 02 01 C0 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 69 4F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DC 02 00 35 04 06 00 1D 00 00 2D [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [15:51:05]RAPDU: 90 00 [15:51:05]wFMCommunicate OK [15:51:05]wFMCommunicate request_size=10 [15:51:05]MH_SAM_APDU [15:51:05]CAPDU: 80 0D 02 02 05 71 F9 3A FF BE [15:51:05]Write to MH i2c: E2 0D 00 C1 12 80 0D 02 02 05 00 71 F9 3A FF BE 00 00 B8 [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [15:51:05]RAPDU: 90 00 [15:51:05]wFMCommunicate OK [15:51:05]wFMCommunicate request_size=4 [15:51:05]MH_SAM_APDU [15:51:05]CAPDU: 80 0D 03 02 [15:51:05]Write to MH i2c: E2 08 00 C2 12 80 0D 03 02 00 00 00 00 4F [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 0B 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 0B 00 C2 12 00 EE FA D5 8B 9E 0B B0 8B 90 00 7C [15:51:05]RAPDU: EE FA D5 8B 9E 0B B0 8B 90 00 [15:51:05]wFMCommunicate OK [15:51:05]SAM_PROTO_SignData done [15:51:05]FM_MakeSignedData done [15:51:05]CreateOFDProtocolMessage [15:51:05]wFMCommunicate request_size=4 [15:51:05]MH_SAM_APDU [15:51:05]CAPDU: 80 11 00 00 [15:51:05]Write to MH i2c: E2 08 00 C3 12 80 11 00 00 00 00 00 00 4F [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 17 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 17 00 C3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [15:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:51:05]wFMCommunicate OK [15:51:05]CreateOFDProtocolMessage done [15:51:05]OFDSenderStorePacket 187392 [15:51:05]StoreOFDPacket docnum=187392 [15:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 12 E9 07 01 6A D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 69 4F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DC 02 00 35 04 06 00 1D 71 F9 3A FF BE EE FA D5 8B 9E 0B B0 8B [15:51:05]CheckFolder [15:51:05]dirname=/storage/ofd_packets [15:51:05]CheckFolder done [15:51:05]ProducePacketName [15:51:05]name=ofd_packets/00187392 [15:51:05]NVStorageSaveData ofd_packets/00187392 [15:51:05]File name is /storage/ofd_packets/00187392 [15:51:05]Write 301 bytes [15:51:05]NVStorageSaveData done [15:51:05]OFDSenderStorePacket done [15:51:05]KKMCreateOFDPacket done [15:51:05]NVStorageSaveData kkm_last_timestamp [15:51:05]File name is /storage/kkm_last_timestamp [15:51:05]Write 4 bytes [15:51:05]NVStorageSaveData done [15:51:05]OFD Sender: Processing packet 187392 [packets to send 49, broken 48] [15:51:05]ProducePacketName [15:51:05]name=ofd_packets/00187392 [15:51:05]OFD Sender: To server: pG, [15:51:05]CommunicateWithHost lk.salyk.kg:30040 [15:51:05]ConnectInit lk.salyk.kg [15:51:05]ExternCall_PrintAddStr [15:51:05]wPrintStart [15:51:05]Write to MH i2c: 01 00 00 C4 12 D6 [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 07 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 07 00 C4 12 00 00 00 00 00 FF 0F EB [15:51:05]RasterBufferAndPrint [15:51:05]line Счет N : (1)412551 [15:51:05]line ИНН: 02508201610067 [15:51:05]line Контрольно-Кассовый Чек [15:51:05]line ПРОДАЖА [15:51:05]line ТРК (МРК, ГНК) : 32 [15:51:05]line Товар: 2710124130 [15:51:05]line Аи-92-К-2 [15:51:05]line 31.160 * 64.20 [15:51:05]line = 2000.47 [15:51:05]line НДС 12% НСП 1% [15:51:05]line > о реализуемом товаре [15:51:05]line ОКРУГЛЕНИЕ: -0.47 [15:51:05]line ИТОГО: 2000.00 [15:51:05]line Внесено: 2000.00 [15:51:05]line СДАЧА: 0.00 [15:51:05]line НСП 1% : 17.70 [15:51:05]line НДС 12% : 212.44 [15:51:05]line Наличными: 2000.00 [15:51:05]line Безнал.: 0.00 [15:51:05]line Место: АЗС № 92 "Партнер Нефть" [15:51:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:51:05]line СНО: Общий режим [15:51:05]line Чек 193 20.02.2025 15:51 [15:51:05]line Смена: 648 ФФД: 1.0 [15:51:05]line ЗНМ: 0300000118 [15:51:05]line РНМ: 0000000000091857 [15:51:05]line Версия ККМ: 001 [15:51:05]line ФМ: 0000000000871826 [15:51:05]line ФД: 187392 [15:51:05]line ФПД: 32375349903294 [15:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T155105&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187392&fm=32375349903294&tin=02508201610067®Number=0000000000091857&sum=200000 [15:51:06]Connected sock=11 [15:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 12 E9 07 01 6A D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 69 4F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DC 02 00 35 04 06 00 1D 71 F9 3A FF BE EE FA D5 8B 9E 0B B0 8B [15:51:06]written 0, free lines is 4095 [15:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 04 7E 47 00 59 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DC 02 00 F4 03 04 00 B9 F5 B6 67 B6 04 01 00 00 6C 97 B6 53 FD C9 5D DE [15:51:06]CommunicateWithHost err = 0 [15:51:06]CheckOFDResponse [15:51:06]1017 (14) - 77093643461234 [15:51:06]1041 (16) - 0000000000871826 [15:51:06]1040 (4) - 187392 [15:51:06]1012 (4) - 20.02.2025 09:28 [15:51:06]1206 (1) - 0 [15:51:06]OFD Sender: Remove packet 187392 [15:51:06]ProducePacketName [15:51:06]name=ofd_packets/00187392 [15:51:06]NVStorageDeleteData [15:51:06]Write to MH i2c: 01 00 00 EF 12 01 [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: 01 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: 01 07 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 F4 0C 08 [15:51:06]RasterBufferAndPrint [15:51:06]line [15:51:06]line [15:51:06]line [15:51:06]line [15:51:06]line [15:51:06]written 0, free lines is 3322 [15:51:06]MH_Cut [15:51:06]Write to MH i2c: D1 01 00 F6 12 01 DA [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: D1 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: D1 01 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: D1 01 00 F6 12 00 D9 [15:51:06]Write to MH i2c: 01 00 00 F7 12 09 [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]OFD Sender: No OFD packet to send [15:51:07]*** Cut start [15:51:07]*** Partial cut [15:51:07]*** CUTSNS_PIN = 1 [15:51:07]*** CUTSNS_PIN = 0 [15:51:07]*** Brake cut motor [15:51:07]Read from MH i2c: 01 [15:51:07]MH_I2C_Read... [15:51:07]*** Stop cut motor [15:51:07]*** Cut end [15:51:07]Read from MH i2c: 01 07 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 FF 0F 1E [15:51:07]process_action close_receipt done [15:51:07]requested_data is exist [15:51:07]produce_requested_data [15:51:07]requested_item fm.sn is exist - process it [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 11 00 00 [15:51:07]Write to MH i2c: E2 08 00 F8 12 80 11 00 00 00 00 00 00 84 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:07]Read from MH i2c: E2 17 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 17 00 F8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [15:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:51:07]wFMCommunicate OK [15:51:07]requested_item fd.num is exist - process it [15:51:07]SAM_PROTO_GetFieldsCounters [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 13 00 00 [15:51:07]Write to MH i2c: E2 08 00 F9 12 80 13 00 00 00 00 00 00 87 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 62 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 62 00 F9 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 00 DC 02 00 0E 04 04 00 88 02 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 58 [15:51:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 00 DC 02 00 0E 04 04 00 88 02 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:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_GetFieldsCounters done [15:51:08]requested_item shift.num is exist - process it [15:51:08]requested_item shift.opened is exist - process it [15:51:08]req_shift_opened [15:51:08]FM_GetShiftState [15:51:08]SAM_PROTO_GetShiftState [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 13 01 00 [15:51:08]Write to MH i2c: E2 08 00 FA 12 80 13 01 00 00 00 00 00 89 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0E 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0E 00 FA 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DB [15:51:08]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_GetShiftState done [15:51:08]FM_GetShiftState done [15:51:08]req_shift_opened done [15:51:08]requested_item shift.open_date is exist - process it [15:51:08]req_shift_open_date [15:51:08]req_shift_open_date done [15:51:08]produce_requested_data done [15:51:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187392,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:51:08]process_action_free close_receipt [15:51:08]json_value_free [15:51:08]json_value_free done [15:51:08]process_json_proto returns [15:51:08]Send response to host [15:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187392,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:51:08]free response buf [15:51:08]execute_script done [15:51:08]execute_script returns [15:51:08]free content buf [15:51:08]Sock 7.Close socket [15:51:08]Sock 7.Thread stoped [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:47]accept exits with 9 [15:53:47]New connection [15:53:47]New thread 3067276644 created [15:53:47]Thread 3067420004 joined [15:53:47]Waiting for new connection... [15:53:47] Sock 9.Parse request [15:53:47]Sock 9.Check first char [15:53:47]Sock 9.First char is OK [15:53:47]request: POST /json_proto HTTP/1.0 [15:53:47]Method: POST [15:53:47]URL: /json_proto [15:53:47]Method is POST - this is cgi request [15:53:47]url: /json_proto [15:53:47]query_string will be loaded in cgi processing [15:53:47]execute_cgi json_proto POST (null) [15:53:47]execute_cgi path=json_proto method=POST [15:53:47]POST find Content-Length [15:53:47]Host: 172.17.46.131:8080 [15:53:47]Content-Length: 682 [15:53:47]Content-Type: application/json [15:53:47] [15:53:47]POST finish read [15:53:47]Found Content-Length = 682 [15:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [15:53:47]execute_script... [15: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)412552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [15:53:47]POST & json_proto [15:53:47]process_json_proto [15:53:47]json parsed OK: [15:53:47]protocol is kg_v1.0 [15:53:47]action value=close_receipt [15:53:47]process_action close_receipt [15:53:47]cmd_close_receipt [15:53:47]MH_GetDate [15:53:47]Write to MH i2c: F0 00 00 FB 12 FC [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: F0 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: F0 09 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: F0 09 00 FB 12 00 0C 50 B7 67 7E 41 4F 65 F2 [15:53:47]GetLastDocTimeStamp 1740066665 [15:53:47]current date 1740066828 [15:53:47]FM_GetShiftState [15:53:47]SAM_PROTO_GetShiftState [15:53:47]wFMCommunicate request_size=4 [15:53:47]MH_SAM_APDU [15:53:47]CAPDU: 80 13 01 00 [15:53:47]Write to MH i2c: E2 08 00 FC 12 80 13 01 00 00 00 00 00 8B [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:47]Read from MH i2c: E2 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 0E 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 0E 00 FC 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DD [15:53:47]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:53:47]wFMCommunicate OK [15:53:47]SAM_PROTO_GetShiftState done [15:53:47]FM_GetShiftState done [15:53:47]opened in 1740011697 [15:53:47]opened+sec_in_day 1740098097 [15:53:47]quantity*price = 150055 [15:53:47]sum+1 = 150056 [15:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 194 20.02.2025 15:53 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187393 ФПД: 126495117359344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T155348&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187393&fm=126495117359344&tin=02508201610067®Number=0000000000091857&sum=150000 [15:53:48]StoreToDocumentArchive [15:53:48]shift 648 fd 187393 [15:53:48]save to /storage/0648/doc_00187393 [15:53:48]save last doc name /storage/0648/doc_00187393 to /storage/kkm_last_doc_name [15:53:48]save OK [15:53:48]Clear old archive folders... [15:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:48]tlvbuf is 00E1F010 [15:53:48]SAM_PROTO_ClearQueue [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 09 00 00 [15:53:48]Write to MH i2c: E2 08 00 09 13 80 09 00 00 00 00 00 00 8E [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 09 00 00... 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 09 13 00 90 00 90 [15:53:48]RAPDU: 90 00 [15:53:48]wFMCommunicate OK [15:53:48]SAM_PROTO_ClearQueue done [15:53:48]KKMCreateOFDPacket [15:53:48]OFDProtocolAddRootSTLVToBuf [15:53:48]FM_MakeSignedData [15:53:48]FM_MakeSignedData [15:53:48]SAM_PROTO_SignData [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 0D 01 02 [15:53:48]Write to MH i2c: E2 08 00 0A 13 80 0D 01 02 00 00 00 00 96 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 0D 01 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 0A 13 00 90 00 91 [15:53:48]RAPDU: 90 00 [15:53:48]wFMCommunicate OK [15:53:48]wFMCommunicate request_size=255 [15:53:48]MH_SAM_APDU [15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 C2 00 00 00 F4 03 04 00 0C 50 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DC 02 00 35 04 06 00 73 [15:53:48]Write to MH i2c: E2 02 01 0B 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 C2 00 00 00 F4 03 04 00 0C 50 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DC 02 00 35 04 06 00 73 00 00 65 [15:53:48]Write i2c OK [15:53:48]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 0B 13 00 90 00 92 [15:53:48]RAPDU: 90 00 [15:53:48]wFMCommunicate OK [15:53:48]wFMCommunicate request_size=10 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 0D 02 02 05 0B F0 89 38 F0 [15:53:48]Write to MH i2c: E2 0D 00 0C 13 80 0D 02 02 05 00 0B F0 89 38 F0 00 00 4F [15:53:48]Write i2c OK [15:53:48]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 0C 13 00 90 00 93 [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 0D 13 80 0D 03 02 00 00 00 00 9B [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 0D 13 00 FE D7 EA 30 CC 2A AD 49 90 00 77 [15:53:48]RAPDU: FE D7 EA 30 CC 2A AD 49 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 0E 13 80 11 00 00 00 00 00 00 9B [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:49]Read from MH i2c: E2 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: E2 17 00 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: E2 17 00 0E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [15:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:53:49]wFMCommunicate OK [15:53:49]CreateOFDProtocolMessage done [15:53:49]OFDSenderStorePacket 187393 [15:53:49]StoreOFDPacket docnum=187393 [15:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E2 BC 07 01 66 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 0C 50 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DC 02 00 35 04 06 00 73 0B F0 89 38 F0 FE D7 EA 30 CC 2A AD 49 [15:53:49]CheckFolder [15:53:49]dirname=/storage/ofd_packets [15:53:49]CheckFolder done [15:53:49]ProducePacketName [15:53:49]name=ofd_packets/00187393 [15:53:49]NVStorageSaveData ofd_packets/00187393 [15:53:49]File name is /storage/ofd_packets/00187393 [15:53:49]Write 301 bytes [15:53:49]NVStorageSaveData done [15:53:49]OFDSenderStorePacket done [15:53:49]KKMCreateOFDPacket done [15:53:49]NVStorageSaveData kkm_last_timestamp [15:53:49]File name is /storage/kkm_last_timestamp [15:53:49]Write 4 bytes [15:53:49]NVStorageSaveData done [15:53:49]ExternCall_PrintAddStr [15:53:49]wPrintStart [15:53:49]Write to MH i2c: 01 00 00 0F 13 22 [15:53:49]Write i2c OK [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: 01 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: 01 07 00 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: 01 07 00 0F 13 00 00 00 00 00 FF 0F 37 [15:53:49]RasterBufferAndPrint [15:53:49]line Счет N : (1)412552 [15:53:49]line ИНН: 02508201610067 [15:53:49]line Контрольно-Кассовый Чек [15:53:49]line ПРОДАЖА [15:53:49]line ТРК (МРК, ГНК) : 13 [15:53:49]line Товар: 2710124500 [15:53:49]line Аи-95-К-5 [15:53:49]line 20.870 * 71.90 [15:53:49]line = 1500.55 [15:53:49]line НДС 12% НСП 1% [15:53:49]line > о реализуемом товаре [15:53:49]line ОКРУГЛЕНИЕ: -0.55 [15:53:49]line ИТОГО: 1500.00 [15:53:49]line Внесено: 1500.00 [15:53:49]line СДАЧА: 0.00 [15:53:49]line НСП 1% : 13.28 [15:53:49]line НДС 12% : 159.35 [15:53:49]line Наличными: 1500.00 [15:53:49]line Безнал.: 0.00 [15:53:49]line Место: АЗС № 92 "Партнер Нефть" [15:53:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:53:49]line СНО: Общий режим [15:53:49]line Чек 194 20.02.2025 15:53 [15:53:49]line Смена: 648 ФФД: 1.0 [15:53:49]line ЗНМ: 0300000118 [15:53:49]line РНМ: 0000000000091857 [15:53:49]line Версия ККМ: 001 [15:53:49]line ФМ: 0000000000871826 [15:53:49]line ФД: 187393 [15:53:49]line ФПД: 126495117359344 [15:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T155348&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187393&fm=126495117359344&tin=02508201610067®Number=0000000000091857&sum=150000 [15:53:49]OFD Sender: Processing packet 187393 [packets to send 49, broken 48] [15:53:49]ProducePacketName [15:53:49]name=ofd_packets/00187393 [15:53:49]OFD Sender: To server: pG, [15:53:49]CommunicateWithHost lk.salyk.kg:30040 [15:53:49]ConnectInit lk.salyk.kg [15:53:49]written 0, free lines is 4095 [15:53:49]Connected sock=10 [15: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 31 38 32 36 0F 01 00 00 E2 BC 07 01 66 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 0C 50 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DC 02 00 35 04 06 00 73 0B F0 89 38 F0 FE D7 EA 30 CC 2A AD 49 [15:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 42 F7 47 00 47 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DC 02 00 F4 03 04 00 5D F6 B6 67 B6 04 01 00 00 75 CA 5D 6B C8 62 CD AB [15:53:49]CommunicateWithHost err = 0 [15:53:49]CheckOFDResponse [15:53:49]1017 (14) - 77093643461234 [15:53:49]1041 (16) - 0000000000871826 [15:53:49]1040 (4) - 187393 [15:53:49]1012 (4) - 20.02.2025 09:31 [15:53:49]1206 (1) - 0 [15:53:49]OFD Sender: Remove packet 187393 [15:53:49]ProducePacketName [15:53:49]name=ofd_packets/00187393 [15:53:49]NVStorageDeleteData [15:53:49]Write to MH i2c: 01 00 00 3A 13 4D [15:53:49]Write i2c OK [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: 01 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: 01 07 00 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: 01 07 00 3A 13 00 00 00 00 00 E4 0C 44 [15:53:49]RasterBufferAndPrint [15:53:49]line [15:53:49]line [15:53:49]line [15:53:49]line [15:53:49]line [15:53:49]written 0, free lines is 3306 [15:53:49]MH_Cut [15:53:49]Write to MH i2c: D1 01 00 41 13 01 26 [15:53:49]Write i2c OK [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: D1 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: D1 01 00 [15:53:49]MH_I2C_Read... [15:53:49]Read from MH i2c: D1 01 00 41 13 00 25 [15:53:49]Write to MH i2c: 01 00 00 42 13 55 [15:53:49]Write i2c OK [15:53:49]MH_I2C_Read... [15:53:50]OFD Sender: No OFD packet to send [15:53:50]*** Cut start [15:53:50]*** Partial cut [15:53:50]*** CUTSNS_PIN = 1 [15:53:50]*** CUTSNS_PIN = 0 [15:53:50]*** Brake cut motor [15:53:51]Read from MH i2c: 01 [15:53:51]*** Stop cut motor [15:53:51]*** Cut end [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: 01 07 00 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: 01 07 00 42 13 00 00 00 00 00 FF 0F 6A [15:53:51]process_action close_receipt done [15:53:51]requested_data is exist [15:53:51]produce_requested_data [15:53:51]requested_item fm.sn is exist - process it [15:53:51]wFMCommunicate request_size=4 [15:53:51]MH_SAM_APDU [15:53:51]CAPDU: 80 11 00 00 [15:53:51]Write to MH i2c: E2 08 00 43 13 80 11 00 00 00 00 00 00 D0 [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:51]Read from MH i2c: E2 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: E2 17 00 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: E2 17 00 43 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 23 [15:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:53:51]wFMCommunicate OK [15:53:51]requested_item fd.num is exist - process it [15:53:51]SAM_PROTO_GetFieldsCounters [15:53:51]wFMCommunicate request_size=4 [15:53:51]MH_SAM_APDU [15:53:51]CAPDU: 80 13 00 00 [15:53:51]Write to MH i2c: E2 08 00 44 13 80 13 00 00 00 00 00 00 D3 [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:51]Read from MH i2c: E2 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: E2 62 00 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: E2 62 00 44 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 01 DC 02 00 0E 04 04 00 88 02 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 A8 [15: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 01 DC 02 00 0E 04 04 00 88 02 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:53:51]wFMCommunicate OK [15:53:51]SAM_PROTO_GetFieldsCounters done [15:53:51]requested_item shift.num is exist - process it [15:53:51]requested_item shift.opened is exist - process it [15:53:51]req_shift_opened [15:53:51]FM_GetShiftState [15:53:51]SAM_PROTO_GetShiftState [15:53:51]wFMCommunicate request_size=4 [15:53:51]MH_SAM_APDU [15:53:51]CAPDU: 80 13 01 00 [15:53:51]Write to MH i2c: E2 08 00 45 13 80 13 01 00 00 00 00 00 D5 [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:51]Read from MH i2c: E2 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: E2 0E 00 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: E2 0E 00 45 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 27 [15:53:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:53:51]wFMCommunicate OK [15:53:51]SAM_PROTO_GetShiftState done [15:53:51]FM_GetShiftState done [15:53:51]req_shift_opened done [15:53:51]requested_item shift.open_date is exist - process it [15:53:51]req_shift_open_date [15:53:51]req_shift_open_date done [15:53:51]produce_requested_data done [15:53:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187393,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:53:51]process_action_free close_receipt [15:53:51]json_value_free [15:53:51]json_value_free done [15:53:51]process_json_proto returns [15:53:51]Send response to host [15:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187393,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:53:51]free response buf [15:53:51]execute_script done [15:53:51]execute_script returns [15:53:51]free content buf [15:53:51]Sock 9.Close socket [15:53:51]Sock 9.Thread stoped [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]accept exits with 7 [15:57:05]New connection [15:57:05]New thread 3067420004 created [15:57:05]Thread 3067276644 joined [15:57:05]Waiting for new connection... [15:57:05] Sock 7.Parse request [15:57:05]Sock 7.Check first char [15:57:05]Sock 7.First char is OK [15:57:05]request: POST /json_proto HTTP/1.0 [15:57:05]Method: POST [15:57:05]URL: /json_proto [15:57:05]Method is POST - this is cgi request [15:57:05]url: /json_proto [15:57:05]query_string will be loaded in cgi processing [15:57:05]execute_cgi json_proto POST (null) [15:57:05]execute_cgi path=json_proto method=POST [15:57:05]POST find Content-Length [15:57:05]Host: 172.17.46.131:8080 [15:57:05]Content-Length: 673 [15:57:05]Content-Type: application/json [15:57:05] [15:57:05]POST finish read [15:57:05]Found Content-Length = 673 [15:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:57:05]execute_script... [15:57: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)412553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:57:05]POST & json_proto [15:57:05]process_json_proto [15:57:05]json parsed OK: [15:57:05]protocol is kg_v1.0 [15:57:05]action value=close_receipt [15:57:05]process_action close_receipt [15:57:05]cmd_close_receipt [15:57:05]MH_GetDate [15:57:05]Write to MH i2c: F0 00 00 46 13 48 [15:57:05]Write i2c OK [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: F0 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: F0 09 00 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: F0 09 00 46 13 00 D2 50 B7 67 7E 41 4F 65 04 [15:57:05]GetLastDocTimeStamp 1740066828 [15:57:05]current date 1740067026 [15:57:05]FM_GetShiftState [15:57:05]SAM_PROTO_GetShiftState [15:57:05]wFMCommunicate request_size=4 [15:57:05]MH_SAM_APDU [15:57:05]CAPDU: 80 13 01 00 [15:57:05]Write to MH i2c: E2 08 00 47 13 80 13 01 00 00 00 00 00 D7 [15:57:05]Write i2c OK [15:57:05]MH_I2C_Read... [15:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:05]Read from MH i2c: E2 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 0E 00 [15:57:05]MH_I2C_Read... [15:57:05]Read from MH i2c: E2 0E 00 47 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 29 [15:57:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:57:05]wFMCommunicate OK [15:57:05]SAM_PROTO_GetShiftState done [15:57:05]FM_GetShiftState done [15:57:05]opened in 1740011697 [15:57:05]opened+sec_in_day 1740098097 [15:57:05]quantity*price = 50021 [15:57:05]sum+1 = 50022 [15:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 195 20.02.2025 15:57 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187394 ФПД: 109975593525857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T155706&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187394&fm=109975593525857&tin=02508201610067®Number=0000000000091857&sum=50000 [15:57:06]StoreToDocumentArchive [15:57:06]shift 648 fd 187394 [15:57:06]save to /storage/0648/doc_00187394 [15:57:06]save last doc name /storage/0648/doc_00187394 to /storage/kkm_last_doc_name [15:57:06]save OK [15:57:06]Clear old archive folders... [15:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:57:06]tlvbuf is 00E72770 [15:57:06]SAM_PROTO_ClearQueue [15:57:06]wFMCommunicate request_size=4 [15:57:06]MH_SAM_APDU [15:57:06]CAPDU: 80 09 00 00 [15:57:06]Write to MH i2c: E2 08 00 54 13 80 09 00 00 00 00 00 00 D9 [15:57:06]Write i2c OK [15:57:06]MH_I2C_Read... [15:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:06]Read from MH i2c: E2 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 03 00 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 03 00 54 13 00 90 00 DB [15:57:06]RAPDU: 90 00 [15:57:06]wFMCommunicate OK [15:57:06]SAM_PROTO_ClearQueue done [15:57:06]KKMCreateOFDPacket [15:57:06]OFDProtocolAddRootSTLVToBuf [15:57:06]FM_MakeSignedData [15:57:06]FM_MakeSignedData [15:57:06]SAM_PROTO_SignData [15:57:06]wFMCommunicate request_size=4 [15:57:06]MH_SAM_APDU [15:57:06]CAPDU: 80 0D 01 02 [15:57:06]Write to MH i2c: E2 08 00 55 13 80 0D 01 02 00 00 00 00 E1 [15:57:06]Write i2c OK [15:57:06]MH_I2C_Read... [15:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:06]Read from MH i2c: E2 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 03 00 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 03 00 55 13 00 90 00 DC [15:57:06]RAPDU: 90 00 [15:57:06]wFMCommunicate OK [15:57:06]wFMCommunicate request_size=255 [15:57:06]MH_SAM_APDU [15:57: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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D2 50 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DC 02 00 35 04 06 00 64 05 B0 2F [15:57:06]Write to MH i2c: E2 02 01 56 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D2 50 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DC 02 00 35 04 06 00 64 05 B0 2F 00 00 52 [15:57:06]Write i2c OK [15:57:06]MH_I2C_Read... [15:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:06]Read from MH i2c: E2 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 03 00 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [15:57:06]RAPDU: 90 00 [15:57:06]wFMCommunicate OK [15:57:06]wFMCommunicate request_size=7 [15:57:06]MH_SAM_APDU [15:57:06]CAPDU: 80 0D 02 02 02 A2 61 [15:57:06]Write to MH i2c: E2 0A 00 57 13 80 0D 02 02 02 00 A2 61 00 00 EB [15:57:06]Write i2c OK [15:57:06]MH_I2C_Read... [15:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:06]Read from MH i2c: E2 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 03 00 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [15:57:06]RAPDU: 90 00 [15:57:06]wFMCommunicate OK [15:57:06]wFMCommunicate request_size=4 [15:57:06]MH_SAM_APDU [15:57:06]CAPDU: 80 0D 03 02 [15:57:06]Write to MH i2c: E2 08 00 58 13 80 0D 03 02 00 00 00 00 E6 [15:57:06]Write i2c OK [15:57:06]MH_I2C_Read... [15:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:06]Read from MH i2c: E2 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 0B 00 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 0B 00 58 13 00 01 2B A7 45 B2 31 07 8E 90 00 77 [15:57:06]RAPDU: 01 2B A7 45 B2 31 07 8E 90 00 [15:57:06]wFMCommunicate OK [15:57:06]SAM_PROTO_SignData done [15:57:06]FM_MakeSignedData done [15:57:06]CreateOFDProtocolMessage [15:57:06]wFMCommunicate request_size=4 [15:57:06]MH_SAM_APDU [15:57:06]CAPDU: 80 11 00 00 [15:57:06]Write to MH i2c: E2 08 00 59 13 80 11 00 00 00 00 00 00 E6 [15:57:06]Write i2c OK [15:57:06]MH_I2C_Read... [15:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:06]Read from MH i2c: E2 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 17 00 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: E2 17 00 59 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 39 [15:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:57:06]wFMCommunicate OK [15:57:06]CreateOFDProtocolMessage done [15:57:06]OFDSenderStorePacket 187394 [15:57:06]StoreOFDPacket docnum=187394 [15:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 14 85 04 01 DB 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D2 50 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DC 02 00 35 04 06 00 64 05 B0 2F A2 61 01 2B A7 45 B2 31 07 8E [15:57:06]CheckFolder [15:57:06]dirname=/storage/ofd_packets [15:57:06]CheckFolder done [15:57:06]ProducePacketName [15:57:06]name=ofd_packets/00187394 [15:57:06]NVStorageSaveData ofd_packets/00187394 [15:57:06]File name is /storage/ofd_packets/00187394 [15:57:06]Write 298 bytes [15:57:06]NVStorageSaveData done [15:57:06]OFDSenderStorePacket done [15:57:06]KKMCreateOFDPacket done [15:57:06]NVStorageSaveData kkm_last_timestamp [15:57:06]File name is /storage/kkm_last_timestamp [15:57:06]Write 4 bytes [15:57:06]NVStorageSaveData done [15:57:06]ExternCall_PrintAddStr [15:57:06]wPrintStart [15:57:06]Write to MH i2c: 01 00 00 5A 13 6D [15:57:06]Write i2c OK [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: 01 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: 01 07 00 [15:57:06]MH_I2C_Read... [15:57:06]Read from MH i2c: 01 07 00 5A 13 00 00 00 00 00 FF 0F 82 [15:57:06]RasterBufferAndPrint [15:57:06]line Счет N : (1)412553 [15:57:06]line ИНН: 02508201610067 [15:57:06]line Контрольно-Кассовый Чек [15:57:06]line ПРОДАЖА [15:57:06]line ТРК (МРК, ГНК) : 6 [15:57:06]line Товар: 2710194210 [15:57:06]line ДТ-К-5 [15:57:06]line 6.890 * 72.60 [15:57:06]line = 500.21 [15:57:06]line НДС 12% НСП 1% [15:57:06]line > о реализуемом товаре [15:57:06]line ОКРУГЛЕНИЕ: -0.21 [15:57:06]line ИТОГО: 500.00 [15:57:06]line Внесено: 500.00 [15:57:06]line СДАЧА: 0.00 [15:57:06]line НСП 1% : 4.43 [15:57:06]line НДС 12% : 53.12 [15:57:06]line Наличными: 500.00 [15:57:06]line Безнал.: 0.00 [15:57:06]line Место: АЗС № 92 "Партнер Нефть" [15:57:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:57:06]line СНО: Общий режим [15:57:06]line Чек 195 20.02.2025 15:57 [15:57:06]line Смена: 648 ФФД: 1.0 [15:57:06]line ЗНМ: 0300000118 [15:57:06]line РНМ: 0000000000091857 [15:57:06]line Версия ККМ: 001 [15:57:06]line ФМ: 0000000000871826 [15:57:06]line ФД: 187394 [15:57:06]line ФПД: 109975593525857 [15:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T155706&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187394&fm=109975593525857&tin=02508201610067®Number=0000000000091857&sum=50000 [15:57:06]written 0, free lines is 4095 [15:57:06]OFD Sender: Processing packet 187394 [packets to send 49, broken 48] [15:57:06]ProducePacketName [15:57:06]name=ofd_packets/00187394 [15:57:06]OFD Sender: To server: pG, [15:57:06]CommunicateWithHost lk.salyk.kg:30040 [15:57:06]ConnectInit lk.salyk.kg [15:57:06]Connected sock=10 [15:57:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 14 85 04 01 DB 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D2 50 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DC 02 00 35 04 06 00 64 05 B0 2F A2 61 01 2B A7 45 B2 31 07 8E [15:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7E 01 47 00 FA D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DC 02 00 F4 03 04 00 22 F7 B6 67 B6 04 01 00 00 7C E6 C7 68 F9 99 46 23 [15:57:07]CommunicateWithHost err = 0 [15:57:07]CheckOFDResponse [15:57:07]1017 (14) - 77093643461234 [15:57:07]1041 (16) - 0000000000871826 [15:57:07]1040 (4) - 187394 [15:57:07]1012 (4) - 20.02.2025 09:34 [15:57:07]1206 (1) - 0 [15:57:07]OFD Sender: Remove packet 187394 [15:57:07]ProducePacketName [15:57:07]name=ofd_packets/00187394 [15:57:07]NVStorageDeleteData [15:57:07]Write to MH i2c: 01 00 00 85 13 98 [15:57:07]Write i2c OK [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: 01 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: 01 07 00 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 ED 0C 98 [15:57:07]RasterBufferAndPrint [15:57:07]line [15:57:07]line [15:57:07]line [15:57:07]line [15:57:07]line [15:57:07]written 0, free lines is 3318 [15:57:07]MH_Cut [15:57:07]Write to MH i2c: D1 01 00 8C 13 01 71 [15:57:07]Write i2c OK [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: D1 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: D1 01 00 [15:57:07]MH_I2C_Read... [15:57:07]Read from MH i2c: D1 01 00 8C 13 00 70 [15:57:07]Write to MH i2c: 01 00 00 8D 13 A0 [15:57:07]Write i2c OK [15:57:07]MH_I2C_Read... [15:57:07]OFD Sender: No OFD packet to send [15:57:07]*** Cut start [15:57:07]*** Partial cut [15:57:07]*** CUTSNS_PIN = 1 [15:57:08]*** CUTSNS_PIN = 0 [15:57:08]*** Brake cut motor [15:57:08]Read from MH i2c: 01 [15:57:08]MH_I2C_Read... [15:57:08]*** Stop cut motor [15:57:08]*** Cut end [15:57:08]Read from MH i2c: 01 07 00 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 FF 0F B5 [15:57:08]process_action close_receipt done [15:57:08]requested_data is exist [15:57:08]produce_requested_data [15:57:08]requested_item fm.sn is exist - process it [15:57:08]wFMCommunicate request_size=4 [15:57:08]MH_SAM_APDU [15:57:08]CAPDU: 80 11 00 00 [15:57:08]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [15:57:08]Write i2c OK [15:57:08]MH_I2C_Read... [15:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:08]Read from MH i2c: E2 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: E2 17 00 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6E [15:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:57:08]wFMCommunicate OK [15:57:08]requested_item fd.num is exist - process it [15:57:08]SAM_PROTO_GetFieldsCounters [15:57:08]wFMCommunicate request_size=4 [15:57:08]MH_SAM_APDU [15:57:08]CAPDU: 80 13 00 00 [15:57:08]Write to MH i2c: E2 08 00 8F 13 80 13 00 00 00 00 00 00 1E [15:57:08]Write i2c OK [15:57:08]MH_I2C_Read... [15:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:08]Read from MH i2c: E2 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: E2 62 00 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: E2 62 00 8F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 02 DC 02 00 0E 04 04 00 88 02 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 F7 [15:57:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 02 DC 02 00 0E 04 04 00 88 02 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:57:08]wFMCommunicate OK [15:57:08]SAM_PROTO_GetFieldsCounters done [15:57:08]requested_item shift.num is exist - process it [15:57:08]requested_item shift.opened is exist - process it [15:57:08]req_shift_opened [15:57:08]FM_GetShiftState [15:57:08]SAM_PROTO_GetShiftState [15:57:08]wFMCommunicate request_size=4 [15:57:08]MH_SAM_APDU [15:57:08]CAPDU: 80 13 01 00 [15:57:08]Write to MH i2c: E2 08 00 90 13 80 13 01 00 00 00 00 00 20 [15:57:08]Write i2c OK [15:57:08]MH_I2C_Read... [15:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:08]Read from MH i2c: E2 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: E2 0E 00 [15:57:08]MH_I2C_Read... [15:57:08]Read from MH i2c: E2 0E 00 90 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 72 [15:57:08]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [15:57:08]wFMCommunicate OK [15:57:08]SAM_PROTO_GetShiftState done [15:57:08]FM_GetShiftState done [15:57:08]req_shift_opened done [15:57:08]requested_item shift.open_date is exist - process it [15:57:08]req_shift_open_date [15:57:08]req_shift_open_date done [15:57:08]produce_requested_data done [15:57:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187394,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [15:57:08]process_action_free close_receipt [15:57:08]json_value_free [15:57:08]json_value_free done [15:57:08]process_json_proto returns [15:57:08]Send response to host [15:57:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187394,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [15:57:08]free response buf [15:57:08]execute_script done [15:57:08]execute_script returns [15:57:08]free content buf [15:57:08]Sock 7.Close socket [15:57:08]Sock 7.Thread stoped [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:37]accept exits with 9 [16:01:37]New connection [16:01:37]New thread 3067276644 created [16:01:37]Thread 3067420004 joined [16:01:37]Waiting for new connection... [16:01:37] Sock 9.Parse request [16:01:37]Sock 9.Check first char [16:01:37]Sock 9.First char is OK [16:01:37]request: POST /json_proto HTTP/1.0 [16:01:37]Method: POST [16:01:37]URL: /json_proto [16:01:37]Method is POST - this is cgi request [16:01:37]url: /json_proto [16:01:37]query_string will be loaded in cgi processing [16:01:37]execute_cgi json_proto POST (null) [16:01:37]execute_cgi path=json_proto method=POST [16:01:37]POST find Content-Length [16:01:37]Host: 172.17.46.131:8080 [16:01:37]Content-Length: 682 [16:01:37]Content-Type: application/json [16:01:37] [16:01:37]POST finish read [16:01:37]Found Content-Length = 682 [16:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:01:37]execute_script... [16:01:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:01:37]POST & json_proto [16:01:37]process_json_proto [16:01:37]json parsed OK: [16:01:37]protocol is kg_v1.0 [16:01:37]action value=close_receipt [16:01:37]process_action close_receipt [16:01:37]cmd_close_receipt [16:01:37]MH_GetDate [16:01:37]Write to MH i2c: F0 00 00 91 13 93 [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: F0 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: F0 09 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: F0 09 00 91 13 00 E2 51 B7 67 7E 41 4F 65 60 [16:01:37]GetLastDocTimeStamp 1740067026 [16:01:37]current date 1740067298 [16:01:37]FM_GetShiftState [16:01:37]SAM_PROTO_GetShiftState [16:01:37]wFMCommunicate request_size=4 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 13 01 00 [16:01:37]Write to MH i2c: E2 08 00 92 13 80 13 01 00 00 00 00 00 22 [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 0E 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 0E 00 92 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 74 [16:01:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:01:37]wFMCommunicate OK [16:01:37]SAM_PROTO_GetShiftState done [16:01:37]FM_GetShiftState done [16:01:37]opened in 1740011697 [16:01:37]opened+sec_in_day 1740098097 [16:01:37]quantity*price = 100023 [16:01:37]sum+1 = 100025 [16:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 196 20.02.2025 16:01 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187395 ФПД: 171244523607651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T160138&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187395&fm=171244523607651&tin=02508201610067®Number=0000000000091857&sum=100000 [16:01:38]StoreToDocumentArchive [16:01:38]shift 648 fd 187395 [16:01:38]save to /storage/0648/doc_00187395 [16:01:38]save last doc name /storage/0648/doc_00187395 to /storage/kkm_last_doc_name [16:01:38]save OK [16:01:38]Clear old archive folders... [16:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:38]tlvbuf is 00E1EDC0 [16:01:38]SAM_PROTO_ClearQueue [16:01:38]wFMCommunicate request_size=4 [16:01:38]MH_SAM_APDU [16:01:38]CAPDU: 80 09 00 00 [16:01:38]Write to MH i2c: E2 08 00 9F 13 80 09 00 00 00 00 00 00 24 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:38]Read from MH i2c: E2 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 03 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [16:01:38]RAPDU: 90 00 [16:01:38]wFMCommunicate OK [16:01:38]SAM_PROTO_ClearQueue done [16:01:38]KKMCreateOFDPacket [16:01:38]OFDProtocolAddRootSTLVToBuf [16:01:38]FM_MakeSignedData [16:01:38]FM_MakeSignedData [16:01:38]SAM_PROTO_SignData [16:01:38]wFMCommunicate request_size=4 [16:01:38]MH_SAM_APDU [16:01:38]CAPDU: 80 0D 01 02 [16:01:38]Write to MH i2c: E2 08 00 A0 13 80 0D 01 02 00 00 00 00 2C [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:38]Read from MH i2c: E2 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 03 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [16:01:38]RAPDU: 90 00 [16:01:38]wFMCommunicate OK [16:01:38]wFMCommunicate request_size=255 [16:01:38]MH_SAM_APDU [16:01: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 E2 51 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DC 02 00 35 04 06 00 9B [16:01:38]Write to MH i2c: E2 02 01 A1 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 E2 51 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DC 02 00 35 04 06 00 9B 00 00 44 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:39]Read from MH i2c: E2 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 03 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [16:01:39]RAPDU: 90 00 [16:01:39]wFMCommunicate OK [16:01:39]wFMCommunicate request_size=10 [16:01:39]MH_SAM_APDU [16:01:39]CAPDU: 80 0D 02 02 05 BE F8 FF D6 63 [16:01:39]Write to MH i2c: E2 0D 00 A2 13 80 0D 02 02 05 00 BE F8 FF D6 63 00 00 27 [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:39]Read from MH i2c: E2 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 03 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [16:01:39]RAPDU: 90 00 [16:01:39]wFMCommunicate OK [16:01:39]wFMCommunicate request_size=4 [16:01:39]MH_SAM_APDU [16:01:39]CAPDU: 80 0D 03 02 [16:01:39]Write to MH i2c: E2 08 00 A3 13 80 0D 03 02 00 00 00 00 31 [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:39]Read from MH i2c: E2 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 0B 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 0B 00 A3 13 00 22 C3 F7 1B 4D 1D AC 6A 90 00 A9 [16:01:39]RAPDU: 22 C3 F7 1B 4D 1D AC 6A 90 00 [16:01:39]wFMCommunicate OK [16:01:39]SAM_PROTO_SignData done [16:01:39]FM_MakeSignedData done [16:01:39]CreateOFDProtocolMessage [16:01:39]wFMCommunicate request_size=4 [16:01:39]MH_SAM_APDU [16:01:39]CAPDU: 80 11 00 00 [16:01:39]Write to MH i2c: E2 08 00 A4 13 80 11 00 00 00 00 00 00 31 [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:39]Read from MH i2c: E2 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 17 00 [16:01:39]MH_I2C_Read... [16:01:39]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 31 38 32 36 90 00 84 [16:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:01:39]wFMCommunicate OK [16:01:39]CreateOFDProtocolMessage done [16:01:39]OFDSenderStorePacket 187395 [16:01:39]StoreOFDPacket docnum=187395 [16:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BA CA 07 01 E3 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 E2 51 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DC 02 00 35 04 06 00 9B BE F8 FF D6 63 22 C3 F7 1B 4D 1D AC 6A [16:01:39]CheckFolder [16:01:39]dirname=/storage/ofd_packets [16:01:39]CheckFolder done [16:01:39]ProducePacketName [16:01:39]name=ofd_packets/00187395 [16:01:39]NVStorageSaveData ofd_packets/00187395 [16:01:39]File name is /storage/ofd_packets/00187395 [16:01:39]Write 301 bytes [16:01:39]NVStorageSaveData done [16:01:39]OFDSenderStorePacket done [16:01:39]KKMCreateOFDPacket done [16:01:39]NVStorageSaveData kkm_last_timestamp [16:01:39]File name is /storage/kkm_last_timestamp [16:01:39]Write 4 bytes [16:01:39]NVStorageSaveData done [16:01:39]ExternCall_PrintAddStr [16:01:39]wPrintStart [16:01:39]Write to MH i2c: 01 00 00 A5 13 B8 [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: 01 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: 01 07 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: 01 07 00 A5 13 00 00 00 00 00 FF 0F CD [16:01:39]RasterBufferAndPrint [16:01:39]line Счет N : (1)412554 [16:01:39]line ИНН: 02508201610067 [16:01:39]line Контрольно-Кассовый Чек [16:01:39]line ПРОДАЖА [16:01:39]line ТРК (МРК, ГНК) : 12 [16:01:39]line Товар: 2710124130 [16:01:39]line Аи-92-К-2 [16:01:39]line 15.580 * 64.20 [16:01:39]line = 1000.24 [16:01:39]line НДС 12% НСП 1% [16:01:39]line > о реализуемом товаре [16:01:39]line ОКРУГЛЕНИЕ: -0.24 [16:01:39]line ИТОГО: 1000.00 [16:01:39]line Внесено: 1000.00 [16:01:39]line СДАЧА: 0.00 [16:01:39]line НСП 1% : 8.85 [16:01:39]line НДС 12% : 106.22 [16:01:39]line Наличными: 1000.00 [16:01:39]line Безнал.: 0.00 [16:01:39]line Место: АЗС № 92 "Партнер Нефть" [16:01:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:01:39]line СНО: Общий режим [16:01:39]line Чек 196 20.02.2025 16:01 [16:01:39]line Смена: 648 ФФД: 1.0 [16:01:39]line ЗНМ: 0300000118 [16:01:39]line РНМ: 0000000000091857 [16:01:39]line Версия ККМ: 001 [16:01:39]line ФМ: 0000000000871826 [16:01:39]line ФД: 187395 [16:01:39]line ФПД: 171244523607651 [16:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T160138&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187395&fm=171244523607651&tin=02508201610067®Number=0000000000091857&sum=100000 [16:01:39]OFD Sender: Processing packet 187395 [packets to send 49, broken 48] [16:01:39]ProducePacketName [16:01:39]name=ofd_packets/00187395 [16:01:39]OFD Sender: To server: pG, [16:01:39]CommunicateWithHost lk.salyk.kg:30040 [16:01:39]ConnectInit lk.salyk.kg [16:01:39]written 0, free lines is 4095 [16:01:39]Connected sock=10 [16:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BA CA 07 01 E3 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 E2 51 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DC 02 00 35 04 06 00 9B BE F8 FF D6 63 22 C3 F7 1B 4D 1D AC 6A [16:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3E 74 47 00 2D 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DC 02 00 F4 03 04 00 33 F8 B6 67 B6 04 01 00 00 BB 2D 14 D8 A1 61 CD 83 [16:01:40]CommunicateWithHost err = 0 [16:01:40]CheckOFDResponse [16:01:40]1017 (14) - 77093643461234 [16:01:40]1041 (16) - 0000000000871826 [16:01:40]1040 (4) - 187395 [16:01:40]1012 (4) - 20.02.2025 09:38 [16:01:40]1206 (1) - 0 [16:01:40]OFD Sender: Remove packet 187395 [16:01:40]ProducePacketName [16:01:40]name=ofd_packets/00187395 [16:01:40]NVStorageDeleteData [16:01:40]Write to MH i2c: 01 00 00 D0 13 E3 [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: 01 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: 01 07 00 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: 01 07 00 D0 13 00 00 00 00 00 EF 0C E5 [16:01:40]RasterBufferAndPrint [16:01:40]line [16:01:40]line [16:01:40]line [16:01:40]line [16:01:40]line [16:01:40]written 0, free lines is 3317 [16:01:40]MH_Cut [16:01:40]Write to MH i2c: D1 01 00 D7 13 01 BC [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: D1 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: D1 01 00 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: D1 01 00 D7 13 00 BB [16:01:40]Write to MH i2c: 01 00 00 D8 13 EB [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:40]OFD Sender: No OFD packet to send [16:01:40]*** Cut start [16:01:40]*** Partial cut [16:01:40]*** CUTSNS_PIN = 1 [16:01:40]*** CUTSNS_PIN = 0 [16:01:41]*** Brake cut motor [16:01:41]Read from MH i2c: 01 [16:01:41]MH_I2C_Read... [16:01:41]*** Stop cut motor [16:01:41]*** Cut end [16:01:41]Read from MH i2c: 01 07 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: 01 07 00 D8 13 00 00 00 00 00 FF 0F 00 [16:01:41]process_action close_receipt done [16:01:41]requested_data is exist [16:01:41]produce_requested_data [16:01:41]requested_item fm.sn is exist - process it [16:01:41]wFMCommunicate request_size=4 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 11 00 00 [16:01:41]Write to MH i2c: E2 08 00 D9 13 80 11 00 00 00 00 00 00 66 [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 17 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 17 00 D9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B9 [16:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:01:41]wFMCommunicate OK [16:01:41]requested_item fd.num is exist - process it [16:01:41]SAM_PROTO_GetFieldsCounters [16:01:41]wFMCommunicate request_size=4 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 13 00 00 [16:01:41]Write to MH i2c: E2 08 00 DA 13 80 13 00 00 00 00 00 00 69 [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 62 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 62 00 DA 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 03 DC 02 00 0E 04 04 00 88 02 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 46 [16:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 03 DC 02 00 0E 04 04 00 88 02 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 [16:01:41]wFMCommunicate OK [16:01:41]SAM_PROTO_GetFieldsCounters done [16:01:41]requested_item shift.num is exist - process it [16:01:41]requested_item shift.opened is exist - process it [16:01:41]req_shift_opened [16:01:41]FM_GetShiftState [16:01:41]SAM_PROTO_GetShiftState [16:01:41]wFMCommunicate request_size=4 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 13 01 00 [16:01:41]Write to MH i2c: E2 08 00 DB 13 80 13 01 00 00 00 00 00 6B [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 0E 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 0E 00 DB 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BD [16:01:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:01:41]wFMCommunicate OK [16:01:41]SAM_PROTO_GetShiftState done [16:01:41]FM_GetShiftState done [16:01:41]req_shift_opened done [16:01:41]requested_item shift.open_date is exist - process it [16:01:41]req_shift_open_date [16:01:41]req_shift_open_date done [16:01:41]produce_requested_data done [16:01:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187395,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:01:41]process_action_free close_receipt [16:01:41]json_value_free [16:01:41]json_value_free done [16:01:41]process_json_proto returns [16:01:41]Send response to host [16:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187395,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:01:41]free response buf [16:01:41]execute_script done [16:01:41]execute_script returns [16:01:41]free content buf [16:01:41]Sock 9.Close socket [16:01:41]Sock 9.Thread stoped [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:31]accept exits with 7 [16:04:31]New connection [16:04:31]New thread 3067420004 created [16:04:31]Thread 3067276644 joined [16:04:31]Waiting for new connection... [16:04:31] Sock 7.Parse request [16:04:31]Sock 7.Check first char [16:04:31]Sock 7.First char is OK [16:04:31]request: POST /json_proto HTTP/1.0 [16:04:31]Method: POST [16:04:31]URL: /json_proto [16:04:31]Method is POST - this is cgi request [16:04:31]url: /json_proto [16:04:31]query_string will be loaded in cgi processing [16:04:31]execute_cgi json_proto POST (null) [16:04:31]execute_cgi path=json_proto method=POST [16:04:31]POST find Content-Length [16:04:31]Host: 172.17.46.131:8080 [16:04:31]Content-Length: 677 [16:04:31]Content-Type: application/json [16:04:31] [16:04:31]POST finish read [16:04:31]Found Content-Length = 677 [16:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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" ] } } [16:04:31]execute_script... [16:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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" ] } } [16:04:31]POST & json_proto [16:04:31]process_json_proto [16:04:31]json parsed OK: [16:04:31]protocol is kg_v1.0 [16:04:31]action value=close_receipt [16:04:31]process_action close_receipt [16:04:31]cmd_close_receipt [16:04:31]MH_GetDate [16:04:31]Write to MH i2c: F0 00 00 DC 13 DE [16:04:31]Write i2c OK [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: F0 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: F0 09 00 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: F0 09 00 DC 13 00 90 52 B7 67 7E 41 4F 65 5A [16:04:31]GetLastDocTimeStamp 1740067298 [16:04:31]current date 1740067472 [16:04:31]FM_GetShiftState [16:04:31]SAM_PROTO_GetShiftState [16:04:31]wFMCommunicate request_size=4 [16:04:31]MH_SAM_APDU [16:04:31]CAPDU: 80 13 01 00 [16:04:31]Write to MH i2c: E2 08 00 DD 13 80 13 01 00 00 00 00 00 6D [16:04:31]Write i2c OK [16:04:31]MH_I2C_Read... [16:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:31]Read from MH i2c: E2 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: E2 0E 00 [16:04:31]MH_I2C_Read... [16:04:31]Read from MH i2c: E2 0E 00 DD 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BF [16:04:31]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:04:31]wFMCommunicate OK [16:04:31]SAM_PROTO_GetShiftState done [16:04:31]FM_GetShiftState done [16:04:31]opened in 1740011697 [16:04:31]opened+sec_in_day 1740098097 [16:04:31]quantity*price = 30045 [16:04:31]sum+1 = 30047 [16:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 197 20.02.2025 16:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187396 ФПД: 45284360280629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T160432&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187396&fm=45284360280629&tin=02508201610067®Number=0000000000091857&sum=30000 [16:04:32]StoreToDocumentArchive [16:04:32]shift 648 fd 187396 [16:04:32]save to /storage/0648/doc_00187396 [16:04:32]save last doc name /storage/0648/doc_00187396 to /storage/kkm_last_doc_name [16:04:32]save OK [16:04:32]Clear old archive folders... [16:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:32]tlvbuf is 00E58600 [16:04:32]SAM_PROTO_ClearQueue [16:04:32]wFMCommunicate request_size=4 [16:04:32]MH_SAM_APDU [16:04:32]CAPDU: 80 09 00 00 [16:04:32]Write to MH i2c: E2 08 00 EA 13 80 09 00 00 00 00 00 00 6F [16:04:32]Write i2c OK [16:04:32]MH_I2C_Read... [16:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:32]Read from MH i2c: E2 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: E2 03 00 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [16:04:32]RAPDU: 90 00 [16:04:32]wFMCommunicate OK [16:04:32]SAM_PROTO_ClearQueue done [16:04:32]KKMCreateOFDPacket [16:04:32]OFDProtocolAddRootSTLVToBuf [16:04:32]FM_MakeSignedData [16:04:32]FM_MakeSignedData [16:04:32]SAM_PROTO_SignData [16:04:32]wFMCommunicate request_size=4 [16:04:32]MH_SAM_APDU [16:04:32]CAPDU: 80 0D 01 02 [16:04:32]Write to MH i2c: E2 08 00 EB 13 80 0D 01 02 00 00 00 00 77 [16:04:32]Write i2c OK [16:04:32]MH_I2C_Read... [16:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:32]Read from MH i2c: E2 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: E2 03 00 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [16:04:32]RAPDU: 90 00 [16:04:32]wFMCommunicate OK [16:04:32]wFMCommunicate request_size=255 [16:04:32]MH_SAM_APDU [16:04: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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 90 52 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DC 02 00 35 04 06 00 29 [16:04:32]Write to MH i2c: E2 02 01 EC 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 90 52 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DC 02 00 35 04 06 00 29 00 00 0F [16:04:32]Write i2c OK [16:04:32]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [16:04:33]RAPDU: 90 00 [16:04:33]wFMCommunicate OK [16:04:33]wFMCommunicate request_size=10 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 0D 02 02 05 2F 96 35 5A 35 [16:04:33]Write to MH i2c: E2 0D 00 ED 13 80 0D 02 02 05 00 2F 96 35 5A 35 00 00 0D [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 ED 13 00 90 00 74 [16:04:33]RAPDU: 90 00 [16:04:33]wFMCommunicate OK [16:04:33]wFMCommunicate request_size=4 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 0D 03 02 [16:04:33]Write to MH i2c: E2 08 00 EE 13 80 0D 03 02 00 00 00 00 7C [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 0B 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 0B 00 EE 13 00 26 E5 AD 3C 7F B9 A6 BC 90 00 0B [16:04:33]RAPDU: 26 E5 AD 3C 7F B9 A6 BC 90 00 [16:04:33]wFMCommunicate OK [16:04:33]SAM_PROTO_SignData done [16:04:33]FM_MakeSignedData done [16:04:33]CreateOFDProtocolMessage [16:04:33]wFMCommunicate request_size=4 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 11 00 00 [16:04:33]Write to MH i2c: E2 08 00 EF 13 80 11 00 00 00 00 00 00 7C [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 17 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 17 00 EF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CF [16:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:04:33]wFMCommunicate OK [16:04:33]CreateOFDProtocolMessage done [16:04:33]OFDSenderStorePacket 187396 [16:04:33]StoreOFDPacket docnum=187396 [16:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B3 69 07 01 FD 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 90 52 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DC 02 00 35 04 06 00 29 2F 96 35 5A 35 26 E5 AD 3C 7F B9 A6 BC [16:04:33]CheckFolder [16:04:33]dirname=/storage/ofd_packets [16:04:33]CheckFolder done [16:04:33]ProducePacketName [16:04:33]name=ofd_packets/00187396 [16:04:33]NVStorageSaveData ofd_packets/00187396 [16:04:33]File name is /storage/ofd_packets/00187396 [16:04:33]Write 301 bytes [16:04:33]NVStorageSaveData done [16:04:33]OFDSenderStorePacket done [16:04:33]KKMCreateOFDPacket done [16:04:33]NVStorageSaveData kkm_last_timestamp [16:04:33]File name is /storage/kkm_last_timestamp [16:04:33]Write 4 bytes [16:04:33]NVStorageSaveData done [16:04:33]ExternCall_PrintAddStr [16:04:33]wPrintStart [16:04:33]Write to MH i2c: 01 00 00 F0 13 03 [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: 01 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: 01 07 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: 01 07 00 F0 13 00 00 00 00 00 FF 0F 18 [16:04:33]RasterBufferAndPrint [16:04:33]line Счет N : (1)412555 [16:04:33]line ИНН: 02508201610067 [16:04:33]line Контрольно-Кассовый Чек [16:04:33]line ПРОДАЖА [16:04:33]line ТРК (МРК, ГНК) : 12 [16:04:33]line Товар: 2710124130 [16:04:33]line Аи-92-К-2 [16:04:33]line 4.680 * 64.20 [16:04:33]line = 300.46 [16:04:33]line НДС 12% НСП 1% [16:04:33]line > о реализуемом товаре [16:04:33]line ОКРУГЛЕНИЕ: -0.46 [16:04:33]line ИТОГО: 300.00 [16:04:33]line Внесено: 300.00 [16:04:33]line СДАЧА: 0.00 [16:04:33]line НСП 1% : 2.66 [16:04:33]line НДС 12% : 31.91 [16:04:33]line Наличными: 300.00 [16:04:33]line Безнал.: 0.00 [16:04:33]line Место: АЗС № 92 "Партнер Нефть" [16:04:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:04:33]line СНО: Общий режим [16:04:33]line Чек 197 20.02.2025 16:04 [16:04:33]line Смена: 648 ФФД: 1.0 [16:04:33]line ЗНМ: 0300000118 [16:04:33]line РНМ: 0000000000091857 [16:04:33]line Версия ККМ: 001 [16:04:33]line ФМ: 0000000000871826 [16:04:33]line ФД: 187396 [16:04:33]line ФПД: 45284360280629 [16:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T160432&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187396&fm=45284360280629&tin=02508201610067®Number=0000000000091857&sum=30000 [16:04:33]OFD Sender: Processing packet 187396 [packets to send 49, broken 48] [16:04:33]ProducePacketName [16:04:33]name=ofd_packets/00187396 [16:04:33]OFD Sender: To server: pG, [16:04:33]CommunicateWithHost lk.salyk.kg:30040 [16:04:33]ConnectInit lk.salyk.kg [16:04:33]written 0, free lines is 4095 [16:04:33]Connected sock=10 [16:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B3 69 07 01 FD 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 90 52 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DC 02 00 35 04 06 00 29 2F 96 35 5A 35 26 E5 AD 3C 7F B9 A6 BC [16:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A8 12 47 00 CD 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 31 38 32 36 10 04 04 00 04 DC 02 00 F4 03 04 00 E1 F8 B6 67 B6 04 01 00 00 51 D1 86 CE 96 C2 6B FD [16:04:33]CommunicateWithHost err = 0 [16:04:33]CheckOFDResponse [16:04:33]1017 (14) - 77093643461234 [16:04:33]1041 (16) - 0000000000871826 [16:04:33]1040 (4) - 187396 [16:04:33]1012 (4) - 20.02.2025 09:41 [16:04:33]1206 (1) - 0 [16:04:33]OFD Sender: Remove packet 187396 [16:04:33]ProducePacketName [16:04:33]name=ofd_packets/00187396 [16:04:33]NVStorageDeleteData [16:04:33]Write to MH i2c: 01 00 00 1B 14 2F [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: 01 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: 01 07 00 [16:04:33]MH_I2C_Read... [16:04:34]Read from MH i2c: 01 07 00 1B 14 00 00 00 00 00 ED 0C 2F [16:04:34]RasterBufferAndPrint [16:04:34]line [16:04:34]line [16:04:34]line [16:04:34]line [16:04:34]line [16:04:34]written 0, free lines is 3315 [16:04:34]MH_Cut [16:04:34]Write to MH i2c: D1 01 00 22 14 01 08 [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: D1 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: D1 01 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: D1 01 00 22 14 00 07 [16:04:34]Write to MH i2c: 01 00 00 23 14 37 [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]OFD Sender: No OFD packet to send [16:04:34]*** Cut start [16:04:34]*** Partial cut [16:04:34]*** CUTSNS_PIN = 1 [16:04:34]*** CUTSNS_PIN = 0 [16:04:35]*** Brake cut motor [16:04:35]Read from MH i2c: 01 [16:04:35]MH_I2C_Read... [16:04:35]*** Stop cut motor [16:04:35]*** Cut end [16:04:35]Read from MH i2c: 01 07 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: 01 07 00 23 14 00 00 00 00 00 FF 0F 4C [16:04:35]process_action close_receipt done [16:04:35]requested_data is exist [16:04:35]produce_requested_data [16:04:35]requested_item fm.sn is exist - process it [16:04:35]wFMCommunicate request_size=4 [16:04:35]MH_SAM_APDU [16:04:35]CAPDU: 80 11 00 00 [16:04:35]Write to MH i2c: E2 08 00 24 14 80 11 00 00 00 00 00 00 B2 [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:35]Read from MH i2c: E2 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 17 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 17 00 24 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 05 [16:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:04:35]wFMCommunicate OK [16:04:35]requested_item fd.num is exist - process it [16:04:35]SAM_PROTO_GetFieldsCounters [16:04:35]wFMCommunicate request_size=4 [16:04:35]MH_SAM_APDU [16:04:35]CAPDU: 80 13 00 00 [16:04:35]Write to MH i2c: E2 08 00 25 14 80 13 00 00 00 00 00 00 B5 [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:35]Read from MH i2c: E2 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 62 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 62 00 25 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 04 DC 02 00 0E 04 04 00 88 02 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 96 [16:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 04 DC 02 00 0E 04 04 00 88 02 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 [16:04:35]wFMCommunicate OK [16:04:35]SAM_PROTO_GetFieldsCounters done [16:04:35]requested_item shift.num is exist - process it [16:04:35]requested_item shift.opened is exist - process it [16:04:35]req_shift_opened [16:04:35]FM_GetShiftState [16:04:35]SAM_PROTO_GetShiftState [16:04:35]wFMCommunicate request_size=4 [16:04:35]MH_SAM_APDU [16:04:35]CAPDU: 80 13 01 00 [16:04:35]Write to MH i2c: E2 08 00 26 14 80 13 01 00 00 00 00 00 B7 [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:35]Read from MH i2c: E2 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 0E 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 0E 00 26 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 09 [16:04:35]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:04:35]wFMCommunicate OK [16:04:35]SAM_PROTO_GetShiftState done [16:04:35]FM_GetShiftState done [16:04:35]req_shift_opened done [16:04:35]requested_item shift.open_date is exist - process it [16:04:35]req_shift_open_date [16:04:35]req_shift_open_date done [16:04:35]produce_requested_data done [16:04:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187396,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:04:35]process_action_free close_receipt [16:04:35]json_value_free [16:04:35]json_value_free done [16:04:35]process_json_proto returns [16:04:35]Send response to host [16:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187396,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:04:35]free response buf [16:04:35]execute_script done [16:04:35]execute_script returns [16:04:35]free content buf [16:04:35]Sock 7.Close socket [16:04:35]Sock 7.Thread stoped [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:42]accept exits with 9 [16:10:42]New connection [16:10:42]New thread 3067276644 created [16:10:42]Thread 3067420004 joined [16:10:42]Waiting for new connection... [16:10:42] Sock 9.Parse request [16:10:42]Sock 9.Check first char [16:10:42]Sock 9.First char is OK [16:10:42]request: POST /json_proto HTTP/1.0 [16:10:42]Method: POST [16:10:42]URL: /json_proto [16:10:42]Method is POST - this is cgi request [16:10:42]url: /json_proto [16:10:42]query_string will be loaded in cgi processing [16:10:42]execute_cgi json_proto POST (null) [16:10:42]execute_cgi path=json_proto method=POST [16:10:42]POST find Content-Length [16:10:42]Host: 172.17.46.131:8080 [16:10:42]Content-Length: 677 [16:10:42]Content-Type: application/json [16:10:42] [16:10:42]POST finish read [16:10:42]Found Content-Length = 677 [16:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [16:10:42]execute_script... [16:10:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [16:10:42]POST & json_proto [16:10:42]process_json_proto [16:10:42]json parsed OK: [16:10:42]protocol is kg_v1.0 [16:10:42]action value=close_receipt [16:10:42]process_action close_receipt [16:10:42]cmd_close_receipt [16:10:42]MH_GetDate [16:10:42]Write to MH i2c: F0 00 00 27 14 2A [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: F0 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: F0 09 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: F0 09 00 27 14 00 04 54 B7 67 7E 41 4F 65 1C [16:10:42]GetLastDocTimeStamp 1740067472 [16:10:42]current date 1740067844 [16:10:42]FM_GetShiftState [16:10:42]SAM_PROTO_GetShiftState [16:10:42]wFMCommunicate request_size=4 [16:10:42]MH_SAM_APDU [16:10:42]CAPDU: 80 13 01 00 [16:10:42]Write to MH i2c: E2 08 00 28 14 80 13 01 00 00 00 00 00 B9 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 0E 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 0E 00 28 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0B [16:10:43]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:10:43]wFMCommunicate OK [16:10:43]SAM_PROTO_GetShiftState done [16:10:43]FM_GetShiftState done [16:10:43]opened in 1740011697 [16:10:43]opened+sec_in_day 1740098097 [16:10:43]quantity*price = 70030 [16:10:43]sum+1 = 70032 [16:10:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 198 20.02.2025 16:10 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187397 ФПД: 169480793153439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T161044&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187397&fm=169480793153439&tin=02508201610067®Number=0000000000091857&sum=70000 [16:10:44]StoreToDocumentArchive [16:10:44]shift 648 fd 187397 [16:10:44]save to /storage/0648/doc_00187397 [16:10:44]save last doc name /storage/0648/doc_00187397 to /storage/kkm_last_doc_name [16:10:44]save OK [16:10:44]Clear old archive folders... [16:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:44]tlvbuf is B6FC7450 [16:10:44]SAM_PROTO_ClearQueue [16:10:44]wFMCommunicate request_size=4 [16:10:44]MH_SAM_APDU [16:10:44]CAPDU: 80 09 00 00 [16:10:44]Write to MH i2c: E2 08 00 35 14 80 09 00 00 00 00 00 00 BB [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:44]Read from MH i2c: E2 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 03 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [16:10:44]RAPDU: 90 00 [16:10:44]wFMCommunicate OK [16:10:44]SAM_PROTO_ClearQueue done [16:10:44]KKMCreateOFDPacket [16:10:44]OFDProtocolAddRootSTLVToBuf [16:10:44]FM_MakeSignedData [16:10:44]FM_MakeSignedData [16:10:44]SAM_PROTO_SignData [16:10:44]wFMCommunicate request_size=4 [16:10:44]MH_SAM_APDU [16:10:44]CAPDU: 80 0D 01 02 [16:10:44]Write to MH i2c: E2 08 00 36 14 80 0D 01 02 00 00 00 00 C3 [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:44]Read from MH i2c: E2 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 03 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 03 00 36 14 00 90 00 BE [16:10:44]RAPDU: 90 00 [16:10:44]wFMCommunicate OK [16:10:44]wFMCommunicate request_size=255 [16:10:44]MH_SAM_APDU [16:10:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 C6 00 00 00 F4 03 04 00 04 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DC 02 00 35 04 06 00 9A [16:10:44]Write to MH i2c: E2 02 01 37 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 C6 00 00 00 F4 03 04 00 04 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DC 02 00 35 04 06 00 9A 00 00 BA [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:44]Read from MH i2c: E2 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 03 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 03 00 37 14 00 90 00 BF [16:10:44]RAPDU: 90 00 [16:10:44]wFMCommunicate OK [16:10:44]wFMCommunicate request_size=10 [16:10:44]MH_SAM_APDU [16:10:44]CAPDU: 80 0D 02 02 05 24 52 78 DF 9F [16:10:44]Write to MH i2c: E2 0D 00 38 14 80 0D 02 02 05 00 24 52 78 DF 9F 00 00 3C [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:44]Read from MH i2c: E2 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 03 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 03 00 38 14 00 90 00 C0 [16:10:44]RAPDU: 90 00 [16:10:44]wFMCommunicate OK [16:10:44]wFMCommunicate request_size=4 [16:10:44]MH_SAM_APDU [16:10:44]CAPDU: 80 0D 03 02 [16:10:44]Write to MH i2c: E2 08 00 39 14 80 0D 03 02 00 00 00 00 C8 [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:44]Read from MH i2c: E2 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 0B 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 0B 00 39 14 00 FD DE E4 86 DA 66 CA 5B 90 00 73 [16:10:44]RAPDU: FD DE E4 86 DA 66 CA 5B 90 00 [16:10:44]wFMCommunicate OK [16:10:44]SAM_PROTO_SignData done [16:10:44]FM_MakeSignedData done [16:10:44]CreateOFDProtocolMessage [16:10:44]wFMCommunicate request_size=4 [16:10:44]MH_SAM_APDU [16:10:44]CAPDU: 80 11 00 00 [16:10:44]Write to MH i2c: E2 08 00 3A 14 80 11 00 00 00 00 00 00 C8 [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:44]Read from MH i2c: E2 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 17 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: E2 17 00 3A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1B [16:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:10:44]wFMCommunicate OK [16:10:44]CreateOFDProtocolMessage done [16:10:44]OFDSenderStorePacket 187397 [16:10:44]StoreOFDPacket docnum=187397 [16:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0F 40 07 01 10 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 C6 00 00 00 F4 03 04 00 04 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DC 02 00 35 04 06 00 9A 24 52 78 DF 9F FD DE E4 86 DA 66 CA 5B [16:10:44]CheckFolder [16:10:44]dirname=/storage/ofd_packets [16:10:44]CheckFolder done [16:10:44]ProducePacketName [16:10:44]name=ofd_packets/00187397 [16:10:44]NVStorageSaveData ofd_packets/00187397 [16:10:44]File name is /storage/ofd_packets/00187397 [16:10:44]Write 301 bytes [16:10:44]NVStorageSaveData done [16:10:44]OFDSenderStorePacket done [16:10:44]KKMCreateOFDPacket done [16:10:44]NVStorageSaveData kkm_last_timestamp [16:10:44]File name is /storage/kkm_last_timestamp [16:10:44]Write 4 bytes [16:10:44]NVStorageSaveData done [16:10:44]ExternCall_PrintAddStr [16:10:44]wPrintStart [16:10:44]Write to MH i2c: 01 00 00 3B 14 4F [16:10:44]Write i2c OK [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: 01 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: 01 07 00 [16:10:44]MH_I2C_Read... [16:10:44]Read from MH i2c: 01 07 00 3B 14 00 00 00 00 00 FF 0F 64 [16:10:44]RasterBufferAndPrint [16:10:44]line Счет N : (1)412556 [16:10:44]line ИНН: 02508201610067 [16:10:44]line Контрольно-Кассовый Чек [16:10:44]line ПРОДАЖА [16:10:44]line ТРК (МРК, ГНК) : 13 [16:10:44]line Товар: 2710124500 [16:10:44]line Аи-95-К-5 [16:10:44]line 9.740 * 71.90 [16:10:44]line = 700.31 [16:10:44]line НДС 12% НСП 1% [16:10:44]line > о реализуемом товаре [16:10:44]line ОКРУГЛЕНИЕ: -0.31 [16:10:44]line ИТОГО: 700.00 [16:10:44]line Внесено: 700.00 [16:10:44]line СДАЧА: 0.00 [16:10:44]line НСП 1% : 6.20 [16:10:44]line НДС 12% : 74.37 [16:10:44]line Наличными: 700.00 [16:10:44]line Безнал.: 0.00 [16:10:44]line Место: АЗС № 92 "Партнер Нефть" [16:10:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:10:44]line СНО: Общий режим [16:10:44]line Чек 198 20.02.2025 16:10 [16:10:44]line Смена: 648 ФФД: 1.0 [16:10:44]line ЗНМ: 0300000118 [16:10:44]line РНМ: 0000000000091857 [16:10:44]line Версия ККМ: 001 [16:10:44]line ФМ: 0000000000871826 [16:10:44]line ФД: 187397 [16:10:44]line ФПД: 169480793153439 [16:10:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T161044&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187397&fm=169480793153439&tin=02508201610067®Number=0000000000091857&sum=70000 [16:10:45]OFD Sender: Processing packet 187397 [packets to send 49, broken 48] [16:10:45]ProducePacketName [16:10:45]name=ofd_packets/00187397 [16:10:45]OFD Sender: To server: pG, [16:10:45]CommunicateWithHost lk.salyk.kg:30040 [16:10:45]ConnectInit lk.salyk.kg [16:10:45]written 0, free lines is 4095 [16:10:45]Connected sock=10 [16:10:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0F 40 07 01 10 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 C6 00 00 00 F4 03 04 00 04 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DC 02 00 35 04 06 00 9A 24 52 78 DF 9F FD DE E4 86 DA 66 CA 5B [16:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B3 36 47 00 C1 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 31 38 32 36 10 04 04 00 05 DC 02 00 F4 03 04 00 54 FA B6 67 B6 04 01 00 00 4D 96 6D 95 4A DD 0E 02 [16:10:45]CommunicateWithHost err = 0 [16:10:45]CheckOFDResponse [16:10:45]1017 (14) - 77093643461234 [16:10:45]1041 (16) - 0000000000871826 [16:10:45]1040 (4) - 187397 [16:10:45]1012 (4) - 20.02.2025 09:48 [16:10:45]1206 (1) - 0 [16:10:45]OFD Sender: Remove packet 187397 [16:10:45]ProducePacketName [16:10:45]name=ofd_packets/00187397 [16:10:45]NVStorageDeleteData [16:10:45]Write to MH i2c: 01 00 00 66 14 7A [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: 01 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: 01 07 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: 01 07 00 66 14 00 00 00 00 00 EA 0C 77 [16:10:45]RasterBufferAndPrint [16:10:45]line [16:10:45]line [16:10:45]line [16:10:45]line [16:10:45]line [16:10:45]written 0, free lines is 3312 [16:10:45]MH_Cut [16:10:45]Write to MH i2c: D1 01 00 6D 14 01 53 [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: D1 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: D1 01 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: D1 01 00 6D 14 00 52 [16:10:45]Write to MH i2c: 01 00 00 6E 14 82 [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]OFD Sender: No OFD packet to send [16:10:46]*** Cut start [16:10:46]*** Partial cut [16:10:46]*** CUTSNS_PIN = 1 [16:10:46]*** CUTSNS_PIN = 0 [16:10:46]*** Brake cut motor [16:10:46]Read from MH i2c: 01 [16:10:46]MH_I2C_Read... [16:10:46]*** Stop cut motor [16:10:46]*** Cut end [16:10:46]Read from MH i2c: 01 07 00 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: 01 07 00 6E 14 00 00 00 00 00 FF 0F 97 [16:10:46]process_action close_receipt done [16:10:46]requested_data is exist [16:10:46]produce_requested_data [16:10:46]requested_item fm.sn is exist - process it [16:10:46]wFMCommunicate request_size=4 [16:10:46]MH_SAM_APDU [16:10:46]CAPDU: 80 11 00 00 [16:10:46]Write to MH i2c: E2 08 00 6F 14 80 11 00 00 00 00 00 00 FD [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:46]Read from MH i2c: E2 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: E2 17 00 [16:10:46]MH_I2C_Read... [16:10:46]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 31 38 32 36 90 00 50 [16:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:10:46]wFMCommunicate OK [16:10:46]requested_item fd.num is exist - process it [16:10:46]SAM_PROTO_GetFieldsCounters [16:10:46]wFMCommunicate request_size=4 [16:10:46]MH_SAM_APDU [16:10:46]CAPDU: 80 13 00 00 [16:10:46]Write to MH i2c: E2 08 00 70 14 80 13 00 00 00 00 00 00 00 [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 62 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 62 00 70 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 05 DC 02 00 0E 04 04 00 88 02 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 E5 [16:10:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 05 DC 02 00 0E 04 04 00 88 02 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 [16:10:47]wFMCommunicate OK [16:10:47]SAM_PROTO_GetFieldsCounters done [16:10:47]requested_item shift.num is exist - process it [16:10:47]requested_item shift.opened is exist - process it [16:10:47]req_shift_opened [16:10:47]FM_GetShiftState [16:10:47]SAM_PROTO_GetShiftState [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 13 01 00 [16:10:47]Write to MH i2c: E2 08 00 71 14 80 13 01 00 00 00 00 00 02 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 0E 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 0E 00 71 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 54 [16:10:47]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:10:47]wFMCommunicate OK [16:10:47]SAM_PROTO_GetShiftState done [16:10:47]FM_GetShiftState done [16:10:47]req_shift_opened done [16:10:47]requested_item shift.open_date is exist - process it [16:10:47]req_shift_open_date [16:10:47]req_shift_open_date done [16:10:47]produce_requested_data done [16:10:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187397,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:10:47]process_action_free close_receipt [16:10:47]json_value_free [16:10:47]json_value_free done [16:10:47]process_json_proto returns [16:10:47]Send response to host [16:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187397,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:10:47]free response buf [16:10:47]execute_script done [16:10:47]execute_script returns [16:10:47]free content buf [16:10:47]Sock 9.Close socket [16:10:47]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:17]accept exits with 7 [16:12:17]New connection [16:12:17]New thread 3067420004 created [16:12:17]Thread 3067276644 joined [16:12:17]Waiting for new connection... [16:12:17] Sock 7.Parse request [16:12:17]Sock 7.Check first char [16:12:17]Sock 7.First char is OK [16:12:17]request: POST /json_proto HTTP/1.0 [16:12:17]Method: POST [16:12:17]URL: /json_proto [16:12:17]Method is POST - this is cgi request [16:12:17]url: /json_proto [16:12:17]query_string will be loaded in cgi processing [16:12:17]execute_cgi json_proto POST (null) [16:12:17]execute_cgi path=json_proto method=POST [16:12:17]POST find Content-Length [16:12:17]Host: 172.17.46.131:8080 [16:12:17]Content-Length: 682 [16:12:17]Content-Type: application/json [16:12:17] [16:12:17]POST finish read [16:12:17]Found Content-Length = 682 [16:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:12:17]execute_script... [16:12: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)412557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:12:17]POST & json_proto [16:12:17]process_json_proto [16:12:17]json parsed OK: [16:12:17]protocol is kg_v1.0 [16:12:17]action value=close_receipt [16:12:17]process_action close_receipt [16:12:17]cmd_close_receipt [16:12:17]MH_GetDate [16:12:17]Write to MH i2c: F0 00 00 72 14 75 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: F0 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: F0 09 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: F0 09 00 72 14 00 62 54 B7 67 7E 41 4F 65 C5 [16:12:17]GetLastDocTimeStamp 1740067844 [16:12:17]current date 1740067938 [16:12:17]FM_GetShiftState [16:12:17]SAM_PROTO_GetShiftState [16:12:17]wFMCommunicate request_size=4 [16:12:17]MH_SAM_APDU [16:12:17]CAPDU: 80 13 01 00 [16:12:17]Write to MH i2c: E2 08 00 73 14 80 13 01 00 00 00 00 00 04 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:17]Read from MH i2c: E2 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: E2 0E 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: E2 0E 00 73 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 56 [16:12:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:12:17]wFMCommunicate OK [16:12:17]SAM_PROTO_GetShiftState done [16:12:17]FM_GetShiftState done [16:12:17]opened in 1740011697 [16:12:17]opened+sec_in_day 1740098097 [16:12:17]quantity*price = 100023 [16:12:17]sum+1 = 100025 [16:12:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 199 20.02.2025 16:12 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187398 ФПД: 214465793130460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T161218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187398&fm=214465793130460&tin=02508201610067®Number=0000000000091857&sum=100000 [16:12:18]StoreToDocumentArchive [16:12:18]shift 648 fd 187398 [16:12:18]save to /storage/0648/doc_00187398 [16:12:18]save last doc name /storage/0648/doc_00187398 to /storage/kkm_last_doc_name [16:12:18]save OK [16:12:18]Clear old archive folders... [16:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:18]tlvbuf is 00E3BE40 [16:12:18]SAM_PROTO_ClearQueue [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 09 00 00 [16:12:18]Write to MH i2c: E2 08 00 80 14 80 09 00 00 00 00 00 00 06 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 80 14 00 90 00 08 [16:12:18]RAPDU: 90 00 [16:12:18]wFMCommunicate OK [16:12:18]SAM_PROTO_ClearQueue done [16:12:18]KKMCreateOFDPacket [16:12:18]OFDProtocolAddRootSTLVToBuf [16:12:18]FM_MakeSignedData [16:12:18]FM_MakeSignedData [16:12:18]SAM_PROTO_SignData [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 0D 01 02 [16:12:18]Write to MH i2c: E2 08 00 81 14 80 0D 01 02 00 00 00 00 0E [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 81 14 00 90 00 09 [16:12:18]RAPDU: 90 00 [16:12:18]wFMCommunicate OK [16:12:18]wFMCommunicate request_size=255 [16:12:18]MH_SAM_APDU [16:12: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 62 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DC 02 00 35 04 06 00 C3 [16:12:18]Write to MH i2c: E2 02 01 82 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 62 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DC 02 00 35 04 06 00 C3 00 00 D7 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 82 14 00 90 00 0A [16:12:18]RAPDU: 90 00 [16:12:18]wFMCommunicate OK [16:12:18]wFMCommunicate request_size=10 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 0D 02 02 05 0E 35 6A 7F DC [16:12:18]Write to MH i2c: E2 0D 00 83 14 80 0D 02 02 05 00 0E 35 6A 7F DC 00 00 23 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 03 00 83 14 00 90 00 0B [16:12:18]RAPDU: 90 00 [16:12:18]wFMCommunicate OK [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 0D 03 02 [16:12:18]Write to MH i2c: E2 08 00 84 14 80 0D 03 02 00 00 00 00 13 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 0B 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 0B 00 84 14 00 BD D3 37 19 B5 3C 78 51 90 00 AE [16:12:18]RAPDU: BD D3 37 19 B5 3C 78 51 90 00 [16:12:18]wFMCommunicate OK [16:12:18]SAM_PROTO_SignData done [16:12:18]FM_MakeSignedData done [16:12:18]CreateOFDProtocolMessage [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 11 00 00 [16:12:18]Write to MH i2c: E2 08 00 85 14 80 11 00 00 00 00 00 00 13 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 17 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 17 00 85 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [16:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:12:18]wFMCommunicate OK [16:12:18]CreateOFDProtocolMessage done [16:12:18]OFDSenderStorePacket 187398 [16:12:18]StoreOFDPacket docnum=187398 [16:12:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B0 28 07 01 E5 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 62 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DC 02 00 35 04 06 00 C3 0E 35 6A 7F DC BD D3 37 19 B5 3C 78 51 [16:12:18]CheckFolder [16:12:18]dirname=/storage/ofd_packets [16:12:18]CheckFolder done [16:12:18]ProducePacketName [16:12:18]name=ofd_packets/00187398 [16:12:18]NVStorageSaveData ofd_packets/00187398 [16:12:18]File name is /storage/ofd_packets/00187398 [16:12:18]Write 301 bytes [16:12:18]NVStorageSaveData done [16:12:18]OFDSenderStorePacket done [16:12:18]KKMCreateOFDPacket done [16:12:18]NVStorageSaveData kkm_last_timestamp [16:12:18]File name is /storage/kkm_last_timestamp [16:12:18]Write 4 bytes [16:12:18]NVStorageSaveData done [16:12:18]ExternCall_PrintAddStr [16:12:18]wPrintStart [16:12:18]Write to MH i2c: 01 00 00 86 14 9A [16:12:18]OFD Sender: Processing packet 187398 [packets to send 49, broken 48] [16:12:18]ProducePacketName [16:12:18]name=ofd_packets/00187398 [16:12:18]OFD Sender: To server: pG, [16:12:18]CommunicateWithHost lk.salyk.kg:30040 [16:12:18]ConnectInit lk.salyk.kg [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: 01 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: 01 07 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: 01 07 00 86 14 00 00 00 00 00 FF 0F AF [16:12:18]RasterBufferAndPrint [16:12:18]line Счет N : (1)412557 [16:12:18]line ИНН: 02508201610067 [16:12:18]line Контрольно-Кассовый Чек [16:12:18]line ПРОДАЖА [16:12:18]line ТРК (МРК, ГНК) : 22 [16:12:18]line Товар: 2710124130 [16:12:18]line Аи-92-К-2 [16:12:18]line 15.580 * 64.20 [16:12:18]line = 1000.24 [16:12:18]line НДС 12% НСП 1% [16:12:18]line > о реализуемом товаре [16:12:18]line ОКРУГЛЕНИЕ: -0.24 [16:12:18]line ИТОГО: 1000.00 [16:12:18]line Внесено: 1000.00 [16:12:18]line СДАЧА: 0.00 [16:12:18]line НСП 1% : 8.85 [16:12:18]line НДС 12% : 106.22 [16:12:18]line Наличными: 1000.00 [16:12:18]line Безнал.: 0.00 [16:12:18]line Место: АЗС № 92 "Партнер Нефть" [16:12:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:12:18]line СНО: Общий режим [16:12:18]line Чек 199 20.02.2025 16:12 [16:12:18]line Смена: 648 ФФД: 1.0 [16:12:18]line ЗНМ: 0300000118 [16:12:18]line РНМ: 0000000000091857 [16:12:18]line Версия ККМ: 001 [16:12:18]line ФМ: 0000000000871826 [16:12:18]line ФД: 187398 [16:12:18]line ФПД: 214465793130460 [16:12:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T161218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187398&fm=214465793130460&tin=02508201610067®Number=0000000000091857&sum=100000 [16:12:19]Connected sock=10 [16:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 written 0, free lines is 4095 [16:12:19]B0 28 07 01 E5 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 62 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DC 02 00 35 04 06 00 C3 0E 35 6A 7F DC BD D3 37 19 B5 3C 78 51 [16:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 97 11 47 00 37 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DC 02 00 F4 03 04 00 B2 FA B6 67 B6 04 01 00 00 F2 EB AE D2 86 05 70 AD [16:12:19]CommunicateWithHost err = 0 [16:12:19]CheckOFDResponse [16:12:19]1017 (14) - 77093643461234 [16:12:19]1041 (16) - 0000000000871826 [16:12:19]1040 (4) - 187398 [16:12:19]1012 (4) - 20.02.2025 09:49 [16:12:19]1206 (1) - 0 [16:12:19]OFD Sender: Remove packet 187398 [16:12:19]ProducePacketName [16:12:19]name=ofd_packets/00187398 [16:12:19]NVStorageDeleteData [16:12:19]Write to MH i2c: 01 00 00 B1 14 C5 [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 07 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: 01 07 00 B1 14 00 00 00 00 00 ED 0C C5 [16:12:19]RasterBufferAndPrint [16:12:19]line [16:12:19]line [16:12:19]line [16:12:19]line [16:12:19]line [16:12:19]written 0, free lines is 3315 [16:12:19]MH_Cut [16:12:19]Write to MH i2c: D1 01 00 B8 14 01 9E [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: D1 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: D1 01 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: D1 01 00 B8 14 00 9D [16:12:19]Write to MH i2c: 01 00 00 B9 14 CD [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]OFD Sender: No OFD packet to send [16:12:20]*** Cut start [16:12:20]*** Partial cut [16:12:20]*** CUTSNS_PIN = 1 [16:12:20]*** CUTSNS_PIN = 0 [16:12:20]*** Brake cut motor [16:12:20]Read from MH i2c: 01 [16:12:20]MH_I2C_Read... [16:12:20]*** Stop cut motor [16:12:20]*** Cut end [16:12:20]Read from MH i2c: 01 07 00 [16:12:20]MH_I2C_Read... [16:12:20]Read from MH i2c: 01 07 00 B9 14 00 00 00 00 00 FF 0F E2 [16:12:20]process_action close_receipt done [16:12:20]requested_data is exist [16:12:20]produce_requested_data [16:12:20]requested_item fm.sn is exist - process it [16:12:20]wFMCommunicate request_size=4 [16:12:20]MH_SAM_APDU [16:12:20]CAPDU: 80 11 00 00 [16:12:20]Write to MH i2c: E2 08 00 BA 14 80 11 00 00 00 00 00 00 48 [16:12:20]Write i2c OK [16:12:20]MH_I2C_Read... [16:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:21]Read from MH i2c: E2 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 17 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 17 00 BA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [16:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:12:21]wFMCommunicate OK [16:12:21]requested_item fd.num is exist - process it [16:12:21]SAM_PROTO_GetFieldsCounters [16:12:21]wFMCommunicate request_size=4 [16:12:21]MH_SAM_APDU [16:12:21]CAPDU: 80 13 00 00 [16:12:21]Write to MH i2c: E2 08 00 BB 14 80 13 00 00 00 00 00 00 4B [16:12:21]Write i2c OK [16:12:21]MH_I2C_Read... [16:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:21]Read from MH i2c: E2 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 62 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 62 00 BB 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 06 DC 02 00 0E 04 04 00 88 02 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 34 [16:12:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 06 DC 02 00 0E 04 04 00 88 02 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 [16:12:21]wFMCommunicate OK [16:12:21]SAM_PROTO_GetFieldsCounters done [16:12:21]requested_item shift.num is exist - process it [16:12:21]requested_item shift.opened is exist - process it [16:12:21]req_shift_opened [16:12:21]FM_GetShiftState [16:12:21]SAM_PROTO_GetShiftState [16:12:21]wFMCommunicate request_size=4 [16:12:21]MH_SAM_APDU [16:12:21]CAPDU: 80 13 01 00 [16:12:21]Write to MH i2c: E2 08 00 BC 14 80 13 01 00 00 00 00 00 4D [16:12:21]Write i2c OK [16:12:21]MH_I2C_Read... [16:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:21]Read from MH i2c: E2 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 0E 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 0E 00 BC 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9F [16:12:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:12:21]wFMCommunicate OK [16:12:21]SAM_PROTO_GetShiftState done [16:12:21]FM_GetShiftState done [16:12:21]req_shift_opened done [16:12:21]requested_item shift.open_date is exist - process it [16:12:21]req_shift_open_date [16:12:21]req_shift_open_date done [16:12:21]produce_requested_data done [16:12:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187398,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:12:21]process_action_free close_receipt [16:12:21]json_value_free [16:12:21]json_value_free done [16:12:21]process_json_proto returns [16:12:21]Send response to host [16:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187398,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:12:21]free response buf [16:12:21]execute_script done [16:12:21]execute_script returns [16:12:21]free content buf [16:12:21]Sock 7.Close socket [16:12:21]Sock 7.Thread stoped [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]accept exits with 9 [16:14:34]New connection [16:14:34]New thread 3067276644 created [16:14:34]Thread 3067420004 joined [16:14:34]Waiting for new connection... [16:14:34] Sock 9.Parse request [16:14:34]Sock 9.Check first char [16:14:34]Sock 9.First char is OK [16:14:34]request: POST /json_proto HTTP/1.0 [16:14:34]Method: POST [16:14:34]URL: /json_proto [16:14:34]Method is POST - this is cgi request [16:14:34]url: /json_proto [16:14:34]query_string will be loaded in cgi processing [16:14:34]execute_cgi json_proto POST (null) [16:14:34]execute_cgi path=json_proto method=POST [16:14:34]POST find Content-Length [16:14:34]Host: 172.17.46.131:8080 [16:14:34]Content-Length: 799 [16:14:34]Content-Type: application/json [16:14:34] [16:14:34]POST finish read [16:14:34]Found Content-Length = 799 [16:14:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:34]execute_script... [16:14: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)412558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:34]POST & json_proto [16:14:34]process_json_proto [16:14:34]json parsed OK: [16:14:34]protocol is kg_v1.0 [16:14:34]action value=close_receipt [16:14:34]process_action close_receipt [16:14:34]cmd_close_receipt [16:14:34]MH_GetDate [16:14:34]Write to MH i2c: F0 00 00 BD 14 C0 [16:14:34]Write i2c OK [16:14:34]MH_I2C_Read... [16:14:34]Read from MH i2c: F0 [16:14:34]MH_I2C_Read... [16:14:34]Read from MH i2c: F0 09 00 [16:14:34]MH_I2C_Read... [16:14:34]Read from MH i2c: F0 09 00 BD 14 00 EB 54 B7 67 7E 41 4F 65 99 [16:14:34]GetLastDocTimeStamp 1740067938 [16:14:34]current date 1740068075 [16:14:34]FM_GetShiftState [16:14:34]SAM_PROTO_GetShiftState [16:14:34]wFMCommunicate request_size=4 [16:14:34]MH_SAM_APDU [16:14:34]CAPDU: 80 13 01 00 [16:14:34]Write to MH i2c: E2 08 00 BE 14 80 13 01 00 00 00 00 00 4F [16:14:34]Write i2c OK [16:14:34]MH_I2C_Read... [16:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:34]Read from MH i2c: E2 [16:14:34]MH_I2C_Read... [16:14:34]Read from MH i2c: E2 0E 00 [16:14:34]MH_I2C_Read... [16:14:34]Read from MH i2c: E2 0E 00 BE 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A1 [16:14:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:14:34]wFMCommunicate OK [16:14:34]SAM_PROTO_GetShiftState done [16:14:34]FM_GetShiftState done [16:14:34]opened in 1740011697 [16:14:34]opened+sec_in_day 1740098097 [16:14:34]quantity*price = 150064 [16:14:34]sum+1 = 150065 [16:14:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 200 20.02.2025 16:14 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187399 ФПД: 108956614890341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T161435&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187399&fm=108956614890341&tin=02508201610067®Number=0000000000091857&sum=150064 [16:14:35]StoreToDocumentArchive [16:14:35]shift 648 fd 187399 [16:14:35]save to /storage/0648/doc_00187399 [16:14:35]save last doc name /storage/0648/doc_00187399 to /storage/kkm_last_doc_name [16:14:35]save OK [16:14:35]Clear old archive folders... [16:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:14:35]tlvbuf is 00E1EEA0 [16:14:35]SAM_PROTO_ClearQueue [16:14:35]wFMCommunicate request_size=4 [16:14:35]MH_SAM_APDU [16:14:35]CAPDU: 80 09 00 00 [16:14:35]Write to MH i2c: E2 08 00 CB 14 80 09 00 00 00 00 00 00 51 [16:14:35]Write i2c OK [16:14:35]MH_I2C_Read... [16:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:35]Read from MH i2c: E2 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 03 00 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 03 00 CB 14 00 90 00 53 [16:14:35]RAPDU: 90 00 [16:14:35]wFMCommunicate OK [16:14:35]SAM_PROTO_ClearQueue done [16:14:35]KKMCreateOFDPacket [16:14:35]OFDProtocolAddRootSTLVToBuf [16:14:35]FM_MakeSignedData [16:14:35]FM_MakeSignedData [16:14:35]SAM_PROTO_SignData [16:14:35]wFMCommunicate request_size=4 [16:14:35]MH_SAM_APDU [16:14:35]CAPDU: 80 0D 01 02 [16:14:35]Write to MH i2c: E2 08 00 CC 14 80 0D 01 02 00 00 00 00 59 [16:14:35]Write i2c OK [16:14:35]MH_I2C_Read... [16:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:35]Read from MH i2c: E2 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 03 00 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 03 00 CC 14 00 90 00 54 [16:14:35]RAPDU: 90 00 [16:14:35]wFMCommunicate OK [16:14:35]wFMCommunicate request_size=255 [16:14:35]MH_SAM_APDU [16:14:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 EB 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DC 02 00 35 04 06 00 63 18 70 53 [16:14:35]Write to MH i2c: E2 02 01 CD 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 EB 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DC 02 00 35 04 06 00 63 18 70 53 00 00 3A [16:14:35]Write i2c OK [16:14:35]MH_I2C_Read... [16:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:36]Read from MH i2c: E2 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 03 00 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [16:14:36]RAPDU: 90 00 [16:14:36]wFMCommunicate OK [16:14:36]wFMCommunicate request_size=7 [16:14:36]MH_SAM_APDU [16:14:36]CAPDU: 80 0D 02 02 02 93 65 [16:14:36]Write to MH i2c: E2 0A 00 CE 14 80 0D 02 02 02 00 93 65 00 00 58 [16:14:36]Write i2c OK [16:14:36]MH_I2C_Read... [16:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:36]Read from MH i2c: E2 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 03 00 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [16:14:36]RAPDU: 90 00 [16:14:36]wFMCommunicate OK [16:14:36]wFMCommunicate request_size=4 [16:14:36]MH_SAM_APDU [16:14:36]CAPDU: 80 0D 03 02 [16:14:36]Write to MH i2c: E2 08 00 CF 14 80 0D 03 02 00 00 00 00 5E [16:14:36]Write i2c OK [16:14:36]MH_I2C_Read... [16:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:36]Read from MH i2c: E2 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 0B 00 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 0B 00 CF 14 00 AE D3 6F 3A 5F B1 6F 89 90 00 91 [16:14:36]RAPDU: AE D3 6F 3A 5F B1 6F 89 90 00 [16:14:36]wFMCommunicate OK [16:14:36]SAM_PROTO_SignData done [16:14:36]FM_MakeSignedData done [16:14:36]CreateOFDProtocolMessage [16:14:36]wFMCommunicate request_size=4 [16:14:36]MH_SAM_APDU [16:14:36]CAPDU: 80 11 00 00 [16:14:36]Write to MH i2c: E2 08 00 D0 14 80 11 00 00 00 00 00 00 5E [16:14:36]Write i2c OK [16:14:36]MH_I2C_Read... [16:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:36]Read from MH i2c: E2 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 17 00 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 17 00 D0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [16:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:14:36]wFMCommunicate OK [16:14:36]CreateOFDProtocolMessage done [16:14:36]OFDSenderStorePacket 187399 [16:14:36]StoreOFDPacket docnum=187399 [16:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 75 30 04 01 BF 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 EB 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DC 02 00 35 04 06 00 63 18 70 53 93 65 AE D3 6F 3A 5F B1 6F 89 [16:14:36]CheckFolder [16:14:36]dirname=/storage/ofd_packets [16:14:36]CheckFolder done [16:14:36]ProducePacketName [16:14:36]name=ofd_packets/00187399 [16:14:36]NVStorageSaveData ofd_packets/00187399 [16:14:36]File name is /storage/ofd_packets/00187399 [16:14:36]Write 298 bytes [16:14:36]NVStorageSaveData done [16:14:36]OFDSenderStorePacket done [16:14:36]KKMCreateOFDPacket done [16:14:36]NVStorageSaveData kkm_last_timestamp [16:14:36]File name is /storage/kkm_last_timestamp [16:14:36]Write 4 bytes [16:14:36]NVStorageSaveData done [16:14:36]ExternCall_PrintAddStr [16:14:36]wPrintStart [16:14:36]Write to MH i2c: 01 00 00 D1 14 E5 [16:14:36]Write i2c OK [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: 01 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: 01 07 00 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: 01 07 00 D1 14 00 00 00 00 00 FF 0F FA [16:14:36]RasterBufferAndPrint [16:14:36]line Счет N : (1)412558 [16:14:36]line ИНН: 02508201610067 [16:14:36]line Контрольно-Кассовый Чек [16:14:36]line ПРОДАЖА [16:14:36]line ТРК (МРК, ГНК) : 5 [16:14:36]line Товар: 2710194210 [16:14:36]line ДТ-К-5 [16:14:36]line 20.670 * 72.60 [16:14:36]line = 1500.64 [16:14:36]line НДС 12% НСП 1% [16:14:36]line > о реализуемом товаре [16:14:36]line ИТОГО: 1500.64 [16:14:36]line НСП 1% : 13.28 [16:14:36]line НДС 12% : 159.36 [16:14:36]line Наличными: 0.00 [16:14:36]line Безнал.: 1500.64 [16:14:36]line Место: АЗС № 92 "Партнер Нефть" [16:14:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:14:36]line СНО: Общий режим [16:14:36]line Чек 200 20.02.2025 16:14 [16:14:36]line Смена: 648 ФФД: 1.0 [16:14:36]line ЗНМ: 0300000118 [16:14:36]line РНМ: 0000000000091857 [16:14:36]line Версия ККМ: 001 [16:14:36]line Платежная система: O! деньги [16:14:36]line ФМ: 0000000000871826 [16:14:36]line ФД: 187399 [16:14:36]line ФПД: 108956614890341 [16:14:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T161435&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187399&fm=108956614890341&tin=02508201610067®Number=0000000000091857&sum=150064 [16:14:36]OFD Sender: Processing packet 187399 [packets to send 49, broken 48] [16:14:36]ProducePacketName [16:14:36]name=ofd_packets/00187399 [16:14:36]OFD Sender: To server: pG, [16:14:36]CommunicateWithHost lk.salyk.kg:30040 [16:14:36]ConnectInit lk.salyk.kg [16:14:36]written 0, free lines is 4095 [16:14:36]Connected sock=11 [16:14:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 75 30 04 01 BF 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 EB 54 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DC 02 00 35 04 06 00 63 18 70 53 93 65 AE D3 6F 3A 5F B1 6F 89 [16:14:37]Write to MH i2c: 01 00 00 FB 14 0F [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: 01 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: 01 07 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: 01 07 00 FB 14 00 00 00 00 00 04 0D 27 [16:14:37]RasterBufferAndPrint [16:14:37]line [16:14:37]line [16:14:37]line [16:14:37]line [16:14:37]line [16:14:37]written 0, free lines is 3339 [16:14:37]MH_Cut [16:14:37]Write to MH i2c: D1 01 00 02 15 01 E9 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: D1 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: D1 01 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: D1 01 00 02 15 00 E8 [16:14:37]Write to MH i2c: 01 00 00 03 15 18 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5E DB 47 00 51 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DC 02 00 F4 03 04 00 3C FB B6 67 B6 04 01 00 00 5B 5B D3 67 32 CE 27 E7 [16:14:37]CommunicateWithHost err = 0 [16:14:37]CheckOFDResponse [16:14:37]1017 (14) - 77093643461234 [16:14:37]1041 (16) - 0000000000871826 [16:14:37]1040 (4) - 187399 [16:14:37]1012 (4) - 20.02.2025 09:51 [16:14:37]1206 (1) - 0 [16:14:37]OFD Sender: Remove packet 187399 [16:14:37]ProducePacketName [16:14:37]name=ofd_packets/00187399 [16:14:37]NVStorageDeleteData [16:14:37]OFD Sender: No OFD packet to send [16:14:37]*** Cut start [16:14:37]*** Partial cut [16:14:37]*** CUTSNS_PIN = 1 [16:14:37]*** CUTSNS_PIN = 0 [16:14:38]*** Brake cut motor [16:14:38]Read from MH i2c: 01 [16:14:38]MH_I2C_Read... [16:14:38]*** Stop cut motor [16:14:38]*** Cut end [16:14:38]Read from MH i2c: 01 07 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 07 00 03 15 00 00 00 00 00 FF 0F 2D [16:14:38]process_action close_receipt done [16:14:38]requested_data is exist [16:14:38]produce_requested_data [16:14:38]requested_item fm.sn is exist - process it [16:14:38]wFMCommunicate request_size=4 [16:14:38]MH_SAM_APDU [16:14:38]CAPDU: 80 11 00 00 [16:14:38]Write to MH i2c: E2 08 00 04 15 80 11 00 00 00 00 00 00 93 [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:38]Read from MH i2c: E2 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 17 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 17 00 04 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [16:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:14:38]wFMCommunicate OK [16:14:38]requested_item fd.num is exist - process it [16:14:38]SAM_PROTO_GetFieldsCounters [16:14:38]wFMCommunicate request_size=4 [16:14:38]MH_SAM_APDU [16:14:38]CAPDU: 80 13 00 00 [16:14:38]Write to MH i2c: E2 08 00 05 15 80 13 00 00 00 00 00 00 96 [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:38]Read from MH i2c: E2 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 62 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 62 00 05 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 07 DC 02 00 0E 04 04 00 88 02 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 83 [16:14:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 07 DC 02 00 0E 04 04 00 88 02 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 [16:14:38]wFMCommunicate OK [16:14:38]SAM_PROTO_GetFieldsCounters done [16:14:38]requested_item shift.num is exist - process it [16:14:38]requested_item shift.opened is exist - process it [16:14:38]req_shift_opened [16:14:38]FM_GetShiftState [16:14:38]SAM_PROTO_GetShiftState [16:14:38]wFMCommunicate request_size=4 [16:14:38]MH_SAM_APDU [16:14:38]CAPDU: 80 13 01 00 [16:14:38]Write to MH i2c: E2 08 00 06 15 80 13 01 00 00 00 00 00 98 [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:38]Read from MH i2c: E2 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 0E 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 0E 00 06 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EA [16:14:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:14:38]wFMCommunicate OK [16:14:38]SAM_PROTO_GetShiftState done [16:14:38]FM_GetShiftState done [16:14:38]req_shift_opened done [16:14:38]requested_item shift.open_date is exist - process it [16:14:38]req_shift_open_date [16:14:38]req_shift_open_date done [16:14:38]produce_requested_data done [16:14:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187399,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:14:38]process_action_free close_receipt [16:14:38]json_value_free [16:14:38]json_value_free done [16:14:38]process_json_proto returns [16:14:38]Send response to host [16:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187399,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:14:38]free response buf [16:14:38]execute_script done [16:14:38]execute_script returns [16:14:38]free content buf [16:14:38]Sock 9.Close socket [16:14:38]Sock 9.Thread stoped [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:55]accept exits with 7 [16:23:55]New connection [16:23:55]New thread 3067420004 created [16:23:55]Thread 3067276644 joined [16:23:55]Waiting for new connection... [16:23:55] Sock 7.Parse request [16:23:55]Sock 7.Check first char [16:23:55]Sock 7.First char is OK [16:23:55]request: POST /json_proto HTTP/1.0 [16:23:55]Method: POST [16:23:55]URL: /json_proto [16:23:55]Method is POST - this is cgi request [16:23:55]url: /json_proto [16:23:55]query_string will be loaded in cgi processing [16:23:55]execute_cgi json_proto POST (null) [16:23:55]execute_cgi path=json_proto method=POST [16:23:55]POST find Content-Length [16:23:55]Host: 172.17.46.131:8080 [16:23:55]Content-Length: 679 [16:23:55]Content-Type: application/json [16:23:55] [16:23:55]POST finish read [16:23:55]Found Content-Length = 679 [16:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "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:23:55]execute_script... [16:23: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)412559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "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:23:55]POST & json_proto [16:23:55]process_json_proto [16:23:55]json parsed OK: [16:23:55]protocol is kg_v1.0 [16:23:55]action value=close_receipt [16:23:55]process_action close_receipt [16:23:55]cmd_close_receipt [16:23:55]MH_GetDate [16:23:55]Write to MH i2c: F0 00 00 07 15 0B [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 09 00 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 09 00 07 15 00 1C 57 B7 67 7E 41 4F 65 18 [16:23:55]GetLastDocTimeStamp 1740068075 [16:23:55]current date 1740068636 [16:23:55]FM_GetShiftState [16:23:55]SAM_PROTO_GetShiftState [16:23:55]wFMCommunicate request_size=4 [16:23:55]MH_SAM_APDU [16:23:55]CAPDU: 80 13 01 00 [16:23:55]Write to MH i2c: E2 08 00 08 15 80 13 01 00 00 00 00 00 9A [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:55]Read from MH i2c: E2 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 0E 00 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 0E 00 08 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EC [16:23:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:23:55]wFMCommunicate OK [16:23:55]SAM_PROTO_GetShiftState done [16:23:55]FM_GetShiftState done [16:23:55]opened in 1740011697 [16:23:55]opened+sec_in_day 1740098097 [16:23:55]quantity*price = 250034 [16:23:55]sum+1 = 250035 [16:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 201 20.02.2025 16:23 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187400 ФПД: 77610267357632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187400&fm=77610267357632&tin=02508201610067®Number=0000000000091857&sum=250000 [16:23:56]StoreToDocumentArchive [16:23:56]shift 648 fd 187400 [16:23:56]save to /storage/0648/doc_00187400 [16:23:56]save last doc name /storage/0648/doc_00187400 to /storage/kkm_last_doc_name [16:23:56]save OK [16:23:56]Clear old archive folders... [16:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:23:56]tlvbuf is 00E2B120 [16:23:56]SAM_PROTO_ClearQueue [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 09 00 00 [16:23:56]Write to MH i2c: E2 08 00 15 15 80 09 00 00 00 00 00 00 9C [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]SAM_PROTO_ClearQueue done [16:23:56]KKMCreateOFDPacket [16:23:56]OFDProtocolAddRootSTLVToBuf [16:23:56]FM_MakeSignedData [16:23:56]FM_MakeSignedData [16:23:56]SAM_PROTO_SignData [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 01 02 [16:23:56]Write to MH i2c: E2 08 00 16 15 80 0D 01 02 00 00 00 00 A4 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]wFMCommunicate request_size=255 [16:23:56]MH_SAM_APDU [16:23:56]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 32 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 C9 00 00 00 F4 03 04 00 1C 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DC 02 00 35 04 06 00 46 96 0C 6A [16:23:56]Write to MH i2c: E2 02 01 17 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 32 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 C9 00 00 00 F4 03 04 00 1C 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DC 02 00 35 04 06 00 46 96 0C 6A 00 00 BC [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 17 15 00 90 00 A0 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]wFMCommunicate request_size=7 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 02 02 02 B1 C0 [16:23:56]Write to MH i2c: E2 0A 00 18 15 80 0D 02 02 02 00 B1 C0 00 00 1C [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 18 15 00 90 00 A1 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 03 02 [16:23:56]Write to MH i2c: E2 08 00 19 15 80 0D 03 02 00 00 00 00 A9 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 0B 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 0B 00 19 15 00 DC 3D FA 94 CF C1 E6 1A 90 00 E1 [16:23:56]RAPDU: DC 3D FA 94 CF C1 E6 1A 90 00 [16:23:56]wFMCommunicate OK [16:23:56]SAM_PROTO_SignData done [16:23:56]FM_MakeSignedData done [16:23:56]CreateOFDProtocolMessage [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 11 00 00 [16:23:56]Write to MH i2c: E2 08 00 1A 15 80 11 00 00 00 00 00 00 A9 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 17 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 17 00 1A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FC [16:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:23:56]wFMCommunicate OK [16:23:56]CreateOFDProtocolMessage done [16:23:56]OFDSenderStorePacket 187400 [16:23:56]StoreOFDPacket docnum=187400 [16:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0C B6 04 01 09 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 32 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 C9 00 00 00 F4 03 04 00 1C 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DC 02 00 35 04 06 00 46 96 0C 6A B1 C0 DC 3D FA 94 CF C1 E6 1A [16:23:56]CheckFolder [16:23:56]dirname=/storage/ofd_packets [16:23:56]CheckFolder done [16:23:56]ProducePacketName [16:23:56]name=ofd_packets/00187400 [16:23:56]NVStorageSaveData ofd_packets/00187400 [16:23:56]File name is /storage/ofd_packets/00187400 [16:23:56]Write 298 bytes [16:23:56]NVStorageSaveData done [16:23:56]OFDSenderStorePacket done [16:23:56]KKMCreateOFDPacket done [16:23:56]NVStorageSaveData kkm_last_timestamp [16:23:56]File name is /storage/kkm_last_timestamp [16:23:56]Write 4 bytes [16:23:56]NVStorageSaveData done [16:23:56]ExternCall_PrintAddStr [16:23:56]wPrintStart [16:23:56]Write to MH i2c: 01 00 00 1B 15 30 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 07 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 07 00 1B 15 00 00 00 00 00 FF 0F 45 [16:23:56]RasterBufferAndPrint [16:23:56]line Счет N : (1)412559 [16:23:56]line ИНН: 02508201610067 [16:23:56]line Контрольно-Кассовый Чек [16:23:56]line ПРОДАЖА [16:23:56]line ТРК (МРК, ГНК) : 11 [16:23:56]line Товар: 2710194210 [16:23:56]line ДТ-К-2 [16:23:56]line 34.440 * 72.60 [16:23:56]line = 2500.34 [16:23:56]line НДС 12% НСП 1% [16:23:56]line > о реализуемом товаре [16:23:56]line ОКРУГЛЕНИЕ: -0.34 [16:23:56]line ИТОГО: 2500.00 [16:23:56]line Внесено: 2500.00 [16:23:56]line СДАЧА: 0.00 [16:23:56]line НСП 1% : 22.13 [16:23:56]line НДС 12% : 265.52 [16:23:56]line Наличными: 2500.00 [16:23:56]line Безнал.: 0.00 [16:23:56]line Место: АЗС № 92 "Партнер Нефть" [16:23:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:23:56]line СНО: Общий режим [16:23:56]line Чек 201 20.02.2025 16:23 [16:23:56]line Смена: 648 ФФД: 1.0 [16:23:56]line ЗНМ: 0300000118 [16:23:56]line РНМ: 0000000000091857 [16:23:56]line Версия ККМ: 001 [16:23:56]line ФМ: 0000000000871826 [16:23:56]line ФД: 187400 [16:23:56]line ФПД: 77610267357632 [16:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187400&fm=77610267357632&tin=02508201610067®Number=0000000000091857&sum=250000 [16:23:57]OFD Sender: Processing packet 187400 [packets to send 49, broken 48] [16:23:57]ProducePacketName [16:23:57]name=ofd_packets/00187400 [16:23:57]OFD Sender: To server: pG, [16:23:57]CommunicateWithHost lk.salyk.kg:30040 [16:23:57]ConnectInit lk.salyk.kg [16:23:57]written 0, free lines is 4095 [16:23:57]Connected sock=11 [16:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0C B6 04 01 09 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 32 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 C9 00 00 00 F4 03 04 00 1C 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DC 02 00 35 04 06 00 46 96 0C 6A B1 C0 DC 3D FA 94 CF C1 E6 1A [16:23:57]Write to MH i2c: 01 00 00 46 15 5B [16:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AD C5 47 00 6B 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 31 38 32 36 10 04 04 00 08 DC 02 00 F4 03 04 00 6D FD B6 67 B6 04 01 00 00 EF 7B 9C EC B6 AA 3E 74 [16:23:57]CommunicateWithHost err = 0 [16:23:57]CheckOFDResponse [16:23:57]1017 (14) - 77093643461234 [16:23:57]1041 (16) - 0000000000871826 [16:23:57]1040 (4) - 187400 [16:23:57]1012 (4) - 20.02.2025 10:01 [16:23:57]1206 (1) - 0 [16:23:57]OFD Sender: Remove packet 187400 [16:23:57]ProducePacketName [16:23:57]name=ofd_packets/00187400 [16:23:57]NVStorageDeleteData [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 07 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 07 00 46 15 00 00 00 00 00 EC 0C 5A [16:23:57]RasterBufferAndPrint [16:23:57]line [16:23:57]line [16:23:57]line [16:23:57]line [16:23:57]line [16:23:57]written 0, free lines is 3321 [16:23:57]MH_Cut [16:23:57]Write to MH i2c: D1 01 00 4D 15 01 34 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: D1 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: D1 01 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: D1 01 00 4D 15 00 33 [16:23:57]Write to MH i2c: 01 00 00 4E 15 63 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:58]OFD Sender: No OFD packet to send [16:23:58]*** Cut start [16:23:58]*** Partial cut [16:23:58]*** CUTSNS_PIN = 1 [16:23:58]*** CUTSNS_PIN = 0 [16:23:58]*** Brake cut motor [16:23:59]Read from MH i2c: 01 [16:23:59]MH_I2C_Read... [16:23:59]*** Stop cut motor [16:23:59]*** Cut end [16:23:59]Read from MH i2c: 01 07 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 4E 15 00 00 00 00 00 FF 0F 78 [16:23:59]process_action close_receipt done [16:23:59]requested_data is exist [16:23:59]produce_requested_data [16:23:59]requested_item fm.sn is exist - process it [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 11 00 00 [16:23:59]Write to MH i2c: E2 08 00 4F 15 80 11 00 00 00 00 00 00 DE [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 17 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 17 00 4F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 31 [16:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:23:59]wFMCommunicate OK [16:23:59]requested_item fd.num is exist - process it [16:23:59]SAM_PROTO_GetFieldsCounters [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 13 00 00 [16:23:59]Write to MH i2c: E2 08 00 50 15 80 13 00 00 00 00 00 00 E1 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 62 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 62 00 50 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 08 DC 02 00 0E 04 04 00 88 02 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 D2 [16:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 08 DC 02 00 0E 04 04 00 88 02 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 [16:23:59]wFMCommunicate OK [16:23:59]SAM_PROTO_GetFieldsCounters done [16:23:59]requested_item shift.num is exist - process it [16:23:59]requested_item shift.opened is exist - process it [16:23:59]req_shift_opened [16:23:59]FM_GetShiftState [16:23:59]SAM_PROTO_GetShiftState [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 13 01 00 [16:23:59]Write to MH i2c: E2 08 00 51 15 80 13 01 00 00 00 00 00 E3 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 0E 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 0E 00 51 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 35 [16:23:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:23:59]wFMCommunicate OK [16:23:59]SAM_PROTO_GetShiftState done [16:23:59]FM_GetShiftState done [16:23:59]req_shift_opened done [16:23:59]requested_item shift.open_date is exist - process it [16:23:59]req_shift_open_date [16:23:59]req_shift_open_date done [16:23:59]produce_requested_data done [16:23:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187400,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:23:59]process_action_free close_receipt [16:23:59]json_value_free [16:23:59]json_value_free done [16:23:59]process_json_proto returns [16:23:59]Send response to host [16:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187400,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:23:59]free response buf [16:23:59]execute_script done [16:23:59]execute_script returns [16:23:59]free content buf [16:23:59]Sock 7.Close socket [16:23:59]Sock 7.Thread stoped [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:42]accept exits with 9 [16:24:42]New connection [16:24:42]New thread 3067276644 created [16:24:42]Thread 3067420004 joined [16:24:42]Waiting for new connection... [16:24:42] Sock 9.Parse request [16:24:42]Sock 9.Check first char [16:24:42]Sock 9.First char is OK [16:24:42]request: POST /json_proto HTTP/1.0 [16:24:42]Method: POST [16:24:42]URL: /json_proto [16:24:42]Method is POST - this is cgi request [16:24:42]url: /json_proto [16:24:42]query_string will be loaded in cgi processing [16:24:42]execute_cgi json_proto POST (null) [16:24:42]execute_cgi path=json_proto method=POST [16:24:42]POST find Content-Length [16:24:42]Host: 172.17.46.131:8080 [16:24:42]Content-Length: 754 [16:24:42]Content-Type: application/json [16:24:42] [16:24:42]POST finish read [16:24:42]Found Content-Length = 754 [16:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30164091", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:42]execute_script... [16:24: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)412560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30164091", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:42]POST & json_proto [16:24:42]process_json_proto [16:24:42]json parsed OK: [16:24:42]protocol is kg_v1.0 [16:24:42]action value=close_receipt [16:24:42]process_action close_receipt [16:24:42]cmd_close_receipt [16:24:42]MH_GetDate [16:24:42]Write to MH i2c: F0 00 00 52 15 56 [16:24:42]Write i2c OK [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: F0 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: F0 09 00 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: F0 09 00 52 15 00 4B 57 B7 67 7E 41 4F 65 92 [16:24:42]GetLastDocTimeStamp 1740068636 [16:24:42]current date 1740068683 [16:24:42]FM_GetShiftState [16:24:42]SAM_PROTO_GetShiftState [16:24:42]wFMCommunicate request_size=4 [16:24:42]MH_SAM_APDU [16:24:42]CAPDU: 80 13 01 00 [16:24:42]Write to MH i2c: E2 08 00 53 15 80 13 01 00 00 00 00 00 E5 [16:24:42]Write i2c OK [16:24:42]MH_I2C_Read... [16:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:42]Read from MH i2c: E2 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 0E 00 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 0E 00 53 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 37 [16:24:42]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:24:42]wFMCommunicate OK [16:24:42]SAM_PROTO_GetShiftState done [16:24:42]FM_GetShiftState done [16:24:42]opened in 1740011697 [16:24:42]opened+sec_in_day 1740098097 [16:24:42]quantity*price = 0 [16:24:42]sum+1 = 1 [16:24:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 202 20.02.2025 16:24 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30164091 ФМ: 0000000000871826 ФД: 187401 ФПД: 50054033788578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162443&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187401&fm=50054033788578&tin=02508201610067®Number=0000000000091857&sum=0 [16:24:43]StoreToDocumentArchive [16:24:43]shift 648 fd 187401 [16:24:43]save to /storage/0648/doc_00187401 [16:24:43]save last doc name /storage/0648/doc_00187401 to /storage/kkm_last_doc_name [16:24:43]save OK [16:24:43]Clear old archive folders... [16:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:43]tlvbuf is 00E4F520 [16:24:43]SAM_PROTO_ClearQueue [16:24:43]wFMCommunicate request_size=4 [16:24:43]MH_SAM_APDU [16:24:43]CAPDU: 80 09 00 00 [16:24:43]Write to MH i2c: E2 08 00 60 15 80 09 00 00 00 00 00 00 E7 [16:24:43]Write i2c OK [16:24:43]MH_I2C_Read... [16:24:43]*** iso7816_exchange 80 09 00 00... 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 60 15 00 90 00 E9 [16:24:43]RAPDU: 90 00 [16:24:43]wFMCommunicate OK [16:24:43]SAM_PROTO_ClearQueue done [16:24:43]KKMCreateOFDPacket [16:24:43]OFDProtocolAddRootSTLVToBuf [16:24:43]FM_MakeSignedData [16:24:43]FM_MakeSignedData [16:24:43]SAM_PROTO_SignData [16:24:43]wFMCommunicate request_size=4 [16:24:43]MH_SAM_APDU [16:24:43]CAPDU: 80 0D 01 02 [16:24:43]Write to MH i2c: E2 08 00 61 15 80 0D 01 02 00 00 00 00 EF [16:24:43]Write i2c OK [16:24:43]MH_I2C_Read... [16:24:43]*** iso7816_exchange 80 0D 01 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 61 15 00 90 00 EA [16:24:43]RAPDU: 90 00 [16:24:43]wFMCommunicate OK [16:24:43]wFMCommunicate request_size=255 [16:24:43]MH_SAM_APDU [16:24:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4B 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DC 02 00 35 04 06 00 2D [16:24:43]Write to MH i2c: E2 02 01 62 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 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4B 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DC 02 00 35 04 06 00 2D 00 00 2C [16:24:43]Write i2c OK [16:24:43]MH_I2C_Read... [16:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:44]Read from MH i2c: E2 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 03 00 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 03 00 62 15 00 90 00 EB [16:24:44]RAPDU: 90 00 [16:24:44]wFMCommunicate OK [16:24:44]wFMCommunicate request_size=10 [16:24:44]MH_SAM_APDU [16:24:44]CAPDU: 80 0D 02 02 05 86 1C E7 4E A2 [16:24:44]Write to MH i2c: E2 0D 00 63 15 80 0D 02 02 05 00 86 1C E7 4E A2 00 00 75 [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:44]Read from MH i2c: E2 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 03 00 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 03 00 63 15 00 90 00 EC [16:24:44]RAPDU: 90 00 [16:24:44]wFMCommunicate OK [16:24:44]wFMCommunicate request_size=4 [16:24:44]MH_SAM_APDU [16:24:44]CAPDU: 80 0D 03 02 [16:24:44]Write to MH i2c: E2 08 00 64 15 80 0D 03 02 00 00 00 00 F4 [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:44]Read from MH i2c: E2 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 0B 00 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 0B 00 64 15 00 D4 CC 17 24 2F 13 90 91 90 00 33 [16:24:44]RAPDU: D4 CC 17 24 2F 13 90 91 90 00 [16:24:44]wFMCommunicate OK [16:24:44]SAM_PROTO_SignData done [16:24:44]FM_MakeSignedData done [16:24:44]CreateOFDProtocolMessage [16:24:44]wFMCommunicate request_size=4 [16:24:44]MH_SAM_APDU [16:24:44]CAPDU: 80 11 00 00 [16:24:44]Write to MH i2c: E2 08 00 65 15 80 11 00 00 00 00 00 00 F4 [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:44]Read from MH i2c: E2 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 17 00 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: E2 17 00 65 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 47 [16:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:24:44]wFMCommunicate OK [16:24:44]CreateOFDProtocolMessage done [16:24:44]OFDSenderStorePacket 187401 [16:24:44]StoreOFDPacket docnum=187401 [16:24:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C9 2C 07 01 A1 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 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4B 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DC 02 00 35 04 06 00 2D 86 1C E7 4E A2 D4 CC 17 24 2F 13 90 91 [16:24:44]CheckFolder [16:24:44]dirname=/storage/ofd_packets [16:24:44]CheckFolder done [16:24:44]ProducePacketName [16:24:44]name=ofd_packets/00187401 [16:24:44]NVStorageSaveData ofd_packets/00187401 [16:24:44]File name is /storage/ofd_packets/00187401 [16:24:44]Write 301 bytes [16:24:44]NVStorageSaveData done [16:24:44]OFDSenderStorePacket done [16:24:44]KKMCreateOFDPacket done [16:24:44]NVStorageSaveData kkm_last_timestamp [16:24:44]File name is /storage/kkm_last_timestamp [16:24:44]Write 4 bytes [16:24:44]NVStorageSaveData done [16:24:44]ExternCall_PrintAddStr [16:24:44]wPrintStart [16:24:44]Write to MH i2c: 01 00 00 66 15 7B [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 66 15 00 00 00 00 00 FF 0F 90 [16:24:44]RasterBufferAndPrint [16:24:44]line Счет N : (1)412560 [16:24:44]line ИНН: 02508201610067 [16:24:44]line Контрольно-Кассовый Чек [16:24:44]line ПРОДАЖА [16:24:44]line ТРК (МРК, ГНК) : 32 [16:24:44]line Товар: 2710124130 [16:24:44]line Аи-92-К-2 [16:24:44]line 25.000 * 0.00 [16:24:44]line = 0.00 [16:24:44]line НДС 12% НСП 1% [16:24:44]line > о реализуемом товаре [16:24:44]line ИТОГО: 0.00 [16:24:44]line НСП 1% : 0.00 [16:24:44]line НДС 12% : 0.00 [16:24:44]line Наличными: 0.00 [16:24:44]line Безнал.: 0.00 [16:24:44]line Место: АЗС № 92 "Партнер Нефть" [16:24:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:24:44]line СНО: Общий режим [16:24:44]line Чек 202 20.02.2025 16:24 [16:24:44]line Смена: 648 ФФД: 1.0 [16:24:44]line ЗНМ: 0300000118 [16:24:44]line РНМ: 0000000000091857 [16:24:44]line Версия ККМ: 001 [16:24:44]line Талоны: ТК ГПНА Online [16:24:44]line 30164091 [16:24:44]line ФМ: 0000000000871826 [16:24:44]line ФД: 187401 [16:24:44]line ФПД: 50054033788578 [16:24:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162443&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187401&fm=50054033788578&tin=02508201610067®Number=0000000000091857&sum=0 [16:24:44]written 0, free lines is 4095 [16:24:44]OFD Sender: Processing packet 187401 [packets to send 49, broken 48] [16:24:44]ProducePacketName [16:24:44]name=ofd_packets/00187401 [16:24:44]OFD Sender: To server: pG, [16:24:44]CommunicateWithHost lk.salyk.kg:30040 [16:24:44]ConnectInit lk.salyk.kg [16:24:44]Write to MH i2c: 01 00 00 90 15 A5 [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 90 15 00 00 00 00 00 F8 0C B0 [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 3326 [16:24:44]MH_Cut [16:24:44]Write to MH i2c: D1 01 00 97 15 01 7E [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 97 15 00 7D [16:24:44]Write to MH i2c: 01 00 00 98 15 AD [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]Connected sock=10 [16:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C9 2C 07 01 A1 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 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4B 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DC 02 00 35 04 06 00 2D 86 1C E7 4E A2 D4 CC 17 24 2F 13 90 91 [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 31 38 32 36 4F 00 00 00 49 E2 47 00 E6 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 31 38 32 36 10 04 04 00 09 DC 02 00 F4 03 04 00 9C FD B6 67 B6 04 01 00 00 F3 6C 3A AA A7 00 66 61 [16:24:44]CommunicateWithHost err = 0 [16:24:44]CheckOFDResponse [16:24:44]1017 (14) - 77093643461234 [16:24:44]1041 (16) - 0000000000871826 [16:24:44]1040 (4) - 187401 [16:24:44]1012 (4) - 20.02.2025 10:02 [16:24:44]1206 (1) - 0 [16:24:44]OFD Sender: Remove packet 187401 [16:24:44]ProducePacketName [16:24:44]name=ofd_packets/00187401 [16:24:44]NVStorageDeleteData [16:24:45]*** Cut start [16:24:45]*** Partial cut [16:24:45]*** CUTSNS_PIN = 1 [16:24:45]*** CUTSNS_PIN = 0 [16:24:45]OFD Sender: No OFD packet to send [16:24:45]*** Brake cut motor [16:24:46]Read from MH i2c: 01 [16:24:46]MH_I2C_Read... [16:24:46]*** Stop cut motor [16:24:46]*** Cut end [16:24:46]Read from MH i2c: 01 07 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: 01 07 00 98 15 00 00 00 00 00 FF 0F C2 [16:24:46]process_action close_receipt done [16:24:46]requested_data is exist [16:24:46]produce_requested_data [16:24:46]requested_item fm.sn is exist - process it [16:24:46]wFMCommunicate request_size=4 [16:24:46]MH_SAM_APDU [16:24:46]CAPDU: 80 11 00 00 [16:24:46]Write to MH i2c: E2 08 00 99 15 80 11 00 00 00 00 00 00 28 [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:46]Read from MH i2c: E2 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 17 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 17 00 99 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7B [16:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:24:46]wFMCommunicate OK [16:24:46]requested_item fd.num is exist - process it [16:24:46]SAM_PROTO_GetFieldsCounters [16:24:46]wFMCommunicate request_size=4 [16:24:46]MH_SAM_APDU [16:24:46]CAPDU: 80 13 00 00 [16:24:46]Write to MH i2c: E2 08 00 9A 15 80 13 00 00 00 00 00 00 2B [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:46]Read from MH i2c: E2 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 62 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 62 00 9A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 09 DC 02 00 0E 04 04 00 88 02 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 20 [16:24:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 09 DC 02 00 0E 04 04 00 88 02 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 [16:24:46]wFMCommunicate OK [16:24:46]SAM_PROTO_GetFieldsCounters done [16:24:46]requested_item shift.num is exist - process it [16:24:46]requested_item shift.opened is exist - process it [16:24:46]req_shift_opened [16:24:46]FM_GetShiftState [16:24:46]SAM_PROTO_GetShiftState [16:24:46]wFMCommunicate request_size=4 [16:24:46]MH_SAM_APDU [16:24:46]CAPDU: 80 13 01 00 [16:24:46]Write to MH i2c: E2 08 00 9B 15 80 13 01 00 00 00 00 00 2D [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:46]Read from MH i2c: E2 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 0E 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 0E 00 9B 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7F [16:24:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:24:46]wFMCommunicate OK [16:24:46]SAM_PROTO_GetShiftState done [16:24:46]FM_GetShiftState done [16:24:46]req_shift_opened done [16:24:46]requested_item shift.open_date is exist - process it [16:24:46]req_shift_open_date [16:24:46]req_shift_open_date done [16:24:46]produce_requested_data done [16:24:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187401,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:24:46]process_action_free close_receipt [16:24:46]json_value_free [16:24:46]json_value_free done [16:24:46]process_json_proto returns [16:24:46]Send response to host [16:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187401,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:24:46]free response buf [16:24:46]execute_script done [16:24:46]execute_script returns [16:24:46]free content buf [16:24:46]Sock 9.Close socket [16:24:46]Sock 9.Thread stoped [16:24:46]accept exits with 7 [16:24:46]New connection [16:24:46]New thread 3067420004 created [16:24:46]Thread 3067276644 joined [16:24:46]Waiting for new connection... [16:24:46] Sock 7.Parse request [16:24:46]Sock 7.Check first char [16:24:46]Sock 7.First char is OK [16:24:46]request: POST /json_proto HTTP/1.0 [16:24:46]Method: POST [16:24:46]URL: /json_proto [16:24:46]Method is POST - this is cgi request [16:24:46]url: /json_proto [16:24:46]query_string will be loaded in cgi processing [16:24:46]execute_cgi json_proto POST (null) [16:24:46]execute_cgi path=json_proto method=POST [16:24:46]POST find Content-Length [16:24:46]Host: 172.17.46.131:8080 [16:24:46]Content-Length: 800 [16:24:46]Content-Type: application/json [16:24:46] [16:24:46]POST finish read [16:24:46]Found Content-Length = 800 [16:24:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:46]execute_script... [16:24: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)412561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:46]POST & json_proto [16:24:46]process_json_proto [16:24:46]json parsed OK: [16:24:46]protocol is kg_v1.0 [16:24:46]action value=close_receipt [16:24:46]process_action close_receipt [16:24:46]cmd_close_receipt [16:24:46]MH_GetDate [16:24:46]Write to MH i2c: F0 00 00 9C 15 A0 [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: F0 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: F0 09 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: F0 09 00 9C 15 00 50 57 B7 67 7E 41 4F 65 E1 [16:24:46]GetLastDocTimeStamp 1740068683 [16:24:46]current date 1740068688 [16:24:46]FM_GetShiftState [16:24:46]SAM_PROTO_GetShiftState [16:24:46]wFMCommunicate request_size=4 [16:24:46]MH_SAM_APDU [16:24:46]CAPDU: 80 13 01 00 [16:24:46]Write to MH i2c: E2 08 00 9D 15 80 13 01 00 00 00 00 00 2F [16:24:46]Write i2c OK [16:24:46]MH_I2C_Read... [16:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:46]Read from MH i2c: E2 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 0E 00 [16:24:46]MH_I2C_Read... [16:24:46]Read from MH i2c: E2 0E 00 9D 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 81 [16:24:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:24:46]wFMCommunicate OK [16:24:46]SAM_PROTO_GetShiftState done [16:24:46]FM_GetShiftState done [16:24:46]opened in 1740011697 [16:24:46]opened+sec_in_day 1740098097 [16:24:46]quantity*price = 50042 [16:24:46]sum+1 = 50043 [16:24:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 203 20.02.2025 16:24 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187402 ФПД: 111349062793080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162448&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187402&fm=111349062793080&tin=02508201610067®Number=0000000000091857&sum=50042 [16:24:48]StoreToDocumentArchive [16:24:48]shift 648 fd 187402 [16:24:48]save to /storage/0648/doc_00187402 [16:24:48]save last doc name /storage/0648/doc_00187402 to /storage/kkm_last_doc_name [16:24:48]save OK [16:24:48]Clear old archive folders... [16:24:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:48]tlvbuf is 00E2B760 [16:24:48]SAM_PROTO_ClearQueue [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 09 00 00 [16:24:48]Write to MH i2c: E2 08 00 AA 15 80 09 00 00 00 00 00 00 31 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 AA 15 00 90 00 33 [16:24:48]RAPDU: 90 00 [16:24:48]wFMCommunicate OK [16:24:48]SAM_PROTO_ClearQueue done [16:24:48]KKMCreateOFDPacket [16:24:48]OFDProtocolAddRootSTLVToBuf [16:24:48]FM_MakeSignedData [16:24:48]FM_MakeSignedData [16:24:48]SAM_PROTO_SignData [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 0D 01 02 [16:24:48]Write to MH i2c: E2 08 00 AB 15 80 0D 01 02 00 00 00 00 39 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 AB 15 00 90 00 34 [16:24:48]RAPDU: 90 00 [16:24:48]wFMCommunicate OK [16:24:48]wFMCommunicate request_size=255 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 50 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DC 02 00 35 04 06 00 65 [16:24:48]Write to MH i2c: E2 02 01 AC 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 50 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DC 02 00 35 04 06 00 65 00 00 79 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [16:24:48]RAPDU: 90 00 [16:24:48]wFMCommunicate OK [16:24:48]wFMCommunicate request_size=10 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 0D 02 02 05 45 79 55 77 78 [16:24:48]Write to MH i2c: E2 0D 00 AD 15 80 0D 02 02 05 00 45 79 55 77 78 00 00 48 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 AD 15 00 90 00 36 [16:24:48]RAPDU: 90 00 [16:24:48]wFMCommunicate OK [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 0D 03 02 [16:24:48]Write to MH i2c: E2 08 00 AE 15 80 0D 03 02 00 00 00 00 3E [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 0B 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 0B 00 AE 15 00 19 61 61 1F 6D A9 75 BF 90 00 83 [16:24:48]RAPDU: 19 61 61 1F 6D A9 75 BF 90 00 [16:24:48]wFMCommunicate OK [16:24:48]SAM_PROTO_SignData done [16:24:48]FM_MakeSignedData done [16:24:48]CreateOFDProtocolMessage [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 11 00 00 [16:24:48]Write to MH i2c: E2 08 00 AF 15 80 11 00 00 00 00 00 00 3E [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 17 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 17 00 AF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 91 [16:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:24:48]wFMCommunicate OK [16:24:48]CreateOFDProtocolMessage done [16:24:48]OFDSenderStorePacket 187402 [16:24:48]StoreOFDPacket docnum=187402 [16:24:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1D CB 07 01 5A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 50 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DC 02 00 35 04 06 00 65 45 79 55 77 78 19 61 61 1F 6D A9 75 BF [16:24:48]CheckFolder [16:24:48]dirname=/storage/ofd_packets [16:24:48]CheckFolder done [16:24:48]ProducePacketName [16:24:48]name=ofd_packets/00187402 [16:24:48]NVStorageSaveData ofd_packets/00187402 [16:24:48]File name is /storage/ofd_packets/00187402 [16:24:48]Write 301 bytes [16:24:48]NVStorageSaveData done [16:24:48]OFDSenderStorePacket done [16:24:48]KKMCreateOFDPacket done [16:24:48]NVStorageSaveData kkm_last_timestamp [16:24:48]File name is /storage/kkm_last_timestamp [16:24:48]Write 4 bytes [16:24:48]NVStorageSaveData done [16:24:48]ExternCall_PrintAddStr [16:24:48]wPrintStart [16:24:48]Write to MH i2c: 01 00 00 B0 15 C5 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: 01 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: 01 07 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: 01 07 00 B0 15 00 00 00 00 00 FF 0F DA [16:24:48]RasterBufferAndPrint [16:24:48]line Счет N : (1)412561 [16:24:48]line ИНН: 02508201610067 [16:24:48]line Контрольно-Кассовый Чек [16:24:48]line ПРОДАЖА [16:24:48]line ТРК (МРК, ГНК) : 43 [16:24:48]line Товар: 2710124500 [16:24:48]line Аи-95-К-5 [16:24:48]line 6.960 * 71.90 [16:24:48]line = 500.42 [16:24:48]line НДС 12% НСП 1% [16:24:48]line > о реализуемом товаре [16:24:48]line ИТОГО: 500.42 [16:24:48]line НСП 1% : 4.43 [16:24:48]line НДС 12% : 53.14 [16:24:48]line Наличными: 0.00 [16:24:48]line Безнал.: 500.42 [16:24:48]line Место: АЗС № 92 "Партнер Нефть" [16:24:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:24:48]line СНО: Общий режим [16:24:48]line Чек 203 20.02.2025 16:24 [16:24:48]line Смена: 648 ФФД: 1.0 [16:24:48]line ЗНМ: 0300000118 [16:24:48]line РНМ: 0000000000091857 [16:24:48]line Версия ККМ: 001 [16:24:48]line Платежная система: O! деньги [16:24:48]line ФМ: 0000000000871826 [16:24:48]line ФД: 187402 [16:24:48]line ФПД: 111349062793080 [16:24:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162448&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187402&fm=111349062793080&tin=02508201610067®Number=0000000000091857&sum=50042 [16:24:48]written 0, free lines is 4095 [16:24:48]OFD Sender: Processing packet 187402 [packets to send 49, broken 48] [16:24:48]ProducePacketName [16:24:48]name=ofd_packets/00187402 [16:24:48]OFD Sender: To server: pG, [16:24:48]CommunicateWithHost lk.salyk.kg:30040 [16:24:48]ConnectInit lk.salyk.kg [16:24:48]Connected sock=10 [16:24:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1D CB 07 01 5A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 50 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DC 02 00 35 04 06 00 65 45 79 55 77 78 19 61 61 1F 6D A9 75 BF [16:24:49]Write to MH i2c: 01 00 00 DA 15 EF [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 07 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 01 0D 04 [16:24:49]RasterBufferAndPrint [16:24:49]line [16:24:49]line [16:24:49]line [16:24:49]line [16:24:49]line [16:24:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 4E 47 00 1F 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DC 02 00 F4 03 04 00 A0 FD B6 67 B6 04 01 00 00 91 A4 FC B0 F3 E5 04 D4 [16:24:49]CommunicateWithHost err = 0 [16:24:49]CheckOFDResponse [16:24:49]1017 (14) - 77093643461234 [16:24:49]1041 (16) - 0000000000871826 [16:24:49]1040 (4) - 187402 [16:24:49]1012 (4) - 20.02.2025 10:02 [16:24:49]1206 (1) - 0 [16:24:49]OFD Sender: Remove packet 187402 [16:24:49]ProducePacketName [16:24:49]name=ofd_packets/00187402 [16:24:49]NVStorageDeleteData [16:24:49]written 0, free lines is 3369 [16:24:49]MH_Cut [16:24:49]Write to MH i2c: D1 01 00 E1 15 01 C8 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: D1 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: D1 01 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: D1 01 00 E1 15 00 C7 [16:24:49]Write to MH i2c: 01 00 00 E2 15 F7 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]OFD Sender: No OFD packet to send [16:24:49]*** Cut start [16:24:49]*** Partial cut [16:24:49]*** CUTSNS_PIN = 1 [16:24:49]*** CUTSNS_PIN = 0 [16:24:50]*** Brake cut motor [16:24:50]Read from MH i2c: 01 [16:24:50]MH_I2C_Read... [16:24:50]*** Stop cut motor [16:24:50]*** Cut end [16:24:50]Read from MH i2c: 01 07 00 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 FF 0F 0C [16:24:50]process_action close_receipt done [16:24:50]requested_data is exist [16:24:50]produce_requested_data [16:24:50]requested_item fm.sn is exist - process it [16:24:50]wFMCommunicate request_size=4 [16:24:50]MH_SAM_APDU [16:24:50]CAPDU: 80 11 00 00 [16:24:50]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [16:24:50]Write i2c OK [16:24:50]MH_I2C_Read... [16:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:50]Read from MH i2c: E2 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: E2 17 00 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C5 [16:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:24:50]wFMCommunicate OK [16:24:50]requested_item fd.num is exist - process it [16:24:50]SAM_PROTO_GetFieldsCounters [16:24:50]wFMCommunicate request_size=4 [16:24:50]MH_SAM_APDU [16:24:50]CAPDU: 80 13 00 00 [16:24:50]Write to MH i2c: E2 08 00 E4 15 80 13 00 00 00 00 00 00 75 [16:24:50]Write i2c OK [16:24:50]MH_I2C_Read... [16:24:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:50]Read from MH i2c: E2 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: E2 62 00 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: E2 62 00 E4 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0A DC 02 00 0E 04 04 00 88 02 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 6E [16:24:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0A DC 02 00 0E 04 04 00 88 02 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 [16:24:50]wFMCommunicate OK [16:24:50]SAM_PROTO_GetFieldsCounters done [16:24:50]requested_item shift.num is exist - process it [16:24:50]requested_item shift.opened is exist - process it [16:24:50]req_shift_opened [16:24:50]FM_GetShiftState [16:24:50]SAM_PROTO_GetShiftState [16:24:50]wFMCommunicate request_size=4 [16:24:50]MH_SAM_APDU [16:24:50]CAPDU: 80 13 01 00 [16:24:50]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [16:24:50]Write i2c OK [16:24:50]MH_I2C_Read... [16:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:50]Read from MH i2c: E2 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: E2 0E 00 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C9 [16:24:50]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:24:50]wFMCommunicate OK [16:24:50]SAM_PROTO_GetShiftState done [16:24:50]FM_GetShiftState done [16:24:50]req_shift_opened done [16:24:50]requested_item shift.open_date is exist - process it [16:24:50]req_shift_open_date [16:24:50]req_shift_open_date done [16:24:50]produce_requested_data done [16:24:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187402,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:24:50]process_action_free close_receipt [16:24:50]json_value_free [16:24:50]json_value_free done [16:24:50]process_json_proto returns [16:24:50]Send response to host [16:24:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187402,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:24:50]free response buf [16:24:50]execute_script done [16:24:50]execute_script returns [16:24:50]free content buf [16:24:50]Sock 7.Close socket [16:24:50]Sock 7.Thread stoped [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:30]accept exits with 9 [16:25:30]New connection [16:25:30]New thread 3067276644 created [16:25:30]Thread 3067420004 joined [16:25:30]Waiting for new connection... [16:25:30] Sock 9.Parse request [16:25:30]Sock 9.Check first char [16:25:30]Sock 9.First char is OK [16:25:30]request: POST /json_proto HTTP/1.0 [16:25:30]Method: POST [16:25:30]URL: /json_proto [16:25:30]Method is POST - this is cgi request [16:25:30]url: /json_proto [16:25:30]query_string will be loaded in cgi processing [16:25:30]execute_cgi json_proto POST (null) [16:25:30]execute_cgi path=json_proto method=POST [16:25:30]POST find Content-Length [16:25:30]Host: 172.17.46.131:8080 [16:25:30]Content-Length: 673 [16:25:30]Content-Type: application/json [16:25:30] [16:25:30]POST finish read [16:25:30]Found Content-Length = 673 [16:25:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:25:30]execute_script... [16:25: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)412562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:25:30]POST & json_proto [16:25:30]process_json_proto [16:25:30]json parsed OK: [16:25:30]protocol is kg_v1.0 [16:25:30]action value=close_receipt [16:25:30]process_action close_receipt [16:25:30]cmd_close_receipt [16:25:30]MH_GetDate [16:25:30]Write to MH i2c: F0 00 00 E6 15 EA [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: F0 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: F0 09 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: F0 09 00 E6 15 00 7B 57 B7 67 7E 41 4F 65 56 [16:25:30]GetLastDocTimeStamp 1740068688 [16:25:30]current date 1740068731 [16:25:30]FM_GetShiftState [16:25:30]SAM_PROTO_GetShiftState [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 13 01 00 [16:25:30]Write to MH i2c: E2 08 00 E7 15 80 13 01 00 00 00 00 00 79 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0E 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0E 00 E7 15 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CB [16:25:30]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:25:30]wFMCommunicate OK [16:25:30]SAM_PROTO_GetShiftState done [16:25:30]FM_GetShiftState done [16:25:30]opened in 1740011697 [16:25:30]opened+sec_in_day 1740098097 [16:25:30]quantity*price = 50021 [16:25:30]sum+1 = 50022 [16:25:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 204 20.02.2025 16:25 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187403 ФПД: 281342919846545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162531&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187403&fm=281342919846545&tin=02508201610067®Number=0000000000091857&sum=50000 [16:25:31]StoreToDocumentArchive [16:25:31]shift 648 fd 187403 [16:25:31]save to /storage/0648/doc_00187403 [16:25:31]save last doc name /storage/0648/doc_00187403 to /storage/kkm_last_doc_name [16:25:31]save OK [16:25:31]Clear old archive folders... [16:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:25:31]tlvbuf is 00E9A9F0 [16:25:31]SAM_PROTO_ClearQueue [16:25:31]wFMCommunicate request_size=4 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 09 00 00 [16:25:31]Write to MH i2c: E2 08 00 F4 15 80 09 00 00 00 00 00 00 7B [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [16:25:31]RAPDU: 90 00 [16:25:31]wFMCommunicate OK [16:25:31]SAM_PROTO_ClearQueue done [16:25:31]KKMCreateOFDPacket [16:25:31]OFDProtocolAddRootSTLVToBuf [16:25:31]FM_MakeSignedData [16:25:31]FM_MakeSignedData [16:25:31]SAM_PROTO_SignData [16:25:31]wFMCommunicate request_size=4 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 0D 01 02 [16:25:31]Write to MH i2c: E2 08 00 F5 15 80 0D 01 02 00 00 00 00 83 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [16:25:31]RAPDU: 90 00 [16:25:31]wFMCommunicate OK [16:25:31]wFMCommunicate request_size=255 [16:25:31]MH_SAM_APDU [16:25:31]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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7B 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DC 02 00 35 04 06 00 FF E1 40 CC [16:25:31]Write to MH i2c: E2 02 01 F6 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7B 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DC 02 00 35 04 06 00 FF E1 40 CC 00 00 5A [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [16:25:31]RAPDU: 90 00 [16:25:31]wFMCommunicate OK [16:25:31]wFMCommunicate request_size=7 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 0D 02 02 02 2A 91 [16:25:31]Write to MH i2c: E2 0A 00 F7 15 80 0D 02 02 02 00 2A 91 00 00 45 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [16:25:31]RAPDU: 90 00 [16:25:31]wFMCommunicate OK [16:25:31]wFMCommunicate request_size=4 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 0D 03 02 [16:25:31]Write to MH i2c: E2 08 00 F8 15 80 0D 03 02 00 00 00 00 88 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:31]Read from MH i2c: E2 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 0B 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: E2 0B 00 F8 15 00 9D EF 5A A5 26 C9 7E 9D 90 00 1E [16:25:31]RAPDU: 9D EF 5A A5 26 C9 7E 9D 90 00 [16:25:31]wFMCommunicate OK [16:25:31]SAM_PROTO_SignData done [16:25:31]FM_MakeSignedData done [16:25:31]CreateOFDProtocolMessage [16:25:31]wFMCommunicate request_size=4 [16:25:31]MH_SAM_APDU [16:25:31]CAPDU: 80 11 00 00 [16:25:31]Write to MH i2c: E2 08 00 F9 15 80 11 00 00 00 00 00 00 88 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:32]Read from MH i2c: E2 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 17 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 17 00 F9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [16:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:25:32]wFMCommunicate OK [16:25:32]CreateOFDProtocolMessage done [16:25:32]OFDSenderStorePacket 187403 [16:25:32]StoreOFDPacket docnum=187403 [16:25:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 52 2D 04 01 43 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7B 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DC 02 00 35 04 06 00 FF E1 40 CC 2A 91 9D EF 5A A5 26 C9 7E 9D [16:25:32]CheckFolder [16:25:32]dirname=/storage/ofd_packets [16:25:32]CheckFolder done [16:25:32]ProducePacketName [16:25:32]name=ofd_packets/00187403 [16:25:32]NVStorageSaveData ofd_packets/00187403 [16:25:32]File name is /storage/ofd_packets/00187403 [16:25:32]Write 298 bytes [16:25:32]NVStorageSaveData done [16:25:32]OFDSenderStorePacket done [16:25:32]KKMCreateOFDPacket done [16:25:32]NVStorageSaveData kkm_last_timestamp [16:25:32]File name is /storage/kkm_last_timestamp [16:25:32]Write 4 bytes [16:25:32]NVStorageSaveData done [16:25:32]ExternCall_PrintAddStr [16:25:32]wPrintStart [16:25:32]Write to MH i2c: 01 00 00 FA 15 0F [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 07 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 07 00 FA 15 00 00 00 00 00 FF 0F 24 [16:25:32]RasterBufferAndPrint [16:25:32]line Счет N : (1)412562 [16:25:32]line ИНН: 02508201610067 [16:25:32]line Контрольно-Кассовый Чек [16:25:32]line ПРОДАЖА [16:25:32]line ТРК (МРК, ГНК) : 6 [16:25:32]line Товар: 2710194210 [16:25:32]line ДТ-К-5 [16:25:32]line 6.890 * 72.60 [16:25:32]line = 500.21 [16:25:32]line НДС 12% НСП 1% [16:25:32]line > о реализуемом товаре [16:25:32]line ОКРУГЛЕНИЕ: -0.21 [16:25:32]line ИТОГО: 500.00 [16:25:32]line Внесено: 500.00 [16:25:32]line СДАЧА: 0.00 [16:25:32]line НСП 1% : 4.43 [16:25:32]line НДС 12% : 53.12 [16:25:32]line Наличными: 500.00 [16:25:32]line Безнал.: 0.00 [16:25:32]line Место: АЗС № 92 "Партнер Нефть" [16:25:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:25:32]line СНО: Общий режим [16:25:32]line Чек 204 20.02.2025 16:25 [16:25:32]line Смена: 648 ФФД: 1.0 [16:25:32]line ЗНМ: 0300000118 [16:25:32]line РНМ: 0000000000091857 [16:25:32]line Версия ККМ: 001 [16:25:32]line ФМ: 0000000000871826 [16:25:32]line ФД: 187403 [16:25:32]line ФПД: 281342919846545 [16:25:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162531&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187403&fm=281342919846545&tin=02508201610067®Number=0000000000091857&sum=50000 [16:25:32]OFD Sender: Processing packet 187403 [packets to send 49, broken 48] [16:25:32]ProducePacketName [16:25:32]name=ofd_packets/00187403 [16:25:32]OFD Sender: To server: pG, [16:25:32]CommunicateWithHost lk.salyk.kg:30040 [16:25:32]ConnectInit lk.salyk.kg [16:25:32]written 0, free lines is 4095 [16:25:32]Connected sock=10 [16:25:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 52 2D 04 01 43 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7B 57 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DC 02 00 35 04 06 00 FF E1 40 CC 2A 91 9D EF 5A A5 26 C9 7E 9D [16:25:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6C 29 47 00 D6 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DC 02 00 F4 03 04 00 CC FD B6 67 B6 04 01 00 00 17 8C FF 00 FB 55 C0 5C [16:25:32]CommunicateWithHost err = 0 [16:25:32]CheckOFDResponse [16:25:32]1017 (14) - 77093643461234 [16:25:32]1041 (16) - 0000000000871826 [16:25:32]1040 (4) - 187403 [16:25:32]1012 (4) - 20.02.2025 10:02 [16:25:32]1206 (1) - 0 [16:25:32]OFD Sender: Remove packet 187403 [16:25:32]ProducePacketName [16:25:32]name=ofd_packets/00187403 [16:25:32]NVStorageDeleteData [16:25:32]Write to MH i2c: 01 00 00 25 16 3B [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 07 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 07 00 25 16 00 00 00 00 00 EE 0C 3C [16:25:32]RasterBufferAndPrint [16:25:32]line [16:25:32]line [16:25:32]line [16:25:32]line [16:25:32]line [16:25:32]written 0, free lines is 3319 [16:25:32]MH_Cut [16:25:32]Write to MH i2c: D1 01 00 2C 16 01 14 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: D1 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: D1 01 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: D1 01 00 2C 16 00 13 [16:25:32]Write to MH i2c: 01 00 00 2D 16 43 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:33]OFD Sender: No OFD packet to send [16:25:33]*** Cut start [16:25:33]*** Partial cut [16:25:33]*** CUTSNS_PIN = 1 [16:25:33]*** CUTSNS_PIN = 0 [16:25:33]*** Brake cut motor [16:25:34]Read from MH i2c: 01 [16:25:34]MH_I2C_Read... [16:25:34]*** Stop cut motor [16:25:34]*** Cut end [16:25:34]Read from MH i2c: 01 07 00 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: 01 07 00 2D 16 00 00 00 00 00 FF 0F 58 [16:25:34]process_action close_receipt done [16:25:34]requested_data is exist [16:25:34]produce_requested_data [16:25:34]requested_item fm.sn is exist - process it [16:25:34]wFMCommunicate request_size=4 [16:25:34]MH_SAM_APDU [16:25:34]CAPDU: 80 11 00 00 [16:25:34]Write to MH i2c: E2 08 00 2E 16 80 11 00 00 00 00 00 00 BE [16:25:34]Write i2c OK [16:25:34]MH_I2C_Read... [16:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:34]Read from MH i2c: E2 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 17 00 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 17 00 2E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [16:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:25:34]wFMCommunicate OK [16:25:34]requested_item fd.num is exist - process it [16:25:34]SAM_PROTO_GetFieldsCounters [16:25:34]wFMCommunicate request_size=4 [16:25:34]MH_SAM_APDU [16:25:34]CAPDU: 80 13 00 00 [16:25:34]Write to MH i2c: E2 08 00 2F 16 80 13 00 00 00 00 00 00 C1 [16:25:34]Write i2c OK [16:25:34]MH_I2C_Read... [16:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:34]Read from MH i2c: E2 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 62 00 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 62 00 2F 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0B DC 02 00 0E 04 04 00 88 02 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 BE [16:25:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0B DC 02 00 0E 04 04 00 88 02 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 [16:25:34]wFMCommunicate OK [16:25:34]SAM_PROTO_GetFieldsCounters done [16:25:34]requested_item shift.num is exist - process it [16:25:34]requested_item shift.opened is exist - process it [16:25:34]req_shift_opened [16:25:34]FM_GetShiftState [16:25:34]SAM_PROTO_GetShiftState [16:25:34]wFMCommunicate request_size=4 [16:25:34]MH_SAM_APDU [16:25:34]CAPDU: 80 13 01 00 [16:25:34]Write to MH i2c: E2 08 00 30 16 80 13 01 00 00 00 00 00 C3 [16:25:34]Write i2c OK [16:25:34]MH_I2C_Read... [16:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:34]Read from MH i2c: E2 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 0E 00 [16:25:34]MH_I2C_Read... [16:25:34]Read from MH i2c: E2 0E 00 30 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 15 [16:25:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:25:34]wFMCommunicate OK [16:25:34]SAM_PROTO_GetShiftState done [16:25:34]FM_GetShiftState done [16:25:34]req_shift_opened done [16:25:34]requested_item shift.open_date is exist - process it [16:25:34]req_shift_open_date [16:25:34]req_shift_open_date done [16:25:34]produce_requested_data done [16:25:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187403,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:25:34]process_action_free close_receipt [16:25:34]json_value_free [16:25:34]json_value_free done [16:25:34]process_json_proto returns [16:25:34]Send response to host [16:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187403,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:25:34]free response buf [16:25:34]execute_script done [16:25:34]execute_script returns [16:25:34]free content buf [16:25:34]Sock 9.Close socket [16:25:34]Sock 9.Thread stoped [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:13]accept exits with 7 [16:29:13]New connection [16:29:13]New thread 3067420004 created [16:29:13]Thread 3067276644 joined [16:29:13]Waiting for new connection... [16:29:13] Sock 7.Parse request [16:29:13]Sock 7.Check first char [16:29:13]Sock 7.First char is OK [16:29:13]request: POST /json_proto HTTP/1.0 [16:29:13]Method: POST [16:29:13]URL: /json_proto [16:29:13]Method is POST - this is cgi request [16:29:13]url: /json_proto [16:29:13]query_string will be loaded in cgi processing [16:29:13]execute_cgi json_proto POST (null) [16:29:13]execute_cgi path=json_proto method=POST [16:29:13]POST find Content-Length [16:29:13]Host: 172.17.46.131:8080 [16:29:13]Content-Length: 682 [16:29:13]Content-Type: application/json [16:29:13] [16:29:13]POST finish read [16:29:13]Found Content-Length = 682 [16:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "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" ] } } [16:29:13]execute_script... [16: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)412563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "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" ] } } [16:29:13]POST & json_proto [16:29:13]process_json_proto [16:29:13]json parsed OK: [16:29:13]protocol is kg_v1.0 [16:29:13]action value=close_receipt [16:29:13]process_action close_receipt [16:29:13]cmd_close_receipt [16:29:13]MH_GetDate [16:29:13]Write to MH i2c: F0 00 00 31 16 36 [16:29:13]Write i2c OK [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: F0 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: F0 09 00 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: F0 09 00 31 16 00 5B 58 B7 67 7E 41 4F 65 83 [16:29:13]GetLastDocTimeStamp 1740068731 [16:29:13]current date 1740068955 [16:29:13]FM_GetShiftState [16:29:13]SAM_PROTO_GetShiftState [16:29:13]wFMCommunicate request_size=4 [16:29:13]MH_SAM_APDU [16:29:13]CAPDU: 80 13 01 00 [16:29:13]Write to MH i2c: E2 08 00 32 16 80 13 01 00 00 00 00 00 C5 [16:29:13]Write i2c OK [16:29:13]MH_I2C_Read... [16:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:14]Read from MH i2c: E2 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 0E 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 0E 00 32 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 17 [16:29:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:29:14]wFMCommunicate OK [16:29:14]SAM_PROTO_GetShiftState done [16:29:14]FM_GetShiftState done [16:29:14]opened in 1740011697 [16:29:14]opened+sec_in_day 1740098097 [16:29:14]quantity*price = 200047 [16:29:14]sum+1 = 200048 [16:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 205 20.02.2025 16:29 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187404 ФПД: 3221517877972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162915&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187404&fm=3221517877972&tin=02508201610067®Number=0000000000091857&sum=200000 [16:29:15]StoreToDocumentArchive [16:29:15]shift 648 fd 187404 [16:29:15]save to /storage/0648/doc_00187404 [16:29:15]save last doc name /storage/0648/doc_00187404 to /storage/kkm_last_doc_name [16:29:15]save OK [16:29:15]Clear old archive folders... [16:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:15]tlvbuf is 00E50240 [16:29:15]SAM_PROTO_ClearQueue [16:29:15]wFMCommunicate request_size=4 [16:29:15]MH_SAM_APDU [16:29:15]CAPDU: 80 09 00 00 [16:29:15]Write to MH i2c: E2 08 00 3F 16 80 09 00 00 00 00 00 00 C7 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [16:29:15]RAPDU: 90 00 [16:29:15]wFMCommunicate OK [16:29:15]SAM_PROTO_ClearQueue done [16:29:15]KKMCreateOFDPacket [16:29:15]OFDProtocolAddRootSTLVToBuf [16:29:15]FM_MakeSignedData [16:29:15]FM_MakeSignedData [16:29:15]SAM_PROTO_SignData [16:29:15]wFMCommunicate request_size=4 [16:29:15]MH_SAM_APDU [16:29:15]CAPDU: 80 0D 01 02 [16:29:15]Write to MH i2c: E2 08 00 40 16 80 0D 01 02 00 00 00 00 CF [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [16:29:15]RAPDU: 90 00 [16:29:15]wFMCommunicate OK [16:29:15]wFMCommunicate request_size=255 [16:29:15]MH_SAM_APDU [16:29: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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 CD 00 00 00 F4 03 04 00 5B 58 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DC 02 00 35 04 06 00 02 [16:29:15]Write to MH i2c: E2 02 01 41 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 CD 00 00 00 F4 03 04 00 5B 58 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DC 02 00 35 04 06 00 02 00 00 AA [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 41 16 00 90 00 CB [16:29:15]RAPDU: 90 00 [16:29:15]wFMCommunicate OK [16:29:15]wFMCommunicate request_size=10 [16:29:15]MH_SAM_APDU [16:29:15]CAPDU: 80 0D 02 02 05 EE 11 6D C2 D4 [16:29:15]Write to MH i2c: E2 0D 00 42 16 80 0D 02 02 05 00 EE 11 6D C2 D4 00 00 DE [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 42 16 00 90 00 CC [16:29:15]RAPDU: 90 00 [16:29:15]wFMCommunicate OK [16:29:15]wFMCommunicate request_size=4 [16:29:15]MH_SAM_APDU [16:29:15]CAPDU: 80 0D 03 02 [16:29:15]Write to MH i2c: E2 08 00 43 16 80 0D 03 02 00 00 00 00 D4 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 0B 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 0B 00 43 16 00 48 D2 05 B7 9B A1 5D B7 90 00 FB [16:29:15]RAPDU: 48 D2 05 B7 9B A1 5D B7 90 00 [16:29:15]wFMCommunicate OK [16:29:15]SAM_PROTO_SignData done [16:29:15]FM_MakeSignedData done [16:29:15]CreateOFDProtocolMessage [16:29:15]wFMCommunicate request_size=4 [16:29:15]MH_SAM_APDU [16:29:15]CAPDU: 80 11 00 00 [16:29:15]Write to MH i2c: E2 08 00 44 16 80 11 00 00 00 00 00 00 D4 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 17 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 17 00 44 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [16:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:29:15]wFMCommunicate OK [16:29:15]CreateOFDProtocolMessage done [16:29:15]OFDSenderStorePacket 187404 [16:29:15]StoreOFDPacket docnum=187404 [16:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 59 91 07 01 6B 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 CD 00 00 00 F4 03 04 00 5B 58 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DC 02 00 35 04 06 00 02 EE 11 6D C2 D4 48 D2 05 B7 9B A1 5D B7 [16:29:15]CheckFolder [16:29:15]dirname=/storage/ofd_packets [16:29:15]CheckFolder done [16:29:15]ProducePacketName [16:29:15]name=ofd_packets/00187404 [16:29:15]NVStorageSaveData ofd_packets/00187404 [16:29:15]File name is /storage/ofd_packets/00187404 [16:29:15]Write 301 bytes [16:29:15]NVStorageSaveData done [16:29:15]OFDSenderStorePacket done [16:29:15]KKMCreateOFDPacket done [16:29:15]NVStorageSaveData kkm_last_timestamp [16:29:15]File name is /storage/kkm_last_timestamp [16:29:15]Write 4 bytes [16:29:15]NVStorageSaveData done [16:29:15]ExternCall_PrintAddStr [16:29:15]wPrintStart [16:29:15]Write to MH i2c: 01 00 00 45 16 5B [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: 01 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: 01 07 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: 01 07 00 45 16 00 00 00 00 00 FF 0F 70 [16:29:15]RasterBufferAndPrint [16:29:15]line Счет N : (1)412563 [16:29:15]line ИНН: 02508201610067 [16:29:15]line Контрольно-Кассовый Чек [16:29:15]line ПРОДАЖА [16:29:15]line ТРК (МРК, ГНК) : 42 [16:29:15]line Товар: 2710124130 [16:29:15]line Аи-92-К-2 [16:29:15]line 31.160 * 64.20 [16:29:15]line = 2000.47 [16:29:15]line НДС 12% НСП 1% [16:29:15]line > о реализуемом товаре [16:29:15]line ОКРУГЛЕНИЕ: -0.47 [16:29:15]line ИТОГО: 2000.00 [16:29:15]line Внесено: 2000.00 [16:29:15]line СДАЧА: 0.00 [16:29:15]line НСП 1% : 17.70 [16:29:15]line НДС 12% : 212.44 [16:29:15]line Наличными: 2000.00 [16:29:15]line Безнал.: 0.00 [16:29:15]line Место: АЗС № 92 "Партнер Нефть" [16:29:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:29:15]line СНО: Общий режим [16:29:15]line Чек 205 20.02.2025 16:29 [16:29:15]line Смена: 648 ФФД: 1.0 [16:29:15]line ЗНМ: 0300000118 [16:29:15]line РНМ: 0000000000091857 [16:29:15]line Версия ККМ: 001 [16:29:15]line ФМ: 0000000000871826 [16:29:15]line ФД: 187404 [16:29:15]line ФПД: 3221517877972 [16:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T162915&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187404&fm=3221517877972&tin=02508201610067®Number=0000000000091857&sum=200000 [16:29:16]written 0, free lines is 4095 [16:29:16]OFD Sender: Processing packet 187404 [packets to send 49, broken 48] [16:29:16]ProducePacketName [16:29:16]name=ofd_packets/00187404 [16:29:16]OFD Sender: To server: pG, [16:29:16]CommunicateWithHost lk.salyk.kg:30040 [16:29:16]ConnectInit lk.salyk.kg [16:29:16]Connected sock=10 [16:29:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 59 91 07 01 6B 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 CD 00 00 00 F4 03 04 00 5B 58 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DC 02 00 35 04 06 00 02 EE 11 6D C2 D4 48 D2 05 B7 9B A1 5D B7 [16:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FA FE 47 00 6F 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 31 38 32 36 10 04 04 00 0C DC 02 00 F4 03 04 00 AB FE B6 67 B6 04 01 00 00 9A E8 9F F3 CA 8D 9B 88 [16:29:16]CommunicateWithHost err = 0 [16:29:16]CheckOFDResponse [16:29:16]1017 (14) - 77093643461234 [16:29:16]1041 (16) - 0000000000871826 [16:29:16]1040 (4) - 187404 [16:29:16]1012 (4) - 20.02.2025 10:06 [16:29:16]1206 (1) - 0 [16:29:16]OFD Sender: Remove packet 187404 [16:29:16]ProducePacketName [16:29:16]name=ofd_packets/00187404 [16:29:16]NVStorageDeleteData [16:29:16]Write to MH i2c: 01 00 00 70 16 86 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 07 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 07 00 70 16 00 00 00 00 00 EC 0C 85 [16:29:16]RasterBufferAndPrint [16:29:16]line [16:29:16]line [16:29:16]line [16:29:16]line [16:29:16]line [16:29:16]written 0, free lines is 3314 [16:29:16]MH_Cut [16:29:16]Write to MH i2c: D1 01 00 77 16 01 5F [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: D1 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: D1 01 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: D1 01 00 77 16 00 5E [16:29:16]Write to MH i2c: 01 00 00 78 16 8E [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]OFD Sender: No OFD packet to send [16:29:17]*** Cut start [16:29:17]*** Partial cut [16:29:17]*** CUTSNS_PIN = 1 [16:29:17]*** CUTSNS_PIN = 0 [16:29:17]*** Brake cut motor [16:29:17]Read from MH i2c: 01 [16:29:17]MH_I2C_Read... [16:29:17]*** Stop cut motor [16:29:17]*** Cut end [16:29:17]Read from MH i2c: 01 07 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: 01 07 00 78 16 00 00 00 00 00 FF 0F A3 [16:29:17]process_action close_receipt done [16:29:17]requested_data is exist [16:29:17]produce_requested_data [16:29:17]requested_item fm.sn is exist - process it [16:29:17]wFMCommunicate request_size=4 [16:29:17]MH_SAM_APDU [16:29:17]CAPDU: 80 11 00 00 [16:29:17]Write to MH i2c: E2 08 00 79 16 80 11 00 00 00 00 00 00 09 [16:29:17]Write i2c OK [16:29:17]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 17 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 17 00 79 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [16:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:29:17]wFMCommunicate OK [16:29:17]requested_item fd.num is exist - process it [16:29:17]SAM_PROTO_GetFieldsCounters [16:29:17]wFMCommunicate request_size=4 [16:29:17]MH_SAM_APDU [16:29:17]CAPDU: 80 13 00 00 [16:29:17]Write to MH i2c: E2 08 00 7A 16 80 13 00 00 00 00 00 00 0C [16:29:17]Write i2c OK [16:29:17]MH_I2C_Read... [16:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:18]Read from MH i2c: E2 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 62 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 62 00 7A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0C DC 02 00 0E 04 04 00 88 02 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 0D [16:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0C DC 02 00 0E 04 04 00 88 02 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 [16:29:18]wFMCommunicate OK [16:29:18]SAM_PROTO_GetFieldsCounters done [16:29:18]requested_item shift.num is exist - process it [16:29:18]requested_item shift.opened is exist - process it [16:29:18]req_shift_opened [16:29:18]FM_GetShiftState [16:29:18]SAM_PROTO_GetShiftState [16:29:18]wFMCommunicate request_size=4 [16:29:18]MH_SAM_APDU [16:29:18]CAPDU: 80 13 01 00 [16:29:18]Write to MH i2c: E2 08 00 7B 16 80 13 01 00 00 00 00 00 0E [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:18]Read from MH i2c: E2 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 0E 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 0E 00 7B 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 60 [16:29:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:29:18]wFMCommunicate OK [16:29:18]SAM_PROTO_GetShiftState done [16:29:18]FM_GetShiftState done [16:29:18]req_shift_opened done [16:29:18]requested_item shift.open_date is exist - process it [16:29:18]req_shift_open_date [16:29:18]req_shift_open_date done [16:29:18]produce_requested_data done [16:29:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187404,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:29:18]process_action_free close_receipt [16:29:18]json_value_free [16:29:18]json_value_free done [16:29:18]process_json_proto returns [16:29:18]Send response to host [16:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187404,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:29:18]free response buf [16:29:18]execute_script done [16:29:18]execute_script returns [16:29:18]free content buf [16:29:18]Sock 7.Close socket [16:29:18]Sock 7.Thread stoped [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:33]accept exits with 9 [16:33:33]New connection [16:33:33]New thread 3067276644 created [16:33:33]Thread 3067420004 joined [16:33:33]Waiting for new connection... [16:33:33] Sock 9.Parse request [16:33:33]Sock 9.Check first char [16:33:33]Sock 9.First char is OK [16:33:33]request: POST /json_proto HTTP/1.0 [16:33:33]Method: POST [16:33:33]URL: /json_proto [16:33:33]Method is POST - this is cgi request [16:33:33]url: /json_proto [16:33:33]query_string will be loaded in cgi processing [16:33:33]execute_cgi json_proto POST (null) [16:33:33]execute_cgi path=json_proto method=POST [16:33:33]POST find Content-Length [16:33:33]Host: 172.17.46.131:8080 [16:33:33]Content-Length: 682 [16:33:33]Content-Type: application/json [16:33:33] [16:33:33]POST finish read [16:33:33]Found Content-Length = 682 [16:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [16:33:33]execute_script... [16:33: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)412564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [16:33:33]POST & json_proto [16:33:33]process_json_proto [16:33:33]json parsed OK: [16:33:33]protocol is kg_v1.0 [16:33:33]action value=close_receipt [16:33:33]process_action close_receipt [16:33:33]cmd_close_receipt [16:33:33]MH_GetDate [16:33:33]Write to MH i2c: F0 00 00 7C 16 81 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: F0 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: F0 09 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: F0 09 00 7C 16 00 5E 59 B7 67 7E 41 4F 65 D2 [16:33:33]GetLastDocTimeStamp 1740068955 [16:33:33]current date 1740069214 [16:33:33]FM_GetShiftState [16:33:33]SAM_PROTO_GetShiftState [16:33:33]wFMCommunicate request_size=4 [16:33:33]MH_SAM_APDU [16:33:33]CAPDU: 80 13 01 00 [16:33:33]Write to MH i2c: E2 08 00 7D 16 80 13 01 00 00 00 00 00 10 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 0E 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 0E 00 7D 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 62 [16:33:33]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:33:33]wFMCommunicate OK [16:33:33]SAM_PROTO_GetShiftState done [16:33:33]FM_GetShiftState done [16:33:33]opened in 1740011697 [16:33:33]opened+sec_in_day 1740098097 [16:33:33]quantity*price = 150055 [16:33:33]sum+1 = 150056 [16:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 206 20.02.2025 16:33 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187405 ФПД: 215148994575142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T163334&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187405&fm=215148994575142&tin=02508201610067®Number=0000000000091857&sum=150000 [16:33:34]StoreToDocumentArchive [16:33:34]shift 648 fd 187405 [16:33:34]save to /storage/0648/doc_00187405 [16:33:34]save last doc name /storage/0648/doc_00187405 to /storage/kkm_last_doc_name [16:33:34]save OK [16:33:34]Clear old archive folders... [16:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:34]tlvbuf is 00E1E840 [16:33:34]SAM_PROTO_ClearQueue [16:33:34]wFMCommunicate request_size=4 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 09 00 00 [16:33:34]Write to MH i2c: E2 08 00 8A 16 80 09 00 00 00 00 00 00 12 [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 03 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [16:33:34]RAPDU: 90 00 [16:33:34]wFMCommunicate OK [16:33:34]SAM_PROTO_ClearQueue done [16:33:34]KKMCreateOFDPacket [16:33:34]OFDProtocolAddRootSTLVToBuf [16:33:34]FM_MakeSignedData [16:33:34]FM_MakeSignedData [16:33:34]SAM_PROTO_SignData [16:33:34]wFMCommunicate request_size=4 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 0D 01 02 [16:33:34]Write to MH i2c: E2 08 00 8B 16 80 0D 01 02 00 00 00 00 1A [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 03 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 03 00 8B 16 00 90 00 15 [16:33:34]RAPDU: 90 00 [16:33:34]wFMCommunicate OK [16:33:34]wFMCommunicate request_size=255 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 CE 00 00 00 F4 03 04 00 5E 59 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DC 02 00 35 04 06 00 C3 [16:33:34]Write to MH i2c: E2 02 01 8C 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 CE 00 00 00 F4 03 04 00 5E 59 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DC 02 00 35 04 06 00 C3 00 00 AC [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 03 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 03 00 8C 16 00 90 00 16 [16:33:34]RAPDU: 90 00 [16:33:34]wFMCommunicate OK [16:33:34]wFMCommunicate request_size=10 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 0D 02 02 05 AD 47 65 3B 26 [16:33:34]Write to MH i2c: E2 0D 00 8D 16 80 0D 02 02 05 00 AD 47 65 3B 26 00 00 E1 [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 03 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 03 00 8D 16 00 90 00 17 [16:33:34]RAPDU: 90 00 [16:33:34]wFMCommunicate OK [16:33:34]wFMCommunicate request_size=4 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 0D 03 02 [16:33:34]Write to MH i2c: E2 08 00 8E 16 80 0D 03 02 00 00 00 00 1F [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 0B 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 0B 00 8E 16 00 DF 0D 73 A4 F9 1D EF 1A 90 00 42 [16:33:34]RAPDU: DF 0D 73 A4 F9 1D EF 1A 90 00 [16:33:34]wFMCommunicate OK [16:33:34]SAM_PROTO_SignData done [16:33:34]FM_MakeSignedData done [16:33:34]CreateOFDProtocolMessage [16:33:34]wFMCommunicate request_size=4 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 11 00 00 [16:33:34]Write to MH i2c: E2 08 00 8F 16 80 11 00 00 00 00 00 00 1F [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 17 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 17 00 8F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [16:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:33:34]wFMCommunicate OK [16:33:34]CreateOFDProtocolMessage done [16:33:34]OFDSenderStorePacket 187405 [16:33:34]StoreOFDPacket docnum=187405 [16:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C9 4C 07 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 CE 00 00 00 F4 03 04 00 5E 59 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DC 02 00 35 04 06 00 C3 AD 47 65 3B 26 DF 0D 73 A4 F9 1D EF 1A [16:33:34]CheckFolder [16:33:34]dirname=/storage/ofd_packets [16:33:34]CheckFolder done [16:33:34]ProducePacketName [16:33:34]name=ofd_packets/00187405 [16:33:34]NVStorageSaveData ofd_packets/00187405 [16:33:34]File name is /storage/ofd_packets/00187405 [16:33:34]Write 301 bytes [16:33:34]NVStorageSaveData done [16:33:34]OFDSenderStorePacket done [16:33:34]KKMCreateOFDPacket done [16:33:34]NVStorageSaveData kkm_last_timestamp [16:33:34]File name is /storage/kkm_last_timestamp [16:33:34]Write 4 bytes [16:33:34]NVStorageSaveData done [16:33:34]ExternCall_PrintAddStr [16:33:34]wPrintStart [16:33:34]Write to MH i2c: 01 00 00 90 16 A6 [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: 01 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: 01 07 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: 01 07 00 90 16 00 00 00 00 00 FF 0F BB [16:33:34]RasterBufferAndPrint [16:33:34]line Счет N : (1)412564 [16:33:34]line ИНН: 02508201610067 [16:33:34]line Контрольно-Кассовый Чек [16:33:34]line ПРОДАЖА [16:33:34]line ТРК (МРК, ГНК) : 33 [16:33:34]line Товар: 2710124500 [16:33:34]line Аи-95-К-5 [16:33:34]line 20.870 * 71.90 [16:33:34]line = 1500.55 [16:33:34]line НДС 12% НСП 1% [16:33:34]line > о реализуемом товаре [16:33:34]line ОКРУГЛЕНИЕ: -0.55 [16:33:34]line ИТОГО: 1500.00 [16:33:34]line Внесено: 1500.00 [16:33:34]line СДАЧА: 0.00 [16:33:34]line НСП 1% : 13.28 [16:33:34]line НДС 12% : 159.35 [16:33:34]line Наличными: 1500.00 [16:33:34]line Безнал.: 0.00 [16:33:34]line Место: АЗС № 92 "Партнер Нефть" [16:33:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:33:34]line СНО: Общий режим [16:33:34]line Чек 206 20.02.2025 16:33 [16:33:34]line Смена: 648 ФФД: 1.0 [16:33:34]line ЗНМ: 0300000118 [16:33:34]line РНМ: 0000000000091857 [16:33:34]line Версия ККМ: 001 [16:33:34]line ФМ: 0000000000871826 [16:33:34]line ФД: 187405 [16:33:34]line ФПД: 215148994575142 [16:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T163334&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187405&fm=215148994575142&tin=02508201610067®Number=0000000000091857&sum=150000 [16:33:35]OFD Sender: Processing packet 187405 [packets to send 49, broken 48] [16:33:35]ProducePacketName [16:33:35]name=ofd_packets/00187405 [16:33:35]OFD Sender: To server: pG, [16:33:35]CommunicateWithHost lk.salyk.kg:30040 [16:33:35]ConnectInit lk.salyk.kg [16:33:35]written 0, free lines is 4095 [16:33:35]Connected sock=11 [16:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C9 4C 07 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 CE 00 00 00 F4 03 04 00 5E 59 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DC 02 00 35 04 06 00 C3 AD 47 65 3B 26 DF 0D 73 A4 F9 1D EF 1A [16:33:35]Write to MH i2c: 01 00 00 BB 16 D1 [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: 01 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: 01 07 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: 01 07 00 BB 16 00 00 00 00 00 EB 0C CF [16:33:35]RasterBufferAndPrint [16:33:35]line [16:33:35]line [16:33:35]line [16:33:35]line [16:33:35]line [16:33:35]written 0, free lines is 3313 [16:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3F 45 47 00 14 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DC 02 00 F4 03 04 00 AE FF B6 67 B6 04 01 00 00 3C 11 37 95 CA 8C 82 78 [16:33:35]CommunicateWithHost err = 0 [16:33:35]CheckOFDResponse [16:33:35]1017 (14) - 77093643461234 [16:33:35]1041 (16) - 0000000000871826 [16:33:35]1040 (4) - 187405 [16:33:35]1012 (4) - 20.02.2025 10:10 [16:33:35]1206 (1) - 0 [16:33:35]OFD Sender: Remove packet 187405 [16:33:35]ProducePacketName [16:33:35]name=ofd_packets/00187405 [16:33:35]NVStorageDeleteData [16:33:35]MH_Cut [16:33:35]Write to MH i2c: D1 01 00 C2 16 01 AA [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: D1 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: D1 01 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: D1 01 00 C2 16 00 A9 [16:33:35]Write to MH i2c: 01 00 00 C3 16 D9 [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:36]OFD Sender: No OFD packet to send [16:33:36]*** Cut start [16:33:36]*** Partial cut [16:33:36]*** CUTSNS_PIN = 1 [16:33:36]*** CUTSNS_PIN = 0 [16:33:36]*** Brake cut motor [16:33:36]Read from MH i2c: 01 [16:33:36]MH_I2C_Read... [16:33:36]*** Stop cut motor [16:33:36]*** Cut end [16:33:37]Read from MH i2c: 01 07 00 [16:33:37]MH_I2C_Read... [16:33:37]Read from MH i2c: 01 07 00 C3 16 00 00 00 00 00 FF 0F EE [16:33:37]process_action close_receipt done [16:33:37]requested_data is exist [16:33:37]produce_requested_data [16:33:37]requested_item fm.sn is exist - process it [16:33:37]wFMCommunicate request_size=4 [16:33:37]MH_SAM_APDU [16:33:37]CAPDU: 80 11 00 00 [16:33:37]Write to MH i2c: E2 08 00 C4 16 80 11 00 00 00 00 00 00 54 [16:33:37]Write i2c OK [16:33:37]MH_I2C_Read... [16:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:37]Read from MH i2c: E2 [16:33:37]MH_I2C_Read... [16:33:37]Read from MH i2c: E2 17 00 [16:33:37]MH_I2C_Read... [16:33:37]Read from MH i2c: E2 17 00 C4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [16:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:33:37]wFMCommunicate OK [16:33:37]requested_item fd.num is exist - process it [16:33:37]SAM_PROTO_GetFieldsCounters [16:33:37]wFMCommunicate request_size=4 [16:33:37]MH_SAM_APDU [16:33:37]CAPDU: 80 13 00 00 [16:33:37]Write to MH i2c: E2 08 00 C5 16 80 13 00 00 00 00 00 00 57 [16:33:37]Write i2c OK [16:33:37]MH_I2C_Read... [16:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:37]Read from MH i2c: E2 [16:33:37]MH_I2C_Read... [16:33:37]Read from MH i2c: E2 62 00 [16:33:37]MH_I2C_Read... [16:33:37]Read from MH i2c: E2 62 00 C5 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0D DC 02 00 0E 04 04 00 88 02 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 5C [16:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0D DC 02 00 0E 04 04 00 88 02 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 [16:33:37]wFMCommunicate OK [16:33:37]SAM_PROTO_GetFieldsCounters done [16:33:37]requested_item shift.num is exist - process it [16:33:37]requested_item shift.opened is exist - process it [16:33:37]req_shift_opened [16:33:37]FM_GetShiftState [16:33:37]SAM_PROTO_GetShiftState [16:33:37]wFMCommunicate request_size=4 [16:33:37]MH_SAM_APDU [16:33:37]CAPDU: 80 13 01 00 [16:33:37]Write to MH i2c: E2 08 00 C6 16 80 13 01 00 00 00 00 00 59 [16:33:37]Write i2c OK [16:33:37]MH_I2C_Read... [16:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:37]Read from MH i2c: E2 [16:33:37]MH_I2C_Read... [16:33:37]Read from MH i2c: E2 0E 00 [16:33:37]MH_I2C_Read... [16:33:37]Read from MH i2c: E2 0E 00 C6 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AB [16:33:37]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:33:37]wFMCommunicate OK [16:33:37]SAM_PROTO_GetShiftState done [16:33:37]FM_GetShiftState done [16:33:37]req_shift_opened done [16:33:37]requested_item shift.open_date is exist - process it [16:33:37]req_shift_open_date [16:33:37]req_shift_open_date done [16:33:37]produce_requested_data done [16:33:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187405,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:33:37]process_action_free close_receipt [16:33:37]json_value_free [16:33:37]json_value_free done [16:33:37]process_json_proto returns [16:33:37]Send response to host [16:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187405,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:33:37]free response buf [16:33:37]execute_script done [16:33:37]execute_script returns [16:33:37]free content buf [16:33:37]Sock 9.Close socket [16:33:37]Sock 9.Thread stoped [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:33:57]accept exits with 7 [16:33:57]New connection [16:33:57]New thread 3067420004 created [16:33:57]Thread 3067276644 joined [16:33:57]Waiting for new connection... [16:33:57] Sock 7.Parse request [16:33:57]Sock 7.Check first char [16:33:57]Sock 7.First char is OK [16:33:57]request: POST /json_proto HTTP/1.0 [16:33:57]Method: POST [16:33:57]URL: /json_proto [16:33:57]Method is POST - this is cgi request [16:33:57]url: /json_proto [16:33:57]query_string will be loaded in cgi processing [16:33:57]execute_cgi json_proto POST (null) [16:33:57]execute_cgi path=json_proto method=POST [16:33:57]POST find Content-Length [16:33:57]Host: 172.17.46.131:8080 [16:33:57]Content-Length: 796 [16:33:57]Content-Type: application/json [16:33:57] [16:33:57]POST finish read [16:33:57]Found Content-Length = 796 [16:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 2.760, "sum" : 200.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:57]execute_script... [16:33: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)412565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 2.760, "sum" : 200.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:57]POST & json_proto [16:33:57]process_json_proto [16:33:57]json parsed OK: [16:33:57]protocol is kg_v1.0 [16:33:57]action value=close_receipt [16:33:57]process_action close_receipt [16:33:57]cmd_close_receipt [16:33:57]MH_GetDate [16:33:57]Write to MH i2c: F0 00 00 C7 16 CC [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: F0 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: F0 09 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: F0 09 00 C7 16 00 77 59 B7 67 7E 41 4F 65 36 [16:33:57]GetLastDocTimeStamp 1740069214 [16:33:57]current date 1740069239 [16:33:57]FM_GetShiftState [16:33:57]SAM_PROTO_GetShiftState [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 13 01 00 [16:33:57]Write to MH i2c: E2 08 00 C8 16 80 13 01 00 00 00 00 00 5B [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 0E 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 0E 00 C8 16 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AD [16:33:57]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:33:57]wFMCommunicate OK [16:33:57]SAM_PROTO_GetShiftState done [16:33:57]FM_GetShiftState done [16:33:57]opened in 1740011697 [16:33:57]opened+sec_in_day 1740098097 [16:33:57]quantity*price = 20037 [16:33:57]sum+1 = 20039 [16:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.38 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 0.00 Безнал.: 200.38 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 207 20.02.2025 16:33 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187406 ФПД: 3216739910994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T163359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187406&fm=3216739910994&tin=02508201610067®Number=0000000000091857&sum=20038 [16:33:59]StoreToDocumentArchive [16:33:59]shift 648 fd 187406 [16:33:59]save to /storage/0648/doc_00187406 [16:33:59]save last doc name /storage/0648/doc_00187406 to /storage/kkm_last_doc_name [16:33:59]save OK [16:33:59]Clear old archive folders... [16:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:33:59]tlvbuf is 00E5EB60 [16:33:59]SAM_PROTO_ClearQueue [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 09 00 00 [16:33:59]Write to MH i2c: E2 08 00 D5 16 80 09 00 00 00 00 00 00 5D [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 D5 16 00 90 00 5F [16:33:59]RAPDU: 90 00 [16:33:59]wFMCommunicate OK [16:33:59]SAM_PROTO_ClearQueue done [16:33:59]KKMCreateOFDPacket [16:33:59]OFDProtocolAddRootSTLVToBuf [16:33:59]FM_MakeSignedData [16:33:59]FM_MakeSignedData [16:33:59]SAM_PROTO_SignData [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 0D 01 02 [16:33:59]Write to MH i2c: E2 08 00 D6 16 80 0D 01 02 00 00 00 00 65 [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 D6 16 00 90 00 60 [16:33:59]RAPDU: 90 00 [16:33:59]wFMCommunicate OK [16:33:59]wFMCommunicate request_size=255 [16:33:59]MH_SAM_APDU [16:33: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 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 77 59 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DC 02 00 35 04 06 00 02 EC F4 A3 [16:33:59]Write to MH i2c: E2 02 01 D7 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 77 59 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DC 02 00 35 04 06 00 02 EC F4 A3 00 00 8E [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 D7 16 00 90 00 61 [16:33:59]RAPDU: 90 00 [16:33:59]wFMCommunicate OK [16:33:59]wFMCommunicate request_size=7 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 0D 02 02 02 C5 52 [16:33:59]Write to MH i2c: E2 0A 00 D8 16 80 0D 02 02 02 00 C5 52 00 00 83 [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 03 00 D8 16 00 90 00 62 [16:33:59]RAPDU: 90 00 [16:33:59]wFMCommunicate OK [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 0D 03 02 [16:33:59]Write to MH i2c: E2 08 00 D9 16 80 0D 03 02 00 00 00 00 6A [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 0B 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 0B 00 D9 16 00 0C BA 33 F3 0F 55 F3 AB 90 00 59 [16:33:59]RAPDU: 0C BA 33 F3 0F 55 F3 AB 90 00 [16:33:59]wFMCommunicate OK [16:33:59]SAM_PROTO_SignData done [16:33:59]FM_MakeSignedData done [16:33:59]CreateOFDProtocolMessage [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 11 00 00 [16:33:59]Write to MH i2c: E2 08 00 DA 16 80 11 00 00 00 00 00 00 6A [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 17 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 17 00 DA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [16:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:33:59]wFMCommunicate OK [16:33:59]CreateOFDProtocolMessage done [16:33:59]OFDSenderStorePacket 187406 [16:33:59]StoreOFDPacket docnum=187406 [16:33:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 52 EE 04 01 B2 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 77 59 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DC 02 00 35 04 06 00 02 EC F4 A3 C5 52 0C BA 33 F3 0F 55 F3 AB [16:33:59]CheckFolder [16:33:59]dirname=/storage/ofd_packets [16:33:59]CheckFolder done [16:33:59]ProducePacketName [16:33:59]name=ofd_packets/00187406 [16:33:59]NVStorageSaveData ofd_packets/00187406 [16:33:59]File name is /storage/ofd_packets/00187406 [16:33:59]Write 298 bytes [16:33:59]NVStorageSaveData done [16:33:59]OFDSenderStorePacket done [16:33:59]KKMCreateOFDPacket done [16:33:59]NVStorageSaveData kkm_last_timestamp [16:33:59]File name is /storage/kkm_last_timestamp [16:33:59]Write 4 bytes [16:33:59]NVStorageSaveData done [16:33:59]ExternCall_PrintAddStr [16:33:59]wPrintStart [16:33:59]Write to MH i2c: 01 00 00 DB 16 F1 [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: 01 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: 01 07 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: 01 07 00 DB 16 00 00 00 00 00 FF 0F 06 [16:33:59]RasterBufferAndPrint [16:33:59]line Счет N : (1)412565 [16:33:59]line ИНН: 02508201610067 [16:33:59]line Контрольно-Кассовый Чек [16:33:59]line ПРОДАЖА [16:33:59]line ТРК (МРК, ГНК) : 5 [16:33:59]line Товар: 2710194210 [16:33:59]line ДТ-К-5 [16:33:59]line 2.760 * 72.60 [16:33:59]line = 200.38 [16:33:59]line НДС 12% НСП 1% [16:33:59]line > о реализуемом товаре [16:33:59]line ИТОГО: 200.38 [16:33:59]line НСП 1% : 1.77 [16:33:59]line НДС 12% : 21.28 [16:33:59]line Наличными: 0.00 [16:33:59]line Безнал.: 200.38 [16:33:59]line Место: АЗС № 92 "Партнер Нефть" [16:33:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:33:59]line СНО: Общий режим [16:33:59]line Чек 207 20.02.2025 16:33 [16:33:59]line Смена: 648 ФФД: 1.0 [16:33:59]line ЗНМ: 0300000118 [16:33:59]line РНМ: 0000000000091857 [16:33:59]line Версия ККМ: 001 [16:33:59]line Платежная система: O! деньги [16:33:59]line ФМ: 0000000000871826 [16:33:59]line ФД: 187406 [16:33:59]line ФПД: 3216739910994 [16:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T163359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187406&fm=3216739910994&tin=02508201610067®Number=0000000000091857&sum=20038 [16:33:59]OFD Sender: Processing packet 187406 [packets to send 49, broken 48] [16:33:59]ProducePacketName [16:33:59]name=ofd_packets/00187406 [16:33:59]OFD Sender: To server: pG, [16:33:59]CommunicateWithHost lk.salyk.kg:30040 [16:33:59]ConnectInit lk.salyk.kg [16:33:59]written 0, free lines is 4095 [16:34:00]Connected sock=10 [16:34:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 52 EE 04 01 B2 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 77 59 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DC 02 00 35 04 06 00 02 EC F4 A3 C5 52 0C BA 33 F3 0F 55 F3 AB [16:34:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FB 65 47 00 8B 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DC 02 00 F4 03 04 00 C7 FF B6 67 B6 04 01 00 00 AE 80 50 27 50 DB A2 33 [16:34:00]CommunicateWithHost err = 0 [16:34:00]CheckOFDResponse [16:34:00]1017 (14) - 77093643461234 [16:34:00]1041 (16) - 0000000000871826 [16:34:00]1040 (4) - 187406 [16:34:00]1012 (4) - 20.02.2025 10:11 [16:34:00]1206 (1) - 0 [16:34:00]OFD Sender: Remove packet 187406 [16:34:00]ProducePacketName [16:34:00]name=ofd_packets/00187406 [16:34:00]NVStorageDeleteData [16:34:00]Write to MH i2c: 01 00 00 05 17 1C [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 07 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 02 0D 32 [16:34:00]RasterBufferAndPrint [16:34:00]line [16:34:00]line [16:34:00]line [16:34:00]line [16:34:00]line [16:34:00]written 0, free lines is 3336 [16:34:00]MH_Cut [16:34:00]Write to MH i2c: D1 01 00 0C 17 01 F5 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: D1 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: D1 01 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: D1 01 00 0C 17 00 F4 [16:34:00]Write to MH i2c: 01 00 00 0D 17 24 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]OFD Sender: No OFD packet to send [16:34:00]*** Cut start [16:34:00]*** Partial cut [16:34:00]*** CUTSNS_PIN = 1 [16:34:01]*** CUTSNS_PIN = 0 [16:34:01]*** Brake cut motor [16:34:01]Read from MH i2c: 01 [16:34:01]MH_I2C_Read... [16:34:01]*** Stop cut motor [16:34:01]*** Cut end [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 0D 17 00 00 00 00 00 FF 0F 39 [16:34:01]process_action close_receipt done [16:34:01]requested_data is exist [16:34:01]produce_requested_data [16:34:01]requested_item fm.sn is exist - process it [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 0E 17 80 11 00 00 00 00 00 00 9F [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 0E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F2 [16:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:34:01]wFMCommunicate OK [16:34:01]requested_item fd.num is exist - process it [16:34:01]SAM_PROTO_GetFieldsCounters [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 13 00 00 [16:34:01]Write to MH i2c: E2 08 00 0F 17 80 13 00 00 00 00 00 00 A2 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 62 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 62 00 0F 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0E DC 02 00 0E 04 04 00 88 02 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 AB [16:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0E DC 02 00 0E 04 04 00 88 02 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 [16:34:01]wFMCommunicate OK [16:34:01]SAM_PROTO_GetFieldsCounters done [16:34:01]requested_item shift.num is exist - process it [16:34:01]requested_item shift.opened is exist - process it [16:34:01]req_shift_opened [16:34:01]FM_GetShiftState [16:34:01]SAM_PROTO_GetShiftState [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 13 01 00 [16:34:01]Write to MH i2c: E2 08 00 10 17 80 13 01 00 00 00 00 00 A4 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 0E 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 0E 00 10 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F6 [16:34:01]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:34:01]wFMCommunicate OK [16:34:01]SAM_PROTO_GetShiftState done [16:34:01]FM_GetShiftState done [16:34:01]req_shift_opened done [16:34:01]requested_item shift.open_date is exist - process it [16:34:01]req_shift_open_date [16:34:01]req_shift_open_date done [16:34:01]produce_requested_data done [16:34:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187406,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:34:01]process_action_free close_receipt [16:34:01]json_value_free [16:34:01]json_value_free done [16:34:01]process_json_proto returns [16:34:01]Send response to host [16:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187406,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:34:01]free response buf [16:34:01]execute_script done [16:34:01]execute_script returns [16:34:01]free content buf [16:34:01]Sock 7.Close socket [16:34:01]Sock 7.Thread stoped [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]accept exits with 9 [16:36:55]New connection [16:36:55]New thread 3067276644 created [16:36:55]Thread 3067420004 joined [16:36:55]Waiting for new connection... [16:36:55] Sock 9.Parse request [16:36:55]Sock 9.Check first char [16:36:55]Sock 9.First char is OK [16:36:55]request: POST /json_proto HTTP/1.0 [16:36:55]Method: POST [16:36:55]URL: /json_proto [16:36:55]Method is POST - this is cgi request [16:36:55]url: /json_proto [16:36:55]query_string will be loaded in cgi processing [16:36:55]execute_cgi json_proto POST (null) [16:36:55]execute_cgi path=json_proto method=POST [16:36:55]POST find Content-Length [16:36:55]Host: 172.17.46.131:8080 [16:36:55]Content-Length: 679 [16:36:55]Content-Type: application/json [16:36:55] [16:36:55]POST finish read [16:36:55]Found Content-Length = 679 [16:36:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:55]execute_script... [16: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)412566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:55]POST & json_proto [16:36:55]process_json_proto [16:36:55]json parsed OK: [16:36:55]protocol is kg_v1.0 [16:36:55]action value=close_receipt [16:36:55]process_action close_receipt [16:36:55]cmd_close_receipt [16:36:55]MH_GetDate [16:36:55]Write to MH i2c: F0 00 00 11 17 17 [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: F0 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: F0 09 00 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: F0 09 00 11 17 00 28 5A B7 67 7E 41 4F 65 33 [16:36:55]GetLastDocTimeStamp 1740069239 [16:36:55]current date 1740069416 [16:36:55]FM_GetShiftState [16:36:55]SAM_PROTO_GetShiftState [16:36:55]wFMCommunicate request_size=4 [16:36:55]MH_SAM_APDU [16:36:55]CAPDU: 80 13 01 00 [16:36:55]Write to MH i2c: E2 08 00 12 17 80 13 01 00 00 00 00 00 A6 [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:55]Read from MH i2c: E2 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 0E 00 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 0E 00 12 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F8 [16:36:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:36:55]wFMCommunicate OK [16:36:55]SAM_PROTO_GetShiftState done [16:36:55]FM_GetShiftState done [16:36:55]opened in 1740011697 [16:36:55]opened+sec_in_day 1740098097 [16:36:55]quantity*price = 300055 [16:36:55]sum+1 = 300057 [16:36:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 208 20.02.2025 16:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187407 ФПД: 201556854183572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T163656&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187407&fm=201556854183572&tin=02508201610067®Number=0000000000091857&sum=300000 [16:36:56]StoreToDocumentArchive [16:36:56]shift 648 fd 187407 [16:36:56]save to /storage/0648/doc_00187407 [16:36:56]save last doc name /storage/0648/doc_00187407 to /storage/kkm_last_doc_name [16:36:56]save OK [16:36:56]Clear old archive folders... [16:36:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:36:56]tlvbuf is 00E69770 [16:36:56]SAM_PROTO_ClearQueue [16:36:56]wFMCommunicate request_size=4 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 09 00 00 [16:36:56]Write to MH i2c: E2 08 00 1F 17 80 09 00 00 00 00 00 00 A8 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 03 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 03 00 1F 17 00 90 00 AA [16:36:56]RAPDU: 90 00 [16:36:56]wFMCommunicate OK [16:36:56]SAM_PROTO_ClearQueue done [16:36:56]KKMCreateOFDPacket [16:36:56]OFDProtocolAddRootSTLVToBuf [16:36:56]FM_MakeSignedData [16:36:56]FM_MakeSignedData [16:36:56]SAM_PROTO_SignData [16:36:56]wFMCommunicate request_size=4 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 0D 01 02 [16:36:56]Write to MH i2c: E2 08 00 20 17 80 0D 01 02 00 00 00 00 B0 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 03 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 03 00 20 17 00 90 00 AB [16:36:56]RAPDU: 90 00 [16:36:56]wFMCommunicate OK [16:36:56]wFMCommunicate request_size=255 [16:36:56]MH_SAM_APDU [16:36:56]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 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 28 5A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DC 02 00 35 04 06 00 B7 50 9C B2 [16:36:56]Write to MH i2c: E2 02 01 21 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 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 28 5A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DC 02 00 35 04 06 00 B7 50 9C B2 00 00 D1 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 03 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 03 00 21 17 00 90 00 AC [16:36:56]RAPDU: 90 00 [16:36:56]wFMCommunicate OK [16:36:56]wFMCommunicate request_size=7 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 0D 02 02 02 16 94 [16:36:56]Write to MH i2c: E2 0A 00 22 17 80 0D 02 02 02 00 16 94 00 00 61 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 03 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [16:36:56]RAPDU: 90 00 [16:36:56]wFMCommunicate OK [16:36:56]wFMCommunicate request_size=4 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 0D 03 02 [16:36:56]Write to MH i2c: E2 08 00 23 17 80 0D 03 02 00 00 00 00 B5 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 0B 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 0B 00 23 17 00 08 C8 E2 56 E4 BF E3 81 90 00 C5 [16:36:56]RAPDU: 08 C8 E2 56 E4 BF E3 81 90 00 [16:36:56]wFMCommunicate OK [16:36:56]SAM_PROTO_SignData done [16:36:56]FM_MakeSignedData done [16:36:56]CreateOFDProtocolMessage [16:36:56]wFMCommunicate request_size=4 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 11 00 00 [16:36:56]Write to MH i2c: E2 08 00 24 17 80 11 00 00 00 00 00 00 B5 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 17 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 17 00 24 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [16:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:36:56]wFMCommunicate OK [16:36:56]CreateOFDProtocolMessage done [16:36:56]OFDSenderStorePacket 187407 [16:36:56]StoreOFDPacket docnum=187407 [16:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 80 35 04 01 96 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 28 5A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DC 02 00 35 04 06 00 B7 50 9C B2 16 94 08 C8 E2 56 E4 BF E3 81 [16:36:56]CheckFolder [16:36:56]dirname=/storage/ofd_packets [16:36:56]CheckFolder done [16:36:56]ProducePacketName [16:36:56]name=ofd_packets/00187407 [16:36:56]NVStorageSaveData ofd_packets/00187407 [16:36:56]File name is /storage/ofd_packets/00187407 [16:36:56]Write 298 bytes [16:36:56]NVStorageSaveData done [16:36:56]OFDSenderStorePacket done [16:36:56]KKMCreateOFDPacket done [16:36:56]NVStorageSaveData kkm_last_timestamp [16:36:56]File name is /storage/kkm_last_timestamp [16:36:56]Write 4 bytes [16:36:56]NVStorageSaveData done [16:36:56]ExternCall_PrintAddStr [16:36:56]wPrintStart [16:36:56]Write to MH i2c: 01 00 00 25 17 3C [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 07 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 07 00 25 17 00 00 00 00 00 FF 0F 51 [16:36:56]RasterBufferAndPrint [16:36:56]line Счет N : (1)412566 [16:36:56]line ИНН: 02508201610067 [16:36:56]line Контрольно-Кассовый Чек [16:36:56]line ПРОДАЖА [16:36:56]line ТРК (МРК, ГНК) : 11 [16:36:56]line Товар: 2710194210 [16:36:56]line ДТ-К-2 [16:36:56]line 41.330 * 72.60 [16:36:56]line = 3000.56 [16:36:56]line НДС 12% НСП 1% [16:36:56]line > о реализуемом товаре [16:36:56]line ОКРУГЛЕНИЕ: -0.56 [16:36:56]line ИТОГО: 3000.00 [16:36:56]line Внесено: 3000.00 [16:36:56]line СДАЧА: 0.00 [16:36:56]line НСП 1% : 26.55 [16:36:56]line НДС 12% : 318.64 [16:36:56]line Наличными: 3000.00 [16:36:56]line Безнал.: 0.00 [16:36:56]line Место: АЗС № 92 "Партнер Нефть" [16:36:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:36:56]line СНО: Общий режим [16:36:56]line Чек 208 20.02.2025 16:36 [16:36:56]line Смена: 648 ФФД: 1.0 [16:36:56]line ЗНМ: 0300000118 [16:36:56]line РНМ: 0000000000091857 [16:36:56]line Версия ККМ: 001 [16:36:56]line ФМ: 0000000000871826 [16:36:56]line ФД: 187407 [16:36:56]line ФПД: 201556854183572 [16:36:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T163656&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187407&fm=201556854183572&tin=02508201610067®Number=0000000000091857&sum=300000 [16:36:57]OFD Sender: Processing packet 187407 [packets to send 49, broken 48] [16:36:57]ProducePacketName [16:36:57]name=ofd_packets/00187407 [16:36:57]OFD Sender: To server: pG, [16:36:57]CommunicateWithHost lk.salyk.kg:30040 [16:36:57]ConnectInit lk.salyk.kg [16:36:57]written 0, free lines is 4095 [16:36:57]Connected sock=10 [16: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 31 38 32 36 0C 01 00 00 80 35 04 01 96 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 28 5A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DC 02 00 35 04 06 00 B7 50 9C B2 16 94 08 C8 E2 56 E4 BF E3 81 [16:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 91 27 47 00 FB 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 31 38 32 36 10 04 04 00 0F DC 02 00 F4 03 04 00 79 00 B7 67 B6 04 01 00 00 3C 1B 57 56 28 EA 2A B3 [16:36:57]CommunicateWithHost err = 0 [16:36:57]CheckOFDResponse [16:36:57]1017 (14) - 77093643461234 [16:36:57]1041 (16) - 0000000000871826 [16:36:57]1040 (4) - 187407 [16:36:57]1012 (4) - 20.02.2025 10:14 [16:36:57]1206 (1) - 0 [16:36:57]OFD Sender: Remove packet 187407 [16:36:57]ProducePacketName [16:36:57]name=ofd_packets/00187407 [16:36:57]NVStorageDeleteData [16:36:57]Write to MH i2c: 01 00 00 50 17 67 [16:36:57]Write i2c OK [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: 01 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: 01 07 00 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 01 0D 7C [16:36:57]RasterBufferAndPrint [16:36:57]line [16:36:57]line [16:36:57]line [16:36:57]line [16:36:57]line [16:36:57]written 0, free lines is 3335 [16:36:57]MH_Cut [16:36:57]Write to MH i2c: D1 01 00 57 17 01 40 [16:36:57]Write i2c OK [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: D1 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: D1 01 00 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: D1 01 00 57 17 00 3F [16:36:57]Write to MH i2c: 01 00 00 58 17 6F [16:36:57]Write i2c OK [16:36:57]MH_I2C_Read... [16:36:58]OFD Sender: No OFD packet to send [16:36:58]*** Cut start [16:36:58]*** Partial cut [16:36:58]*** CUTSNS_PIN = 1 [16:36:58]*** CUTSNS_PIN = 0 [16:36:58]*** Brake cut motor [16:36:59]Read from MH i2c: 01 [16:36:59]MH_I2C_Read... [16:36:59]*** Stop cut motor [16:36:59]*** Cut end [16:36:59]Read from MH i2c: 01 07 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: 01 07 00 58 17 00 00 00 00 00 FF 0F 84 [16:36:59]process_action close_receipt done [16:36:59]requested_data is exist [16:36:59]produce_requested_data [16:36:59]requested_item fm.sn is exist - process it [16:36:59]wFMCommunicate request_size=4 [16:36:59]MH_SAM_APDU [16:36:59]CAPDU: 80 11 00 00 [16:36:59]Write to MH i2c: E2 08 00 59 17 80 11 00 00 00 00 00 00 EA [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:59]Read from MH i2c: E2 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 17 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 17 00 59 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [16:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:36:59]wFMCommunicate OK [16:36:59]requested_item fd.num is exist - process it [16:36:59]SAM_PROTO_GetFieldsCounters [16:36:59]wFMCommunicate request_size=4 [16:36:59]MH_SAM_APDU [16:36:59]CAPDU: 80 13 00 00 [16:36:59]Write to MH i2c: E2 08 00 5A 17 80 13 00 00 00 00 00 00 ED [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:59]Read from MH i2c: E2 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 62 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 62 00 5A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0F DC 02 00 0E 04 04 00 88 02 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 FA [16:36:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0F DC 02 00 0E 04 04 00 88 02 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 [16:36:59]wFMCommunicate OK [16:36:59]SAM_PROTO_GetFieldsCounters done [16:36:59]requested_item shift.num is exist - process it [16:36:59]requested_item shift.opened is exist - process it [16:36:59]req_shift_opened [16:36:59]FM_GetShiftState [16:36:59]SAM_PROTO_GetShiftState [16:36:59]wFMCommunicate request_size=4 [16:36:59]MH_SAM_APDU [16:36:59]CAPDU: 80 13 01 00 [16:36:59]Write to MH i2c: E2 08 00 5B 17 80 13 01 00 00 00 00 00 EF [16:36:59]Write i2c OK [16:36:59]MH_I2C_Read... [16:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:59]Read from MH i2c: E2 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 0E 00 [16:36:59]MH_I2C_Read... [16:36:59]Read from MH i2c: E2 0E 00 5B 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 41 [16:36:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:36:59]wFMCommunicate OK [16:36:59]SAM_PROTO_GetShiftState done [16:36:59]FM_GetShiftState done [16:36:59]req_shift_opened done [16:36:59]requested_item shift.open_date is exist - process it [16:36:59]req_shift_open_date [16:36:59]req_shift_open_date done [16:36:59]produce_requested_data done [16:36:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187407,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:36:59]process_action_free close_receipt [16:36:59]json_value_free [16:36:59]json_value_free done [16:36:59]process_json_proto returns [16:36:59]Send response to host [16:36:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187407,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:36:59]free response buf [16:36:59]execute_script done [16:36:59]execute_script returns [16:36:59]free content buf [16:36:59]Sock 9.Close socket [16:36:59]Sock 9.Thread stoped [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:07]accept exits with 7 [16:39:07]New connection [16:39:07]New thread 3067420004 created [16:39:07]Thread 3067276644 joined [16:39:07]Waiting for new connection... [16:39:07] Sock 7.Parse request [16:39:07]Sock 7.Check first char [16:39:07]Sock 7.First char is OK [16:39:07]request: POST /json_proto HTTP/1.0 [16:39:07]Method: POST [16:39:07]URL: /json_proto [16:39:07]Method is POST - this is cgi request [16:39:07]url: /json_proto [16:39:07]query_string will be loaded in cgi processing [16:39:07]execute_cgi json_proto POST (null) [16:39:07]execute_cgi path=json_proto method=POST [16:39:07]POST find Content-Length [16:39:07]Host: 172.17.46.131:8080 [16:39:07]Content-Length: 682 [16:39:07]Content-Type: application/json [16:39:07] [16:39:07]POST finish read [16:39:07]Found Content-Length = 682 [16:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [16:39:07]execute_script... [16: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)412567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [16:39:07]POST & json_proto [16:39:07]process_json_proto [16:39:07]json parsed OK: [16:39:07]protocol is kg_v1.0 [16:39:07]action value=close_receipt [16:39:07]process_action close_receipt [16:39:07]cmd_close_receipt [16:39:07]MH_GetDate [16:39:07]Write to MH i2c: F0 00 00 5C 17 62 [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: F0 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: F0 09 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: F0 09 00 5C 17 00 AC 5A B7 67 7E 41 4F 65 02 [16:39:07]GetLastDocTimeStamp 1740069416 [16:39:07]current date 1740069548 [16:39:07]FM_GetShiftState [16:39:07]SAM_PROTO_GetShiftState [16:39:07]wFMCommunicate request_size=4 [16:39:07]MH_SAM_APDU [16:39:07]CAPDU: 80 13 01 00 [16:39:07]Write to MH i2c: E2 08 00 5D 17 80 13 01 00 00 00 00 00 F1 [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:07]Read from MH i2c: E2 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 0E 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 0E 00 5D 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 43 [16:39:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:39:07]wFMCommunicate OK [16:39:07]SAM_PROTO_GetShiftState done [16:39:07]FM_GetShiftState done [16:39:07]opened in 1740011697 [16:39:07]opened+sec_in_day 1740098097 [16:39:07]quantity*price = 150055 [16:39:07]sum+1 = 150056 [16:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 209 20.02.2025 16:39 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187408 ФПД: 77183902847949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T163909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187408&fm=77183902847949&tin=02508201610067®Number=0000000000091857&sum=150000 [16:39:08]StoreToDocumentArchive [16:39:08]shift 648 fd 187408 [16:39:08]save to /storage/0648/doc_00187408 [16:39:08]save last doc name /storage/0648/doc_00187408 to /storage/kkm_last_doc_name [16:39:08]save OK [16:39:08]Clear old archive folders... [16:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:08]tlvbuf is 00E5F5F0 [16:39:08]SAM_PROTO_ClearQueue [16:39:08]wFMCommunicate request_size=4 [16:39:08]MH_SAM_APDU [16:39:08]CAPDU: 80 09 00 00 [16:39:08]Write to MH i2c: E2 08 00 6A 17 80 09 00 00 00 00 00 00 F3 [16:39:08]Write i2c OK [16:39:08]MH_I2C_Read... [16:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:08]Read from MH i2c: E2 [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: E2 03 00 [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [16:39:08]RAPDU: 90 00 [16:39:08]wFMCommunicate OK [16:39:08]SAM_PROTO_ClearQueue done [16:39:08]KKMCreateOFDPacket [16:39:08]OFDProtocolAddRootSTLVToBuf [16:39:08]FM_MakeSignedData [16:39:08]FM_MakeSignedData [16:39:08]SAM_PROTO_SignData [16:39:08]wFMCommunicate request_size=4 [16:39:08]MH_SAM_APDU [16:39:08]CAPDU: 80 0D 01 02 [16:39:08]Write to MH i2c: E2 08 00 6B 17 80 0D 01 02 00 00 00 00 FB [16:39:08]Write i2c OK [16:39:08]MH_I2C_Read... [16:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:08]Read from MH i2c: E2 [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: E2 03 00 [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: E2 03 00 6B 17 00 90 00 F6 [16:39:08]RAPDU: 90 00 [16:39:08]wFMCommunicate OK [16:39:08]wFMCommunicate request_size=255 [16:39:08]MH_SAM_APDU [16:39:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 D1 00 00 00 F4 03 04 00 AD 5A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DC 02 00 35 04 06 00 46 [16:39:08]Write to MH i2c: E2 02 01 6C 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 D1 00 00 00 F4 03 04 00 AD 5A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DC 02 00 35 04 06 00 46 00 00 66 [16:39:08]Write i2c OK [16:39:08]MH_I2C_Read... [16:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:09]Read from MH i2c: E2 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 03 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 03 00 6C 17 00 90 00 F7 [16:39:09]RAPDU: 90 00 [16:39:09]wFMCommunicate OK [16:39:09]wFMCommunicate request_size=10 [16:39:09]MH_SAM_APDU [16:39:09]CAPDU: 80 0D 02 02 05 32 C7 1C 93 CD [16:39:09]Write to MH i2c: E2 0D 00 6D 17 80 0D 02 02 05 00 32 C7 1C 93 CD 00 00 7D [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:09]Read from MH i2c: E2 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 03 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 03 00 6D 17 00 90 00 F8 [16:39:09]RAPDU: 90 00 [16:39:09]wFMCommunicate OK [16:39:09]wFMCommunicate request_size=4 [16:39:09]MH_SAM_APDU [16:39:09]CAPDU: 80 0D 03 02 [16:39:09]Write to MH i2c: E2 08 00 6E 17 80 0D 03 02 00 00 00 00 00 [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:09]Read from MH i2c: E2 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 0B 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 0B 00 6E 17 00 01 D4 90 6A 8A 21 04 DA 90 00 59 [16:39:09]RAPDU: 01 D4 90 6A 8A 21 04 DA 90 00 [16:39:09]wFMCommunicate OK [16:39:09]SAM_PROTO_SignData done [16:39:09]FM_MakeSignedData done [16:39:09]CreateOFDProtocolMessage [16:39:09]wFMCommunicate request_size=4 [16:39:09]MH_SAM_APDU [16:39:09]CAPDU: 80 11 00 00 [16:39:09]Write to MH i2c: E2 08 00 6F 17 80 11 00 00 00 00 00 00 00 [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:09]Read from MH i2c: E2 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 17 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 17 00 6F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [16:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:39:09]wFMCommunicate OK [16:39:09]CreateOFDProtocolMessage done [16:39:09]OFDSenderStorePacket 187408 [16:39:09]StoreOFDPacket docnum=187408 [16:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1D 5B 07 01 D5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 D1 00 00 00 F4 03 04 00 AD 5A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DC 02 00 35 04 06 00 46 32 C7 1C 93 CD 01 D4 90 6A 8A 21 04 DA [16:39:09]CheckFolder [16:39:09]dirname=/storage/ofd_packets [16:39:09]CheckFolder done [16:39:09]ProducePacketName [16:39:09]name=ofd_packets/00187408 [16:39:09]NVStorageSaveData ofd_packets/00187408 [16:39:09]File name is /storage/ofd_packets/00187408 [16:39:09]Write 301 bytes [16:39:09]NVStorageSaveData done [16:39:09]OFDSenderStorePacket done [16:39:09]KKMCreateOFDPacket done [16:39:09]NVStorageSaveData kkm_last_timestamp [16:39:09]File name is /storage/kkm_last_timestamp [16:39:09]Write 4 bytes [16:39:09]NVStorageSaveData done [16:39:09]ExternCall_PrintAddStr [16:39:09]wPrintStart [16:39:09]Write to MH i2c: 01 00 00 70 17 87 [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: 01 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: 01 07 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: 01 07 00 70 17 00 00 00 00 00 FF 0F 9C [16:39:09]RasterBufferAndPrint [16:39:09]line Счет N : (1)412567 [16:39:09]line ИНН: 02508201610067 [16:39:09]line Контрольно-Кассовый Чек [16:39:09]line ПРОДАЖА [16:39:09]line ТРК (МРК, ГНК) : 23 [16:39:09]line Товар: 2710124500 [16:39:09]line Аи-95-К-5 [16:39:09]line 20.870 * 71.90 [16:39:09]line = 1500.55 [16:39:09]line НДС 12% НСП 1% [16:39:09]line > о реализуемом товаре [16:39:09]line ОКРУГЛЕНИЕ: -0.55 [16:39:09]line ИТОГО: 1500.00 [16:39:09]line Внесено: 1500.00 [16:39:09]line СДАЧА: 0.00 [16:39:09]line НСП 1% : 13.28 [16:39:09]line НДС 12% : 159.35 [16:39:09]line Наличными: 1500.00 [16:39:09]line Безнал.: 0.00 [16:39:09]line Место: АЗС № 92 "Партнер Нефть" [16:39:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:39:09]line СНО: Общий режим [16:39:09]line Чек 209 20.02.2025 16:39 [16:39:09]line Смена: 648 ФФД: 1.0 [16:39:09]line ЗНМ: 0300000118 [16:39:09]line РНМ: 0000000000091857 [16:39:09]line Версия ККМ: 001 [16:39:09]line ФМ: 0000000000871826 [16:39:09]line ФД: 187408 [16:39:09]line ФПД: 77183902847949 [16:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T163909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187408&fm=77183902847949&tin=02508201610067®Number=0000000000091857&sum=150000 [16:39:09]written 0, free lines is 4095 [16:39:09]OFD Sender: Processing packet 187408 [packets to send 49, broken 48] [16:39:09]ProducePacketName [16:39:09]name=ofd_packets/00187408 [16:39:09]OFD Sender: To server: pG, [16:39:09]CommunicateWithHost lk.salyk.kg:30040 [16:39:09]ConnectInit lk.salyk.kg [16:39:09]Connected sock=10 [16: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 31 38 32 36 0F 01 00 00 1D 5B 07 01 D5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 D1 00 00 00 F4 03 04 00 AD 5A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DC 02 00 35 04 06 00 46 32 C7 1C 93 CD 01 D4 90 6A 8A 21 04 DA [16:39:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BB D9 47 00 AD 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 31 38 32 36 10 04 04 00 10 DC 02 00 F4 03 04 00 FD 00 B7 67 B6 04 01 00 00 C6 A1 96 2F E0 DC 3F 22 [16:39:09]CommunicateWithHost err = 0 [16:39:09]CheckOFDResponse [16:39:09]1017 (14) - 77093643461234 [16:39:09]1041 (16) - 0000000000871826 [16:39:09]1040 (4) - 187408 [16:39:09]1012 (4) - 20.02.2025 10:16 [16:39:09]1206 (1) - 0 [16:39:09]OFD Sender: Remove packet 187408 [16:39:09]ProducePacketName [16:39:09]name=ofd_packets/00187408 [16:39:09]NVStorageDeleteData [16:39:09]Write to MH i2c: 01 00 00 9B 17 B2 [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: 01 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: 01 07 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 F5 0C BA [16:39:09]RasterBufferAndPrint [16:39:09]line [16:39:09]line [16:39:09]line [16:39:09]line [16:39:09]line [16:39:09]written 0, free lines is 3324 [16:39:09]MH_Cut [16:39:09]Write to MH i2c: D1 01 00 A2 17 01 8B [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: D1 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: D1 01 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: D1 01 00 A2 17 00 8A [16:39:09]Write to MH i2c: 01 00 00 A3 17 BA [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:10]OFD Sender: No OFD packet to send [16:39:10]*** Cut start [16:39:10]*** Partial cut [16:39:10]*** CUTSNS_PIN = 1 [16:39:10]*** CUTSNS_PIN = 0 [16:39:10]*** Brake cut motor [16:39:11]Read from MH i2c: 01 [16:39:11]MH_I2C_Read... [16:39:11]*** Stop cut motor [16:39:11]*** Cut end [16:39:11]Read from MH i2c: 01 07 00 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: 01 07 00 A3 17 00 00 00 00 00 FF 0F CF [16:39:11]process_action close_receipt done [16:39:11]requested_data is exist [16:39:11]produce_requested_data [16:39:11]requested_item fm.sn is exist - process it [16:39:11]wFMCommunicate request_size=4 [16:39:11]MH_SAM_APDU [16:39:11]CAPDU: 80 11 00 00 [16:39:11]Write to MH i2c: E2 08 00 A4 17 80 11 00 00 00 00 00 00 35 [16:39:11]Write i2c OK [16:39:11]MH_I2C_Read... [16:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:11]Read from MH i2c: E2 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 17 00 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 17 00 A4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 88 [16:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:39:11]wFMCommunicate OK [16:39:11]requested_item fd.num is exist - process it [16:39:11]SAM_PROTO_GetFieldsCounters [16:39:11]wFMCommunicate request_size=4 [16:39:11]MH_SAM_APDU [16:39:11]CAPDU: 80 13 00 00 [16:39:11]Write to MH i2c: E2 08 00 A5 17 80 13 00 00 00 00 00 00 38 [16:39:11]Write i2c OK [16:39:11]MH_I2C_Read... [16:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:11]Read from MH i2c: E2 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 62 00 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 62 00 A5 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 10 DC 02 00 0E 04 04 00 88 02 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 49 [16: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 10 DC 02 00 0E 04 04 00 88 02 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:39:11]wFMCommunicate OK [16:39:11]SAM_PROTO_GetFieldsCounters done [16:39:11]requested_item shift.num is exist - process it [16:39:11]requested_item shift.opened is exist - process it [16:39:11]req_shift_opened [16:39:11]FM_GetShiftState [16:39:11]SAM_PROTO_GetShiftState [16:39:11]wFMCommunicate request_size=4 [16:39:11]MH_SAM_APDU [16:39:11]CAPDU: 80 13 01 00 [16:39:11]Write to MH i2c: E2 08 00 A6 17 80 13 01 00 00 00 00 00 3A [16:39:11]Write i2c OK [16:39:11]MH_I2C_Read... [16:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:11]Read from MH i2c: E2 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 0E 00 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 0E 00 A6 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8C [16:39:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:39:11]wFMCommunicate OK [16:39:11]SAM_PROTO_GetShiftState done [16:39:11]FM_GetShiftState done [16:39:11]req_shift_opened done [16:39:11]requested_item shift.open_date is exist - process it [16:39:11]req_shift_open_date [16:39:11]req_shift_open_date done [16:39:11]produce_requested_data done [16:39:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187408,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:39:11]process_action_free close_receipt [16:39:11]json_value_free [16:39:11]json_value_free done [16:39:11]process_json_proto returns [16:39:11]Send response to host [16:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187408,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:39:11]free response buf [16:39:11]execute_script done [16:39:11]execute_script returns [16:39:11]free content buf [16:39:11]Sock 7.Close socket [16:39:11]Sock 7.Thread stoped [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:52]accept exits with 9 [16:41:52]New connection [16:41:52]New thread 3067276644 created [16:41:52]Thread 3067420004 joined [16:41:52]Waiting for new connection... [16:41:52] Sock 9.Parse request [16:41:52]Sock 9.Check first char [16:41:52]Sock 9.First char is OK [16:41:52]request: POST /json_proto HTTP/1.0 [16:41:52]Method: POST [16:41:52]URL: /json_proto [16:41:52]Method is POST - this is cgi request [16:41:52]url: /json_proto [16:41:52]query_string will be loaded in cgi processing [16:41:52]execute_cgi json_proto POST (null) [16:41:52]execute_cgi path=json_proto method=POST [16:41:52]POST find Content-Length [16:41:52]Host: 172.17.46.131:8080 [16:41:52]Content-Length: 682 [16:41:52]Content-Type: application/json [16:41:52] [16:41:52]POST finish read [16:41:52]Found Content-Length = 682 [16:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [16:41:52]execute_script... [16:41:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [16:41:52]POST & json_proto [16:41:52]process_json_proto [16:41:52]json parsed OK: [16:41:52]protocol is kg_v1.0 [16:41:52]action value=close_receipt [16:41:52]process_action close_receipt [16:41:52]cmd_close_receipt [16:41:52]MH_GetDate [16:41:52]Write to MH i2c: F0 00 00 A7 17 AD [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: F0 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: F0 09 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: F0 09 00 A7 17 00 51 5B B7 67 7E 41 4F 65 F3 [16:41:52]GetLastDocTimeStamp 1740069549 [16:41:52]current date 1740069713 [16:41:52]FM_GetShiftState [16:41:52]SAM_PROTO_GetShiftState [16:41:52]wFMCommunicate request_size=4 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 13 01 00 [16:41:52]Write to MH i2c: E2 08 00 A8 17 80 13 01 00 00 00 00 00 3C [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 0E 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 0E 00 A8 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8E [16:41:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:41:52]wFMCommunicate OK [16:41:52]SAM_PROTO_GetShiftState done [16:41:52]FM_GetShiftState done [16:41:52]opened in 1740011697 [16:41:52]opened+sec_in_day 1740098097 [16:41:52]quantity*price = 200025 [16:41:52]sum+1 = 200027 [16:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 210 20.02.2025 16:41 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187409 ФПД: 111501413078851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T164153&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187409&fm=111501413078851&tin=02508201610067®Number=0000000000091857&sum=200000 [16:41:53]StoreToDocumentArchive [16:41:53]shift 648 fd 187409 [16:41:53]save to /storage/0648/doc_00187409 [16:41:53]save last doc name /storage/0648/doc_00187409 to /storage/kkm_last_doc_name [16:41:53]save OK [16:41:53]Clear old archive folders... [16:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:53]tlvbuf is B6F4CBD0 [16:41:53]SAM_PROTO_ClearQueue [16:41:53]wFMCommunicate request_size=4 [16:41:53]MH_SAM_APDU [16:41:53]CAPDU: 80 09 00 00 [16:41:53]Write to MH i2c: E2 08 00 B5 17 80 09 00 00 00 00 00 00 3E [16:41:53]Write i2c OK [16:41:53]MH_I2C_Read... [16:41:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:53]Read from MH i2c: E2 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 03 00 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [16:41:53]RAPDU: 90 00 [16:41:53]wFMCommunicate OK [16:41:53]SAM_PROTO_ClearQueue done [16:41:53]KKMCreateOFDPacket [16:41:53]OFDProtocolAddRootSTLVToBuf [16:41:53]FM_MakeSignedData [16:41:53]FM_MakeSignedData [16:41:53]SAM_PROTO_SignData [16:41:53]wFMCommunicate request_size=4 [16:41:53]MH_SAM_APDU [16:41:53]CAPDU: 80 0D 01 02 [16:41:53]Write to MH i2c: E2 08 00 B6 17 80 0D 01 02 00 00 00 00 46 [16:41:53]Write i2c OK [16:41:53]MH_I2C_Read... [16:41:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:53]Read from MH i2c: E2 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 03 00 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [16:41:53]RAPDU: 90 00 [16:41:53]wFMCommunicate OK [16:41:53]wFMCommunicate request_size=255 [16:41:53]MH_SAM_APDU [16:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 D2 00 00 00 F4 03 04 00 51 5B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DC 02 00 35 04 06 00 65 [16:41:53]Write to MH i2c: E2 02 01 B7 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 D2 00 00 00 F4 03 04 00 51 5B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DC 02 00 35 04 06 00 65 00 00 63 [16:41:53]Write i2c OK [16:41:53]MH_I2C_Read... [16:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:53]Read from MH i2c: E2 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 03 00 [16:41:53]MH_I2C_Read... [16:41:53]Read from MH i2c: E2 03 00 B7 17 00 90 00 42 [16:41:53]RAPDU: 90 00 [16:41:53]wFMCommunicate OK [16:41:53]wFMCommunicate request_size=10 [16:41:53]MH_SAM_APDU [16:41:53]CAPDU: 80 0D 02 02 05 68 F2 1E 57 43 [16:41:53]Write to MH i2c: E2 0D 00 B8 17 80 0D 02 02 05 00 68 F2 1E 57 43 00 00 65 [16:41:53]Write i2c OK [16:41:53]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 03 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 03 00 B8 17 00 90 00 43 [16:41:54]RAPDU: 90 00 [16:41:54]wFMCommunicate OK [16:41:54]wFMCommunicate request_size=4 [16:41:54]MH_SAM_APDU [16:41:54]CAPDU: 80 0D 03 02 [16:41:54]Write to MH i2c: E2 08 00 B9 17 80 0D 03 02 00 00 00 00 4B [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 0B 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 0B 00 B9 17 00 40 58 7B E1 A6 52 FB 86 90 00 B9 [16:41:54]RAPDU: 40 58 7B E1 A6 52 FB 86 90 00 [16:41:54]wFMCommunicate OK [16:41:54]SAM_PROTO_SignData done [16:41:54]FM_MakeSignedData done [16:41:54]CreateOFDProtocolMessage [16:41:54]wFMCommunicate request_size=4 [16:41:54]MH_SAM_APDU [16:41:54]CAPDU: 80 11 00 00 [16:41:54]Write to MH i2c: E2 08 00 BA 17 80 11 00 00 00 00 00 00 4B [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 17 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 17 00 BA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [16:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:41:54]wFMCommunicate OK [16:41:54]CreateOFDProtocolMessage done [16:41:54]OFDSenderStorePacket 187409 [16:41:54]StoreOFDPacket docnum=187409 [16:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 84 B5 07 01 C1 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 D2 00 00 00 F4 03 04 00 51 5B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DC 02 00 35 04 06 00 65 68 F2 1E 57 43 40 58 7B E1 A6 52 FB 86 [16:41:54]CheckFolder [16:41:54]dirname=/storage/ofd_packets [16:41:54]CheckFolder done [16:41:54]ProducePacketName [16:41:54]name=ofd_packets/00187409 [16:41:54]NVStorageSaveData ofd_packets/00187409 [16:41:54]File name is /storage/ofd_packets/00187409 [16:41:54]Write 301 bytes [16:41:54]NVStorageSaveData done [16:41:54]OFDSenderStorePacket done [16:41:54]KKMCreateOFDPacket done [16:41:54]NVStorageSaveData kkm_last_timestamp [16:41:54]File name is /storage/kkm_last_timestamp [16:41:54]Write 4 bytes [16:41:54]NVStorageSaveData done [16:41:54]ExternCall_PrintAddStr [16:41:54]wPrintStart [16:41:54]Write to MH i2c: 01 00 00 BB 17 D2 [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: 01 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: 01 07 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 FF 0F E7 [16:41:54]RasterBufferAndPrint [16:41:54]line Счет N : (1)412568 [16:41:54]line ИНН: 02508201610067 [16:41:54]line Контрольно-Кассовый Чек [16:41:54]line ПРОДАЖА [16:41:54]line ТРК (МРК, ГНК) : 13 [16:41:54]line Товар: 2710124500 [16:41:54]line Аи-95-К-5 [16:41:54]line 27.820 * 71.90 [16:41:54]line = 2000.26 [16:41:54]line НДС 12% НСП 1% [16:41:54]line > о реализуемом товаре [16:41:54]line ОКРУГЛЕНИЕ: -0.26 [16:41:54]line ИТОГО: 2000.00 [16:41:54]line Внесено: 2000.00 [16:41:54]line СДАЧА: 0.00 [16:41:54]line НСП 1% : 17.70 [16:41:54]line НДС 12% : 212.42 [16:41:54]line Наличными: 2000.00 [16:41:54]line Безнал.: 0.00 [16:41:54]line Место: АЗС № 92 "Партнер Нефть" [16:41:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:41:54]line СНО: Общий режим [16:41:54]line Чек 210 20.02.2025 16:41 [16:41:54]line Смена: 648 ФФД: 1.0 [16:41:54]line ЗНМ: 0300000118 [16:41:54]line РНМ: 0000000000091857 [16:41:54]line Версия ККМ: 001 [16:41:54]line ФМ: 0000000000871826 [16:41:54]line ФД: 187409 [16:41:54]line ФПД: 111501413078851 [16:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T164153&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187409&fm=111501413078851&tin=02508201610067®Number=0000000000091857&sum=200000 [16:41:54]written 0, free lines is 4095 [16:41:54]OFD Sender: Processing packet 187409 [packets to send 49, broken 48] [16:41:54]ProducePacketName [16:41:54]name=ofd_packets/00187409 [16:41:54]OFD Sender: To server: pG, [16:41:54]CommunicateWithHost lk.salyk.kg:30040 [16:41:54]ConnectInit lk.salyk.kg [16:41:54]Connected sock=10 [16:41:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 84 B5 07 01 C1 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 D2 00 00 00 F4 03 04 00 51 5B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DC 02 00 35 04 06 00 65 68 F2 1E 57 43 40 58 7B E1 A6 52 FB 86 [16:41:54]Write to MH i2c: 01 00 00 E6 17 FD [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: 01 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: 01 07 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 F4 0C 04 [16:41:54]RasterBufferAndPrint [16:41:54]line [16:41:54]line [16:41:54]line [16:41:54]line [16:41:54]line [16:41:54]written 0, free lines is 3326 [16:41:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0E 71 47 00 6F 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 31 38 32 36 10 04 04 00 11 DC 02 00 F4 03 04 00 A2 01 B7 67 B6 04 01 00 00 62 7F 12 B0 7A 92 96 CB [16:41:54]CommunicateWithHost err = 0 [16:41:54]CheckOFDResponse [16:41:54]1017 (14) - 77093643461234 [16:41:54]1041 (16) - 0000000000871826 [16:41:54]1040 (4) - 187409 [16:41:54]1012 (4) - 20.02.2025 10:19 [16:41:54]1206 (1) - 0 [16:41:54]OFD Sender: Remove packet 187409 [16:41:54]ProducePacketName [16:41:54]name=ofd_packets/00187409 [16:41:54]NVStorageDeleteData [16:41:54]MH_Cut [16:41:54]Write to MH i2c: D1 01 00 ED 17 01 D6 [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: D1 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: D1 01 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: D1 01 00 ED 17 00 D5 [16:41:54]Write to MH i2c: 01 00 00 EE 17 05 [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:55]OFD Sender: No OFD packet to send [16:41:55]*** Cut start [16:41:55]*** Partial cut [16:41:55]*** CUTSNS_PIN = 1 [16:41:55]*** CUTSNS_PIN = 0 [16:41:55]*** Brake cut motor [16:41:55]Read from MH i2c: 01 [16:41:55]MH_I2C_Read... [16:41:55]*** Stop cut motor [16:41:56]*** Cut end [16:41:56]Read from MH i2c: 01 07 00 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: 01 07 00 EE 17 00 00 00 00 00 FF 0F 1A [16:41:56]process_action close_receipt done [16:41:56]requested_data is exist [16:41:56]produce_requested_data [16:41:56]requested_item fm.sn is exist - process it [16:41:56]wFMCommunicate request_size=4 [16:41:56]MH_SAM_APDU [16:41:56]CAPDU: 80 11 00 00 [16:41:56]Write to MH i2c: E2 08 00 EF 17 80 11 00 00 00 00 00 00 80 [16:41:56]Write i2c OK [16:41:56]MH_I2C_Read... [16:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:56]Read from MH i2c: E2 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: E2 17 00 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: E2 17 00 EF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D3 [16:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:41:56]wFMCommunicate OK [16:41:56]requested_item fd.num is exist - process it [16:41:56]SAM_PROTO_GetFieldsCounters [16:41:56]wFMCommunicate request_size=4 [16:41:56]MH_SAM_APDU [16:41:56]CAPDU: 80 13 00 00 [16:41:56]Write to MH i2c: E2 08 00 F0 17 80 13 00 00 00 00 00 00 83 [16:41:56]Write i2c OK [16:41:56]MH_I2C_Read... [16:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:56]Read from MH i2c: E2 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: E2 62 00 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: E2 62 00 F0 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 11 DC 02 00 0E 04 04 00 88 02 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 98 [16:41:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 11 DC 02 00 0E 04 04 00 88 02 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:41:56]wFMCommunicate OK [16:41:56]SAM_PROTO_GetFieldsCounters done [16:41:56]requested_item shift.num is exist - process it [16:41:56]requested_item shift.opened is exist - process it [16:41:56]req_shift_opened [16:41:56]FM_GetShiftState [16:41:56]SAM_PROTO_GetShiftState [16:41:56]wFMCommunicate request_size=4 [16:41:56]MH_SAM_APDU [16:41:56]CAPDU: 80 13 01 00 [16:41:56]Write to MH i2c: E2 08 00 F1 17 80 13 01 00 00 00 00 00 85 [16:41:56]Write i2c OK [16:41:56]MH_I2C_Read... [16:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:56]Read from MH i2c: E2 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: E2 0E 00 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: E2 0E 00 F1 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D7 [16:41:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:41:56]wFMCommunicate OK [16:41:56]SAM_PROTO_GetShiftState done [16:41:56]FM_GetShiftState done [16:41:56]req_shift_opened done [16:41:56]requested_item shift.open_date is exist - process it [16:41:56]req_shift_open_date [16:41:56]req_shift_open_date done [16:41:56]produce_requested_data done [16:41:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187409,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:41:56]process_action_free close_receipt [16:41:56]json_value_free [16:41:56]json_value_free done [16:41:56]process_json_proto returns [16:41:56]Send response to host [16:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187409,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:41:56]free response buf [16:41:56]execute_script done [16:41:56]execute_script returns [16:41:56]free content buf [16:41:56]Sock 9.Close socket [16:41:56]Sock 9.Thread stoped [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:09]accept exits with 7 [16:47:09]New connection [16:47:09]New thread 3067420004 created [16:47:09]Thread 3067276644 joined [16:47:09]Waiting for new connection... [16:47:09] Sock 7.Parse request [16:47:09]Sock 7.Check first char [16:47:09]Sock 7.First char is OK [16:47:09]request: POST /json_proto HTTP/1.0 [16:47:09]Method: POST [16:47:09]URL: /json_proto [16:47:09]Method is POST - this is cgi request [16:47:09]url: /json_proto [16:47:09]query_string will be loaded in cgi processing [16:47:09]execute_cgi json_proto POST (null) [16:47:09]execute_cgi path=json_proto method=POST [16:47:09]POST find Content-Length [16:47:09]Host: 172.17.46.131:8080 [16:47:09]Content-Length: 677 [16:47:09]Content-Type: application/json [16:47:09] [16:47:09]POST finish read [16:47:09]Found Content-Length = 677 [16:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:09]execute_script... [16:47: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)412569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:09]POST & json_proto [16:47:09]process_json_proto [16:47:09]json parsed OK: [16:47:09]protocol is kg_v1.0 [16:47:09]action value=close_receipt [16:47:09]process_action close_receipt [16:47:09]cmd_close_receipt [16:47:09]MH_GetDate [16:47:09]Write to MH i2c: F0 00 00 F2 17 F8 [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: F0 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: F0 09 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: F0 09 00 F2 17 00 8F 5C B7 67 7E 41 4F 65 7D [16:47:09]GetLastDocTimeStamp 1740069713 [16:47:09]current date 1740070031 [16:47:09]FM_GetShiftState [16:47:09]SAM_PROTO_GetShiftState [16:47:09]wFMCommunicate request_size=4 [16:47:09]MH_SAM_APDU [16:47:09]CAPDU: 80 13 01 00 [16:47:09]Write to MH i2c: E2 08 00 F3 17 80 13 01 00 00 00 00 00 87 [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 0E 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 0E 00 F3 17 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D9 [16:47:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:47:09]wFMCommunicate OK [16:47:09]SAM_PROTO_GetShiftState done [16:47:09]FM_GetShiftState done [16:47:09]opened in 1740011697 [16:47:09]opened+sec_in_day 1740098097 [16:47:09]quantity*price = 50011 [16:47:09]sum+1 = 50013 [16:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 211 20.02.2025 16:47 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187410 ФПД: 258605832043583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T164711&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187410&fm=258605832043583&tin=02508201610067®Number=0000000000091857&sum=50000 [16:47:10]StoreToDocumentArchive [16:47:10]shift 648 fd 187410 [16:47:10]save to /storage/0648/doc_00187410 [16:47:10]save last doc name /storage/0648/doc_00187410 to /storage/kkm_last_doc_name [16:47:10]save OK [16:47:10]Clear old archive folders... [16:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:10]tlvbuf is 00E026A0 [16:47:10]SAM_PROTO_ClearQueue [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 09 00 00 [16:47:10]Write to MH i2c: E2 08 00 00 18 80 09 00 00 00 00 00 00 8A [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]SAM_PROTO_ClearQueue done [16:47:10]KKMCreateOFDPacket [16:47:10]OFDProtocolAddRootSTLVToBuf [16:47:10]FM_MakeSignedData [16:47:10]FM_MakeSignedData [16:47:10]SAM_PROTO_SignData [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 01 02 [16:47:10]Write to MH i2c: E2 08 00 01 18 80 0D 01 02 00 00 00 00 92 [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 01 18 00 90 00 8D [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]wFMCommunicate request_size=255 [16:47:10]MH_SAM_APDU [16:47: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8F 5C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DC 02 00 35 04 06 00 EB [16:47:10]Write to MH i2c: E2 02 01 02 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8F 5C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DC 02 00 35 04 06 00 EB 00 00 6C [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:11]Read from MH i2c: E2 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 03 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 03 00 02 18 00 90 00 8E [16:47:11]RAPDU: 90 00 [16:47:11]wFMCommunicate OK [16:47:11]wFMCommunicate request_size=10 [16:47:11]MH_SAM_APDU [16:47:11]CAPDU: 80 0D 02 02 05 33 5C C1 7C 3F [16:47:11]Write to MH i2c: E2 0D 00 03 18 80 0D 02 02 05 00 33 5C C1 7C 3F 00 00 AA [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:11]Read from MH i2c: E2 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 03 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [16:47:11]RAPDU: 90 00 [16:47:11]wFMCommunicate OK [16:47:11]wFMCommunicate request_size=4 [16:47:11]MH_SAM_APDU [16:47:11]CAPDU: 80 0D 03 02 [16:47:11]Write to MH i2c: E2 08 00 04 18 80 0D 03 02 00 00 00 00 97 [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:11]Read from MH i2c: E2 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 0B 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 0B 00 04 18 00 D2 DA BD A6 31 DD 28 6B 90 00 48 [16:47:11]RAPDU: D2 DA BD A6 31 DD 28 6B 90 00 [16:47:11]wFMCommunicate OK [16:47:11]SAM_PROTO_SignData done [16:47:11]FM_MakeSignedData done [16:47:11]CreateOFDProtocolMessage [16:47:11]wFMCommunicate request_size=4 [16:47:11]MH_SAM_APDU [16:47:11]CAPDU: 80 11 00 00 [16:47:11]Write to MH i2c: E2 08 00 05 18 80 11 00 00 00 00 00 00 97 [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:11]Read from MH i2c: E2 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 17 00 [16:47:11]MH_I2C_Read... [16:47:11]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 31 38 32 36 90 00 EA [16:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:47:11]wFMCommunicate OK [16:47:11]CreateOFDProtocolMessage done [16:47:11]OFDSenderStorePacket 187410 [16:47:11]StoreOFDPacket docnum=187410 [16:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BC 7E 07 01 1A 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8F 5C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DC 02 00 35 04 06 00 EB 33 5C C1 7C 3F D2 DA BD A6 31 DD 28 6B [16:47:11]CheckFolder [16:47:11]dirname=/storage/ofd_packets [16:47:11]CheckFolder done [16:47:11]ProducePacketName [16:47:11]name=ofd_packets/00187410 [16:47:11]NVStorageSaveData ofd_packets/00187410 [16:47:11]File name is /storage/ofd_packets/00187410 [16:47:11]Write 301 bytes [16:47:11]NVStorageSaveData done [16:47:11]OFDSenderStorePacket done [16:47:11]KKMCreateOFDPacket done [16:47:11]NVStorageSaveData kkm_last_timestamp [16:47:11]File name is /storage/kkm_last_timestamp [16:47:11]Write 4 bytes [16:47:11]NVStorageSaveData done [16:47:11]ExternCall_PrintAddStr [16:47:11]wPrintStart [16:47:11]Write to MH i2c: 01 00 00 06 18 1E [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 07 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 FF 0F 33 [16:47:11]RasterBufferAndPrint [16:47:11]line Счет N : (1)412569 [16:47:11]line ИНН: 02508201610067 [16:47:11]line Контрольно-Кассовый Чек [16:47:11]line ПРОДАЖА [16:47:11]line ТРК (МРК, ГНК) : 22 [16:47:11]line Товар: 2710124130 [16:47:11]line Аи-92-К-2 [16:47:11]line 7.790 * 64.20 [16:47:11]line = 500.12 [16:47:11]line НДС 12% НСП 1% [16:47:11]line > о реализуемом товаре [16:47:11]line ОКРУГЛЕНИЕ: -0.12 [16:47:11]line ИТОГО: 500.00 [16:47:11]line Внесено: 500.00 [16:47:11]line СДАЧА: 0.00 [16:47:11]line НСП 1% : 4.43 [16:47:11]line НДС 12% : 53.11 [16:47:11]line Наличными: 500.00 [16:47:11]line Безнал.: 0.00 [16:47:11]line Место: АЗС № 92 "Партнер Нефть" [16:47:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:47:11]line СНО: Общий режим [16:47:11]line Чек 211 20.02.2025 16:47 [16:47:11]line Смена: 648 ФФД: 1.0 [16:47:11]line ЗНМ: 0300000118 [16:47:11]line РНМ: 0000000000091857 [16:47:11]line Версия ККМ: 001 [16:47:11]line ФМ: 0000000000871826 [16:47:11]line ФД: 187410 [16:47:11]line ФПД: 258605832043583 [16:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T164711&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187410&fm=258605832043583&tin=02508201610067®Number=0000000000091857&sum=50000 [16:47:11]OFD Sender: Processing packet 187410 [packets to send 49, broken 48] [16:47:11]ProducePacketName [16:47:11]name=ofd_packets/00187410 [16:47:11]OFD Sender: To server: pG, [16:47:11]CommunicateWithHost lk.salyk.kg:30040 [16:47:11]ConnectInit lk.salyk.kg [16:47:11]written 0, free lines is 4095 [16:47:11]Connected sock=10 [16:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BC 7E 07 01 1A 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 8F 5C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DC 02 00 35 04 06 00 EB 33 5C C1 7C 3F D2 DA BD A6 31 DD 28 6B [16:47:12]Write to MH i2c: 01 00 00 31 18 49 [16:47:12]Write i2c OK [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: 01 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: 01 07 00 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: 01 07 00 31 18 00 00 00 00 00 E4 0C 40 [16:47:12]RasterBufferAndPrint [16:47:12]line [16:47:12]line [16:47:12]line [16:47:12]line [16:47:12]line [16:47:12]written 0, free lines is 3306 [16:47:12]MH_Cut [16:47:12]Write to MH i2c: D1 01 00 38 18 01 22 [16:47:12]Write i2c OK [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: D1 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: D1 01 00 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: D1 01 00 38 18 00 21 [16:47:12]Write to MH i2c: 01 00 00 39 18 51 [16:47:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 65 47 00 B1 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 31 38 32 36 10 04 04 00 12 DC 02 00 F4 03 04 00 DF 02 B7 67 B6 04 01 00 00 A9 6E 89 54 61 FB AE ED [16:47:12]CommunicateWithHost err = 0 [16:47:12]CheckOFDResponse [16:47:12]1017 (14) - 77093643461234 [16:47:12]1041 (16) - 0000000000871826 [16:47:12]1040 (4) - 187410 [16:47:12]1012 (4) - 20.02.2025 10:24 [16:47:12]1206 (1) - 0 [16:47:12]OFD Sender: Remove packet 187410 [16:47:12]ProducePacketName [16:47:12]name=ofd_packets/00187410 [16:47:12]NVStorageDeleteData [16:47:12]Write i2c OK [16:47:12]MH_I2C_Read... [16:47:12]OFD Sender: No OFD packet to send [16:47:12]*** Cut start [16:47:12]*** Partial cut [16:47:12]*** CUTSNS_PIN = 1 [16:47:12]*** CUTSNS_PIN = 0 [16:47:13]*** Brake cut motor [16:47:13]Read from MH i2c: 01 [16:47:13]MH_I2C_Read... [16:47:13]*** Stop cut motor [16:47:13]*** Cut end [16:47:13]Read from MH i2c: 01 07 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: 01 07 00 39 18 00 00 00 00 00 FF 0F 66 [16:47:13]process_action close_receipt done [16:47:13]requested_data is exist [16:47:13]produce_requested_data [16:47:13]requested_item fm.sn is exist - process it [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 11 00 00 [16:47:13]Write to MH i2c: E2 08 00 3A 18 80 11 00 00 00 00 00 00 CC [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 17 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 17 00 3A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1F [16:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:47:13]wFMCommunicate OK [16:47:13]requested_item fd.num is exist - process it [16:47:13]SAM_PROTO_GetFieldsCounters [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 13 00 00 [16:47:13]Write to MH i2c: E2 08 00 3B 18 80 13 00 00 00 00 00 00 CF [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 62 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 62 00 3B 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 12 DC 02 00 0E 04 04 00 88 02 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 E8 [16:47:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 12 DC 02 00 0E 04 04 00 88 02 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:47:13]wFMCommunicate OK [16:47:13]SAM_PROTO_GetFieldsCounters done [16:47:13]requested_item shift.num is exist - process it [16:47:13]requested_item shift.opened is exist - process it [16:47:13]req_shift_opened [16:47:13]FM_GetShiftState [16:47:13]SAM_PROTO_GetShiftState [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 13 01 00 [16:47:13]Write to MH i2c: E2 08 00 3C 18 80 13 01 00 00 00 00 00 D1 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0E 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0E 00 3C 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 23 [16:47:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:47:13]wFMCommunicate OK [16:47:13]SAM_PROTO_GetShiftState done [16:47:13]FM_GetShiftState done [16:47:13]req_shift_opened done [16:47:13]requested_item shift.open_date is exist - process it [16:47:13]req_shift_open_date [16:47:13]req_shift_open_date done [16:47:13]produce_requested_data done [16:47:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187410,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:47:13]process_action_free close_receipt [16:47:13]json_value_free [16:47:13]json_value_free done [16:47:13]process_json_proto returns [16:47:13]Send response to host [16:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187410,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:47:13]free response buf [16:47:13]execute_script done [16:47:13]execute_script returns [16:47:13]free content buf [16:47:13]Sock 7.Close socket [16:47:13]Sock 7.Thread stoped [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:01]accept exits with 9 [16:50:01]New connection [16:50:01]New thread 3067276644 created [16:50:01]Thread 3067420004 joined [16:50:01]Waiting for new connection... [16:50:01] Sock 9.Parse request [16:50:01]Sock 9.Check first char [16:50:01]Sock 9.First char is OK [16:50:01]request: POST /json_proto HTTP/1.0 [16:50:01]Method: POST [16:50:01]URL: /json_proto [16:50:01]Method is POST - this is cgi request [16:50:01]url: /json_proto [16:50:01]query_string will be loaded in cgi processing [16:50:01]execute_cgi json_proto POST (null) [16:50:01]execute_cgi path=json_proto method=POST [16:50:01]POST find Content-Length [16:50:01]Host: 172.17.46.131:8080 [16:50:01]Content-Length: 808 [16:50:01]Content-Type: application/json [16:50:01] [16:50:01]POST finish read [16:50:01]Found Content-Length = 808 [16:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4999695.4999679", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:01]execute_script... [16:50: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)412570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4999695.4999679", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:01]POST & json_proto [16:50:01]process_json_proto [16:50:01]json parsed OK: [16:50:01]protocol is kg_v1.0 [16:50:01]action value=close_receipt [16:50:01]process_action close_receipt [16:50:01]cmd_close_receipt [16:50:01]MH_GetDate [16:50:01]Write to MH i2c: F0 00 00 3D 18 44 [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 09 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: F0 09 00 3D 18 00 3A 5D B7 67 7E 41 4F 65 75 [16:50:01]GetLastDocTimeStamp 1740070031 [16:50:01]current date 1740070202 [16:50:01]FM_GetShiftState [16:50:01]SAM_PROTO_GetShiftState [16:50:01]wFMCommunicate request_size=4 [16:50:01]MH_SAM_APDU [16:50:01]CAPDU: 80 13 01 00 [16:50:01]Write to MH i2c: E2 08 00 3E 18 80 13 01 00 00 00 00 00 D3 [16:50:01]Write i2c OK [16:50:01]MH_I2C_Read... [16:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:01]Read from MH i2c: E2 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 0E 00 [16:50:01]MH_I2C_Read... [16:50:01]Read from MH i2c: E2 0E 00 3E 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 25 [16:50:01]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:50:01]wFMCommunicate OK [16:50:01]SAM_PROTO_GetShiftState done [16:50:01]FM_GetShiftState done [16:50:01]opened in 1740011697 [16:50:01]opened+sec_in_day 1740098097 [16:50:01]quantity*price = 0 [16:50:01]sum+1 = 1 [16:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 212 20.02.2025 16:50 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4999695.4999679 ФМ: 0000000000871826 ФД: 187411 ФПД: 152241652133132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T165002&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187411&fm=152241652133132&tin=02508201610067®Number=0000000000091857&sum=0 [16:50:02]StoreToDocumentArchive [16:50:02]shift 648 fd 187411 [16:50:02]save to /storage/0648/doc_00187411 [16:50:02]save last doc name /storage/0648/doc_00187411 to /storage/kkm_last_doc_name [16:50:02]save OK [16:50:02]Clear old archive folders... [16:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:02]tlvbuf is 00E02280 [16:50:02]SAM_PROTO_ClearQueue [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 09 00 00 [16:50:02]Write to MH i2c: E2 08 00 4B 18 80 09 00 00 00 00 00 00 D5 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 4B 18 00 90 00 D7 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]SAM_PROTO_ClearQueue done [16:50:02]KKMCreateOFDPacket [16:50:02]OFDProtocolAddRootSTLVToBuf [16:50:02]FM_MakeSignedData [16:50:02]FM_MakeSignedData [16:50:02]SAM_PROTO_SignData [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 01 02 [16:50:02]Write to MH i2c: E2 08 00 4C 18 80 0D 01 02 00 00 00 00 DD [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=255 [16:50:02]MH_SAM_APDU [16:50: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 3A 5D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DC 02 00 35 04 06 00 8A [16:50:02]Write to MH i2c: E2 02 01 4D 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 3A 5D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DC 02 00 35 04 06 00 8A 00 00 E5 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=10 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 02 02 05 76 85 98 6D 0C [16:50:02]Write to MH i2c: E2 0D 00 4E 18 80 0D 02 02 05 00 76 85 98 6D 0C 00 00 F6 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [16:50:02]RAPDU: 90 00 [16:50:02]wFMCommunicate OK [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 0D 03 02 [16:50:02]Write to MH i2c: E2 08 00 4F 18 80 0D 03 02 00 00 00 00 E2 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 0B 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 0B 00 4F 18 00 CD DF 49 3B 8C 43 EA 08 90 00 D4 [16:50:02]RAPDU: CD DF 49 3B 8C 43 EA 08 90 00 [16:50:02]wFMCommunicate OK [16:50:02]SAM_PROTO_SignData done [16:50:02]FM_MakeSignedData done [16:50:02]CreateOFDProtocolMessage [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 11 00 00 [16:50:02]Write to MH i2c: E2 08 00 50 18 80 11 00 00 00 00 00 00 E2 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 17 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 17 00 50 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 35 [16:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:50:02]wFMCommunicate OK [16:50:02]CreateOFDProtocolMessage done [16:50:02]OFDSenderStorePacket 187411 [16:50:02]StoreOFDPacket docnum=187411 [16:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 8C 07 01 E8 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 3A 5D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DC 02 00 35 04 06 00 8A 76 85 98 6D 0C CD DF 49 3B 8C 43 EA 08 [16:50:02]CheckFolder [16:50:02]dirname=/storage/ofd_packets [16:50:02]CheckFolder done [16:50:02]ProducePacketName [16:50:02]name=ofd_packets/00187411 [16:50:02]NVStorageSaveData ofd_packets/00187411 [16:50:02]File name is /storage/ofd_packets/00187411 [16:50:02]Write 301 bytes [16:50:02]NVStorageSaveData done [16:50:02]OFDSenderStorePacket done [16:50:02]KKMCreateOFDPacket done [16:50:02]NVStorageSaveData kkm_last_timestamp [16:50:02]File name is /storage/kkm_last_timestamp [16:50:02]Write 4 bytes [16:50:02]NVStorageSaveData done [16:50:02]ExternCall_PrintAddStr [16:50:02]wPrintStart [16:50:02]Write to MH i2c: 01 00 00 51 18 69 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: 01 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: 01 07 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: 01 07 00 51 18 00 00 00 00 00 FF 0F 7E [16:50:02]RasterBufferAndPrint [16:50:02]line Счет N : (1)412570 [16:50:02]line ИНН: 02508201610067 [16:50:02]line Контрольно-Кассовый Чек [16:50:02]line ПРОДАЖА [16:50:02]line ТРК (МРК, ГНК) : 12 [16:50:02]line Товар: 2710124130 [16:50:02]line Аи-92-К-2 [16:50:02]line 20.000 * 0.00 [16:50:02]line = 0.00 [16:50:02]line НДС 12% НСП 1% [16:50:02]line > о реализуемом товаре [16:50:02]line ИТОГО: 0.00 [16:50:02]line НСП 1% : 0.00 [16:50:02]line НДС 12% : 0.00 [16:50:02]line Наличными: 0.00 [16:50:02]line Безнал.: 0.00 [16:50:02]line Место: АЗС № 92 "Партнер Нефть" [16:50:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:50:02]line СНО: Общий режим [16:50:02]line Чек 212 20.02.2025 16:50 [16:50:02]line Смена: 648 ФФД: 1.0 [16:50:02]line ЗНМ: 0300000118 [16:50:02]line РНМ: 0000000000091857 [16:50:02]line Версия ККМ: 001 [16:50:02]line Талоны: Топливные Талоны [16:50:02]line 4999695.4999679 [16:50:02]line ФМ: 0000000000871826 [16:50:02]line ФД: 187411 [16:50:02]line ФПД: 152241652133132 [16:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T165002&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187411&fm=152241652133132&tin=02508201610067®Number=0000000000091857&sum=0 [16:50:03]written 0, free lines is 4095 [16:50:03]OFD Sender: Processing packet 187411 [packets to send 49, broken 48] [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00187411 [16:50:03]OFD Sender: To server: pG, [16:50:03]CommunicateWithHost lk.salyk.kg:30040 [16:50:03]ConnectInit lk.salyk.kg [16:50:03]Connected sock=10 [16:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 8C 07 01 E8 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 3A 5D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DC 02 00 35 04 06 00 8A 76 85 98 6D 0C CD DF 49 3B 8C 43 EA 08 [16:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FA 1C 47 00 30 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DC 02 00 F4 03 04 00 8A 03 B7 67 B6 04 01 00 00 27 8C 89 F4 F7 36 D8 9F [16:50:03]CommunicateWithHost err = 0 [16:50:03]CheckOFDResponse [16:50:03]1017 (14) - 77093643461234 [16:50:03]1041 (16) - 0000000000871826 [16:50:03]1040 (4) - 187411 [16:50:03]1012 (4) - 20.02.2025 10:27 [16:50:03]1206 (1) - 0 [16:50:03]OFD Sender: Remove packet 187411 [16:50:03]ProducePacketName [16:50:03]name=ofd_packets/00187411 [16:50:03]NVStorageDeleteData [16:50:03]Write to MH i2c: 01 00 00 7B 18 93 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 7B 18 00 00 00 00 00 05 0D AC [16:50:03]RasterBufferAndPrint [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]line [16:50:03]written 0, free lines is 3339 [16:50:03]MH_Cut [16:50:03]Write to MH i2c: D1 01 00 82 18 01 6C [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 01 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: D1 01 00 82 18 00 6B [16:50:03]Write to MH i2c: 01 00 00 83 18 9B [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]OFD Sender: No OFD packet to send [16:50:04]*** Cut start [16:50:04]*** Partial cut [16:50:04]*** CUTSNS_PIN = 1 [16:50:04]*** CUTSNS_PIN = 0 [16:50:04]*** Brake cut motor [16:50:04]Read from MH i2c: 01 [16:50:04]MH_I2C_Read... [16:50:04]*** Stop cut motor [16:50:04]*** Cut end [16:50:04]Read from MH i2c: 01 07 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 FF 0F B0 [16:50:04]process_action close_receipt done [16:50:04]requested_data is exist [16:50:04]produce_requested_data [16:50:04]requested_item fm.sn is exist - process it [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 11 00 00 [16:50:04]Write to MH i2c: E2 08 00 84 18 80 11 00 00 00 00 00 00 16 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 17 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 17 00 84 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 69 [16:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:50:04]wFMCommunicate OK [16:50:04]requested_item fd.num is exist - process it [16:50:04]SAM_PROTO_GetFieldsCounters [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 13 00 00 [16:50:04]Write to MH i2c: E2 08 00 85 18 80 13 00 00 00 00 00 00 19 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 62 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 62 00 85 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 13 DC 02 00 0E 04 04 00 88 02 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 36 [16:50:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 13 DC 02 00 0E 04 04 00 88 02 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:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_GetFieldsCounters done [16:50:05]requested_item shift.num is exist - process it [16:50:05]requested_item shift.opened is exist - process it [16:50:05]req_shift_opened [16:50:05]FM_GetShiftState [16:50:05]SAM_PROTO_GetShiftState [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 13 01 00 [16:50:05]Write to MH i2c: E2 08 00 86 18 80 13 01 00 00 00 00 00 1B [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0E 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0E 00 86 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6D [16:50:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_GetShiftState done [16:50:05]FM_GetShiftState done [16:50:05]req_shift_opened done [16:50:05]requested_item shift.open_date is exist - process it [16:50:05]req_shift_open_date [16:50:05]req_shift_open_date done [16:50:05]produce_requested_data done [16:50:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187411,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:50:05]process_action_free close_receipt [16:50:05]json_value_free [16:50:05]json_value_free done [16:50:05]process_json_proto returns [16:50:05]Send response to host [16:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187411,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:50:05]free response buf [16:50:05]execute_script done [16:50:05]execute_script returns [16:50:05]free content buf [16:50:05]Sock 9.Close socket [16:50:05]Sock 9.Thread stoped [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50: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:11]accept exits with 7 [16:52:11]New connection [16:52:11]New thread 3067420004 created [16:52:11]Thread 3067276644 joined [16:52:11]Waiting for new connection... [16:52:11] Sock 7.Parse request [16:52:11]Sock 7.Check first char [16:52:11]Sock 7.First char is OK [16:52:11]request: POST /json_proto HTTP/1.0 [16:52:11]Method: POST [16:52:11]URL: /json_proto [16:52:11]Method is POST - this is cgi request [16:52:11]url: /json_proto [16:52:11]query_string will be loaded in cgi processing [16:52:11]execute_cgi json_proto POST (null) [16:52:11]execute_cgi path=json_proto method=POST [16:52:11]POST find Content-Length [16:52:11]Host: 172.17.46.131:8080 [16:52:11]Content-Length: 800 [16:52:11]Content-Type: application/json [16:52:11] [16:52:11]POST finish read [16:52:11]Found Content-Length = 800 [16:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:11]execute_script... [16:52: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)412571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:11]POST & json_proto [16:52:11]process_json_proto [16:52:11]json parsed OK: [16:52:11]protocol is kg_v1.0 [16:52:11]action value=close_receipt [16:52:11]process_action close_receipt [16:52:11]cmd_close_receipt [16:52:11]MH_GetDate [16:52:11]Write to MH i2c: F0 00 00 87 18 8E [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 09 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 09 00 87 18 00 BC 5D B7 67 7E 41 4F 65 41 [16:52:11]GetLastDocTimeStamp 1740070202 [16:52:11]current date 1740070332 [16:52:11]FM_GetShiftState [16:52:11]SAM_PROTO_GetShiftState [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 13 01 00 [16:52:11]Write to MH i2c: E2 08 00 88 18 80 13 01 00 00 00 00 00 1D [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 88 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6F [16:52:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:52:11]wFMCommunicate OK [16:52:11]SAM_PROTO_GetShiftState done [16:52:11]FM_GetShiftState done [16:52:11]opened in 1740011697 [16:52:11]opened+sec_in_day 1740098097 [16:52:11]quantity*price = 60027 [16:52:11]sum+1 = 60028 [16:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.27 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.27 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 213 20.02.2025 16:52 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187412 ФПД: 83859790875724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T165212&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187412&fm=83859790875724&tin=02508201610067®Number=0000000000091857&sum=60027 [16:52:12]StoreToDocumentArchive [16:52:12]shift 648 fd 187412 [16:52:12]save to /storage/0648/doc_00187412 [16:52:12]save last doc name /storage/0648/doc_00187412 to /storage/kkm_last_doc_name [16:52:12]save OK [16:52:12]Clear old archive folders... [16:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:12]tlvbuf is B6F1A380 [16:52:12]SAM_PROTO_ClearQueue [16:52:12]wFMCommunicate request_size=4 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 09 00 00 [16:52:12]Write to MH i2c: E2 08 00 95 18 80 09 00 00 00 00 00 00 1F [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:12]Read from MH i2c: E2 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 95 18 00 90 00 21 [16:52:12]RAPDU: 90 00 [16:52:12]wFMCommunicate OK [16:52:12]SAM_PROTO_ClearQueue done [16:52:12]KKMCreateOFDPacket [16:52:12]OFDProtocolAddRootSTLVToBuf [16:52:12]FM_MakeSignedData [16:52:12]FM_MakeSignedData [16:52:12]SAM_PROTO_SignData [16:52:12]wFMCommunicate request_size=4 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 0D 01 02 [16:52:12]Write to MH i2c: E2 08 00 96 18 80 0D 01 02 00 00 00 00 27 [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:12]Read from MH i2c: E2 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 96 18 00 90 00 22 [16:52:12]RAPDU: 90 00 [16:52:12]wFMCommunicate OK [16:52:12]wFMCommunicate request_size=255 [16:52:12]MH_SAM_APDU [16:52: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 BC 5D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DC 02 00 35 04 06 00 4C [16:52:12]Write to MH i2c: E2 02 01 97 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 BC 5D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DC 02 00 35 04 06 00 4C 00 00 20 [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:12]Read from MH i2c: E2 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 97 18 00 90 00 23 [16:52:12]RAPDU: 90 00 [16:52:12]wFMCommunicate OK [16:52:12]wFMCommunicate request_size=10 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 0D 02 02 05 45 21 0B CC 4C [16:52:12]Write to MH i2c: E2 0D 00 98 18 80 0D 02 02 05 00 45 21 0B CC 4C 00 00 BD [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 03 02 [16:52:13]Write to MH i2c: E2 08 00 99 18 80 0D 03 02 00 00 00 00 2C [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 0B 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 0B 00 99 18 00 F2 42 83 6D 7E F4 1F 16 90 00 F8 [16:52:13]RAPDU: F2 42 83 6D 7E F4 1F 16 90 00 [16:52:13]wFMCommunicate OK [16:52:13]SAM_PROTO_SignData done [16:52:13]FM_MakeSignedData done [16:52:13]CreateOFDProtocolMessage [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 11 00 00 [16:52:13]Write to MH i2c: E2 08 00 9A 18 80 11 00 00 00 00 00 00 2C [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 17 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 17 00 9A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7F [16:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:52:13]wFMCommunicate OK [16:52:13]CreateOFDProtocolMessage done [16:52:13]OFDSenderStorePacket 187412 [16:52:13]StoreOFDPacket docnum=187412 [16:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 99 62 07 01 60 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 BC 5D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DC 02 00 35 04 06 00 4C 45 21 0B CC 4C F2 42 83 6D 7E F4 1F 16 [16:52:13]CheckFolder [16:52:13]dirname=/storage/ofd_packets [16:52:13]CheckFolder done [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00187412 [16:52:13]NVStorageSaveData ofd_packets/00187412 [16:52:13]File name is /storage/ofd_packets/00187412 [16:52:13]Write 301 bytes [16:52:13]NVStorageSaveData done [16:52:13]OFDSenderStorePacket done [16:52:13]KKMCreateOFDPacket done [16:52:13]NVStorageSaveData kkm_last_timestamp [16:52:13]File name is /storage/kkm_last_timestamp [16:52:13]Write 4 bytes [16:52:13]NVStorageSaveData done [16:52:13]ExternCall_PrintAddStr [16:52:13]wPrintStart [16:52:13]Write to MH i2c: 01 00 00 9B 18 B3 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 9B 18 00 00 00 00 00 FF 0F C8 [16:52:13]RasterBufferAndPrint [16:52:13]line Счет N : (1)412571 [16:52:13]line ИНН: 02508201610067 [16:52:13]line Контрольно-Кассовый Чек [16:52:13]line ПРОДАЖА [16:52:13]line ТРК (МРК, ГНК) : 22 [16:52:13]line Товар: 2710124130 [16:52:13]line Аи-92-К-2 [16:52:13]line 9.350 * 64.20 [16:52:13]line = 600.27 [16:52:13]line НДС 12% НСП 1% [16:52:13]line > о реализуемом товаре [16:52:13]line ИТОГО: 600.27 [16:52:13]line НСП 1% : 5.31 [16:52:13]line НДС 12% : 63.74 [16:52:13]line Наличными: 0.00 [16:52:13]line Безнал.: 600.27 [16:52:13]line Место: АЗС № 92 "Партнер Нефть" [16:52:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:52:13]line СНО: Общий режим [16:52:13]line Чек 213 20.02.2025 16:52 [16:52:13]line Смена: 648 ФФД: 1.0 [16:52:13]line ЗНМ: 0300000118 [16:52:13]line РНМ: 0000000000091857 [16:52:13]line Версия ККМ: 001 [16:52:13]line Платежная система: O! деньги [16:52:13]line ФМ: 0000000000871826 [16:52:13]line ФД: 187412 [16:52:13]line ФПД: 83859790875724 [16:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T165212&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187412&fm=83859790875724&tin=02508201610067®Number=0000000000091857&sum=60027 [16:52:13]written 0, free lines is 4095 [16:52:13]OFD Sender: Processing packet 187412 [packets to send 49, broken 48] [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00187412 [16:52:13]OFD Sender: To server: pG, [16:52:13]CommunicateWithHost lk.salyk.kg:30040 [16:52:13]ConnectInit lk.salyk.kg [16:52:13]Connected sock=11 [16:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 99 62 07 01 60 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 BC 5D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DC 02 00 35 04 06 00 4C 45 21 0B CC 4C F2 42 83 6D 7E F4 1F 16 [16:52:13]Write to MH i2c: 01 00 00 C5 18 DD [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 C5 18 00 00 00 00 00 02 0D F3 [16:52:13]RasterBufferAndPrint [16:52:13]line [16:52:13]line [16:52:13]line [16:52:13]line [16:52:13]line [16:52:13]written 0, free lines is 3336 [16:52:13]MH_Cut [16:52:13]Write to MH i2c: D1 01 00 CC 18 01 B6 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: D1 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: D1 01 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: D1 01 00 CC 18 00 B5 [16:52:13]Write to MH i2c: 01 00 00 CD 18 E5 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8A 28 47 00 59 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DC 02 00 F4 03 04 00 0D 04 B7 67 B6 04 01 00 00 00 EC CC 1D DB F9 3E 4A [16:52:13]CommunicateWithHost err = 0 [16:52:13]CheckOFDResponse [16:52:13]1017 (14) - 77093643461234 [16:52:13]1041 (16) - 0000000000871826 [16:52:13]1040 (4) - 187412 [16:52:13]1012 (4) - 20.02.2025 10:29 [16:52:13]1206 (1) - 0 [16:52:13]OFD Sender: Remove packet 187412 [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00187412 [16:52:13]NVStorageDeleteData [16:52:14]OFD Sender: No OFD packet to send [16:52:14]*** Cut start [16:52:14]*** Partial cut [16:52:14]*** CUTSNS_PIN = 1 [16:52:14]*** CUTSNS_PIN = 0 [16:52:14]*** Brake cut motor [16:52:14]Read from MH i2c: 01 [16:52:15]MH_I2C_Read... [16:52:15]*** Stop cut motor [16:52:15]*** Cut end [16:52:15]Read from MH i2c: 01 07 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: 01 07 00 CD 18 00 00 00 00 00 FF 0F FA [16:52:15]process_action close_receipt done [16:52:15]requested_data is exist [16:52:15]produce_requested_data [16:52:15]requested_item fm.sn is exist - process it [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 11 00 00 [16:52:15]Write to MH i2c: E2 08 00 CE 18 80 11 00 00 00 00 00 00 60 [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 17 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 17 00 CE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B3 [16:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:52:15]wFMCommunicate OK [16:52:15]requested_item fd.num is exist - process it [16:52:15]SAM_PROTO_GetFieldsCounters [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 13 00 00 [16:52:15]Write to MH i2c: E2 08 00 CF 18 80 13 00 00 00 00 00 00 63 [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 62 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 62 00 CF 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 14 DC 02 00 0E 04 04 00 88 02 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 84 [16:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 14 DC 02 00 0E 04 04 00 88 02 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:52:15]wFMCommunicate OK [16:52:15]SAM_PROTO_GetFieldsCounters done [16:52:15]requested_item shift.num is exist - process it [16:52:15]requested_item shift.opened is exist - process it [16:52:15]req_shift_opened [16:52:15]FM_GetShiftState [16:52:15]SAM_PROTO_GetShiftState [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 13 01 00 [16:52:15]Write to MH i2c: E2 08 00 D0 18 80 13 01 00 00 00 00 00 65 [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 0E 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 0E 00 D0 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B7 [16:52:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:52:15]wFMCommunicate OK [16:52:15]SAM_PROTO_GetShiftState done [16:52:15]FM_GetShiftState done [16:52:15]req_shift_opened done [16:52:15]requested_item shift.open_date is exist - process it [16:52:15]req_shift_open_date [16:52:15]req_shift_open_date done [16:52:15]produce_requested_data done [16:52:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187412,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:52:15]process_action_free close_receipt [16:52:15]json_value_free [16:52:15]json_value_free done [16:52:15]process_json_proto returns [16:52:15]Send response to host [16:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187412,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:52:15]free response buf [16:52:15]execute_script done [16:52:15]execute_script returns [16:52:15]free content buf [16:52:15]Sock 7.Close socket [16:52:15]Sock 7.Thread stoped [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:10]accept exits with 9 [16:55:10]New connection [16:55:10]New thread 3067276644 created [16:55:10]Thread 3067420004 joined [16:55:10]Waiting for new connection... [16:55:10] Sock 9.Parse request [16:55:10]Sock 9.Check first char [16:55:10]Sock 9.First char is OK [16:55:10]request: POST /json_proto HTTP/1.0 [16:55:10]Method: POST [16:55:10]URL: /json_proto [16:55:10]Method is POST - this is cgi request [16:55:10]url: /json_proto [16:55:10]query_string will be loaded in cgi processing [16:55:10]execute_cgi json_proto POST (null) [16:55:10]execute_cgi path=json_proto method=POST [16:55:10]POST find Content-Length [16:55:10]Host: 172.17.46.131:8080 [16:55:10]Content-Length: 799 [16:55:10]Content-Type: application/json [16:55:10] [16:55:10]POST finish read [16:55:10]Found Content-Length = 799 [16:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:10]execute_script... [16:55: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)412572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:10]POST & json_proto [16:55:10]process_json_proto [16:55:10]json parsed OK: [16:55:10]protocol is kg_v1.0 [16:55:10]action value=close_receipt [16:55:10]process_action close_receipt [16:55:10]cmd_close_receipt [16:55:10]MH_GetDate [16:55:10]Write to MH i2c: F0 00 00 D1 18 D8 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 09 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 09 00 D1 18 00 70 5E B7 67 7E 41 4F 65 40 [16:55:10]GetLastDocTimeStamp 1740070332 [16:55:10]current date 1740070512 [16:55:10]FM_GetShiftState [16:55:10]SAM_PROTO_GetShiftState [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 13 01 00 [16:55:10]Write to MH i2c: E2 08 00 D2 18 80 13 01 00 00 00 00 00 67 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0E 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0E 00 D2 18 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B9 [16:55:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:55:10]wFMCommunicate OK [16:55:10]SAM_PROTO_GetShiftState done [16:55:10]FM_GetShiftState done [16:55:10]opened in 1740011697 [16:55:10]opened+sec_in_day 1740098097 [16:55:10]quantity*price = 200013 [16:55:10]sum+1 = 200014 [16:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 214 20.02.2025 16:55 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187413 ФПД: 167655829090081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T165512&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187413&fm=167655829090081&tin=02508201610067®Number=0000000000091857&sum=200013 [16:55:11]StoreToDocumentArchive [16:55:11]shift 648 fd 187413 [16:55:11]save to /storage/0648/doc_00187413 [16:55:11]save last doc name /storage/0648/doc_00187413 to /storage/kkm_last_doc_name [16:55:11]save OK [16:55:11]Clear old archive folders... [16:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:55:11]tlvbuf is B6F33380 [16:55:11]SAM_PROTO_ClearQueue [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 09 00 00 [16:55:11]Write to MH i2c: E2 08 00 DF 18 80 09 00 00 00 00 00 00 69 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]SAM_PROTO_ClearQueue done [16:55:12]KKMCreateOFDPacket [16:55:12]OFDProtocolAddRootSTLVToBuf [16:55:12]FM_MakeSignedData [16:55:12]FM_MakeSignedData [16:55:12]SAM_PROTO_SignData [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 0D 01 02 [16:55:12]Write to MH i2c: E2 08 00 E0 18 80 0D 01 02 00 00 00 00 71 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]wFMCommunicate request_size=255 [16:55:12]MH_SAM_APDU [16:55: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 70 5E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DC 02 00 35 04 06 00 98 7B 6A 23 [16:55:12]Write to MH i2c: E2 02 01 E1 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 70 5E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DC 02 00 35 04 06 00 98 7B 6A 23 00 00 84 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 E1 18 00 90 00 6D [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]wFMCommunicate request_size=7 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 0D 02 02 02 2F 21 [16:55:12]Write to MH i2c: E2 0A 00 E2 18 80 0D 02 02 02 00 2F 21 00 00 C8 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 E2 18 00 90 00 6E [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 0D 03 02 [16:55:12]Write to MH i2c: E2 08 00 E3 18 80 0D 03 02 00 00 00 00 76 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 0B 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 0B 00 E3 18 00 B8 95 95 01 D2 C7 E1 11 90 00 E5 [16:55:12]RAPDU: B8 95 95 01 D2 C7 E1 11 90 00 [16:55:12]wFMCommunicate OK [16:55:12]SAM_PROTO_SignData done [16:55:12]FM_MakeSignedData done [16:55:12]CreateOFDProtocolMessage [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 11 00 00 [16:55:12]Write to MH i2c: E2 08 00 E4 18 80 11 00 00 00 00 00 00 76 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 17 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 17 00 E4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [16:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:55:12]wFMCommunicate OK [16:55:12]CreateOFDProtocolMessage done [16:55:12]OFDSenderStorePacket 187413 [16:55:12]StoreOFDPacket docnum=187413 [16:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 85 C0 04 01 95 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 70 5E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DC 02 00 35 04 06 00 98 7B 6A 23 2F 21 B8 95 95 01 D2 C7 E1 11 [16:55:12]CheckFolder [16:55:12]dirname=/storage/ofd_packets [16:55:12]CheckFolder done [16:55:12]ProducePacketName [16:55:12]name=ofd_packets/00187413 [16:55:12]NVStorageSaveData ofd_packets/00187413 [16:55:12]File name is /storage/ofd_packets/00187413 [16:55:12]Write 298 bytes [16:55:12]NVStorageSaveData done [16:55:12]OFDSenderStorePacket done [16:55:12]KKMCreateOFDPacket done [16:55:12]NVStorageSaveData kkm_last_timestamp [16:55:12]File name is /storage/kkm_last_timestamp [16:55:12]Write 4 bytes [16:55:12]NVStorageSaveData done [16:55:12]ExternCall_PrintAddStr [16:55:12]wPrintStart [16:55:12]Write to MH i2c: 01 00 00 E5 18 FD [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 E5 18 00 00 00 00 00 FF 0F 12 [16:55:12]RasterBufferAndPrint [16:55:12]line Счет N : (1)412572 [16:55:12]line ИНН: 02508201610067 [16:55:12]line Контрольно-Кассовый Чек [16:55:12]line ПРОДАЖА [16:55:12]line ТРК (МРК, ГНК) : 5 [16:55:12]line Товар: 2710194210 [16:55:12]line ДТ-К-5 [16:55:12]line 27.550 * 72.60 [16:55:12]line = 2000.13 [16:55:12]line НДС 12% НСП 1% [16:55:12]line > о реализуемом товаре [16:55:12]line ИТОГО: 2000.13 [16:55:12]line НСП 1% : 17.70 [16:55:12]line НДС 12% : 212.40 [16:55:12]line Наличными: 0.00 [16:55:12]line Безнал.: 2000.13 [16:55:12]line Место: АЗС № 92 "Партнер Нефть" [16:55:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:55:12]line СНО: Общий режим [16:55:12]line Чек 214 20.02.2025 16:55 [16:55:12]line Смена: 648 ФФД: 1.0 [16:55:12]line ЗНМ: 0300000118 [16:55:12]line РНМ: 0000000000091857 [16:55:12]line Версия ККМ: 001 [16:55:12]line Платежная система: O! деньги [16:55:12]line ФМ: 0000000000871826 [16:55:12]line ФД: 187413 [16:55:12]line ФПД: 167655829090081 [16:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T165512&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187413&fm=167655829090081&tin=02508201610067®Number=0000000000091857&sum=200013 [16:55:12]OFD Sender: Processing packet 187413 [packets to send 49, broken 48] [16:55:12]ProducePacketName [16:55:12]name=ofd_packets/00187413 [16:55:12]OFD Sender: To server: pG, [16:55:12]CommunicateWithHost lk.salyk.kg:30040 [16:55:12]ConnectInit lk.salyk.kg [16:55:12]written 0, free lines is 4095 [16:55:12]Connected sock=10 [16:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 85 C0 04 01 95 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 70 5E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DC 02 00 35 04 06 00 98 7B 6A 23 2F 21 B8 95 95 01 D2 C7 E1 11 [16:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A5 CB 47 00 EA 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DC 02 00 F4 03 04 00 C0 04 B7 67 B6 04 01 00 00 0E F4 EF 9F 55 FF D6 1B [16:55:13]CommunicateWithHost err = 0 [16:55:13]CheckOFDResponse [16:55:13]1017 (14) - 77093643461234 [16:55:13]1041 (16) - 0000000000871826 [16:55:13]1040 (4) - 187413 [16:55:13]1012 (4) - 20.02.2025 10:32 [16:55:13]1206 (1) - 0 [16:55:13]OFD Sender: Remove packet 187413 [16:55:13]ProducePacketName [16:55:13]name=ofd_packets/00187413 [16:55:13]NVStorageDeleteData [16:55:13]Write to MH i2c: 01 00 00 0F 19 28 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 0F 19 00 00 00 00 00 03 0D 3F [16:55:13]RasterBufferAndPrint [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]written 0, free lines is 3337 [16:55:13]MH_Cut [16:55:13]Write to MH i2c: D1 01 00 16 19 01 01 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 01 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 01 00 16 19 00 00 [16:55:13]Write to MH i2c: 01 00 00 17 19 30 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]OFD Sender: No OFD packet to send [16:55:13]*** Cut start [16:55:13]*** Partial cut [16:55:13]*** CUTSNS_PIN = 1 [16:55:13]*** CUTSNS_PIN = 0 [16:55:14]*** Brake cut motor [16:55:14]Read from MH i2c: 01 [16:55:14]MH_I2C_Read... [16:55:14]*** Stop cut motor [16:55:14]*** Cut end [16:55:14]Read from MH i2c: 01 07 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: 01 07 00 17 19 00 00 00 00 00 FF 0F 45 [16:55:14]process_action close_receipt done [16:55:14]requested_data is exist [16:55:14]produce_requested_data [16:55:14]requested_item fm.sn is exist - process it [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 11 00 00 [16:55:14]Write to MH i2c: E2 08 00 18 19 80 11 00 00 00 00 00 00 AB [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 17 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 17 00 18 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FE [16:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:55:14]wFMCommunicate OK [16:55:14]requested_item fd.num is exist - process it [16:55:14]SAM_PROTO_GetFieldsCounters [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 13 00 00 [16:55:14]Write to MH i2c: E2 08 00 19 19 80 13 00 00 00 00 00 00 AE [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 62 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 62 00 19 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 15 DC 02 00 0E 04 04 00 88 02 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 D3 [16:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 15 DC 02 00 0E 04 04 00 88 02 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:55:14]wFMCommunicate OK [16:55:14]SAM_PROTO_GetFieldsCounters done [16:55:14]requested_item shift.num is exist - process it [16:55:14]requested_item shift.opened is exist - process it [16:55:14]req_shift_opened [16:55:14]FM_GetShiftState [16:55:14]SAM_PROTO_GetShiftState [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 13 01 00 [16:55:14]Write to MH i2c: E2 08 00 1A 19 80 13 01 00 00 00 00 00 B0 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0E 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0E 00 1A 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 02 [16:55:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:55:14]wFMCommunicate OK [16:55:14]SAM_PROTO_GetShiftState done [16:55:14]FM_GetShiftState done [16:55:14]req_shift_opened done [16:55:14]requested_item shift.open_date is exist - process it [16:55:14]req_shift_open_date [16:55:14]req_shift_open_date done [16:55:14]produce_requested_data done [16:55:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187413,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:55:14]process_action_free close_receipt [16:55:14]json_value_free [16:55:14]json_value_free done [16:55:14]process_json_proto returns [16:55:14]Send response to host [16:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187413,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:55:14]free response buf [16:55:14]execute_script done [16:55:14]execute_script returns [16:55:14]free content buf [16:55:14]Sock 9.Close socket [16:55:14]Sock 9.Thread stoped [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:31]int [16:55:31]Write to MH i2c: 01 00 00 1B 19 34 [16:55:31]*** FLAG_PRN_PAP1 set [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 07 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 07 00 1B 19 00 01 00 00 00 FF 0F 4A [16:55:31]state=0 [16:55:31]No paper [16:55:31]int [16:55:31]Write to MH i2c: 01 00 00 1C 19 35 [16:55:31]*** FLAG_PRN_PAP2 set [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 07 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 07 00 1C 19 00 03 00 00 00 FF 0F 4D [16:55:31]state=0 [16:55:31]No paper [16:55:31]Cover opened [16:55:33]OFD Sender: No OFD packet to send [16:55:36]Write to MH i2c: 01 00 00 1D 19 36 [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 07 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 07 00 1D 19 00 03 00 00 00 FF 0F 4E [16:55:36]state=3 [16:55:36]No paper [16:55:36]Cover opened [16:55:38]OFD Sender: No OFD packet to send [16:55:41]Write to MH i2c: 01 00 00 1E 19 37 [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 07 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 07 00 1E 19 00 03 00 00 00 FF 0F 4F [16:55:41]state=3 [16:55:41]No paper [16:55:41]Cover opened [16:55:43]OFD Sender: No OFD packet to send [16:55:46]Write to MH i2c: 01 00 00 1F 19 38 [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 07 00 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 07 00 1F 19 00 03 00 00 00 FF 0F 50 [16:55:46]state=3 [16:55:46]No paper [16:55:46]Cover opened [16:55:48]OFD Sender: No OFD packet to send [16:55:51]Write to MH i2c: 01 00 00 20 19 39 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 07 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 07 00 20 19 00 03 00 00 00 FF 0F 51 [16:55:51]state=3 [16:55:51]No paper [16:55:51]Cover opened [16:55:53]OFD Sender: No OFD packet to send [16:55:56]Write to MH i2c: 01 00 00 21 19 3A [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 07 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 07 00 21 19 00 03 00 00 00 FF 0F 52 [16:55:56]state=3 [16:55:56]No paper [16:55:56]Cover opened [16:55:58]OFD Sender: No OFD packet to send [16:56:01]Write to MH i2c: 01 00 00 22 19 3B [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: 01 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: 01 07 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: 01 07 00 22 19 00 03 00 00 00 FF 0F 53 [16:56:01]state=3 [16:56:01]No paper [16:56:01]Cover opened [16:56:03]OFD Sender: No OFD packet to send [16:56:06]Write to MH i2c: 01 00 00 23 19 3C [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 23 19 00 03 00 00 00 FF 0F 54 [16:56:06]state=3 [16:56:06]No paper [16:56:06]Cover opened [16:56:06]int [16:56:06]Write to MH i2c: 01 00 00 24 19 3D [16:56:06]*** FLAG_PRN_PAP2 reset [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 24 19 00 01 00 00 00 FF 0F 53 [16:56:06]state=3 [16:56:06]No paper [16:56:06]Cover closed [16:56:06]int [16:56:06]Write to MH i2c: 01 00 00 25 19 3E [16:56:06]*** FLAG_PRN_PAP1 reset [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 25 19 00 00 00 00 00 FF 0F 53 [16:56:06]state=0 [16:56:07]int [16:56:07]Write to MH i2c: 01 00 00 26 19 3F [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 07 00 [16:56:07]MH_I2C_Read... [16:56:07]*** FLAG_PRN_PAP1 set [16:56:07]*** FLAG_PRN_PAP1 reset [16:56:07]Read from MH i2c: 01 07 00 26 19 00 00 00 00 00 FF 0F 54 [16:56:07]state=0 [16:56:07]int [16:56:07]Write to MH i2c: 01 00 00 27 19 40 [16:56:07]*** FLAG_PRN_PAP1 set [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 07 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 07 00 27 19 00 01 00 00 00 FF 0F 56 [16:56:07]state=0 [16:56:07]No paper [16:56:07]int [16:56:07]Write to MH i2c: 01 00 00 28 19 41 [16:56:07]*** FLAG_PRN_PAP2 set [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 07 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 07 00 28 19 00 03 00 00 00 FF 0F 59 [16:56:07]state=0 [16:56:07]No paper [16:56:07]Cover opened [16:56:08]OFD Sender: No OFD packet to send [16:56:09]int [16:56:09]Write to MH i2c: 01 00 00 29 19 42 [16:56:09]*** FLAG_PRN_PAP2 reset [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 29 19 00 01 00 00 00 FF 0F 58 [16:56:09]state=3 [16:56:09]No paper [16:56:09]Cover closed [16:56:09]int [16:56:09]Write to MH i2c: 01 00 00 2A 19 43 [16:56:09]*** FLAG_PRN_PAP1 reset [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 FF 0F 58 [16:56:09]state=0 [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:16]accept exits with 7 [16:59:16]New connection [16:59:16]New thread 3067420004 created [16:59:16]Thread 3067276644 joined [16:59:16]Waiting for new connection... [16:59:16] Sock 7.Parse request [16:59:16]Sock 7.Check first char [16:59:16]Sock 7.First char is OK [16:59:16]request: POST /json_proto HTTP/1.0 [16:59:16]Method: POST [16:59:16]URL: /json_proto [16:59:16]Method is POST - this is cgi request [16:59:16]url: /json_proto [16:59:16]query_string will be loaded in cgi processing [16:59:16]execute_cgi json_proto POST (null) [16:59:16]execute_cgi path=json_proto method=POST [16:59:16]POST find Content-Length [16:59:16]Host: 172.17.46.131:8080 [16:59:16]Content-Length: 677 [16:59:16]Content-Type: application/json [16:59:16] [16:59:16]POST finish read [16:59:16]Found Content-Length = 677 [16:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "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" ] } } [16:59:16]execute_script... [16:59: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)412573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "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" ] } } [16:59:16]POST & json_proto [16:59:16]process_json_proto [16:59:16]json parsed OK: [16:59:16]protocol is kg_v1.0 [16:59:16]action value=close_receipt [16:59:16]process_action close_receipt [16:59:16]cmd_close_receipt [16:59:16]MH_GetDate [16:59:16]Write to MH i2c: F0 00 00 2B 19 33 [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: F0 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: F0 09 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: F0 09 00 2B 19 00 66 5F B7 67 7E 41 4F 65 92 [16:59:16]GetLastDocTimeStamp 1740070512 [16:59:16]current date 1740070758 [16:59:16]FM_GetShiftState [16:59:16]SAM_PROTO_GetShiftState [16:59:16]wFMCommunicate request_size=4 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 13 01 00 [16:59:16]Write to MH i2c: E2 08 00 2C 19 80 13 01 00 00 00 00 00 C2 [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 0E 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 0E 00 2C 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 14 [16:59:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:59:16]wFMCommunicate OK [16:59:16]SAM_PROTO_GetShiftState done [16:59:16]FM_GetShiftState done [16:59:16]opened in 1740011697 [16:59:16]opened+sec_in_day 1740098097 [16:59:16]quantity*price = 25038 [16:59:16]sum+1 = 25039 [16:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 215 20.02.2025 16:59 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187414 ФПД: 121212490778399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T165918&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187414&fm=121212490778399&tin=02508201610067®Number=0000000000091857&sum=25000 [16:59:17]StoreToDocumentArchive [16:59:17]shift 648 fd 187414 [16:59:17]save to /storage/0648/doc_00187414 [16:59:17]save last doc name /storage/0648/doc_00187414 to /storage/kkm_last_doc_name [16:59:17]save OK [16:59:17]Clear old archive folders... [16:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:17]tlvbuf is 00E19110 [16:59:17]SAM_PROTO_ClearQueue [16:59:17]wFMCommunicate request_size=4 [16:59:17]MH_SAM_APDU [16:59:17]CAPDU: 80 09 00 00 [16:59:17]Write to MH i2c: E2 08 00 39 19 80 09 00 00 00 00 00 00 C4 [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:17]Read from MH i2c: E2 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 03 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 03 00 39 19 00 90 00 C6 [16:59:17]RAPDU: 90 00 [16:59:17]wFMCommunicate OK [16:59:17]SAM_PROTO_ClearQueue done [16:59:17]KKMCreateOFDPacket [16:59:17]OFDProtocolAddRootSTLVToBuf [16:59:17]FM_MakeSignedData [16:59:17]FM_MakeSignedData [16:59:17]SAM_PROTO_SignData [16:59:17]wFMCommunicate request_size=4 [16:59:17]MH_SAM_APDU [16:59:17]CAPDU: 80 0D 01 02 [16:59:17]Write to MH i2c: E2 08 00 3A 19 80 0D 01 02 00 00 00 00 CC [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:17]Read from MH i2c: E2 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 03 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: E2 03 00 3A 19 00 90 00 C7 [16:59:17]RAPDU: 90 00 [16:59:17]wFMCommunicate OK [16:59:17]wFMCommunicate request_size=255 [16:59:17]MH_SAM_APDU [16:59: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 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 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 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 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 D7 00 00 00 F4 03 04 00 66 5F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DC 02 00 35 04 06 00 6E [16:59:17]Write to MH i2c: E2 02 01 3B 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 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 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 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 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 D7 00 00 00 F4 03 04 00 66 5F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DC 02 00 35 04 06 00 6E 00 00 82 [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:18]Read from MH i2c: E2 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: E2 03 00 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: E2 03 00 3B 19 00 90 00 C8 [16:59:18]RAPDU: 90 00 [16:59:18]wFMCommunicate OK [16:59:18]wFMCommunicate request_size=10 [16:59:18]MH_SAM_APDU [16:59:18]CAPDU: 80 0D 02 02 05 3D FB 74 87 1F [16:59:18]Write to MH i2c: E2 0D 00 3C 19 80 0D 02 02 05 00 3D FB 74 87 1F 00 00 2B [16:59:18]Write i2c OK [16:59:18]MH_I2C_Read... [16:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:18]Read from MH i2c: E2 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: E2 03 00 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: E2 03 00 3C 19 00 90 00 C9 [16:59:18]RAPDU: 90 00 [16:59:18]wFMCommunicate OK [16:59:18]wFMCommunicate request_size=4 [16:59:18]MH_SAM_APDU [16:59:18]CAPDU: 80 0D 03 02 [16:59:18]Write to MH i2c: E2 08 00 3D 19 80 0D 03 02 00 00 00 00 D1 [16:59:18]Write i2c OK [16:59:18]MH_I2C_Read... [16:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:18]Read from MH i2c: E2 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: E2 0B 00 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: E2 0B 00 3D 19 00 E8 A8 FB 53 EF 53 57 78 90 00 C1 [16:59:18]RAPDU: E8 A8 FB 53 EF 53 57 78 90 00 [16:59:18]wFMCommunicate OK [16:59:18]SAM_PROTO_SignData done [16:59:18]FM_MakeSignedData done [16:59:18]CreateOFDProtocolMessage [16:59:18]wFMCommunicate request_size=4 [16:59:18]MH_SAM_APDU [16:59:18]CAPDU: 80 11 00 00 [16:59:18]Write to MH i2c: E2 08 00 3E 19 80 11 00 00 00 00 00 00 D1 [16:59:18]Write i2c OK [16:59:18]MH_I2C_Read... [16:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:18]Read from MH i2c: E2 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: E2 17 00 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: E2 17 00 3E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [16:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:59:18]wFMCommunicate OK [16:59:18]CreateOFDProtocolMessage done [16:59:18]OFDSenderStorePacket 187414 [16:59:18]StoreOFDPacket docnum=187414 [16:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2F B2 07 01 3D 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 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 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 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 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 D7 00 00 00 F4 03 04 00 66 5F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DC 02 00 35 04 06 00 6E 3D FB 74 87 1F E8 A8 FB 53 EF 53 57 78 [16:59:18]CheckFolder [16:59:18]dirname=/storage/ofd_packets [16:59:18]CheckFolder done [16:59:18]ProducePacketName [16:59:18]name=ofd_packets/00187414 [16:59:18]NVStorageSaveData ofd_packets/00187414 [16:59:18]File name is /storage/ofd_packets/00187414 [16:59:18]Write 301 bytes [16:59:18]NVStorageSaveData done [16:59:18]OFDSenderStorePacket done [16:59:18]KKMCreateOFDPacket done [16:59:18]NVStorageSaveData kkm_last_timestamp [16:59:18]File name is /storage/kkm_last_timestamp [16:59:18]Write 4 bytes [16:59:18]NVStorageSaveData done [16:59:18]ExternCall_PrintAddStr [16:59:18]wPrintStart [16:59:18]Write to MH i2c: 01 00 00 3F 19 58 [16:59:18]Write i2c OK [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: 01 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: 01 07 00 [16:59:18]MH_I2C_Read... [16:59:18]Read from MH i2c: 01 07 00 3F 19 00 00 00 00 00 FF 0F 6D [16:59:18]RasterBufferAndPrint [16:59:18]line Счет N : (1)412573 [16:59:18]line ИНН: 02508201610067 [16:59:18]line Контрольно-Кассовый Чек [16:59:18]line ПРОДАЖА [16:59:18]line ТРК (МРК, ГНК) : 22 [16:59:18]line Товар: 2710124130 [16:59:18]line Аи-92-К-2 [16:59:18]line 3.900 * 64.20 [16:59:18]line = 250.38 [16:59:18]line НДС 12% НСП 1% [16:59:18]line > о реализуемом товаре [16:59:18]line ОКРУГЛЕНИЕ: -0.38 [16:59:18]line ИТОГО: 250.00 [16:59:18]line Внесено: 250.00 [16:59:18]line СДАЧА: 0.00 [16:59:18]line НСП 1% : 2.22 [16:59:18]line НДС 12% : 26.59 [16:59:18]line Наличными: 250.00 [16:59:18]line Безнал.: 0.00 [16:59:18]line Место: АЗС № 92 "Партнер Нефть" [16:59:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:59:18]line СНО: Общий режим [16:59:18]line Чек 215 20.02.2025 16:59 [16:59:18]line Смена: 648 ФФД: 1.0 [16:59:18]line ЗНМ: 0300000118 [16:59:18]line РНМ: 0000000000091857 [16:59:18]line Версия ККМ: 001 [16:59:18]line ФМ: 0000000000871826 [16:59:18]line ФД: 187414 [16:59:18]line ФПД: 121212490778399 [16:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T165918&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187414&fm=121212490778399&tin=02508201610067®Number=0000000000091857&sum=25000 [16:59:18]written 0, free lines is 4095 [16:59:18]OFD Sender: Processing packet 187414 [packets to send 49, broken 48] [16:59:18]ProducePacketName [16:59:18]name=ofd_packets/00187414 [16:59:18]OFD Sender: To server: pG, [16:59:18]CommunicateWithHost lk.salyk.kg:30040 [16:59:18]ConnectInit lk.salyk.kg [16:59:18]Connected sock=10 [16:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2F B2 07 01 3D 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 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 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 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 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 D7 00 00 00 F4 03 04 00 66 5F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DC 02 00 35 04 06 00 6E 3D FB 74 87 1F E8 A8 FB 53 EF 53 57 78 [16:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 62 55 47 00 02 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 31 38 32 36 10 04 04 00 16 DC 02 00 F4 03 04 00 B6 05 B7 67 B6 04 01 00 00 4A 6F B6 58 90 EC 21 69 [16:59:19]CommunicateWithHost err = 0 [16:59:19]CheckOFDResponse [16:59:19]1017 (14) - 77093643461234 [16:59:19]1041 (16) - 0000000000871826 [16:59:19]1040 (4) - 187414 [16:59:19]1012 (4) - 20.02.2025 10:36 [16:59:19]1206 (1) - 0 [16:59:19]OFD Sender: Remove packet 187414 [16:59:19]ProducePacketName [16:59:19]name=ofd_packets/00187414 [16:59:19]NVStorageDeleteData [16:59:19]Write to MH i2c: 01 00 00 6A 19 83 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: 01 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: 01 07 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: 01 07 00 6A 19 00 00 00 00 00 F9 0C 8F [16:59:19]RasterBufferAndPrint [16:59:19]line [16:59:19]line [16:59:19]line [16:59:19]line [16:59:19]line [16:59:19]written 0, free lines is 3327 [16:59:19]MH_Cut [16:59:19]Write to MH i2c: D1 01 00 71 19 01 5C [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: D1 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: D1 01 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: D1 01 00 71 19 00 5B [16:59:19]Write to MH i2c: 01 00 00 72 19 8B [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]OFD Sender: No OFD packet to send [16:59:19]*** Cut start [16:59:19]*** Partial cut [16:59:19]*** CUTSNS_PIN = 1 [16:59:19]*** CUTSNS_PIN = 0 [16:59:20]*** Brake cut motor [16:59:20]Read from MH i2c: 01 [16:59:20]MH_I2C_Read... [16:59:20]*** Stop cut motor [16:59:20]*** Cut end [16:59:20]Read from MH i2c: 01 07 00 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: 01 07 00 72 19 00 00 00 00 00 FF 0F A0 [16:59:20]process_action close_receipt done [16:59:20]requested_data is exist [16:59:20]produce_requested_data [16:59:20]requested_item fm.sn is exist - process it [16:59:20]wFMCommunicate request_size=4 [16:59:20]MH_SAM_APDU [16:59:20]CAPDU: 80 11 00 00 [16:59:20]Write to MH i2c: E2 08 00 73 19 80 11 00 00 00 00 00 00 06 [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:20]Read from MH i2c: E2 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 17 00 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 17 00 73 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 59 [16:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:59:20]wFMCommunicate OK [16:59:20]requested_item fd.num is exist - process it [16:59:20]SAM_PROTO_GetFieldsCounters [16:59:20]wFMCommunicate request_size=4 [16:59:20]MH_SAM_APDU [16:59:20]CAPDU: 80 13 00 00 [16:59:20]Write to MH i2c: E2 08 00 74 19 80 13 00 00 00 00 00 00 09 [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:20]Read from MH i2c: E2 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 62 00 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 62 00 74 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 16 DC 02 00 0E 04 04 00 88 02 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 32 [16:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 16 DC 02 00 0E 04 04 00 88 02 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:59:20]wFMCommunicate OK [16:59:20]SAM_PROTO_GetFieldsCounters done [16:59:20]requested_item shift.num is exist - process it [16:59:20]requested_item shift.opened is exist - process it [16:59:20]req_shift_opened [16:59:20]FM_GetShiftState [16:59:20]SAM_PROTO_GetShiftState [16:59:20]wFMCommunicate request_size=4 [16:59:20]MH_SAM_APDU [16:59:20]CAPDU: 80 13 01 00 [16:59:20]Write to MH i2c: E2 08 00 75 19 80 13 01 00 00 00 00 00 0B [16:59:20]Write i2c OK [16:59:20]MH_I2C_Read... [16:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:20]Read from MH i2c: E2 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 0E 00 [16:59:20]MH_I2C_Read... [16:59:20]Read from MH i2c: E2 0E 00 75 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5D [16:59:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [16:59:20]wFMCommunicate OK [16:59:20]SAM_PROTO_GetShiftState done [16:59:20]FM_GetShiftState done [16:59:20]req_shift_opened done [16:59:20]requested_item shift.open_date is exist - process it [16:59:20]req_shift_open_date [16:59:20]req_shift_open_date done [16:59:20]produce_requested_data done [16:59:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187414,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [16:59:20]process_action_free close_receipt [16:59:20]json_value_free [16:59:20]json_value_free done [16:59:20]process_json_proto returns [16:59:20]Send response to host [16:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187414,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [16:59:20]free response buf [16:59:20]execute_script done [16:59:20]execute_script returns [16:59:20]free content buf [16:59:20]Sock 7.Close socket [16:59:20]Sock 7.Thread stoped [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:48]accept exits with 9 [17:01:48]New connection [17:01:48]New thread 3067276644 created [17:01:48]Thread 3067420004 joined [17:01:48]Waiting for new connection... [17:01:48] Sock 9.Parse request [17:01:48]Sock 9.Check first char [17:01:48]Sock 9.First char is OK [17:01:48]request: POST /json_proto HTTP/1.0 [17:01:48]Method: POST [17:01:48]URL: /json_proto [17:01:48]Method is POST - this is cgi request [17:01:48]url: /json_proto [17:01:48]query_string will be loaded in cgi processing [17:01:48]execute_cgi json_proto POST (null) [17:01:48]execute_cgi path=json_proto method=POST [17:01:48]POST find Content-Length [17:01:48]Host: 172.17.46.131:8080 [17:01:48]Content-Length: 679 [17:01:48]Content-Type: application/json [17:01:48] [17:01:48]POST finish read [17:01:48]Found Content-Length = 679 [17:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:48]execute_script... [17:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:48]POST & json_proto [17:01:48]process_json_proto [17:01:48]json parsed OK: [17:01:48]protocol is kg_v1.0 [17:01:48]action value=close_receipt [17:01:48]process_action close_receipt [17:01:48]cmd_close_receipt [17:01:48]MH_GetDate [17:01:48]Write to MH i2c: F0 00 00 76 19 7E [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: F0 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: F0 09 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: F0 09 00 76 19 00 FD 5F B7 67 7E 41 4F 65 74 [17:01:48]GetLastDocTimeStamp 1740070758 [17:01:48]current date 1740070909 [17:01:48]FM_GetShiftState [17:01:48]SAM_PROTO_GetShiftState [17:01:48]wFMCommunicate request_size=4 [17:01:48]MH_SAM_APDU [17:01:48]CAPDU: 80 13 01 00 [17:01:48]Write to MH i2c: E2 08 00 77 19 80 13 01 00 00 00 00 00 0D [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:48]Read from MH i2c: E2 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 0E 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: E2 0E 00 77 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5F [17:01:48]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:01:48]wFMCommunicate OK [17:01:48]SAM_PROTO_GetShiftState done [17:01:48]FM_GetShiftState done [17:01:48]opened in 1740011697 [17:01:48]opened+sec_in_day 1740098097 [17:01:48]quantity*price = 100042 [17:01:48]sum+1 = 100044 [17:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 216 20.02.2025 17:01 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187415 ФПД: 142121852964055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T170150&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187415&fm=142121852964055&tin=02508201610067®Number=0000000000091857&sum=100000 [17:01:49]StoreToDocumentArchive [17:01:49]shift 648 fd 187415 [17:01:49]save to /storage/0648/doc_00187415 [17:01:49]save last doc name /storage/0648/doc_00187415 to /storage/kkm_last_doc_name [17:01:49]save OK [17:01:49]Clear old archive folders... [17:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:01:49]tlvbuf is B6F1A270 [17:01:49]SAM_PROTO_ClearQueue [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 09 00 00 [17:01:49]Write to MH i2c: E2 08 00 84 19 80 09 00 00 00 00 00 00 0F [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 03 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 03 00 84 19 00 90 00 11 [17:01:49]RAPDU: 90 00 [17:01:49]wFMCommunicate OK [17:01:49]SAM_PROTO_ClearQueue done [17:01:49]KKMCreateOFDPacket [17:01:49]OFDProtocolAddRootSTLVToBuf [17:01:49]FM_MakeSignedData [17:01:49]FM_MakeSignedData [17:01:49]SAM_PROTO_SignData [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 0D 01 02 [17:01:49]Write to MH i2c: E2 08 00 85 19 80 0D 01 02 00 00 00 00 17 [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 03 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 03 00 85 19 00 90 00 12 [17:01:49]RAPDU: 90 00 [17:01:49]wFMCommunicate OK [17:01:49]wFMCommunicate request_size=255 [17:01:49]MH_SAM_APDU [17:01: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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 FE 5F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DC 02 00 35 04 06 00 81 42 52 8F [17:01:49]Write to MH i2c: E2 02 01 86 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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 FE 5F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DC 02 00 35 04 06 00 81 42 52 8F 00 00 2E [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]OFD Sender: No OFD packet to send [17:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:50]Read from MH i2c: E2 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 03 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 03 00 86 19 00 90 00 13 [17:01:50]RAPDU: 90 00 [17:01:50]wFMCommunicate OK [17:01:50]wFMCommunicate request_size=7 [17:01:50]MH_SAM_APDU [17:01:50]CAPDU: 80 0D 02 02 02 8C D7 [17:01:50]Write to MH i2c: E2 0A 00 87 19 80 0D 02 02 02 00 8C D7 00 00 81 [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:50]Read from MH i2c: E2 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 03 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 03 00 87 19 00 90 00 14 [17:01:50]RAPDU: 90 00 [17:01:50]wFMCommunicate OK [17:01:50]wFMCommunicate request_size=4 [17:01:50]MH_SAM_APDU [17:01:50]CAPDU: 80 0D 03 02 [17:01:50]Write to MH i2c: E2 08 00 88 19 80 0D 03 02 00 00 00 00 1C [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:50]Read from MH i2c: E2 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 0B 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 0B 00 88 19 00 AF A1 B7 2F D0 90 B1 FD 90 00 61 [17:01:50]RAPDU: AF A1 B7 2F D0 90 B1 FD 90 00 [17:01:50]wFMCommunicate OK [17:01:50]SAM_PROTO_SignData done [17:01:50]FM_MakeSignedData done [17:01:50]CreateOFDProtocolMessage [17:01:50]wFMCommunicate request_size=4 [17:01:50]MH_SAM_APDU [17:01:50]CAPDU: 80 11 00 00 [17:01:50]Write to MH i2c: E2 08 00 89 19 80 11 00 00 00 00 00 00 1C [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:50]Read from MH i2c: E2 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 17 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 17 00 89 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [17:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:01:50]wFMCommunicate OK [17:01:50]CreateOFDProtocolMessage done [17:01:50]OFDSenderStorePacket 187415 [17:01:50]StoreOFDPacket docnum=187415 [17:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2C 17 04 01 BD 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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 FE 5F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DC 02 00 35 04 06 00 81 42 52 8F 8C D7 AF A1 B7 2F D0 90 B1 FD [17:01:50]CheckFolder [17:01:50]dirname=/storage/ofd_packets [17:01:50]CheckFolder done [17:01:50]ProducePacketName [17:01:50]name=ofd_packets/00187415 [17:01:50]NVStorageSaveData ofd_packets/00187415 [17:01:50]File name is /storage/ofd_packets/00187415 [17:01:50]Write 298 bytes [17:01:50]NVStorageSaveData done [17:01:50]OFDSenderStorePacket done [17:01:50]KKMCreateOFDPacket done [17:01:50]NVStorageSaveData kkm_last_timestamp [17:01:50]File name is /storage/kkm_last_timestamp [17:01:50]Write 4 bytes [17:01:50]NVStorageSaveData done [17:01:50]ExternCall_PrintAddStr [17:01:50]wPrintStart [17:01:50]Write to MH i2c: 01 00 00 8A 19 A3 [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 07 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 07 00 8A 19 00 00 00 00 00 FF 0F B8 [17:01:50]RasterBufferAndPrint [17:01:50]line Счет N : (1)412574 [17:01:50]line ИНН: 02508201610067 [17:01:50]line Контрольно-Кассовый Чек [17:01:50]line ПРОДАЖА [17:01:50]line ТРК (МРК, ГНК) : 11 [17:01:50]line Товар: 2710194210 [17:01:50]line ДТ-К-2 [17:01:50]line 13.780 * 72.60 [17:01:50]line = 1000.43 [17:01:50]line НДС 12% НСП 1% [17:01:50]line > о реализуемом товаре [17:01:50]line ОКРУГЛЕНИЕ: -0.43 [17:01:50]line ИТОГО: 1000.00 [17:01:50]line Внесено: 1000.00 [17:01:50]line СДАЧА: 0.00 [17:01:50]line НСП 1% : 8.85 [17:01:50]line НДС 12% : 106.24 [17:01:50]line Наличными: 1000.00 [17:01:50]line Безнал.: 0.00 [17:01:50]line Место: АЗС № 92 "Партнер Нефть" [17:01:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:01:50]line СНО: Общий режим [17:01:50]line Чек 216 20.02.2025 17:01 [17:01:50]line Смена: 648 ФФД: 1.0 [17:01:50]line ЗНМ: 0300000118 [17:01:50]line РНМ: 0000000000091857 [17:01:50]line Версия ККМ: 001 [17:01:50]line ФМ: 0000000000871826 [17:01:50]line ФД: 187415 [17:01:50]line ФПД: 142121852964055 [17:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T170150&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187415&fm=142121852964055&tin=02508201610067®Number=0000000000091857&sum=100000 [17:01:50]OFD Sender: Processing packet 187415 [packets to send 49, broken 48] [17:01:50]ProducePacketName [17:01:50]name=ofd_packets/00187415 [17:01:50]OFD Sender: To server: pG, [17:01:50]CommunicateWithHost lk.salyk.kg:30040 [17:01:50]ConnectInit lk.salyk.kg [17:01:50]written 0, free lines is 4095 [17:01:50]Connected sock=10 [17:01:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2C 17 04 01 BD 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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 FE 5F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DC 02 00 35 04 06 00 81 42 52 8F 8C D7 AF A1 B7 2F D0 90 B1 FD [17:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 45 9F 47 00 A6 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 31 38 32 36 10 04 04 00 17 DC 02 00 F4 03 04 00 4E 06 B7 67 B6 04 01 00 00 F8 E2 21 75 86 F7 1C E5 [17:01:50]CommunicateWithHost err = 0 [17:01:50]CheckOFDResponse [17:01:50]1017 (14) - 77093643461234 [17:01:50]1041 (16) - 0000000000871826 [17:01:50]1040 (4) - 187415 [17:01:50]1012 (4) - 20.02.2025 10:39 [17:01:50]1206 (1) - 0 [17:01:50]OFD Sender: Remove packet 187415 [17:01:50]ProducePacketName [17:01:50]name=ofd_packets/00187415 [17:01:50]NVStorageDeleteData [17:01:50]Write to MH i2c: 01 00 00 B5 19 CE [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 07 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: 01 07 00 B5 19 00 00 00 00 00 F3 0C D4 [17:01:50]RasterBufferAndPrint [17:01:50]line [17:01:50]line [17:01:50]line [17:01:50]line [17:01:50]line [17:01:50]written 0, free lines is 3321 [17:01:50]MH_Cut [17:01:50]Write to MH i2c: D1 01 00 BC 19 01 A7 [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: D1 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: D1 01 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: D1 01 00 BC 19 00 A6 [17:01:50]Write to MH i2c: 01 00 00 BD 19 D6 [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:51]OFD Sender: No OFD packet to send [17:01:51]*** Cut start [17:01:51]*** Partial cut [17:01:51]*** CUTSNS_PIN = 1 [17:01:51]*** CUTSNS_PIN = 0 [17:01:52]*** Brake cut motor [17:01:52]Read from MH i2c: 01 [17:01:52]MH_I2C_Read... [17:01:52]*** Stop cut motor [17:01:52]*** Cut end [17:01:52]Read from MH i2c: 01 07 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: 01 07 00 BD 19 00 00 00 00 00 FF 0F EB [17:01:52]process_action close_receipt done [17:01:52]requested_data is exist [17:01:52]produce_requested_data [17:01:52]requested_item fm.sn is exist - process it [17:01:52]wFMCommunicate request_size=4 [17:01:52]MH_SAM_APDU [17:01:52]CAPDU: 80 11 00 00 [17:01:52]Write to MH i2c: E2 08 00 BE 19 80 11 00 00 00 00 00 00 51 [17:01:52]Write i2c OK [17:01:52]MH_I2C_Read... [17:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:52]Read from MH i2c: E2 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 17 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 17 00 BE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A4 [17:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:01:52]wFMCommunicate OK [17:01:52]requested_item fd.num is exist - process it [17:01:52]SAM_PROTO_GetFieldsCounters [17:01:52]wFMCommunicate request_size=4 [17:01:52]MH_SAM_APDU [17:01:52]CAPDU: 80 13 00 00 [17:01:52]Write to MH i2c: E2 08 00 BF 19 80 13 00 00 00 00 00 00 54 [17:01:52]Write i2c OK [17:01:52]MH_I2C_Read... [17:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:52]Read from MH i2c: E2 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 62 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 62 00 BF 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 17 DC 02 00 0E 04 04 00 88 02 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 81 [17:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 17 DC 02 00 0E 04 04 00 88 02 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 [17:01:52]wFMCommunicate OK [17:01:52]SAM_PROTO_GetFieldsCounters done [17:01:52]requested_item shift.num is exist - process it [17:01:52]requested_item shift.opened is exist - process it [17:01:52]req_shift_opened [17:01:52]FM_GetShiftState [17:01:52]SAM_PROTO_GetShiftState [17:01:52]wFMCommunicate request_size=4 [17:01:52]MH_SAM_APDU [17:01:52]CAPDU: 80 13 01 00 [17:01:52]Write to MH i2c: E2 08 00 C0 19 80 13 01 00 00 00 00 00 56 [17:01:52]Write i2c OK [17:01:52]MH_I2C_Read... [17:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:52]Read from MH i2c: E2 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 0E 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 0E 00 C0 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A8 [17:01:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:01:52]wFMCommunicate OK [17:01:52]SAM_PROTO_GetShiftState done [17:01:52]FM_GetShiftState done [17:01:52]req_shift_opened done [17:01:52]requested_item shift.open_date is exist - process it [17:01:52]req_shift_open_date [17:01:52]req_shift_open_date done [17:01:52]produce_requested_data done [17:01:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187415,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:01:52]process_action_free close_receipt [17:01:52]json_value_free [17:01:52]json_value_free done [17:01:52]process_json_proto returns [17:01:52]Send response to host [17:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187415,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:01:52]free response buf [17:01:52]execute_script done [17:01:52]execute_script returns [17:01:52]free content buf [17:01:52]Sock 9.Close socket [17:01:52]Sock 9.Thread stoped [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:48]accept exits with 7 [17:05:48]New connection [17:05:48]New thread 3067420004 created [17:05:48]Thread 3067276644 joined [17:05:48]Waiting for new connection... [17:05:48] Sock 7.Parse request [17:05:48]Sock 7.Check first char [17:05:48]Sock 7.First char is OK [17:05:48]request: POST /json_proto HTTP/1.0 [17:05:48]Method: POST [17:05:48]URL: /json_proto [17:05:48]Method is POST - this is cgi request [17:05:48]url: /json_proto [17:05:48]query_string will be loaded in cgi processing [17:05:48]execute_cgi json_proto POST (null) [17:05:48]execute_cgi path=json_proto method=POST [17:05:48]POST find Content-Length [17:05:48]Host: 172.17.46.131:8080 [17:05:48]Content-Length: 677 [17:05:48]Content-Type: application/json [17:05:48] [17:05:48]POST finish read [17:05:48]Found Content-Length = 677 [17:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [17:05:48]execute_script... [17:05: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)412575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [17:05:48]POST & json_proto [17:05:48]process_json_proto [17:05:48]json parsed OK: [17:05:48]protocol is kg_v1.0 [17:05:48]action value=close_receipt [17:05:48]process_action close_receipt [17:05:48]cmd_close_receipt [17:05:48]MH_GetDate [17:05:48]Write to MH i2c: F0 00 00 C1 19 C9 [17:05:48]Write i2c OK [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: F0 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: F0 09 00 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: F0 09 00 C1 19 00 ED 60 B7 67 7E 41 4F 65 B0 [17:05:48]GetLastDocTimeStamp 1740070910 [17:05:48]current date 1740071149 [17:05:48]FM_GetShiftState [17:05:48]SAM_PROTO_GetShiftState [17:05:48]wFMCommunicate request_size=4 [17:05:48]MH_SAM_APDU [17:05:48]CAPDU: 80 13 01 00 [17:05:48]Write to MH i2c: E2 08 00 C2 19 80 13 01 00 00 00 00 00 58 [17:05:48]Write i2c OK [17:05:48]MH_I2C_Read... [17:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:48]Read from MH i2c: E2 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: E2 0E 00 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: E2 0E 00 C2 19 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AA [17:05:48]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:05:48]wFMCommunicate OK [17:05:48]SAM_PROTO_GetShiftState done [17:05:48]FM_GetShiftState done [17:05:48]opened in 1740011697 [17:05:48]opened+sec_in_day 1740098097 [17:05:48]quantity*price = 70030 [17:05:48]sum+1 = 70032 [17:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 217 20.02.2025 17:05 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187416 ФПД: 136739572046518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T170549&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187416&fm=136739572046518&tin=02508201610067®Number=0000000000091857&sum=70000 [17:05:49]StoreToDocumentArchive [17:05:49]shift 648 fd 187416 [17:05:49]save to /storage/0648/doc_00187416 [17:05:49]save last doc name /storage/0648/doc_00187416 to /storage/kkm_last_doc_name [17:05:49]save OK [17:05:49]Clear old archive folders... [17:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:49]tlvbuf is 00E026E0 [17:05:49]SAM_PROTO_ClearQueue [17:05:49]wFMCommunicate request_size=4 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 09 00 00 [17:05:49]Write to MH i2c: E2 08 00 CF 19 80 09 00 00 00 00 00 00 5A [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:49]Read from MH i2c: E2 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 03 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 03 00 CF 19 00 90 00 5C [17:05:49]RAPDU: 90 00 [17:05:49]wFMCommunicate OK [17:05:49]SAM_PROTO_ClearQueue done [17:05:49]KKMCreateOFDPacket [17:05:49]OFDProtocolAddRootSTLVToBuf [17:05:49]FM_MakeSignedData [17:05:49]FM_MakeSignedData [17:05:49]SAM_PROTO_SignData [17:05:49]wFMCommunicate request_size=4 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 0D 01 02 [17:05:49]Write to MH i2c: E2 08 00 D0 19 80 0D 01 02 00 00 00 00 62 [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:49]Read from MH i2c: E2 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 03 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 03 00 D0 19 00 90 00 5D [17:05:49]RAPDU: 90 00 [17:05:49]wFMCommunicate OK [17:05:49]wFMCommunicate request_size=255 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 D9 00 00 00 F4 03 04 00 ED 60 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DC 02 00 35 04 06 00 7C [17:05:49]Write to MH i2c: E2 02 01 D1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 D9 00 00 00 F4 03 04 00 ED 60 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DC 02 00 35 04 06 00 7C 00 00 56 [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:49]Read from MH i2c: E2 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 03 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 03 00 D1 19 00 90 00 5E [17:05:49]RAPDU: 90 00 [17:05:49]wFMCommunicate OK [17:05:49]wFMCommunicate request_size=10 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 0D 02 02 05 5D 29 9E 5A B6 [17:05:49]Write to MH i2c: E2 0D 00 D2 19 80 0D 02 02 05 00 5D 29 9E 5A B6 00 00 A3 [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:49]Read from MH i2c: E2 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 03 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 03 00 D2 19 00 90 00 5F [17:05:49]RAPDU: 90 00 [17:05:49]wFMCommunicate OK [17:05:49]wFMCommunicate request_size=4 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 0D 03 02 [17:05:49]Write to MH i2c: E2 08 00 D3 19 80 0D 03 02 00 00 00 00 67 [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:49]Read from MH i2c: E2 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 0B 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 0B 00 D3 19 00 CF B2 C4 9B EF 7C 05 66 90 00 1E [17:05:49]RAPDU: CF B2 C4 9B EF 7C 05 66 90 00 [17:05:49]wFMCommunicate OK [17:05:49]SAM_PROTO_SignData done [17:05:49]FM_MakeSignedData done [17:05:49]CreateOFDProtocolMessage [17:05:49]wFMCommunicate request_size=4 [17:05:49]MH_SAM_APDU [17:05:49]CAPDU: 80 11 00 00 [17:05:49]Write to MH i2c: E2 08 00 D4 19 80 11 00 00 00 00 00 00 67 [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:49]Read from MH i2c: E2 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 17 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: E2 17 00 D4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [17:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:05:49]wFMCommunicate OK [17:05:49]CreateOFDProtocolMessage done [17:05:49]OFDSenderStorePacket 187416 [17:05:49]StoreOFDPacket docnum=187416 [17:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 39 07 01 23 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 D9 00 00 00 F4 03 04 00 ED 60 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DC 02 00 35 04 06 00 7C 5D 29 9E 5A B6 CF B2 C4 9B EF 7C 05 66 [17:05:49]CheckFolder [17:05:49]dirname=/storage/ofd_packets [17:05:49]CheckFolder done [17:05:49]ProducePacketName [17:05:49]name=ofd_packets/00187416 [17:05:49]NVStorageSaveData ofd_packets/00187416 [17:05:49]File name is /storage/ofd_packets/00187416 [17:05:49]Write 301 bytes [17:05:49]NVStorageSaveData done [17:05:49]OFDSenderStorePacket done [17:05:49]KKMCreateOFDPacket done [17:05:49]NVStorageSaveData kkm_last_timestamp [17:05:49]File name is /storage/kkm_last_timestamp [17:05:49]Write 4 bytes [17:05:49]NVStorageSaveData done [17:05:49]ExternCall_PrintAddStr [17:05:49]wPrintStart [17:05:49]Write to MH i2c: 01 00 00 D5 19 EE [17:05:49]Write i2c OK [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: 01 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: 01 07 00 [17:05:49]MH_I2C_Read... [17:05:49]Read from MH i2c: 01 07 00 D5 19 00 00 00 00 00 FF 0F 03 [17:05:49]RasterBufferAndPrint [17:05:49]line Счет N : (1)412575 [17:05:49]line ИНН: 02508201610067 [17:05:49]line Контрольно-Кассовый Чек [17:05:49]line ПРОДАЖА [17:05:49]line ТРК (МРК, ГНК) : 23 [17:05:49]line Товар: 2710124500 [17:05:49]line Аи-95-К-5 [17:05:49]line 9.740 * 71.90 [17:05:49]line = 700.31 [17:05:49]line НДС 12% НСП 1% [17:05:49]line > о реализуемом товаре [17:05:49]line ОКРУГЛЕНИЕ: -0.31 [17:05:49]line ИТОГО: 700.00 [17:05:49]line Внесено: 700.00 [17:05:49]line СДАЧА: 0.00 [17:05:49]line НСП 1% : 6.20 [17:05:49]line НДС 12% : 74.37 [17:05:49]line Наличными: 700.00 [17:05:49]line Безнал.: 0.00 [17:05:49]line Место: АЗС № 92 "Партнер Нефть" [17:05:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:05:49]line СНО: Общий режим [17:05:49]line Чек 217 20.02.2025 17:05 [17:05:49]line Смена: 648 ФФД: 1.0 [17:05:49]line ЗНМ: 0300000118 [17:05:49]line РНМ: 0000000000091857 [17:05:49]line Версия ККМ: 001 [17:05:49]line ФМ: 0000000000871826 [17:05:49]line ФД: 187416 [17:05:49]line ФПД: 136739572046518 [17:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T170549&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187416&fm=136739572046518&tin=02508201610067®Number=0000000000091857&sum=70000 [17:05:50]OFD Sender: Processing packet 187416 [packets to send 49, broken 48] [17:05:50]ProducePacketName [17:05:50]name=ofd_packets/00187416 [17:05:50]OFD Sender: To server: pG, [17:05:50]CommunicateWithHost lk.salyk.kg:30040 [17:05:50]ConnectInit lk.salyk.kg [17:05:50]written 0, free lines is 4095 [17:05:50]Connected sock=10 [17:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 39 07 01 23 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 D9 00 00 00 F4 03 04 00 ED 60 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DC 02 00 35 04 06 00 7C 5D 29 9E 5A B6 CF B2 C4 9B EF 7C 05 66 [17:05:50]Write to MH i2c: 01 00 00 00 1A 1A [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: 01 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: 01 07 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: 01 07 00 00 1A 00 00 00 00 00 E0 0C 0D [17:05:50]RasterBufferAndPrint [17:05:50]line [17:05:50]line [17:05:50]line [17:05:50]line [17:05:50]line [17:05:50]written 0, free lines is 3302 [17:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 53 31 47 00 8B C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DC 02 00 F4 03 04 00 3E 07 B7 67 B6 04 01 00 00 C8 42 01 25 86 1F E7 08 [17:05:50]CommunicateWithHost err = 0 [17:05:50]CheckOFDResponse [17:05:50]1017 (14) - 77093643461234 [17:05:50]1041 (16) - 0000000000871826 [17:05:50]1040 (4) - 187416 [17:05:50]1012 (4) - 20.02.2025 10:43 [17:05:50]1206 (1) - 0 [17:05:50]OFD Sender: Remove packet 187416 [17:05:50]ProducePacketName [17:05:50]name=ofd_packets/00187416 [17:05:50]NVStorageDeleteData [17:05:50]MH_Cut [17:05:50]Write to MH i2c: D1 01 00 07 1A 01 F3 [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: D1 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: D1 01 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: D1 01 00 07 1A 00 F2 [17:05:50]Write to MH i2c: 01 00 00 08 1A 22 [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:51]OFD Sender: No OFD packet to send [17:05:51]*** Cut start [17:05:51]*** Partial cut [17:05:51]*** CUTSNS_PIN = 1 [17:05:51]*** CUTSNS_PIN = 0 [17:05:51]*** Brake cut motor [17:05:51]Read from MH i2c: 01 [17:05:51]MH_I2C_Read... [17:05:51]*** Stop cut motor [17:05:51]*** Cut end [17:05:51]Read from MH i2c: 01 07 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: 01 07 00 08 1A 00 00 00 00 00 FF 0F 37 [17:05:51]process_action close_receipt done [17:05:51]requested_data is exist [17:05:51]produce_requested_data [17:05:51]requested_item fm.sn is exist - process it [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 11 00 00 [17:05:51]Write to MH i2c: E2 08 00 09 1A 80 11 00 00 00 00 00 00 9D [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 09 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [17:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:05:52]wFMCommunicate OK [17:05:52]requested_item fd.num is exist - process it [17:05:52]SAM_PROTO_GetFieldsCounters [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 13 00 00 [17:05:52]Write to MH i2c: E2 08 00 0A 1A 80 13 00 00 00 00 00 00 A0 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 62 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 62 00 0A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 18 DC 02 00 0E 04 04 00 88 02 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 D1 [17:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 18 DC 02 00 0E 04 04 00 88 02 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 [17:05:52]wFMCommunicate OK [17:05:52]SAM_PROTO_GetFieldsCounters done [17:05:52]requested_item shift.num is exist - process it [17:05:52]requested_item shift.opened is exist - process it [17:05:52]req_shift_opened [17:05:52]FM_GetShiftState [17:05:52]SAM_PROTO_GetShiftState [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 13 01 00 [17:05:52]Write to MH i2c: E2 08 00 0B 1A 80 13 01 00 00 00 00 00 A2 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0E 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0E 00 0B 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F4 [17:05:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:05:52]wFMCommunicate OK [17:05:52]SAM_PROTO_GetShiftState done [17:05:52]FM_GetShiftState done [17:05:52]req_shift_opened done [17:05:52]requested_item shift.open_date is exist - process it [17:05:52]req_shift_open_date [17:05:52]req_shift_open_date done [17:05:52]produce_requested_data done [17:05:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187416,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:05:52]process_action_free close_receipt [17:05:52]json_value_free [17:05:52]json_value_free done [17:05:52]process_json_proto returns [17:05:52]Send response to host [17:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187416,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:05:52]free response buf [17:05:52]execute_script done [17:05:52]execute_script returns [17:05:52]free content buf [17:05:52]Sock 7.Close socket [17:05:52]Sock 7.Thread stoped [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:13]accept exits with 9 [17:07:13]New connection [17:07:13]New thread 3067276644 created [17:07:13]Thread 3067420004 joined [17:07:13]Waiting for new connection... [17:07:13] Sock 9.Parse request [17:07:13]Sock 9.Check first char [17:07:13]Sock 9.First char is OK [17:07:13]request: POST /json_proto HTTP/1.0 [17:07:13]Method: POST [17:07:13]URL: /json_proto [17:07:13]Method is POST - this is cgi request [17:07:13]url: /json_proto [17:07:13]query_string will be loaded in cgi processing [17:07:13]execute_cgi json_proto POST (null) [17:07:13]execute_cgi path=json_proto method=POST [17:07:13]POST find Content-Length [17:07:13]Host: 172.17.46.131:8080 [17:07:13]Content-Length: 678 [17:07:13]Content-Type: application/json [17:07:13] [17:07:13]POST finish read [17:07:13]Found Content-Length = 678 [17:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:13]execute_script... [17:07:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:13]POST & json_proto [17:07:13]process_json_proto [17:07:13]json parsed OK: [17:07:13]protocol is kg_v1.0 [17:07:13]action value=close_receipt [17:07:13]process_action close_receipt [17:07:13]cmd_close_receipt [17:07:13]MH_GetDate [17:07:13]Write to MH i2c: F0 00 00 0C 1A 15 [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: F0 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: F0 09 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: F0 09 00 0C 1A 00 43 61 B7 67 7E 41 4F 65 53 [17:07:13]GetLastDocTimeStamp 1740071149 [17:07:13]current date 1740071235 [17:07:13]FM_GetShiftState [17:07:13]SAM_PROTO_GetShiftState [17:07:13]wFMCommunicate request_size=4 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 13 01 00 [17:07:13]Write to MH i2c: E2 08 00 0D 1A 80 13 01 00 00 00 00 00 A4 [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:13]Read from MH i2c: E2 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 0E 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 0E 00 0D 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F6 [17:07:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:07:13]wFMCommunicate OK [17:07:13]SAM_PROTO_GetShiftState done [17:07:13]FM_GetShiftState done [17:07:13]opened in 1740011697 [17:07:13]opened+sec_in_day 1740098097 [17:07:13]quantity*price = 200013 [17:07:13]sum+1 = 200014 [17:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 218 20.02.2025 17:07 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187417 ФПД: 26012269235050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T170715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187417&fm=26012269235050&tin=02508201610067®Number=0000000000091857&sum=200000 [17:07:15]StoreToDocumentArchive [17:07:15]shift 648 fd 187417 [17:07:15]save to /storage/0648/doc_00187417 [17:07:15]save last doc name /storage/0648/doc_00187417 to /storage/kkm_last_doc_name [17:07:15]save OK [17:07:15]Clear old archive folders... [17:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:15]tlvbuf is 00E02370 [17:07:15]SAM_PROTO_ClearQueue [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 09 00 00 [17:07:15]Write to MH i2c: E2 08 00 1A 1A 80 09 00 00 00 00 00 00 A6 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 1A 1A 00 90 00 A8 [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]SAM_PROTO_ClearQueue done [17:07:15]KKMCreateOFDPacket [17:07:15]OFDProtocolAddRootSTLVToBuf [17:07:15]FM_MakeSignedData [17:07:15]FM_MakeSignedData [17:07:15]SAM_PROTO_SignData [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 01 02 [17:07:15]Write to MH i2c: E2 08 00 1B 1A 80 0D 01 02 00 00 00 00 AE [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 1B 1A 00 90 00 A9 [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]wFMCommunicate request_size=255 [17:07:15]MH_SAM_APDU [17:07: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 43 61 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DC 02 00 35 04 06 00 17 A8 74 11 [17:07:15]Write to MH i2c: E2 02 01 1C 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 43 61 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DC 02 00 35 04 06 00 17 A8 74 11 00 00 29 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 1C 1A 00 90 00 AA [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]wFMCommunicate request_size=7 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 02 02 02 4B 6A [17:07:15]Write to MH i2c: E2 0A 00 1D 1A 80 0D 02 02 02 00 4B 6A 00 00 6A [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 1D 1A 00 90 00 AB [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 03 02 [17:07:15]Write to MH i2c: E2 08 00 1E 1A 80 0D 03 02 00 00 00 00 B3 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 0B 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 0B 00 1E 1A 00 F3 1F EB 8A E4 26 D7 37 90 00 53 [17:07:15]RAPDU: F3 1F EB 8A E4 26 D7 37 90 00 [17:07:15]wFMCommunicate OK [17:07:15]SAM_PROTO_SignData done [17:07:15]FM_MakeSignedData done [17:07:15]CreateOFDProtocolMessage [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 11 00 00 [17:07:15]Write to MH i2c: E2 08 00 1F 1A 80 11 00 00 00 00 00 00 B3 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 17 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 17 00 1F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [17:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:07:15]wFMCommunicate OK [17:07:15]CreateOFDProtocolMessage done [17:07:15]OFDSenderStorePacket 187417 [17:07:15]StoreOFDPacket docnum=187417 [17:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A2 77 04 01 75 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 43 61 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DC 02 00 35 04 06 00 17 A8 74 11 4B 6A F3 1F EB 8A E4 26 D7 37 [17:07:15]CheckFolder [17:07:15]dirname=/storage/ofd_packets [17:07:15]CheckFolder done [17:07:15]ProducePacketName [17:07:15]name=ofd_packets/00187417 [17:07:15]NVStorageSaveData ofd_packets/00187417 [17:07:15]File name is /storage/ofd_packets/00187417 [17:07:15]Write 298 bytes [17:07:15]NVStorageSaveData done [17:07:15]OFDSenderStorePacket done [17:07:15]KKMCreateOFDPacket done [17:07:15]NVStorageSaveData kkm_last_timestamp [17:07:15]File name is /storage/kkm_last_timestamp [17:07:15]Write 4 bytes [17:07:15]NVStorageSaveData done [17:07:15]ExternCall_PrintAddStr [17:07:15]wPrintStart [17:07:15]Write to MH i2c: 01 00 00 20 1A 3A [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: 01 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: 01 07 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: 01 07 00 20 1A 00 00 00 00 00 FF 0F 4F [17:07:15]RasterBufferAndPrint [17:07:15]line Счет N : (1)412576 [17:07:15]line ИНН: 02508201610067 [17:07:15]line Контрольно-Кассовый Чек [17:07:15]line ПРОДАЖА [17:07:15]line ТРК (МРК, ГНК) : 5 [17:07:15]line Товар: 2710194210 [17:07:15]line ДТ-К-5 [17:07:15]line 27.550 * 72.60 [17:07:15]line = 2000.13 [17:07:15]line НДС 12% НСП 1% [17:07:15]line > о реализуемом товаре [17:07:15]line ОКРУГЛЕНИЕ: -0.13 [17:07:15]line ИТОГО: 2000.00 [17:07:15]line Внесено: 2000.00 [17:07:15]line СДАЧА: 0.00 [17:07:15]line НСП 1% : 17.70 [17:07:15]line НДС 12% : 212.40 [17:07:15]line Наличными: 2000.00 [17:07:15]line Безнал.: 0.00 [17:07:15]line Место: АЗС № 92 "Партнер Нефть" [17:07:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:07:15]line СНО: Общий режим [17:07:15]line Чек 218 20.02.2025 17:07 [17:07:15]line Смена: 648 ФФД: 1.0 [17:07:15]line ЗНМ: 0300000118 [17:07:15]line РНМ: 0000000000091857 [17:07:15]line Версия ККМ: 001 [17:07:15]line ФМ: 0000000000871826 [17:07:15]line ФД: 187417 [17:07:15]line ФПД: 26012269235050 [17:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T170715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187417&fm=26012269235050&tin=02508201610067®Number=0000000000091857&sum=200000 [17:07:15]OFD Sender: Processing packet 187417 [packets to send 49, broken 48] [17:07:15]ProducePacketName [17:07:15]name=ofd_packets/00187417 [17:07:15]OFD Sender: To server: pG, [17:07:15]CommunicateWithHost lk.salyk.kg:30040 [17:07:15]ConnectInit lk.salyk.kg [17:07:15]written 0, free lines is 4095 [17:07:16]Connected sock=11 [17:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A2 77 04 01 75 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 43 61 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DC 02 00 35 04 06 00 17 A8 74 11 4B 6A F3 1F EB 8A E4 26 D7 37 [17:07:16]Write to MH i2c: 01 00 00 4B 1A 65 [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 07 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 07 00 4B 1A 00 00 00 00 00 E4 0C 5C [17:07:16]RasterBufferAndPrint [17:07:16]line [17:07:16]line [17:07:16]line [17:07:16]line [17:07:16]line [17:07:16]written 0, free lines is 3306 [17:07:16]MH_Cut [17:07:16]Write to MH i2c: D1 01 00 52 1A 01 3E [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: D1 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: D1 01 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: D1 01 00 52 1A 00 3D [17:07:16]Write to MH i2c: 01 00 00 53 1A 6D [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CE 65 47 00 7F 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 31 38 32 36 10 04 04 00 19 DC 02 00 F4 03 04 00 93 07 B7 67 B6 04 01 00 00 FB FC 9B 33 A6 DE 78 4C [17:07:16]CommunicateWithHost err = 0 [17:07:16]CheckOFDResponse [17:07:16]1017 (14) - 77093643461234 [17:07:16]1041 (16) - 0000000000871826 [17:07:16]1040 (4) - 187417 [17:07:16]1012 (4) - 20.02.2025 10:44 [17:07:16]1206 (1) - 0 [17:07:16]OFD Sender: Remove packet 187417 [17:07:16]ProducePacketName [17:07:16]name=ofd_packets/00187417 [17:07:16]NVStorageDeleteData [17:07:17]OFD Sender: No OFD packet to send [17:07:17]*** Cut start [17:07:17]*** Partial cut [17:07:17]*** CUTSNS_PIN = 1 [17:07:17]*** CUTSNS_PIN = 0 [17:07:17]*** Brake cut motor [17:07:17]Read from MH i2c: 01 [17:07:17]MH_I2C_Read... [17:07:17]*** Stop cut motor [17:07:17]*** Cut end [17:07:17]Read from MH i2c: 01 07 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 FF 0F 82 [17:07:17]process_action close_receipt done [17:07:17]requested_data is exist [17:07:17]produce_requested_data [17:07:17]requested_item fm.sn is exist - process it [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 11 00 00 [17:07:17]Write to MH i2c: E2 08 00 54 1A 80 11 00 00 00 00 00 00 E8 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 17 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 17 00 54 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [17:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:07:17]wFMCommunicate OK [17:07:17]requested_item fd.num is exist - process it [17:07:17]SAM_PROTO_GetFieldsCounters [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 13 00 00 [17:07:17]Write to MH i2c: E2 08 00 55 1A 80 13 00 00 00 00 00 00 EB [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 62 00 [17:07:18]MH_I2C_Read... [17:07:18]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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 19 DC 02 00 0E 04 04 00 88 02 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 20 [17:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 19 DC 02 00 0E 04 04 00 88 02 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 [17:07:18]wFMCommunicate OK [17:07:18]SAM_PROTO_GetFieldsCounters done [17:07:18]requested_item shift.num is exist - process it [17:07:18]requested_item shift.opened is exist - process it [17:07:18]req_shift_opened [17:07:18]FM_GetShiftState [17:07:18]SAM_PROTO_GetShiftState [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 13 01 00 [17:07:18]Write to MH i2c: E2 08 00 56 1A 80 13 01 00 00 00 00 00 ED [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0E 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0E 00 56 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3F [17:07:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:07:18]wFMCommunicate OK [17:07:18]SAM_PROTO_GetShiftState done [17:07:18]FM_GetShiftState done [17:07:18]req_shift_opened done [17:07:18]requested_item shift.open_date is exist - process it [17:07:18]req_shift_open_date [17:07:18]req_shift_open_date done [17:07:18]produce_requested_data done [17:07:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187417,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:07:18]process_action_free close_receipt [17:07:18]json_value_free [17:07:18]json_value_free done [17:07:18]process_json_proto returns [17:07:18]Send response to host [17:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187417,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:07:18]free response buf [17:07:18]execute_script done [17:07:18]execute_script returns [17:07:18]free content buf [17:07:18]Sock 9.Close socket [17:07:18]Sock 9.Thread stoped [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:21]accept exits with 7 [17:08:21]New connection [17:08:21]New thread 3067420004 created [17:08:21]Thread 3067276644 joined [17:08:21]Waiting for new connection... [17:08:21] Sock 7.Parse request [17:08:21]Sock 7.Check first char [17:08:21]Sock 7.First char is OK [17:08:21]request: POST /json_proto HTTP/1.0 [17:08:21]Method: POST [17:08:21]URL: /json_proto [17:08:21]Method is POST - this is cgi request [17:08:21]url: /json_proto [17:08:21]query_string will be loaded in cgi processing [17:08:21]execute_cgi json_proto POST (null) [17:08:21]execute_cgi path=json_proto method=POST [17:08:21]POST find Content-Length [17:08:21]Host: 172.17.46.131:8080 [17:08:21]Content-Length: 677 [17:08:21]Content-Type: application/json [17:08:21] [17:08:21]POST finish read [17:08:21]Found Content-Length = 677 [17:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [17:08:21]execute_script... [17:08: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)412577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [17:08:21]POST & json_proto [17:08:21]process_json_proto [17:08:21]json parsed OK: [17:08:21]protocol is kg_v1.0 [17:08:21]action value=close_receipt [17:08:21]process_action close_receipt [17:08:21]cmd_close_receipt [17:08:21]MH_GetDate [17:08:21]Write to MH i2c: F0 00 00 57 1A 60 [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: F0 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: F0 09 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: F0 09 00 57 1A 00 87 61 B7 67 7E 41 4F 65 E2 [17:08:21]GetLastDocTimeStamp 1740071235 [17:08:21]current date 1740071303 [17:08:21]FM_GetShiftState [17:08:21]SAM_PROTO_GetShiftState [17:08:21]wFMCommunicate request_size=4 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 13 01 00 [17:08:21]Write to MH i2c: E2 08 00 58 1A 80 13 01 00 00 00 00 00 EF [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 0E 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 0E 00 58 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 41 [17:08:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:08:21]wFMCommunicate OK [17:08:21]SAM_PROTO_GetShiftState done [17:08:21]FM_GetShiftState done [17:08:21]opened in 1740011697 [17:08:21]opened+sec_in_day 1740098097 [17:08:21]quantity*price = 60036 [17:08:21]sum+1 = 60038 [17:08:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 219 20.02.2025 17:08 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187418 ФПД: 182896166536018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T170823&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187418&fm=182896166536018&tin=02508201610067®Number=0000000000091857&sum=60000 [17:08:22]StoreToDocumentArchive [17:08:22]shift 648 fd 187418 [17:08:22]save to /storage/0648/doc_00187418 [17:08:22]save last doc name /storage/0648/doc_00187418 to /storage/kkm_last_doc_name [17:08:22]save OK [17:08:22]Clear old archive folders... [17:08:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:22]tlvbuf is 00E1E540 [17:08:22]SAM_PROTO_ClearQueue [17:08:22]wFMCommunicate request_size=4 [17:08:22]MH_SAM_APDU [17:08:22]CAPDU: 80 09 00 00 [17:08:22]Write to MH i2c: E2 08 00 65 1A 80 09 00 00 00 00 00 00 F1 [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:22]Read from MH i2c: E2 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 03 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 03 00 65 1A 00 90 00 F3 [17:08:22]RAPDU: 90 00 [17:08:22]wFMCommunicate OK [17:08:22]SAM_PROTO_ClearQueue done [17:08:22]KKMCreateOFDPacket [17:08:22]OFDProtocolAddRootSTLVToBuf [17:08:22]FM_MakeSignedData [17:08:22]FM_MakeSignedData [17:08:22]SAM_PROTO_SignData [17:08:22]wFMCommunicate request_size=4 [17:08:22]MH_SAM_APDU [17:08:22]CAPDU: 80 0D 01 02 [17:08:22]Write to MH i2c: E2 08 00 66 1A 80 0D 01 02 00 00 00 00 F9 [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:22]Read from MH i2c: E2 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 03 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 03 00 66 1A 00 90 00 F4 [17:08:22]RAPDU: 90 00 [17:08:22]wFMCommunicate OK [17:08:22]wFMCommunicate request_size=255 [17:08:22]MH_SAM_APDU [17:08:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 DB 00 00 00 F4 03 04 00 87 61 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DC 02 00 35 04 06 00 A6 [17:08:22]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 DB 00 00 00 F4 03 04 00 87 61 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DC 02 00 35 04 06 00 A6 00 00 1D [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 67 1A 00 90 00 F5 [17:08:23]RAPDU: 90 00 [17:08:23]wFMCommunicate OK [17:08:23]wFMCommunicate request_size=10 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 0D 02 02 05 57 D5 09 83 52 [17:08:23]Write to MH i2c: E2 0D 00 68 1A 80 0D 02 02 05 00 57 D5 09 83 52 00 00 10 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 68 1A 00 90 00 F6 [17:08:23]RAPDU: 90 00 [17:08:23]wFMCommunicate OK [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 0D 03 02 [17:08:23]Write to MH i2c: E2 08 00 69 1A 80 0D 03 02 00 00 00 00 FE [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 0B 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 0B 00 69 1A 00 36 71 53 E6 B6 2C FD 1D 90 00 DB [17:08:23]RAPDU: 36 71 53 E6 B6 2C FD 1D 90 00 [17:08:23]wFMCommunicate OK [17:08:23]SAM_PROTO_SignData done [17:08:23]FM_MakeSignedData done [17:08:23]CreateOFDProtocolMessage [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 11 00 00 [17:08:23]Write to MH i2c: E2 08 00 6A 1A 80 11 00 00 00 00 00 00 FE [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 17 00 [17:08:23]MH_I2C_Read... [17:08:23]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 31 38 32 36 90 00 51 [17:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:08:23]wFMCommunicate OK [17:08:23]CreateOFDProtocolMessage done [17:08:23]OFDSenderStorePacket 187418 [17:08:23]StoreOFDPacket docnum=187418 [17:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 88 6B 07 01 9E 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 DB 00 00 00 F4 03 04 00 87 61 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DC 02 00 35 04 06 00 A6 57 D5 09 83 52 36 71 53 E6 B6 2C FD 1D [17:08:23]CheckFolder [17:08:23]dirname=/storage/ofd_packets [17:08:23]CheckFolder done [17:08:23]ProducePacketName [17:08:23]name=ofd_packets/00187418 [17:08:23]NVStorageSaveData ofd_packets/00187418 [17:08:23]File name is /storage/ofd_packets/00187418 [17:08:23]Write 301 bytes [17:08:23]NVStorageSaveData done [17:08:23]OFDSenderStorePacket done [17:08:23]KKMCreateOFDPacket done [17:08:23]NVStorageSaveData kkm_last_timestamp [17:08:23]File name is /storage/kkm_last_timestamp [17:08:23]Write 4 bytes [17:08:23]NVStorageSaveData done [17:08:23]ExternCall_PrintAddStr [17:08:23]wPrintStart [17:08:23]Write to MH i2c: 01 00 00 6B 1A 85 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: 01 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: 01 07 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: 01 07 00 6B 1A 00 00 00 00 00 FF 0F 9A [17:08:23]RasterBufferAndPrint [17:08:23]line Счет N : (1)412577 [17:08:23]line ИНН: 02508201610067 [17:08:23]line Контрольно-Кассовый Чек [17:08:23]line ПРОДАЖА [17:08:23]line ТРК (МРК, ГНК) : 13 [17:08:23]line Товар: 2710124500 [17:08:23]line Аи-95-К-5 [17:08:23]line 8.350 * 71.90 [17:08:23]line = 600.37 [17:08:23]line НДС 12% НСП 1% [17:08:23]line > о реализуемом товаре [17:08:23]line ОКРУГЛЕНИЕ: -0.37 [17:08:23]line ИТОГО: 600.00 [17:08:23]line Внесено: 600.00 [17:08:23]line СДАЧА: 0.00 [17:08:23]line НСП 1% : 5.31 [17:08:23]line НДС 12% : 63.76 [17:08:23]line Наличными: 600.00 [17:08:23]line Безнал.: 0.00 [17:08:23]line Место: АЗС № 92 "Партнер Нефть" [17:08:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:08:23]line СНО: Общий режим [17:08:23]line Чек 219 20.02.2025 17:08 [17:08:23]line Смена: 648 ФФД: 1.0 [17:08:23]line ЗНМ: 0300000118 [17:08:23]line РНМ: 0000000000091857 [17:08:23]line Версия ККМ: 001 [17:08:23]line ФМ: 0000000000871826 [17:08:23]line ФД: 187418 [17:08:23]line ФПД: 182896166536018 [17:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T170823&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187418&fm=182896166536018&tin=02508201610067®Number=0000000000091857&sum=60000 [17:08:23]written 0, free lines is 4095 [17:08:23]OFD Sender: Processing packet 187418 [packets to send 49, broken 48] [17:08:23]ProducePacketName [17:08:23]name=ofd_packets/00187418 [17:08:23]OFD Sender: To server: pG, [17:08:23]CommunicateWithHost lk.salyk.kg:30040 [17:08:23]ConnectInit lk.salyk.kg [17:08:23]Connected sock=10 [17:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 88 6B 07 01 9E 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 DB 00 00 00 F4 03 04 00 87 61 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DC 02 00 35 04 06 00 A6 57 D5 09 83 52 36 71 53 E6 B6 2C FD 1D [17:08:24]Write to MH i2c: 01 00 00 96 1A B0 [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: 01 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: 01 07 00 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: 01 07 00 96 1A 00 00 00 00 00 E5 0C A8 [17:08:24]RasterBufferAndPrint [17:08:24]line [17:08:24]line [17:08:24]line [17:08:24]line [17:08:24]line [17:08:24]written 0, free lines is 3307 [17:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E7 A4 47 00 0E E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DC 02 00 F4 03 04 00 D7 07 B7 67 B6 04 01 00 00 C7 84 55 D2 D7 80 F0 D2 [17:08:24]CommunicateWithHost err = 0 [17:08:24]CheckOFDResponse [17:08:24]1017 (14) - 77093643461234 [17:08:24]1041 (16) - 0000000000871826 [17:08:24]1040 (4) - 187418 [17:08:24]1012 (4) - 20.02.2025 10:45 [17:08:24]1206 (1) - 0 [17:08:24]OFD Sender: Remove packet 187418 [17:08:24]ProducePacketName [17:08:24]name=ofd_packets/00187418 [17:08:24]NVStorageDeleteData [17:08:24]MH_Cut [17:08:24]Write to MH i2c: D1 01 00 9D 1A 01 89 [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: D1 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: D1 01 00 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: D1 01 00 9D 1A 00 88 [17:08:24]Write to MH i2c: 01 00 00 9E 1A B8 [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]OFD Sender: No OFD packet to send [17:08:24]*** Cut start [17:08:24]*** Partial cut [17:08:24]*** CUTSNS_PIN = 1 [17:08:24]*** CUTSNS_PIN = 0 [17:08:25]*** Brake cut motor [17:08:25]Read from MH i2c: 01 [17:08:25]MH_I2C_Read... [17:08:25]*** Stop cut motor [17:08:25]*** Cut end [17:08:25]Read from MH i2c: 01 07 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: 01 07 00 9E 1A 00 00 00 00 00 FF 0F CD [17:08:25]process_action close_receipt done [17:08:25]requested_data is exist [17:08:25]produce_requested_data [17:08:25]requested_item fm.sn is exist - process it [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 11 00 00 [17:08:25]Write to MH i2c: E2 08 00 9F 1A 80 11 00 00 00 00 00 00 33 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 17 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 17 00 9F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [17:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:08:25]wFMCommunicate OK [17:08:25]requested_item fd.num is exist - process it [17:08:25]SAM_PROTO_GetFieldsCounters [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 13 00 00 [17:08:25]Write to MH i2c: E2 08 00 A0 1A 80 13 00 00 00 00 00 00 36 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 62 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 62 00 A0 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1A DC 02 00 0E 04 04 00 88 02 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 6F [17:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1A DC 02 00 0E 04 04 00 88 02 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 [17:08:25]wFMCommunicate OK [17:08:25]SAM_PROTO_GetFieldsCounters done [17:08:25]requested_item shift.num is exist - process it [17:08:25]requested_item shift.opened is exist - process it [17:08:25]req_shift_opened [17:08:25]FM_GetShiftState [17:08:25]SAM_PROTO_GetShiftState [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 13 01 00 [17:08:25]Write to MH i2c: E2 08 00 A1 1A 80 13 01 00 00 00 00 00 38 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 0E 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 0E 00 A1 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8A [17:08:25]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:08:25]wFMCommunicate OK [17:08:25]SAM_PROTO_GetShiftState done [17:08:25]FM_GetShiftState done [17:08:25]req_shift_opened done [17:08:25]requested_item shift.open_date is exist - process it [17:08:25]req_shift_open_date [17:08:25]req_shift_open_date done [17:08:25]produce_requested_data done [17:08:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187418,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:08:25]process_action_free close_receipt [17:08:25]json_value_free [17:08:25]json_value_free done [17:08:25]process_json_proto returns [17:08:25]Send response to host [17:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187418,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:08:25]free response buf [17:08:25]execute_script done [17:08:25]execute_script returns [17:08:25]free content buf [17:08:25]Sock 7.Close socket [17:08:25]Sock 7.Thread stoped [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:05]accept exits with 9 [17:13:05]New connection [17:13:05]New thread 3067276644 created [17:13:05]Thread 3067420004 joined [17:13:05]Waiting for new connection... [17:13:05] Sock 9.Parse request [17:13:05]Sock 9.Check first char [17:13:05]Sock 9.First char is OK [17:13:05]request: POST /json_proto HTTP/1.0 [17:13:05]Method: POST [17:13:05]URL: /json_proto [17:13:05]Method is POST - this is cgi request [17:13:05]url: /json_proto [17:13:05]query_string will be loaded in cgi processing [17:13:05]execute_cgi json_proto POST (null) [17:13:05]execute_cgi path=json_proto method=POST [17:13:05]POST find Content-Length [17:13:05]Host: 172.17.46.131:8080 [17:13:05]Content-Length: 642 [17:13:05]Content-Type: application/json [17:13:05] [17:13:05]POST finish read [17:13:05]Found Content-Length = 642 [17:13:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 20.000, "sum" : 1284.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1284.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:05]execute_script... [17:13:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 20.000, "sum" : 1284.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1284.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:05]POST & json_proto [17:13:05]process_json_proto [17:13:05]json parsed OK: [17:13:05]protocol is kg_v1.0 [17:13:05]action value=close_receipt [17:13:05]process_action close_receipt [17:13:05]cmd_close_receipt [17:13:05]MH_GetDate [17:13:05]Write to MH i2c: F0 00 00 A2 1A AB [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: F0 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: F0 09 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: F0 09 00 A2 1A 00 A2 62 B7 67 7E 41 4F 65 49 [17:13:05]GetLastDocTimeStamp 1740071303 [17:13:05]current date 1740071586 [17:13:05]FM_GetShiftState [17:13:05]SAM_PROTO_GetShiftState [17:13:05]wFMCommunicate request_size=4 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 13 01 00 [17:13:05]Write to MH i2c: E2 08 00 A3 1A 80 13 01 00 00 00 00 00 3A [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 0E 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 0E 00 A3 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8C [17:13:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:13:05]wFMCommunicate OK [17:13:05]SAM_PROTO_GetShiftState done [17:13:05]FM_GetShiftState done [17:13:05]opened in 1740011697 [17:13:05]opened+sec_in_day 1740098097 [17:13:05]quantity*price = 128400 [17:13:05]sum+1 = 128401 [17:13:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1284.00 НСП 1% : 11.36 НДС 12% : 136.35 Наличными: 1284.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 220 20.02.2025 17:13 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187419 ФПД: 245140150429236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T171306&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187419&fm=245140150429236&tin=02508201610067®Number=0000000000091857&sum=128400 [17:13:06]StoreToDocumentArchive [17:13:06]shift 648 fd 187419 [17:13:06]save to /storage/0648/doc_00187419 [17:13:06]save last doc name /storage/0648/doc_00187419 to /storage/kkm_last_doc_name [17:13:06]save OK [17:13:06]Clear old archive folders... [17:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:06]tlvbuf is 00E8E550 [17:13:06]SAM_PROTO_ClearQueue [17:13:06]wFMCommunicate request_size=4 [17:13:06]MH_SAM_APDU [17:13:06]CAPDU: 80 09 00 00 [17:13:06]Write to MH i2c: E2 08 00 B0 1A 80 09 00 00 00 00 00 00 3C [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 03 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 03 00 B0 1A 00 90 00 3E [17:13:06]RAPDU: 90 00 [17:13:06]wFMCommunicate OK [17:13:06]SAM_PROTO_ClearQueue done [17:13:06]KKMCreateOFDPacket [17:13:06]OFDProtocolAddRootSTLVToBuf [17:13:06]FM_MakeSignedData [17:13:06]FM_MakeSignedData [17:13:06]SAM_PROTO_SignData [17:13:06]wFMCommunicate request_size=4 [17:13:06]MH_SAM_APDU [17:13:06]CAPDU: 80 0D 01 02 [17:13:06]Write to MH i2c: E2 08 00 B1 1A 80 0D 01 02 00 00 00 00 44 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 03 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 03 00 B1 1A 00 90 00 3F [17:13:06]RAPDU: 90 00 [17:13:06]wFMCommunicate OK [17:13:06]wFMCommunicate request_size=255 [17:13:06]MH_SAM_APDU [17:13: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 90 F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 35 00 00 00 00 07 04 06 00 90 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 A2 62 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DC 02 00 35 04 06 00 DE [17:13:06]Write to MH i2c: E2 02 01 B2 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 90 F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 35 00 00 00 00 07 04 06 00 90 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 A2 62 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DC 02 00 35 04 06 00 DE 00 00 C8 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 03 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 03 00 B2 1A 00 90 00 40 [17:13:06]RAPDU: 90 00 [17:13:06]wFMCommunicate OK [17:13:06]wFMCommunicate request_size=10 [17:13:06]MH_SAM_APDU [17:13:06]CAPDU: 80 0D 02 02 05 F4 23 96 26 34 [17:13:06]Write to MH i2c: E2 0D 00 B3 1A 80 0D 02 02 05 00 F4 23 96 26 34 00 00 58 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 03 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 03 00 B3 1A 00 90 00 41 [17:13:06]RAPDU: 90 00 [17:13:06]wFMCommunicate OK [17:13:06]wFMCommunicate request_size=4 [17:13:06]MH_SAM_APDU [17:13:06]CAPDU: 80 0D 03 02 [17:13:06]Write to MH i2c: E2 08 00 B4 1A 80 0D 03 02 00 00 00 00 49 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 0B 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 0B 00 B4 1A 00 A8 84 9E 2E 98 3A 95 F9 90 00 A2 [17:13:06]RAPDU: A8 84 9E 2E 98 3A 95 F9 90 00 [17:13:06]wFMCommunicate OK [17:13:06]SAM_PROTO_SignData done [17:13:06]FM_MakeSignedData done [17:13:06]CreateOFDProtocolMessage [17:13:06]wFMCommunicate request_size=4 [17:13:06]MH_SAM_APDU [17:13:06]CAPDU: 80 11 00 00 [17:13:06]Write to MH i2c: E2 08 00 B5 1A 80 11 00 00 00 00 00 00 49 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 17 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 17 00 B5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9C [17:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:13:06]wFMCommunicate OK [17:13:06]CreateOFDProtocolMessage done [17:13:06]OFDSenderStorePacket 187419 [17:13:06]StoreOFDPacket docnum=187419 [17:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC FF 07 01 23 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 90 F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 35 00 00 00 00 07 04 06 00 90 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 A2 62 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DC 02 00 35 04 06 00 DE F4 23 96 26 34 A8 84 9E 2E 98 3A 95 F9 [17:13:06]CheckFolder [17:13:06]dirname=/storage/ofd_packets [17:13:06]CheckFolder done [17:13:06]ProducePacketName [17:13:06]name=ofd_packets/00187419 [17:13:06]NVStorageSaveData ofd_packets/00187419 [17:13:06]File name is /storage/ofd_packets/00187419 [17:13:06]Write 301 bytes [17:13:06]NVStorageSaveData done [17:13:06]OFDSenderStorePacket done [17:13:06]KKMCreateOFDPacket done [17:13:06]NVStorageSaveData kkm_last_timestamp [17:13:06]File name is /storage/kkm_last_timestamp [17:13:06]Write 4 bytes [17:13:06]NVStorageSaveData done [17:13:06]ExternCall_PrintAddStr [17:13:06]wPrintStart [17:13:06]Write to MH i2c: 01 00 00 B6 1A D0 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 07 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 07 00 B6 1A 00 00 00 00 00 FF 0F E5 [17:13:06]RasterBufferAndPrint [17:13:06]line Счет N : (1)412578 [17:13:06]line ИНН: 02508201610067 [17:13:06]line Контрольно-Кассовый Чек [17:13:06]line ПРОДАЖА [17:13:06]line ТРК (МРК, ГНК) : 22 [17:13:06]line Товар: 2710124130 [17:13:06]line Аи-92-К-2 [17:13:06]line 20.000 * 64.20 [17:13:06]line = 1284.00 [17:13:06]line НДС 12% НСП 1% [17:13:06]line > о реализуемом товаре [17:13:06]line ИТОГО: 1284.00 [17:13:06]line НСП 1% : 11.36 [17:13:06]line НДС 12% : 136.35 [17:13:06]line Наличными: 1284.00 [17:13:06]line Безнал.: 0.00 [17:13:06]line Место: АЗС № 92 "Партнер Нефть" [17:13:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:13:06]line СНО: Общий режим [17:13:06]line Чек 220 20.02.2025 17:13 [17:13:06]line Смена: 648 ФФД: 1.0 [17:13:06]line ЗНМ: 0300000118 [17:13:06]line РНМ: 0000000000091857 [17:13:06]line Версия ККМ: 001 [17:13:06]line ФМ: 0000000000871826 [17:13:06]line ФД: 187419 [17:13:06]line ФПД: 245140150429236 [17:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T171306&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187419&fm=245140150429236&tin=02508201610067®Number=0000000000091857&sum=128400 [17:13:07]OFD Sender: Processing packet 187419 [packets to send 49, broken 48] [17:13:07]ProducePacketName [17:13:07]name=ofd_packets/00187419 [17:13:07]OFD Sender: To server: pG, [17:13:07]CommunicateWithHost lk.salyk.kg:30040 [17:13:07]ConnectInit lk.salyk.kg [17:13:07]written 0, free lines is 4095 [17:13:07]Write to MH i2c: 01 00 00 DE 1A F8 [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: 01 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: 01 07 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: 01 07 00 DE 1A 00 00 00 00 00 1B 0D 27 [17:13:07]RasterBufferAndPrint [17:13:07]line [17:13:07]line [17:13:07]line [17:13:07]line [17:13:07]line [17:13:07]written 0, free lines is 3361 [17:13:07]MH_Cut [17:13:07]Write to MH i2c: D1 01 00 E5 1A 01 D1 [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: D1 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: D1 01 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: D1 01 00 E5 1A 00 D0 [17:13:07]Write to MH i2c: 01 00 00 E6 1A 00 [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:08]*** Cut start [17:13:08]*** Partial cut [17:13:08]*** CUTSNS_PIN = 1 [17:13:08]*** CUTSNS_PIN = 0 [17:13:08]*** Brake cut motor [17:13:08]Read from MH i2c: 01 [17:13:08]MH_I2C_Read... [17:13:08]*** Stop cut motor [17:13:08]*** Cut end [17:13:08]Read from MH i2c: 01 07 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: 01 07 00 E6 1A 00 00 00 00 00 FF 0F 15 [17:13:08]process_action close_receipt done [17:13:08]requested_data is exist [17:13:08]produce_requested_data [17:13:08]requested_item fm.sn is exist - process it [17:13:08]wFMCommunicate request_size=4 [17:13:08]MH_SAM_APDU [17:13:08]CAPDU: 80 11 00 00 [17:13:08]Write to MH i2c: E2 08 00 E7 1A 80 11 00 00 00 00 00 00 7B [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:08]Read from MH i2c: E2 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 17 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 17 00 E7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [17:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:13:08]wFMCommunicate OK [17:13:08]requested_item fd.num is exist - process it [17:13:08]SAM_PROTO_GetFieldsCounters [17:13:08]wFMCommunicate request_size=4 [17:13:08]MH_SAM_APDU [17:13:08]CAPDU: 80 13 00 00 [17:13:08]Write to MH i2c: E2 08 00 E8 1A 80 13 00 00 00 00 00 00 7E [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:09]Read from MH i2c: E2 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 62 00 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 62 00 E8 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1B DC 02 00 0E 04 04 00 88 02 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 BB [17:13:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1B DC 02 00 0E 04 04 00 88 02 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 [17:13:09]wFMCommunicate OK [17:13:09]SAM_PROTO_GetFieldsCounters done [17:13:09]requested_item shift.num is exist - process it [17:13:09]requested_item shift.opened is exist - process it [17:13:09]req_shift_opened [17:13:09]FM_GetShiftState [17:13:09]SAM_PROTO_GetShiftState [17:13:09]wFMCommunicate request_size=4 [17:13:09]MH_SAM_APDU [17:13:09]CAPDU: 80 13 01 00 [17:13:09]Write to MH i2c: E2 08 00 E9 1A 80 13 01 00 00 00 00 00 80 [17:13:09]Write i2c OK [17:13:09]MH_I2C_Read... [17:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:09]Read from MH i2c: E2 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 0E 00 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 0E 00 E9 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D2 [17:13:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:13:09]wFMCommunicate OK [17:13:09]SAM_PROTO_GetShiftState done [17:13:09]FM_GetShiftState done [17:13:09]req_shift_opened done [17:13:09]requested_item shift.open_date is exist - process it [17:13:09]req_shift_open_date [17:13:09]req_shift_open_date done [17:13:09]produce_requested_data done [17:13:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187419,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:13:09]process_action_free close_receipt [17:13:09]json_value_free [17:13:09]json_value_free done [17:13:09]process_json_proto returns [17:13:09]Send response to host [17:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187419,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:13:09]free response buf [17:13:09]execute_script done [17:13:09]execute_script returns [17:13:09]free content buf [17:13:09]Sock 9.Close socket [17:13:09]Sock 9.Thread stoped [17:14:29]accept exits with 7 [17:14:29]New connection [17:14:29]New thread 3067420004 created [17:14:29]Thread 3067276644 joined [17:14:29]Waiting for new connection... [17:14:29] Sock 7.Parse request [17:14:29]Sock 7.Check first char [17:14:29]Sock 7.First char is OK [17:14:29]request: POST /json_proto HTTP/1.0 [17:14:29]Method: POST [17:14:29]URL: /json_proto [17:14:29]Method is POST - this is cgi request [17:14:29]url: /json_proto [17:14:29]query_string will be loaded in cgi processing [17:14:29]execute_cgi json_proto POST (null) [17:14:29]execute_cgi path=json_proto method=POST [17:14:29]POST find Content-Length [17:14:29]Host: 172.17.46.131:8080 [17:14:29]Content-Length: 673 [17:14:29]Content-Type: application/json [17:14:29] [17:14:29]POST finish read [17:14:29]Found Content-Length = 673 [17:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:14:29]execute_script... [17:14: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)412579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:14:29]POST & json_proto [17:14:29]process_json_proto [17:14:29]json parsed OK: [17:14:29]protocol is kg_v1.0 [17:14:29]action value=close_receipt [17:14:29]process_action close_receipt [17:14:29]cmd_close_receipt [17:14:29]MH_GetDate [17:14:29]Write to MH i2c: F0 00 00 EA 1A F3 [17:14:29]Write i2c OK [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: F0 [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: F0 09 00 [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: F0 09 00 EA 1A 00 F6 62 B7 67 7E 41 4F 65 E5 [17:14:29]GetLastDocTimeStamp 1740071586 [17:14:29]current date 1740071670 [17:14:29]FM_GetShiftState [17:14:29]SAM_PROTO_GetShiftState [17:14:29]wFMCommunicate request_size=4 [17:14:29]MH_SAM_APDU [17:14:29]CAPDU: 80 13 01 00 [17:14:29]Write to MH i2c: E2 08 00 EB 1A 80 13 01 00 00 00 00 00 82 [17:14:29]Write i2c OK [17:14:29]MH_I2C_Read... [17:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:29]Read from MH i2c: E2 [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: E2 0E 00 [17:14:29]MH_I2C_Read... [17:14:29]Read from MH i2c: E2 0E 00 EB 1A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D4 [17:14:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:14:29]wFMCommunicate OK [17:14:29]SAM_PROTO_GetShiftState done [17:14:29]FM_GetShiftState done [17:14:29]opened in 1740011697 [17:14:29]opened+sec_in_day 1740098097 [17:14:29]quantity*price = 50021 [17:14:29]sum+1 = 50022 [17:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 221 20.02.2025 17:14 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187420 ФПД: 172471605214917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T171431&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187420&fm=172471605214917&tin=02508201610067®Number=0000000000091857&sum=50000 [17:14:30]StoreToDocumentArchive [17:14:30]shift 648 fd 187420 [17:14:30]save to /storage/0648/doc_00187420 [17:14:30]save last doc name /storage/0648/doc_00187420 to /storage/kkm_last_doc_name [17:14:30]save OK [17:14:30]Clear old archive folders... [17:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:14:30]tlvbuf is 00E1E5F0 [17:14:30]SAM_PROTO_ClearQueue [17:14:30]wFMCommunicate request_size=4 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 09 00 00 [17:14:30]Write to MH i2c: E2 08 00 F8 1A 80 09 00 00 00 00 00 00 84 [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 F8 1A 00 90 00 86 [17:14:30]RAPDU: 90 00 [17:14:30]wFMCommunicate OK [17:14:30]SAM_PROTO_ClearQueue done [17:14:30]KKMCreateOFDPacket [17:14:30]OFDProtocolAddRootSTLVToBuf [17:14:30]FM_MakeSignedData [17:14:30]FM_MakeSignedData [17:14:30]SAM_PROTO_SignData [17:14:30]wFMCommunicate request_size=4 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 0D 01 02 [17:14:30]Write to MH i2c: E2 08 00 F9 1A 80 0D 01 02 00 00 00 00 8C [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [17:14:30]RAPDU: 90 00 [17:14:30]wFMCommunicate OK [17:14:30]wFMCommunicate request_size=255 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F7 62 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DC 02 00 35 04 06 00 9C DC AC C3 [17:14:30]Write to MH i2c: E2 02 01 FA 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F7 62 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DC 02 00 35 04 06 00 9C DC AC C3 00 00 07 [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:31]Read from MH i2c: E2 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 03 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 03 00 FA 1A 00 90 00 88 [17:14:31]RAPDU: 90 00 [17:14:31]wFMCommunicate OK [17:14:31]wFMCommunicate request_size=7 [17:14:31]MH_SAM_APDU [17:14:31]CAPDU: 80 0D 02 02 02 3E C5 [17:14:31]Write to MH i2c: E2 0A 00 FB 1A 80 0D 02 02 02 00 3E C5 00 00 96 [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:31]Read from MH i2c: E2 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 03 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 03 00 FB 1A 00 90 00 89 [17:14:31]RAPDU: 90 00 [17:14:31]wFMCommunicate OK [17:14:31]wFMCommunicate request_size=4 [17:14:31]MH_SAM_APDU [17:14:31]CAPDU: 80 0D 03 02 [17:14:31]Write to MH i2c: E2 08 00 FC 1A 80 0D 03 02 00 00 00 00 91 [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:31]Read from MH i2c: E2 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 0B 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 0B 00 FC 1A 00 45 8E 7B 26 DF 59 00 AD 90 00 EB [17:14:31]RAPDU: 45 8E 7B 26 DF 59 00 AD 90 00 [17:14:31]wFMCommunicate OK [17:14:31]SAM_PROTO_SignData done [17:14:31]FM_MakeSignedData done [17:14:31]CreateOFDProtocolMessage [17:14:31]wFMCommunicate request_size=4 [17:14:31]MH_SAM_APDU [17:14:31]CAPDU: 80 11 00 00 [17:14:31]Write to MH i2c: E2 08 00 FD 1A 80 11 00 00 00 00 00 00 91 [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:31]Read from MH i2c: E2 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 17 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: E2 17 00 FD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E4 [17:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:14:31]wFMCommunicate OK [17:14:31]CreateOFDProtocolMessage done [17:14:31]OFDSenderStorePacket 187420 [17:14:31]StoreOFDPacket docnum=187420 [17:14:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9F B9 04 01 F4 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F7 62 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DC 02 00 35 04 06 00 9C DC AC C3 3E C5 45 8E 7B 26 DF 59 00 AD [17:14:31]CheckFolder [17:14:31]dirname=/storage/ofd_packets [17:14:31]CheckFolder done [17:14:31]ProducePacketName [17:14:31]name=ofd_packets/00187420 [17:14:31]NVStorageSaveData ofd_packets/00187420 [17:14:31]File name is /storage/ofd_packets/00187420 [17:14:31]Write 298 bytes [17:14:31]NVStorageSaveData done [17:14:31]OFDSenderStorePacket done [17:14:31]KKMCreateOFDPacket done [17:14:31]NVStorageSaveData kkm_last_timestamp [17:14:31]File name is /storage/kkm_last_timestamp [17:14:31]Write 4 bytes [17:14:31]NVStorageSaveData done [17:14:31]ExternCall_PrintAddStr [17:14:31]wPrintStart [17:14:31]Write to MH i2c: 01 00 00 FE 1A 18 [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 07 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 07 00 FE 1A 00 00 00 00 00 FF 0F 2D [17:14:31]RasterBufferAndPrint [17:14:31]line Счет N : (1)412579 [17:14:31]line ИНН: 02508201610067 [17:14:31]line Контрольно-Кассовый Чек [17:14:31]line ПРОДАЖА [17:14:31]line ТРК (МРК, ГНК) : 6 [17:14:31]line Товар: 2710194210 [17:14:31]line ДТ-К-5 [17:14:31]line 6.890 * 72.60 [17:14:31]line = 500.21 [17:14:31]line НДС 12% НСП 1% [17:14:31]line > о реализуемом товаре [17:14:31]line ОКРУГЛЕНИЕ: -0.21 [17:14:31]line ИТОГО: 500.00 [17:14:31]line Внесено: 500.00 [17:14:31]line СДАЧА: 0.00 [17:14:31]line НСП 1% : 4.43 [17:14:31]line НДС 12% : 53.12 [17:14:31]line Наличными: 500.00 [17:14:31]line Безнал.: 0.00 [17:14:31]line Место: АЗС № 92 "Партнер Нефть" [17:14:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:14:31]line СНО: Общий режим [17:14:31]line Чек 221 20.02.2025 17:14 [17:14:31]line Смена: 648 ФФД: 1.0 [17:14:31]line ЗНМ: 0300000118 [17:14:31]line РНМ: 0000000000091857 [17:14:31]line Версия ККМ: 001 [17:14:31]line ФМ: 0000000000871826 [17:14:31]line ФД: 187420 [17:14:31]line ФПД: 172471605214917 [17:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T171431&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187420&fm=172471605214917&tin=02508201610067®Number=0000000000091857&sum=50000 [17:14:31]written 0, free lines is 4095 [17:14:31]Write to MH i2c: 01 00 00 29 1B 44 [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 07 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 07 00 29 1B 00 00 00 00 00 E4 0C 3B [17:14:31]RasterBufferAndPrint [17:14:31]line [17:14:31]line [17:14:31]line [17:14:31]line [17:14:31]line [17:14:31]written 0, free lines is 3306 [17:14:31]MH_Cut [17:14:31]Write to MH i2c: D1 01 00 30 1B 01 1D [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: D1 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: D1 01 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: D1 01 00 30 1B 00 1C [17:14:31]Write to MH i2c: 01 00 00 31 1B 4C [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:32]*** Cut start [17:14:32]*** Partial cut [17:14:32]*** CUTSNS_PIN = 1 [17:14:32]*** CUTSNS_PIN = 0 [17:14:32]*** Brake cut motor [17:14:33]Read from MH i2c: 01 [17:14:33]MH_I2C_Read... [17:14:33]*** Stop cut motor [17:14:33]*** Cut end [17:14:33]Read from MH i2c: 01 07 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: 01 07 00 31 1B 00 00 00 00 00 FF 0F 61 [17:14:33]process_action close_receipt done [17:14:33]requested_data is exist [17:14:33]produce_requested_data [17:14:33]requested_item fm.sn is exist - process it [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 11 00 00 [17:14:33]Write to MH i2c: E2 08 00 32 1B 80 11 00 00 00 00 00 00 C7 [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 17 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 17 00 32 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1A [17:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:14:33]wFMCommunicate OK [17:14:33]requested_item fd.num is exist - process it [17:14:33]SAM_PROTO_GetFieldsCounters [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 13 00 00 [17:14:33]Write to MH i2c: E2 08 00 33 1B 80 13 00 00 00 00 00 00 CA [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 62 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 62 00 33 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1C DC 02 00 0E 04 04 00 88 02 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 0B [17:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1C DC 02 00 0E 04 04 00 88 02 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 [17:14:33]wFMCommunicate OK [17:14:33]SAM_PROTO_GetFieldsCounters done [17:14:33]requested_item shift.num is exist - process it [17:14:33]requested_item shift.opened is exist - process it [17:14:33]req_shift_opened [17:14:33]FM_GetShiftState [17:14:33]SAM_PROTO_GetShiftState [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 13 01 00 [17:14:33]Write to MH i2c: E2 08 00 34 1B 80 13 01 00 00 00 00 00 CC [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 0E 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 0E 00 34 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1E [17:14:33]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:14:33]wFMCommunicate OK [17:14:33]SAM_PROTO_GetShiftState done [17:14:33]FM_GetShiftState done [17:14:33]req_shift_opened done [17:14:33]requested_item shift.open_date is exist - process it [17:14:33]req_shift_open_date [17:14:33]req_shift_open_date done [17:14:33]produce_requested_data done [17:14:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187420,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:14:33]process_action_free close_receipt [17:14:33]json_value_free [17:14:33]json_value_free done [17:14:33]process_json_proto returns [17:14:33]Send response to host [17:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187420,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:14:33]free response buf [17:14:33]execute_script done [17:14:33]execute_script returns [17:14:33]free content buf [17:14:33]Sock 7.Close socket [17:14:33]Sock 7.Thread stoped [17:15:21]ConnectInit Can't connect to host [17:15:21]CommunicateWithHost connect error [17:15:21]CommunicateWithHost err = -1 [17:15:21]OFD Sender: Server communicate error [17:15:21]OFD Sender: Processing packet 187419 [packets to send 50, broken 48] [17:15:21]ProducePacketName [17:15:21]name=ofd_packets/00187419 [17:15:21]OFD Sender: To server: pG, [17:15:21]CommunicateWithHost lk.salyk.kg:30040 [17:15:21]ConnectInit lk.salyk.kg [17:15:21]Connected sock=7 [17:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC FF 07 01 23 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 90 F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 35 00 00 00 00 07 04 06 00 90 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 A2 62 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DC 02 00 35 04 06 00 DE F4 23 96 26 34 A8 84 9E 2E 98 3A 95 F9 [17:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5F 23 47 00 99 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DC 02 00 F4 03 04 00 79 09 B7 67 B6 04 01 00 00 6F 16 0D 8D 48 78 A6 AA [17:15:21]CommunicateWithHost err = 0 [17:15:21]CheckOFDResponse [17:15:21]1017 (14) - 77093643461234 [17:15:21]1041 (16) - 0000000000871826 [17:15:21]1040 (4) - 187419 [17:15:21]1012 (4) - 20.02.2025 10:52 [17:15:21]1206 (1) - 0 [17:15:21]OFD Sender: Remove packet 187419 [17:15:21]ProducePacketName [17:15:21]name=ofd_packets/00187419 [17:15:21]NVStorageDeleteData [17:15:22]OFD Sender: Processing packet 187420 [packets to send 49, broken 48] [17:15:22]ProducePacketName [17:15:22]name=ofd_packets/00187420 [17:15:22]OFD Sender: To server: pG, [17:15:22]CommunicateWithHost lk.salyk.kg:30040 [17:15:22]ConnectInit lk.salyk.kg [17:15:22]Connected sock=7 [17:15:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9F B9 04 01 F4 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F7 62 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DC 02 00 35 04 06 00 9C DC AC C3 3E C5 45 8E 7B 26 DF 59 00 AD [17:15:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 61 36 47 00 EF DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DC 02 00 F4 03 04 00 7A 09 B7 67 B6 04 01 00 00 16 8A 1B 74 6E F8 65 73 [17:15:22]CommunicateWithHost err = 0 [17:15:22]CheckOFDResponse [17:15:22]1017 (14) - 77093643461234 [17:15:22]1041 (16) - 0000000000871826 [17:15:22]1040 (4) - 187420 [17:15:22]1012 (4) - 20.02.2025 10:52 [17:15:22]1206 (1) - 0 [17:15:22]OFD Sender: Remove packet 187420 [17:15:22]ProducePacketName [17:15:22]name=ofd_packets/00187420 [17:15:22]NVStorageDeleteData [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:47]accept exits with 9 [17:17:47]New connection [17:17:47]New thread 3067276644 created [17:17:47]Thread 3067420004 joined [17:17:47]Waiting for new connection... [17:17:47] Sock 9.Parse request [17:17:47]Sock 9.Check first char [17:17:47]Sock 9.First char is OK [17:17:47]request: POST /json_proto HTTP/1.0 [17:17:47]Method: POST [17:17:47]URL: /json_proto [17:17:47]Method is POST - this is cgi request [17:17:47]url: /json_proto [17:17:47]query_string will be loaded in cgi processing [17:17:47]execute_cgi json_proto POST (null) [17:17:47]execute_cgi path=json_proto method=POST [17:17:47]POST find Content-Length [17:17:47]Host: 172.17.46.131:8080 [17:17:47]Content-Length: 677 [17:17:47]Content-Type: application/json [17:17:47] [17:17:47]POST finish read [17:17:47]Found Content-Length = 677 [17:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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:17:47]execute_script... [17:17: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)412580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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:17:47]POST & json_proto [17:17:47]process_json_proto [17:17:47]json parsed OK: [17:17:47]protocol is kg_v1.0 [17:17:47]action value=close_receipt [17:17:47]process_action close_receipt [17:17:47]cmd_close_receipt [17:17:47]MH_GetDate [17:17:47]Write to MH i2c: F0 00 00 35 1B 3F [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: F0 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: F0 09 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: F0 09 00 35 1B 00 BD 63 B7 67 7E 41 4F 65 F9 [17:17:47]GetLastDocTimeStamp 1740071671 [17:17:47]current date 1740071869 [17:17:47]FM_GetShiftState [17:17:47]SAM_PROTO_GetShiftState [17:17:47]wFMCommunicate request_size=4 [17:17:47]MH_SAM_APDU [17:17:47]CAPDU: 80 13 01 00 [17:17:47]Write to MH i2c: E2 08 00 36 1B 80 13 01 00 00 00 00 00 CE [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:47]Read from MH i2c: E2 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 0E 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 0E 00 36 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 20 [17:17:47]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:17:47]wFMCommunicate OK [17:17:47]SAM_PROTO_GetShiftState done [17:17:47]FM_GetShiftState done [17:17:47]opened in 1740011697 [17:17:47]opened+sec_in_day 1740098097 [17:17:47]quantity*price = 30045 [17:17:47]sum+1 = 30047 [17:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 222 20.02.2025 17:17 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187421 ФПД: 126951309118709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T171749&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187421&fm=126951309118709&tin=02508201610067®Number=0000000000091857&sum=30000 [17:17:48]StoreToDocumentArchive [17:17:48]shift 648 fd 187421 [17:17:48]save to /storage/0648/doc_00187421 [17:17:48]save last doc name /storage/0648/doc_00187421 to /storage/kkm_last_doc_name [17:17:48]save OK [17:17:48]Clear old archive folders... [17:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:48]tlvbuf is 00E32D90 [17:17:48]SAM_PROTO_ClearQueue [17:17:48]wFMCommunicate request_size=4 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 09 00 00 [17:17:48]Write to MH i2c: E2 08 00 43 1B 80 09 00 00 00 00 00 00 D0 [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 [17:17:48]MH_I2C_Read... [17:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:48]Read from MH i2c: E2 03 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [17:17:48]RAPDU: 90 00 [17:17:48]wFMCommunicate OK [17:17:48]SAM_PROTO_ClearQueue done [17:17:48]KKMCreateOFDPacket [17:17:48]OFDProtocolAddRootSTLVToBuf [17:17:48]FM_MakeSignedData [17:17:48]FM_MakeSignedData [17:17:48]SAM_PROTO_SignData [17:17:48]wFMCommunicate request_size=4 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 0D 01 02 [17:17:48]Write to MH i2c: E2 08 00 44 1B 80 0D 01 02 00 00 00 00 D8 [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:48]Read from MH i2c: E2 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 03 00 44 1B 00 90 00 D3 [17:17:48]RAPDU: 90 00 [17:17:48]wFMCommunicate OK [17:17:48]wFMCommunicate request_size=255 [17:17:48]MH_SAM_APDU [17:17: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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 BD 63 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DC 02 00 35 04 06 00 73 [17:17:48]Write to MH i2c: E2 02 01 45 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 BD 63 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DC 02 00 35 04 06 00 73 00 00 2A [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:49]Read from MH i2c: E2 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 03 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [17:17:49]RAPDU: 90 00 [17:17:49]wFMCommunicate OK [17:17:49]wFMCommunicate request_size=10 [17:17:49]MH_SAM_APDU [17:17:49]CAPDU: 80 0D 02 02 05 76 27 AF 0C F5 [17:17:49]Write to MH i2c: E2 0D 00 46 1B 80 0D 02 02 05 00 76 27 AF 0C F5 00 00 32 [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:49]Read from MH i2c: E2 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 03 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 03 00 46 1B 00 90 00 D5 [17:17:49]RAPDU: 90 00 [17:17:49]wFMCommunicate OK [17:17:49]wFMCommunicate request_size=4 [17:17:49]MH_SAM_APDU [17:17:49]CAPDU: 80 0D 03 02 [17:17:49]Write to MH i2c: E2 08 00 47 1B 80 0D 03 02 00 00 00 00 DD [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:49]Read from MH i2c: E2 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 0B 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 0B 00 47 1B 00 6C 50 49 80 67 64 34 B3 90 00 15 [17:17:49]RAPDU: 6C 50 49 80 67 64 34 B3 90 00 [17:17:49]wFMCommunicate OK [17:17:49]SAM_PROTO_SignData done [17:17:49]FM_MakeSignedData done [17:17:49]CreateOFDProtocolMessage [17:17:49]wFMCommunicate request_size=4 [17:17:49]MH_SAM_APDU [17:17:49]CAPDU: 80 11 00 00 [17:17:49]Write to MH i2c: E2 08 00 48 1B 80 11 00 00 00 00 00 00 DD [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:49]Read from MH i2c: E2 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 17 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: E2 17 00 48 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 30 [17:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:17:49]wFMCommunicate OK [17:17:49]CreateOFDProtocolMessage done [17:17:49]OFDSenderStorePacket 187421 [17:17:49]StoreOFDPacket docnum=187421 [17:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A6 40 07 01 11 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 BD 63 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DC 02 00 35 04 06 00 73 76 27 AF 0C F5 6C 50 49 80 67 64 34 B3 [17:17:49]CheckFolder [17:17:49]dirname=/storage/ofd_packets [17:17:49]CheckFolder done [17:17:49]ProducePacketName [17:17:49]name=ofd_packets/00187421 [17:17:49]NVStorageSaveData ofd_packets/00187421 [17:17:49]File name is /storage/ofd_packets/00187421 [17:17:49]Write 301 bytes [17:17:49]NVStorageSaveData done [17:17:49]OFDSenderStorePacket done [17:17:49]KKMCreateOFDPacket done [17:17:49]NVStorageSaveData kkm_last_timestamp [17:17:49]File name is /storage/kkm_last_timestamp [17:17:49]Write 4 bytes [17:17:49]NVStorageSaveData done [17:17:49]ExternCall_PrintAddStr [17:17:49]wPrintStart [17:17:49]Write to MH i2c: 01 00 00 49 1B 64 [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 07 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 07 00 49 1B 00 00 00 00 00 FF 0F 79 [17:17:49]RasterBufferAndPrint [17:17:49]line Счет N : (1)412580 [17:17:49]line ИНН: 02508201610067 [17:17:49]line Контрольно-Кассовый Чек [17:17:49]line ПРОДАЖА [17:17:49]line ТРК (МРК, ГНК) : 22 [17:17:49]line Товар: 2710124130 [17:17:49]line Аи-92-К-2 [17:17:49]line 4.680 * 64.20 [17:17:49]line = 300.46 [17:17:49]line НДС 12% НСП 1% [17:17:49]line > о реализуемом товаре [17:17:49]line ОКРУГЛЕНИЕ: -0.46 [17:17:49]line ИТОГО: 300.00 [17:17:49]line Внесено: 300.00 [17:17:49]line СДАЧА: 0.00 [17:17:49]line НСП 1% : 2.66 [17:17:49]line НДС 12% : 31.91 [17:17:49]line Наличными: 300.00 [17:17:49]line Безнал.: 0.00 [17:17:49]line Место: АЗС № 92 "Партнер Нефть" [17:17:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:17:49]line СНО: Общий режим [17:17:49]line Чек 222 20.02.2025 17:17 [17:17:49]line Смена: 648 ФФД: 1.0 [17:17:49]line ЗНМ: 0300000118 [17:17:49]line РНМ: 0000000000091857 [17:17:49]line Версия ККМ: 001 [17:17:49]line ФМ: 0000000000871826 [17:17:49]line ФД: 187421 [17:17:49]line ФПД: 126951309118709 [17:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T171749&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187421&fm=126951309118709&tin=02508201610067®Number=0000000000091857&sum=30000 [17:17:49]written 0, free lines is 4095 [17:17:49]OFD Sender: Processing packet 187421 [packets to send 49, broken 48] [17:17:49]ProducePacketName [17:17:49]name=ofd_packets/00187421 [17:17:49]OFD Sender: To server: pG, [17:17:49]CommunicateWithHost lk.salyk.kg:30040 [17:17:49]ConnectInit lk.salyk.kg [17:17:49]Connected sock=10 [17:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A6 40 07 01 11 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 BD 63 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DC 02 00 35 04 06 00 73 76 27 AF 0C F5 6C 50 49 80 67 64 34 B3 [17:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 52 3C 47 00 83 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 31 38 32 36 10 04 04 00 1D DC 02 00 F4 03 04 00 0D 0A B7 67 B6 04 01 00 00 AF 92 6D 55 E3 9A 41 EB [17:17:50]CommunicateWithHost err = 0 [17:17:50]CheckOFDResponse [17:17:50]1017 (14) - 77093643461234 [17:17:50]1041 (16) - 0000000000871826 [17:17:50]1040 (4) - 187421 [17:17:50]1012 (4) - 20.02.2025 10:55 [17:17:50]1206 (1) - 0 [17:17:50]OFD Sender: Remove packet 187421 [17:17:50]ProducePacketName [17:17:50]name=ofd_packets/00187421 [17:17:50]NVStorageDeleteData [17:17:50]Write to MH i2c: 01 00 00 74 1B 8F [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 74 1B 00 00 00 00 00 F3 0C 95 [17:17:50]RasterBufferAndPrint [17:17:50]line [17:17:50]line [17:17:50]line [17:17:50]line [17:17:50]line [17:17:50]written 0, free lines is 3324 [17:17:50]MH_Cut [17:17:50]Write to MH i2c: D1 01 00 7B 1B 01 68 [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: D1 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: D1 01 00 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: D1 01 00 7B 1B 00 67 [17:17:50]Write to MH i2c: 01 00 00 7C 1B 97 [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]OFD Sender: No OFD packet to send [17:17:50]*** Cut start [17:17:50]*** Partial cut [17:17:50]*** CUTSNS_PIN = 1 [17:17:50]*** CUTSNS_PIN = 0 [17:17:51]*** Brake cut motor [17:17:51]Read from MH i2c: 01 [17:17:51]MH_I2C_Read... [17:17:51]*** Stop cut motor [17:17:51]*** Cut end [17:17:51]Read from MH i2c: 01 07 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: 01 07 00 7C 1B 00 00 00 00 00 FF 0F AC [17:17:51]process_action close_receipt done [17:17:51]requested_data is exist [17:17:51]produce_requested_data [17:17:51]requested_item fm.sn is exist - process it [17:17:51]wFMCommunicate request_size=4 [17:17:51]MH_SAM_APDU [17:17:51]CAPDU: 80 11 00 00 [17:17:51]Write to MH i2c: E2 08 00 7D 1B 80 11 00 00 00 00 00 00 12 [17:17:51]Write i2c OK [17:17:51]MH_I2C_Read... [17:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:51]Read from MH i2c: E2 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 17 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 17 00 7D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 65 [17:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:17:51]wFMCommunicate OK [17:17:51]requested_item fd.num is exist - process it [17:17:51]SAM_PROTO_GetFieldsCounters [17:17:51]wFMCommunicate request_size=4 [17:17:51]MH_SAM_APDU [17:17:51]CAPDU: 80 13 00 00 [17:17:51]Write to MH i2c: E2 08 00 7E 1B 80 13 00 00 00 00 00 00 15 [17:17:51]Write i2c OK [17:17:51]MH_I2C_Read... [17:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:51]Read from MH i2c: E2 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 62 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 62 00 7E 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1D DC 02 00 0E 04 04 00 88 02 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 5A [17:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1D DC 02 00 0E 04 04 00 88 02 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 [17:17:51]wFMCommunicate OK [17:17:51]SAM_PROTO_GetFieldsCounters done [17:17:51]requested_item shift.num is exist - process it [17:17:51]requested_item shift.opened is exist - process it [17:17:51]req_shift_opened [17:17:51]FM_GetShiftState [17:17:51]SAM_PROTO_GetShiftState [17:17:51]wFMCommunicate request_size=4 [17:17:51]MH_SAM_APDU [17:17:51]CAPDU: 80 13 01 00 [17:17:51]Write to MH i2c: E2 08 00 7F 1B 80 13 01 00 00 00 00 00 17 [17:17:51]Write i2c OK [17:17:51]MH_I2C_Read... [17:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:51]Read from MH i2c: E2 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 0E 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 0E 00 7F 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 69 [17:17:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:17:51]wFMCommunicate OK [17:17:51]SAM_PROTO_GetShiftState done [17:17:51]FM_GetShiftState done [17:17:51]req_shift_opened done [17:17:51]requested_item shift.open_date is exist - process it [17:17:51]req_shift_open_date [17:17:51]req_shift_open_date done [17:17:51]produce_requested_data done [17:17:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187421,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:17:51]process_action_free close_receipt [17:17:51]json_value_free [17:17:51]json_value_free done [17:17:51]process_json_proto returns [17:17:51]Send response to host [17:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187421,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:17:51]free response buf [17:17:51]execute_script done [17:17:51]execute_script returns [17:17:51]free content buf [17:17:51]Sock 9.Close socket [17:17:51]Sock 9.Thread stoped [17:17:55]OFD Sender: No OFD packet to send [17:17:58]accept exits with 7 [17:17:58]New connection [17:17:58]New thread 3067420004 created [17:17:58]Thread 3067276644 joined [17:17:58]Waiting for new connection... [17:17:58] Sock 7.Parse request [17:17:58]Sock 7.Check first char [17:17:58]Sock 7.First char is OK [17:17:58]request: POST /json_proto HTTP/1.0 [17:17:58]Method: POST [17:17:58]URL: /json_proto [17:17:58]Method is POST - this is cgi request [17:17:58]url: /json_proto [17:17:58]query_string will be loaded in cgi processing [17:17:58]execute_cgi json_proto POST (null) [17:17:58]execute_cgi path=json_proto method=POST [17:17:58]POST find Content-Length [17:17:58]Host: 172.17.46.131:8080 [17:17:58]Content-Length: 677 [17:17:58]Content-Type: application/json [17:17:58] [17:17:58]POST finish read [17:17:58]Found Content-Length = 677 [17:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "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:17:58]execute_script... [17:17: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)412581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "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:17:58]POST & json_proto [17:17:58]process_json_proto [17:17:58]json parsed OK: [17:17:58]protocol is kg_v1.0 [17:17:58]action value=close_receipt [17:17:58]process_action close_receipt [17:17:58]cmd_close_receipt [17:17:58]MH_GetDate [17:17:58]Write to MH i2c: F0 00 00 80 1B 8A [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 09 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 09 00 80 1B 00 C8 63 B7 67 7E 41 4F 65 4F [17:17:58]GetLastDocTimeStamp 1740071869 [17:17:58]current date 1740071880 [17:17:58]FM_GetShiftState [17:17:58]SAM_PROTO_GetShiftState [17:17:58]wFMCommunicate request_size=4 [17:17:58]MH_SAM_APDU [17:17:58]CAPDU: 80 13 01 00 [17:17:58]Write to MH i2c: E2 08 00 81 1B 80 13 01 00 00 00 00 00 19 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:58]Read from MH i2c: E2 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 0E 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 0E 00 81 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6B [17:17:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:17:58]wFMCommunicate OK [17:17:58]SAM_PROTO_GetShiftState done [17:17:58]FM_GetShiftState done [17:17:58]opened in 1740011697 [17:17:58]opened+sec_in_day 1740098097 [17:17:58]quantity*price = 40060 [17:17:58]sum+1 = 40062 [17:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 223 20.02.2025 17:18 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187422 ФПД: 110663169807507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T171800&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187422&fm=110663169807507&tin=02508201610067®Number=0000000000091857&sum=40000 [17:17:59]StoreToDocumentArchive [17:17:59]shift 648 fd 187422 [17:17:59]save to /storage/0648/doc_00187422 [17:17:59]save last doc name /storage/0648/doc_00187422 to /storage/kkm_last_doc_name [17:17:59]save OK [17:17:59]Clear old archive folders... [17:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:59]tlvbuf is B6F1AA40 [17:17:59]SAM_PROTO_ClearQueue [17:17:59]wFMCommunicate request_size=4 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 09 00 00 [17:17:59]Write to MH i2c: E2 08 00 8E 1B 80 09 00 00 00 00 00 00 1B [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [17:18:00]RAPDU: 90 00 [17:18:00]wFMCommunicate OK [17:18:00]SAM_PROTO_ClearQueue done [17:18:00]KKMCreateOFDPacket [17:18:00]OFDProtocolAddRootSTLVToBuf [17:18:00]FM_MakeSignedData [17:18:00]FM_MakeSignedData [17:18:00]SAM_PROTO_SignData [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 0D 01 02 [17:18:00]Write to MH i2c: E2 08 00 8F 1B 80 0D 01 02 00 00 00 00 23 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [17:18:00]RAPDU: 90 00 [17:18:00]wFMCommunicate OK [17:18:00]wFMCommunicate request_size=255 [17:18:00]MH_SAM_APDU [17:18: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 DF 00 00 00 F4 03 04 00 C8 63 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DC 02 00 35 04 06 00 64 [17:18:00]Write to MH i2c: E2 02 01 90 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 DF 00 00 00 F4 03 04 00 C8 63 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DC 02 00 35 04 06 00 64 00 00 C8 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [17:18:00]RAPDU: 90 00 [17:18:00]wFMCommunicate OK [17:18:00]wFMCommunicate request_size=10 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 0D 02 02 05 A5 C6 ED 14 93 [17:18:00]Write to MH i2c: E2 0D 00 91 1B 80 0D 02 02 05 00 A5 C6 ED 14 93 00 00 2F [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 91 1B 00 90 00 20 [17:18:00]RAPDU: 90 00 [17:18:00]wFMCommunicate OK [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 0D 03 02 [17:18:00]Write to MH i2c: E2 08 00 92 1B 80 0D 03 02 00 00 00 00 28 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 0B 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 0B 00 92 1B 00 19 B0 EB 6B 7F 33 70 1F 90 00 89 [17:18:00]RAPDU: 19 B0 EB 6B 7F 33 70 1F 90 00 [17:18:00]wFMCommunicate OK [17:18:00]SAM_PROTO_SignData done [17:18:00]FM_MakeSignedData done [17:18:00]CreateOFDProtocolMessage [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 11 00 00 [17:18:00]Write to MH i2c: E2 08 00 93 1B 80 11 00 00 00 00 00 00 28 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 17 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 17 00 93 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7B [17:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:18:00]wFMCommunicate OK [17:18:00]CreateOFDProtocolMessage done [17:18:00]OFDSenderStorePacket 187422 [17:18:00]StoreOFDPacket docnum=187422 [17:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E3 C0 07 01 1E 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 DF 00 00 00 F4 03 04 00 C8 63 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DC 02 00 35 04 06 00 64 A5 C6 ED 14 93 19 B0 EB 6B 7F 33 70 1F [17:18:00]CheckFolder [17:18:00]dirname=/storage/ofd_packets [17:18:00]CheckFolder done [17:18:00]ProducePacketName [17:18:00]name=ofd_packets/00187422 [17:18:00]NVStorageSaveData ofd_packets/00187422 [17:18:00]File name is /storage/ofd_packets/00187422 [17:18:00]Write 301 bytes [17:18:00]NVStorageSaveData done [17:18:00]OFDSenderStorePacket done [17:18:00]KKMCreateOFDPacket done [17:18:00]NVStorageSaveData kkm_last_timestamp [17:18:00]File name is /storage/kkm_last_timestamp [17:18:00]Write 4 bytes [17:18:00]NVStorageSaveData done [17:18:00]ExternCall_PrintAddStr [17:18:00]wPrintStart [17:18:00]Write to MH i2c: 01 00 00 94 1B AF [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 94 1B 00 00 00 00 00 FF 0F C4 [17:18:00]RasterBufferAndPrint [17:18:00]line Счет N : (1)412581 [17:18:00]line ИНН: 02508201610067 [17:18:00]line Контрольно-Кассовый Чек [17:18:00]line ПРОДАЖА [17:18:00]line ТРК (МРК, ГНК) : 32 [17:18:00]line Товар: 2710124130 [17:18:00]line Аи-92-К-2 [17:18:00]line 6.240 * 64.20 [17:18:00]line = 400.61 [17:18:00]line НДС 12% НСП 1% [17:18:00]line > о реализуемом товаре [17:18:00]line ОКРУГЛЕНИЕ: -0.61 [17:18:00]line ИТОГО: 400.00 [17:18:00]line Внесено: 400.00 [17:18:00]line СДАЧА: 0.00 [17:18:00]line НСП 1% : 3.54 [17:18:00]line НДС 12% : 42.54 [17:18:00]line Наличными: 400.00 [17:18:00]line Безнал.: 0.00 [17:18:00]line Место: АЗС № 92 "Партнер Нефть" [17:18:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:18:00]line СНО: Общий режим [17:18:00]line Чек 223 20.02.2025 17:18 [17:18:00]line Смена: 648 ФФД: 1.0 [17:18:00]line ЗНМ: 0300000118 [17:18:00]line РНМ: 0000000000091857 [17:18:00]line Версия ККМ: 001 [17:18:00]line ФМ: 0000000000871826 [17:18:00]line ФД: 187422 [17:18:00]line ФПД: 110663169807507 [17:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T171800&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187422&fm=110663169807507&tin=02508201610067®Number=0000000000091857&sum=40000 [17:18:00]written 0, free lines is 4095 [17:18:00]OFD Sender: Processing packet 187422 [packets to send 49, broken 48] [17:18:00]ProducePacketName [17:18:00]name=ofd_packets/00187422 [17:18:00]OFD Sender: To server: pG, [17:18:00]CommunicateWithHost lk.salyk.kg:30040 [17:18:00]ConnectInit lk.salyk.kg [17:18:00]Connected sock=10 [17:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E3 C0 07 01 1E 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 DF 00 00 00 F4 03 04 00 C8 63 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DC 02 00 35 04 06 00 64 A5 C6 ED 14 93 19 B0 EB 6B 7F 33 70 1F [17:18:00]Write to MH i2c: 01 00 00 BF 1B DA [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 BF 1B 00 00 00 00 00 ED 0C DA [17:18:00]RasterBufferAndPrint [17:18:00]line [17:18:00]line [17:18:00]line [17:18:00]line [17:18:00]line [17:18:00]written 0, free lines is 3321 [17:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D6 D7 47 00 3B F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DC 02 00 F4 03 04 00 18 0A B7 67 B6 04 01 00 00 A1 8D 8E 0C 09 48 16 8A [17:18:00]CommunicateWithHost err = 0 [17:18:00]CheckOFDResponse [17:18:01]1017 (14) - 77093643461234 [17:18:01]1041 (16) - 0000000000871826 [17:18:01]1040 (4) - 187422 [17:18:01]1012 (4) - 20.02.2025 10:55 [17:18:01]1206 (1) - 0 [17:18:01]OFD Sender: Remove packet 187422 [17:18:01]ProducePacketName [17:18:01]name=ofd_packets/00187422 [17:18:01]NVStorageDeleteData [17:18:01]MH_Cut [17:18:01]Write to MH i2c: D1 01 00 C6 1B 01 B3 [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: D1 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: D1 01 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: D1 01 00 C6 1B 00 B2 [17:18:01]Write to MH i2c: 01 00 00 C7 1B E2 [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]OFD Sender: No OFD packet to send [17:18:01]*** Cut start [17:18:01]*** Partial cut [17:18:01]*** CUTSNS_PIN = 1 [17:18:01]*** CUTSNS_PIN = 0 [17:18:02]*** Brake cut motor [17:18:02]Read from MH i2c: 01 [17:18:02]MH_I2C_Read... [17:18:02]*** Stop cut motor [17:18:02]*** Cut end [17:18:02]Read from MH i2c: 01 07 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 07 00 C7 1B 00 00 00 00 00 FF 0F F7 [17:18:02]process_action close_receipt done [17:18:02]requested_data is exist [17:18:02]produce_requested_data [17:18:02]requested_item fm.sn is exist - process it [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 11 00 00 [17:18:02]Write to MH i2c: E2 08 00 C8 1B 80 11 00 00 00 00 00 00 5D [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 17 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 17 00 C8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B0 [17:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:18:02]wFMCommunicate OK [17:18:02]requested_item fd.num is exist - process it [17:18:02]SAM_PROTO_GetFieldsCounters [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 13 00 00 [17:18:02]Write to MH i2c: E2 08 00 C9 1B 80 13 00 00 00 00 00 00 60 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 62 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 62 00 C9 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1E DC 02 00 0E 04 04 00 88 02 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 A9 [17:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1E DC 02 00 0E 04 04 00 88 02 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 [17:18:02]wFMCommunicate OK [17:18:02]SAM_PROTO_GetFieldsCounters done [17:18:02]requested_item shift.num is exist - process it [17:18:02]requested_item shift.opened is exist - process it [17:18:02]req_shift_opened [17:18:02]FM_GetShiftState [17:18:02]SAM_PROTO_GetShiftState [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 13 01 00 [17:18:02]Write to MH i2c: E2 08 00 CA 1B 80 13 01 00 00 00 00 00 62 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 0E 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 0E 00 CA 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B4 [17:18:02]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:18:02]wFMCommunicate OK [17:18:02]SAM_PROTO_GetShiftState done [17:18:02]FM_GetShiftState done [17:18:02]req_shift_opened done [17:18:02]requested_item shift.open_date is exist - process it [17:18:02]req_shift_open_date [17:18:02]req_shift_open_date done [17:18:02]produce_requested_data done [17:18:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187422,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:18:02]process_action_free close_receipt [17:18:02]json_value_free [17:18:02]json_value_free done [17:18:02]process_json_proto returns [17:18:02]Send response to host [17:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187422,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:18:02]free response buf [17:18:02]execute_script done [17:18:02]execute_script returns [17:18:02]free content buf [17:18:02]Sock 7.Close socket [17:18:02]Sock 7.Thread stoped [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:29]accept exits with 9 [17:31:29]New connection [17:31:29]New thread 3067276644 created [17:31:29]Thread 3067420004 joined [17:31:29]Waiting for new connection... [17:31:29] Sock 9.Parse request [17:31:29]Sock 9.Check first char [17:31:29]Sock 9.First char is OK [17:31:29]request: POST /json_proto HTTP/1.0 [17:31:29]Method: POST [17:31:29]URL: /json_proto [17:31:29]Method is POST - this is cgi request [17:31:29]url: /json_proto [17:31:29]query_string will be loaded in cgi processing [17:31:29]execute_cgi json_proto POST (null) [17:31:29]execute_cgi path=json_proto method=POST [17:31:29]POST find Content-Length [17:31:29]Host: 172.17.46.131:8080 [17:31:29]Content-Length: 677 [17:31:29]Content-Type: application/json [17:31:29] [17:31:29]POST finish read [17:31:29]Found Content-Length = 677 [17:31:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:31:29]execute_script... [17:31: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)412582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:31:29]POST & json_proto [17:31:29]process_json_proto [17:31:29]json parsed OK: [17:31:29]protocol is kg_v1.0 [17:31:29]action value=close_receipt [17:31:29]process_action close_receipt [17:31:29]cmd_close_receipt [17:31:29]MH_GetDate [17:31:29]Write to MH i2c: F0 00 00 CB 1B D5 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: F0 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: F0 09 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: F0 09 00 CB 1B 00 F2 66 B7 67 7E 41 4F 65 C7 [17:31:29]GetLastDocTimeStamp 1740071880 [17:31:29]current date 1740072690 [17:31:29]FM_GetShiftState [17:31:29]SAM_PROTO_GetShiftState [17:31:29]wFMCommunicate request_size=4 [17:31:29]MH_SAM_APDU [17:31:29]CAPDU: 80 13 01 00 [17:31:29]Write to MH i2c: E2 08 00 CC 1B 80 13 01 00 00 00 00 00 64 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 0E 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 0E 00 CC 1B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B6 [17:31:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:31:29]wFMCommunicate OK [17:31:29]SAM_PROTO_GetShiftState done [17:31:29]FM_GetShiftState done [17:31:29]opened in 1740011697 [17:31:29]opened+sec_in_day 1740098097 [17:31:29]quantity*price = 50011 [17:31:29]sum+1 = 50013 [17:31:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 224 20.02.2025 17:31 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187423 ФПД: 144808844287310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173130&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187423&fm=144808844287310&tin=02508201610067®Number=0000000000091857&sum=50000 [17:31:30]StoreToDocumentArchive [17:31:30]shift 648 fd 187423 [17:31:30]save to /storage/0648/doc_00187423 [17:31:30]save last doc name /storage/0648/doc_00187423 to /storage/kkm_last_doc_name [17:31:30]save OK [17:31:30]Clear old archive folders... [17:31:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:30]tlvbuf is B6FCA7D0 [17:31:30]SAM_PROTO_ClearQueue [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 09 00 00 [17:31:30]Write to MH i2c: E2 08 00 D9 1B 80 09 00 00 00 00 00 00 66 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 03 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 03 00 D9 1B 00 90 00 68 [17:31:30]RAPDU: 90 00 [17:31:30]wFMCommunicate OK [17:31:30]SAM_PROTO_ClearQueue done [17:31:30]KKMCreateOFDPacket [17:31:30]OFDProtocolAddRootSTLVToBuf [17:31:30]FM_MakeSignedData [17:31:30]FM_MakeSignedData [17:31:30]SAM_PROTO_SignData [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 0D 01 02 [17:31:30]Write to MH i2c: E2 08 00 DA 1B 80 0D 01 02 00 00 00 00 6E [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 03 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [17:31:30]RAPDU: 90 00 [17:31:30]wFMCommunicate OK [17:31:30]wFMCommunicate request_size=255 [17:31:30]MH_SAM_APDU [17:31: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F2 66 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DC 02 00 35 04 06 00 83 [17:31:30]Write to MH i2c: E2 02 01 DB 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F2 66 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DC 02 00 35 04 06 00 83 00 00 67 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 03 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 03 00 DB 1B 00 90 00 6A [17:31:30]RAPDU: 90 00 [17:31:30]wFMCommunicate OK [17:31:30]wFMCommunicate request_size=10 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 0D 02 02 05 B3 EF B9 5D 4E [17:31:30]Write to MH i2c: E2 0D 00 DC 1B 80 0D 02 02 05 00 B3 EF B9 5D 4E 00 00 81 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 03 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 03 00 DC 1B 00 90 00 6B [17:31:30]RAPDU: 90 00 [17:31:30]wFMCommunicate OK [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 0D 03 02 [17:31:30]Write to MH i2c: E2 08 00 DD 1B 80 0D 03 02 00 00 00 00 73 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 0B 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 0B 00 DD 1B 00 5E 10 BF CB A2 B8 82 DC 90 00 24 [17:31:30]RAPDU: 5E 10 BF CB A2 B8 82 DC 90 00 [17:31:30]wFMCommunicate OK [17:31:30]SAM_PROTO_SignData done [17:31:30]FM_MakeSignedData done [17:31:30]CreateOFDProtocolMessage [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 11 00 00 [17:31:30]Write to MH i2c: E2 08 00 DE 1B 80 11 00 00 00 00 00 00 73 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 17 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 17 00 DE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C6 [17:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:31:30]wFMCommunicate OK [17:31:30]CreateOFDProtocolMessage done [17:31:30]OFDSenderStorePacket 187423 [17:31:30]StoreOFDPacket docnum=187423 [17:31:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 06 16 07 01 6B 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F2 66 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DC 02 00 35 04 06 00 83 B3 EF B9 5D 4E 5E 10 BF CB A2 B8 82 DC [17:31:30]CheckFolder [17:31:30]dirname=/storage/ofd_packets [17:31:30]CheckFolder done [17:31:30]ProducePacketName [17:31:30]name=ofd_packets/00187423 [17:31:30]NVStorageSaveData ofd_packets/00187423 [17:31:30]File name is /storage/ofd_packets/00187423 [17:31:30]Write 301 bytes [17:31:30]NVStorageSaveData done [17:31:30]OFDSenderStorePacket done [17:31:30]KKMCreateOFDPacket done [17:31:30]NVStorageSaveData kkm_last_timestamp [17:31:30]File name is /storage/kkm_last_timestamp [17:31:30]Write 4 bytes [17:31:30]NVStorageSaveData done [17:31:30]ExternCall_PrintAddStr [17:31:30]wPrintStart [17:31:30]Write to MH i2c: 01 00 00 DF 1B FA [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: 01 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: 01 07 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: 01 07 00 DF 1B 00 00 00 00 00 FF 0F 0F [17:31:30]RasterBufferAndPrint [17:31:30]line Счет N : (1)412582 [17:31:30]line ИНН: 02508201610067 [17:31:30]line Контрольно-Кассовый Чек [17:31:30]line ПРОДАЖА [17:31:30]line ТРК (МРК, ГНК) : 12 [17:31:30]line Товар: 2710124130 [17:31:30]line Аи-92-К-2 [17:31:30]line 7.790 * 64.20 [17:31:30]line = 500.12 [17:31:30]line НДС 12% НСП 1% [17:31:30]line > о реализуемом товаре [17:31:30]line ОКРУГЛЕНИЕ: -0.12 [17:31:30]line ИТОГО: 500.00 [17:31:30]line Внесено: 500.00 [17:31:30]line СДАЧА: 0.00 [17:31:30]line НСП 1% : 4.43 [17:31:30]line НДС 12% : 53.11 [17:31:30]line Наличными: 500.00 [17:31:30]line Безнал.: 0.00 [17:31:30]line Место: АЗС № 92 "Партнер Нефть" [17:31:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:31:30]line СНО: Общий режим [17:31:30]line Чек 224 20.02.2025 17:31 [17:31:30]line Смена: 648 ФФД: 1.0 [17:31:30]line ЗНМ: 0300000118 [17:31:30]line РНМ: 0000000000091857 [17:31:30]line Версия ККМ: 001 [17:31:30]line ФМ: 0000000000871826 [17:31:30]line ФД: 187423 [17:31:30]line ФПД: 144808844287310 [17:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173130&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187423&fm=144808844287310&tin=02508201610067®Number=0000000000091857&sum=50000 [17:31:31]written 0, free lines is 4095 [17:31:31]OFD Sender: Processing packet 187423 [packets to send 49, broken 48] [17:31:31]ProducePacketName [17:31:31]name=ofd_packets/00187423 [17:31:31]OFD Sender: To server: pG, [17:31:31]CommunicateWithHost lk.salyk.kg:30040 [17:31:31]ConnectInit lk.salyk.kg [17:31:31]Connected sock=10 [17:31:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 06 16 07 01 6B 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F2 66 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DC 02 00 35 04 06 00 83 B3 EF B9 5D 4E 5E 10 BF CB A2 B8 82 DC [17:31:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E6 82 47 00 CD C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DC 02 00 F4 03 04 00 43 0D B7 67 B6 04 01 00 00 86 86 0B 91 6B 16 24 22 [17:31:31]CommunicateWithHost err = 0 [17:31:31]CheckOFDResponse [17:31:31]1017 (14) - 77093643461234 [17:31:31]1041 (16) - 0000000000871826 [17:31:31]1040 (4) - 187423 [17:31:31]1012 (4) - 20.02.2025 11:08 [17:31:31]1206 (1) - 0 [17:31:31]OFD Sender: Remove packet 187423 [17:31:31]ProducePacketName [17:31:31]name=ofd_packets/00187423 [17:31:31]NVStorageDeleteData [17:31:31]Write to MH i2c: 01 00 00 0A 1C 26 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 0A 1C 00 00 00 00 00 EC 0C 25 [17:31:31]RasterBufferAndPrint [17:31:31]line [17:31:31]line [17:31:31]line [17:31:31]line [17:31:31]line [17:31:31]written 0, free lines is 3314 [17:31:31]MH_Cut [17:31:31]Write to MH i2c: D1 01 00 11 1C 01 FF [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: D1 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: D1 01 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: D1 01 00 11 1C 00 FE [17:31:31]Write to MH i2c: 01 00 00 12 1C 2E [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:32]OFD Sender: No OFD packet to send [17:31:32]*** Cut start [17:31:32]*** Partial cut [17:31:32]*** CUTSNS_PIN = 1 [17:31:32]*** CUTSNS_PIN = 0 [17:31:32]*** Brake cut motor [17:31:33]Read from MH i2c: 01 [17:31:33]MH_I2C_Read... [17:31:33]*** Stop cut motor [17:31:33]*** Cut end [17:31:33]Read from MH i2c: 01 07 00 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: 01 07 00 12 1C 00 00 00 00 00 FF 0F 43 [17:31:33]process_action close_receipt done [17:31:33]requested_data is exist [17:31:33]produce_requested_data [17:31:33]requested_item fm.sn is exist - process it [17:31:33]wFMCommunicate request_size=4 [17:31:33]MH_SAM_APDU [17:31:33]CAPDU: 80 11 00 00 [17:31:33]Write to MH i2c: E2 08 00 13 1C 80 11 00 00 00 00 00 00 A9 [17:31:33]Write i2c OK [17:31:33]MH_I2C_Read... [17:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:33]Read from MH i2c: E2 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: E2 17 00 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: E2 17 00 13 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FC [17:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:31:33]wFMCommunicate OK [17:31:33]requested_item fd.num is exist - process it [17:31:33]SAM_PROTO_GetFieldsCounters [17:31:33]wFMCommunicate request_size=4 [17:31:33]MH_SAM_APDU [17:31:33]CAPDU: 80 13 00 00 [17:31:33]Write to MH i2c: E2 08 00 14 1C 80 13 00 00 00 00 00 00 AC [17:31:33]Write i2c OK [17:31:33]MH_I2C_Read... [17:31:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:33]Read from MH i2c: E2 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: E2 62 00 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: E2 62 00 14 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1F DC 02 00 0E 04 04 00 88 02 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 F9 [17:31:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1F DC 02 00 0E 04 04 00 88 02 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 [17:31:33]wFMCommunicate OK [17:31:33]SAM_PROTO_GetFieldsCounters done [17:31:33]requested_item shift.num is exist - process it [17:31:33]requested_item shift.opened is exist - process it [17:31:33]req_shift_opened [17:31:33]FM_GetShiftState [17:31:33]SAM_PROTO_GetShiftState [17:31:33]wFMCommunicate request_size=4 [17:31:33]MH_SAM_APDU [17:31:33]CAPDU: 80 13 01 00 [17:31:33]Write to MH i2c: E2 08 00 15 1C 80 13 01 00 00 00 00 00 AE [17:31:33]Write i2c OK [17:31:33]MH_I2C_Read... [17:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:33]Read from MH i2c: E2 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: E2 0E 00 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: E2 0E 00 15 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 00 [17:31:33]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:31:33]wFMCommunicate OK [17:31:33]SAM_PROTO_GetShiftState done [17:31:33]FM_GetShiftState done [17:31:33]req_shift_opened done [17:31:33]requested_item shift.open_date is exist - process it [17:31:33]req_shift_open_date [17:31:33]req_shift_open_date done [17:31:33]produce_requested_data done [17:31:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187423,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:31:33]process_action_free close_receipt [17:31:33]json_value_free [17:31:33]json_value_free done [17:31:33]process_json_proto returns [17:31:33]Send response to host [17:31:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187423,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:31:33]free response buf [17:31:33]execute_script done [17:31:33]execute_script returns [17:31:33]free content buf [17:31:33]Sock 9.Close socket [17:31:33]Sock 9.Thread stoped [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:03]accept exits with 7 [17:36:03]New connection [17:36:03]New thread 3067420004 created [17:36:03]Thread 3067276644 joined [17:36:03]Waiting for new connection... [17:36:03] Sock 7.Parse request [17:36:03]Sock 7.Check first char [17:36:03]Sock 7.First char is OK [17:36:03]request: POST /json_proto HTTP/1.0 [17:36:03]Method: POST [17:36:03]URL: /json_proto [17:36:03]Method is POST - this is cgi request [17:36:03]url: /json_proto [17:36:03]query_string will be loaded in cgi processing [17:36:03]execute_cgi json_proto POST (null) [17:36:03]execute_cgi path=json_proto method=POST [17:36:03]POST find Content-Length [17:36:03]Host: 172.17.46.131:8080 [17:36:03]Content-Length: 792 [17:36:03]Content-Type: application/json [17:36:03] [17:36:03]POST finish read [17:36:03]Found Content-Length = 792 [17:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 22.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43408", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:03]execute_script... [17: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)412583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 22.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43408", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:03]POST & json_proto [17:36:03]process_json_proto [17:36:03]json parsed OK: [17:36:03]protocol is kg_v1.0 [17:36:03]action value=close_receipt [17:36:03]process_action close_receipt [17:36:03]cmd_close_receipt [17:36:03]MH_GetDate [17:36:03]Write to MH i2c: F0 00 00 16 1C 21 [17:36:03]Write i2c OK [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: F0 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: F0 09 00 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: F0 09 00 16 1C 00 04 68 B7 67 7E 41 4F 65 27 [17:36:03]GetLastDocTimeStamp 1740072690 [17:36:03]current date 1740072964 [17:36:03]FM_GetShiftState [17:36:03]SAM_PROTO_GetShiftState [17:36:03]wFMCommunicate request_size=4 [17:36:03]MH_SAM_APDU [17:36:03]CAPDU: 80 13 01 00 [17:36:03]Write to MH i2c: E2 08 00 17 1C 80 13 01 00 00 00 00 00 B0 [17:36:03]Write i2c OK [17:36:03]MH_I2C_Read... [17:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:03]Read from MH i2c: E2 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 0E 00 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 0E 00 17 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 02 [17:36:03]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:36:03]wFMCommunicate OK [17:36:03]SAM_PROTO_GetShiftState done [17:36:03]FM_GetShiftState done [17:36:03]opened in 1740011697 [17:36:03]opened+sec_in_day 1740098097 [17:36:03]quantity*price = 0 [17:36:03]sum+1 = 1 [17:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 225 20.02.2025 17:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 43408 ФМ: 0000000000871826 ФД: 187424 ФПД: 10401180079730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173604&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187424&fm=10401180079730&tin=02508201610067®Number=0000000000091857&sum=0 [17:36:04]StoreToDocumentArchive [17:36:04]shift 648 fd 187424 [17:36:04]save to /storage/0648/doc_00187424 [17:36:04]save last doc name /storage/0648/doc_00187424 to /storage/kkm_last_doc_name [17:36:04]save OK [17:36:04]Clear old archive folders... [17:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:04]tlvbuf is 00EAD5F0 [17:36:04]SAM_PROTO_ClearQueue [17:36:04]wFMCommunicate request_size=4 [17:36:04]MH_SAM_APDU [17:36:04]CAPDU: 80 09 00 00 [17:36:04]Write to MH i2c: E2 08 00 24 1C 80 09 00 00 00 00 00 00 B2 [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 03 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 03 00 24 1C 00 90 00 B4 [17:36:04]RAPDU: 90 00 [17:36:04]wFMCommunicate OK [17:36:04]SAM_PROTO_ClearQueue done [17:36:04]KKMCreateOFDPacket [17:36:04]OFDProtocolAddRootSTLVToBuf [17:36:04]FM_MakeSignedData [17:36:04]FM_MakeSignedData [17:36:04]SAM_PROTO_SignData [17:36:04]wFMCommunicate request_size=4 [17:36:04]MH_SAM_APDU [17:36:04]CAPDU: 80 0D 01 02 [17:36:04]Write to MH i2c: E2 08 00 25 1C 80 0D 01 02 00 00 00 00 BA [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 03 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 03 00 25 1C 00 90 00 B5 [17:36:04]RAPDU: 90 00 [17:36:04]wFMCommunicate OK [17:36:04]wFMCommunicate request_size=255 [17:36:04]MH_SAM_APDU [17: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 32 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 04 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DC 02 00 35 04 06 00 09 [17:36:04]Write to MH i2c: E2 02 01 26 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 32 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 04 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DC 02 00 35 04 06 00 09 00 00 07 [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 03 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 03 00 26 1C 00 90 00 B6 [17:36:04]RAPDU: 90 00 [17:36:04]wFMCommunicate OK [17:36:04]wFMCommunicate request_size=10 [17:36:04]MH_SAM_APDU [17:36:04]CAPDU: 80 0D 02 02 05 75 B6 A4 D6 72 [17:36:04]Write to MH i2c: E2 0D 00 27 1C 80 0D 02 02 05 00 75 B6 A4 D6 72 00 00 DE [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 03 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 03 00 27 1C 00 90 00 B7 [17:36:04]RAPDU: 90 00 [17:36:04]wFMCommunicate OK [17:36:04]wFMCommunicate request_size=4 [17:36:04]MH_SAM_APDU [17:36:04]CAPDU: 80 0D 03 02 [17:36:04]Write to MH i2c: E2 08 00 28 1C 80 0D 03 02 00 00 00 00 BF [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 0B 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 0B 00 28 1C 00 FE B0 53 48 86 2D 14 F2 90 00 C2 [17:36:04]RAPDU: FE B0 53 48 86 2D 14 F2 90 00 [17:36:04]wFMCommunicate OK [17:36:04]SAM_PROTO_SignData done [17:36:04]FM_MakeSignedData done [17:36:04]CreateOFDProtocolMessage [17:36:04]wFMCommunicate request_size=4 [17:36:04]MH_SAM_APDU [17:36:04]CAPDU: 80 11 00 00 [17:36:04]Write to MH i2c: E2 08 00 29 1C 80 11 00 00 00 00 00 00 BF [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 17 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 17 00 29 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 12 [17:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:36:04]wFMCommunicate OK [17:36:04]CreateOFDProtocolMessage done [17:36:04]OFDSenderStorePacket 187424 [17:36:04]StoreOFDPacket docnum=187424 [17:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 00 D5 07 01 3F FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 04 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DC 02 00 35 04 06 00 09 75 B6 A4 D6 72 FE B0 53 48 86 2D 14 F2 [17:36:04]CheckFolder [17:36:04]dirname=/storage/ofd_packets [17:36:04]CheckFolder done [17:36:04]ProducePacketName [17:36:04]name=ofd_packets/00187424 [17:36:04]NVStorageSaveData ofd_packets/00187424 [17:36:04]File name is /storage/ofd_packets/00187424 [17:36:04]Write 301 bytes [17:36:04]NVStorageSaveData done [17:36:04]OFDSenderStorePacket done [17:36:04]KKMCreateOFDPacket done [17:36:04]NVStorageSaveData kkm_last_timestamp [17:36:04]File name is /storage/kkm_last_timestamp [17:36:04]Write 4 bytes [17:36:04]NVStorageSaveData done [17:36:04]ExternCall_PrintAddStr [17:36:04]wPrintStart [17:36:04]Write to MH i2c: 01 00 00 2A 1C 46 [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 2A 1C 00 00 00 00 00 FF 0F 5B [17:36:04]RasterBufferAndPrint [17:36:04]line Счет N : (1)412583 [17:36:04]line ИНН: 02508201610067 [17:36:04]line Контрольно-Кассовый Чек [17:36:04]line ПРОДАЖА [17:36:04]line ТРК (МРК, ГНК) : 32 [17:36:04]line Товар: 2710124130 [17:36:04]line Аи-92-К-2 [17:36:04]line 22.000 * 0.00 [17:36:04]line = 0.00 [17:36:04]line НДС 12% НСП 1% [17:36:04]line > о реализуемом товаре [17:36:04]line ИТОГО: 0.00 [17:36:04]line НСП 1% : 0.00 [17:36:04]line НДС 12% : 0.00 [17:36:04]line Наличными: 0.00 [17:36:04]line Безнал.: 0.00 [17:36:04]line Место: АЗС № 92 "Партнер Нефть" [17:36:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:36:04]line СНО: Общий режим [17:36:04]line Чек 225 20.02.2025 17:36 [17:36:04]line Смена: 648 ФФД: 1.0 [17:36:04]line ЗНМ: 0300000118 [17:36:04]line РНМ: 0000000000091857 [17:36:04]line Версия ККМ: 001 [17:36:04]line Талоны: Топливная Карта [17:36:04]line 43408 [17:36:04]line ФМ: 0000000000871826 [17:36:04]line ФД: 187424 [17:36:04]line ФПД: 10401180079730 [17:36:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173604&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187424&fm=10401180079730&tin=02508201610067®Number=0000000000091857&sum=0 [17:36:04]written 0, free lines is 4095 [17:36:04]OFD Sender: Processing packet 187424 [packets to send 49, broken 48] [17:36:04]ProducePacketName [17:36:04]name=ofd_packets/00187424 [17:36:04]OFD Sender: To server: pG, [17:36:04]CommunicateWithHost lk.salyk.kg:30040 [17:36:04]ConnectInit lk.salyk.kg [17:36:05]Connected sock=10 [17: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 31 38 32 36 0F 01 00 00 00 D5 07 01 3F FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 04 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DC 02 00 35 04 06 00 09 75 B6 A4 D6 72 FE B0 53 48 86 2D 14 F2 [17:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FB 06 47 00 A7 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DC 02 00 F4 03 04 00 54 0E B7 67 B6 04 01 00 00 CF 08 39 E1 6D 58 F2 D0 [17:36:05]CommunicateWithHost err = 0 [17:36:05]CheckOFDResponse [17:36:05]1017 (14) - 77093643461234 [17:36:05]1041 (16) - 0000000000871826 [17:36:05]1040 (4) - 187424 [17:36:05]1012 (4) - 20.02.2025 11:13 [17:36:05]1206 (1) - 0 [17:36:05]OFD Sender: Remove packet 187424 [17:36:05]ProducePacketName [17:36:05]name=ofd_packets/00187424 [17:36:05]NVStorageDeleteData [17:36:05]Write to MH i2c: 01 00 00 54 1C 70 [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: 01 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: 01 07 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: 01 07 00 54 1C 00 00 00 00 00 06 0D 8A [17:36:05]RasterBufferAndPrint [17:36:05]line [17:36:05]line [17:36:05]line [17:36:05]line [17:36:05]line [17:36:05]written 0, free lines is 3340 [17:36:05]MH_Cut [17:36:05]Write to MH i2c: D1 01 00 5B 1C 01 49 [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: D1 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: D1 01 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: D1 01 00 5B 1C 00 48 [17:36:05]Write to MH i2c: 01 00 00 5C 1C 78 [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]OFD Sender: No OFD packet to send [17:36:05]*** Cut start [17:36:05]*** Partial cut [17:36:05]*** CUTSNS_PIN = 1 [17:36:06]*** CUTSNS_PIN = 0 [17:36:06]*** Brake cut motor [17:36:06]Read from MH i2c: 01 [17:36:06]MH_I2C_Read... [17:36:06]*** Stop cut motor [17:36:06]*** Cut end [17:36:06]Read from MH i2c: 01 07 00 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: 01 07 00 5C 1C 00 00 00 00 00 FF 0F 8D [17:36:06]process_action close_receipt done [17:36:06]requested_data is exist [17:36:06]produce_requested_data [17:36:06]requested_item fm.sn is exist - process it [17:36:06]wFMCommunicate request_size=4 [17:36:06]MH_SAM_APDU [17:36:06]CAPDU: 80 11 00 00 [17:36:06]Write to MH i2c: E2 08 00 5D 1C 80 11 00 00 00 00 00 00 F3 [17:36:06]Write i2c OK [17:36:06]MH_I2C_Read... [17:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:06]Read from MH i2c: E2 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: E2 17 00 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: E2 17 00 5D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 46 [17:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:36:06]wFMCommunicate OK [17:36:06]requested_item fd.num is exist - process it [17:36:06]SAM_PROTO_GetFieldsCounters [17:36:06]wFMCommunicate request_size=4 [17:36:06]MH_SAM_APDU [17:36:06]CAPDU: 80 13 00 00 [17:36:06]Write to MH i2c: E2 08 00 5E 1C 80 13 00 00 00 00 00 00 F6 [17:36:06]Write i2c OK [17:36:06]MH_I2C_Read... [17:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:06]Read from MH i2c: E2 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: E2 62 00 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: E2 62 00 5E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 20 DC 02 00 0E 04 04 00 88 02 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 47 [17:36:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 20 DC 02 00 0E 04 04 00 88 02 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 [17:36:06]wFMCommunicate OK [17:36:06]SAM_PROTO_GetFieldsCounters done [17:36:06]requested_item shift.num is exist - process it [17:36:06]requested_item shift.opened is exist - process it [17:36:06]req_shift_opened [17:36:06]FM_GetShiftState [17:36:06]SAM_PROTO_GetShiftState [17:36:06]wFMCommunicate request_size=4 [17:36:06]MH_SAM_APDU [17:36:06]CAPDU: 80 13 01 00 [17:36:06]Write to MH i2c: E2 08 00 5F 1C 80 13 01 00 00 00 00 00 F8 [17:36:06]Write i2c OK [17:36:06]MH_I2C_Read... [17:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:06]Read from MH i2c: E2 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: E2 0E 00 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: E2 0E 00 5F 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4A [17:36:06]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:36:06]wFMCommunicate OK [17:36:06]SAM_PROTO_GetShiftState done [17:36:06]FM_GetShiftState done [17:36:06]req_shift_opened done [17:36:06]requested_item shift.open_date is exist - process it [17:36:06]req_shift_open_date [17:36:06]req_shift_open_date done [17:36:06]produce_requested_data done [17:36:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187424,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:36:06]process_action_free close_receipt [17:36:06]json_value_free [17:36:06]json_value_free done [17:36:06]process_json_proto returns [17:36:06]Send response to host [17:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187424,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:36:06]free response buf [17:36:06]execute_script done [17:36:06]execute_script returns [17:36:06]free content buf [17:36:06]Sock 7.Close socket [17:36:06]Sock 7.Thread stoped [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:12]accept exits with 9 [17:37:12]New connection [17:37:12]New thread 3067276644 created [17:37:12]Thread 3067420004 joined [17:37:12]Waiting for new connection... [17:37:12] Sock 9.Parse request [17:37:12]Sock 9.Check first char [17:37:12]Sock 9.First char is OK [17:37:12]request: POST /json_proto HTTP/1.0 [17:37:12]Method: POST [17:37:12]URL: /json_proto [17:37:12]Method is POST - this is cgi request [17:37:12]url: /json_proto [17:37:12]query_string will be loaded in cgi processing [17:37:12]execute_cgi json_proto POST (null) [17:37:12]execute_cgi path=json_proto method=POST [17:37:12]POST find Content-Length [17:37:12]Host: 172.17.46.131:8080 [17:37:12]Content-Length: 674 [17:37:12]Content-Type: application/json [17:37:12] [17:37:12]POST finish read [17:37:12]Found Content-Length = 674 [17:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "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" ] } } [17:37:12]execute_script... [17:37: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)412585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "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" ] } } [17:37:12]POST & json_proto [17:37:12]process_json_proto [17:37:12]json parsed OK: [17:37:12]protocol is kg_v1.0 [17:37:12]action value=close_receipt [17:37:12]process_action close_receipt [17:37:12]cmd_close_receipt [17:37:12]MH_GetDate [17:37:12]Write to MH i2c: F0 00 00 60 1C 6B [17:37:12]Write i2c OK [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: F0 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: F0 09 00 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: F0 09 00 60 1C 00 4A 68 B7 67 7E 41 4F 65 B7 [17:37:12]GetLastDocTimeStamp 1740072964 [17:37:12]current date 1740073034 [17:37:12]FM_GetShiftState [17:37:12]SAM_PROTO_GetShiftState [17:37:12]wFMCommunicate request_size=4 [17:37:12]MH_SAM_APDU [17:37:12]CAPDU: 80 13 01 00 [17:37:12]Write to MH i2c: E2 08 00 61 1C 80 13 01 00 00 00 00 00 FA [17:37:12]Write i2c OK [17:37:12]MH_I2C_Read... [17:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:12]Read from MH i2c: E2 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: E2 0E 00 [17:37:12]MH_I2C_Read... [17:37:12]Read from MH i2c: E2 0E 00 61 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4C [17:37:12]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:37:12]wFMCommunicate OK [17:37:12]SAM_PROTO_GetShiftState done [17:37:12]FM_GetShiftState done [17:37:12]opened in 1740011697 [17:37:12]opened+sec_in_day 1740098097 [17:37:12]quantity*price = 90024 [17:37:12]sum+1 = 90025 [17:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 226 20.02.2025 17:37 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187425 ФПД: 61709683943889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173714&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187425&fm=61709683943889&tin=02508201610067®Number=0000000000091857&sum=90000 [17:37:13]StoreToDocumentArchive [17:37:13]shift 648 fd 187425 [17:37:13]save to /storage/0648/doc_00187425 [17:37:13]save last doc name /storage/0648/doc_00187425 to /storage/kkm_last_doc_name [17:37:13]save OK [17:37:13]Clear old archive folders... [17:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:37:13]tlvbuf is B6FCA6E0 [17:37:13]SAM_PROTO_ClearQueue [17:37:13]wFMCommunicate request_size=4 [17:37:13]MH_SAM_APDU [17:37:13]CAPDU: 80 09 00 00 [17:37:13]Write to MH i2c: E2 08 00 6E 1C 80 09 00 00 00 00 00 00 FC [17:37:13]Write i2c OK [17:37:13]MH_I2C_Read... [17:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:13]Read from MH i2c: E2 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 03 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 03 00 6E 1C 00 90 00 FE [17:37:13]RAPDU: 90 00 [17:37:13]wFMCommunicate OK [17:37:13]SAM_PROTO_ClearQueue done [17:37:13]KKMCreateOFDPacket [17:37:13]OFDProtocolAddRootSTLVToBuf [17:37:13]FM_MakeSignedData [17:37:13]FM_MakeSignedData [17:37:13]SAM_PROTO_SignData [17:37:13]wFMCommunicate request_size=4 [17:37:13]MH_SAM_APDU [17:37:13]CAPDU: 80 0D 01 02 [17:37:13]Write to MH i2c: E2 08 00 6F 1C 80 0D 01 02 00 00 00 00 04 [17:37:13]Write i2c OK [17:37:13]MH_I2C_Read... [17:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:13]Read from MH i2c: E2 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 03 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 03 00 6F 1C 00 90 00 FF [17:37:13]RAPDU: 90 00 [17:37:13]wFMCommunicate OK [17:37:13]wFMCommunicate request_size=255 [17:37:13]MH_SAM_APDU [17:37:13]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 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 E2 00 00 00 F4 03 04 00 4A 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DC 02 00 35 04 06 00 38 1F E7 CA [17:37:13]Write to MH i2c: E2 02 01 70 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 E2 00 00 00 F4 03 04 00 4A 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DC 02 00 35 04 06 00 38 1F E7 CA 00 00 46 [17:37:13]Write i2c OK [17:37:13]MH_I2C_Read... [17:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:13]Read from MH i2c: E2 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 03 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [17:37:13]RAPDU: 90 00 [17:37:13]wFMCommunicate OK [17:37:13]wFMCommunicate request_size=7 [17:37:13]MH_SAM_APDU [17:37:13]CAPDU: 80 0D 02 02 02 69 D1 [17:37:13]Write to MH i2c: E2 0A 00 71 1C 80 0D 02 02 02 00 69 D1 00 00 45 [17:37:13]Write i2c OK [17:37:13]MH_I2C_Read... [17:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:13]Read from MH i2c: E2 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 03 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [17:37:13]RAPDU: 90 00 [17:37:13]wFMCommunicate OK [17:37:13]wFMCommunicate request_size=4 [17:37:13]MH_SAM_APDU [17:37:13]CAPDU: 80 0D 03 02 [17:37:13]Write to MH i2c: E2 08 00 72 1C 80 0D 03 02 00 00 00 00 09 [17:37:13]Write i2c OK [17:37:13]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 0B 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 0B 00 72 1C 00 3B 2E 2C 3F C6 71 D5 30 90 00 1A [17:37:14]RAPDU: 3B 2E 2C 3F C6 71 D5 30 90 00 [17:37:14]wFMCommunicate OK [17:37:14]SAM_PROTO_SignData done [17:37:14]FM_MakeSignedData done [17:37:14]CreateOFDProtocolMessage [17:37:14]wFMCommunicate request_size=4 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 11 00 00 [17:37:14]Write to MH i2c: E2 08 00 73 1C 80 11 00 00 00 00 00 00 09 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 17 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 17 00 73 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [17:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:37:14]wFMCommunicate OK [17:37:14]CreateOFDProtocolMessage done [17:37:14]OFDSenderStorePacket 187425 [17:37:14]StoreOFDPacket docnum=187425 [17:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 98 6C 04 01 51 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 E2 00 00 00 F4 03 04 00 4A 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DC 02 00 35 04 06 00 38 1F E7 CA 69 D1 3B 2E 2C 3F C6 71 D5 30 [17:37:14]CheckFolder [17:37:14]dirname=/storage/ofd_packets [17:37:14]CheckFolder done [17:37:14]ProducePacketName [17:37:14]name=ofd_packets/00187425 [17:37:14]NVStorageSaveData ofd_packets/00187425 [17:37:14]File name is /storage/ofd_packets/00187425 [17:37:14]Write 298 bytes [17:37:14]NVStorageSaveData done [17:37:14]OFDSenderStorePacket done [17:37:14]KKMCreateOFDPacket done [17:37:14]NVStorageSaveData kkm_last_timestamp [17:37:14]File name is /storage/kkm_last_timestamp [17:37:14]Write 4 bytes [17:37:14]NVStorageSaveData done [17:37:14]ExternCall_PrintAddStr [17:37:14]wPrintStart [17:37:14]Write to MH i2c: 01 00 00 74 1C 90 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 07 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 07 00 74 1C 00 00 00 00 00 FF 0F A5 [17:37:14]RasterBufferAndPrint [17:37:14]line Счет N : (1)412585 [17:37:14]line ИНН: 02508201610067 [17:37:14]line Контрольно-Кассовый Чек [17:37:14]line ПРОДАЖА [17:37:14]line ТРК (МРК, ГНК) : 6 [17:37:14]line Товар: 2710194210 [17:37:14]line ДТ-К-5 [17:37:14]line 12.400 * 72.60 [17:37:14]line = 900.24 [17:37:14]line НДС 12% НСП 1% [17:37:14]line > о реализуемом товаре [17:37:14]line ОКРУГЛЕНИЕ: -0.24 [17:37:14]line ИТОГО: 900.00 [17:37:14]line Внесено: 900.00 [17:37:14]line СДАЧА: 0.00 [17:37:14]line НСП 1% : 7.97 [17:37:14]line НДС 12% : 95.60 [17:37:14]line Наличными: 900.00 [17:37:14]line Безнал.: 0.00 [17:37:14]line Место: АЗС № 92 "Партнер Нефть" [17:37:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:37:14]line СНО: Общий режим [17:37:14]line Чек 226 20.02.2025 17:37 [17:37:14]line Смена: 648 ФФД: 1.0 [17:37:14]line ЗНМ: 0300000118 [17:37:14]line РНМ: 0000000000091857 [17:37:14]line Версия ККМ: 001 [17:37:14]line ФМ: 0000000000871826 [17:37:14]line ФД: 187425 [17:37:14]line ФПД: 61709683943889 [17:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173714&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187425&fm=61709683943889&tin=02508201610067®Number=0000000000091857&sum=90000 [17:37:14]OFD Sender: Processing packet 187425 [packets to send 49, broken 48] [17:37:14]ProducePacketName [17:37:14]name=ofd_packets/00187425 [17:37:14]OFD Sender: To server: pG, [17:37:14]CommunicateWithHost lk.salyk.kg:30040 [17:37:14]ConnectInit lk.salyk.kg [17:37:14]written 0, free lines is 4095 [17:37:14]Connected sock=7 [17:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 98 6C 04 01 51 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 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 58 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 E2 00 00 00 F4 03 04 00 4A 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DC 02 00 35 04 06 00 38 1F E7 CA 69 D1 3B 2E 2C 3F C6 71 D5 30 [17:37:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9C 91 47 00 AD 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DC 02 00 F4 03 04 00 9A 0E B7 67 B6 04 01 00 00 A2 B5 6A 0F E3 E7 12 1E [17:37:14]CommunicateWithHost err = 0 [17:37:14]CheckOFDResponse [17:37:14]1017 (14) - 77093643461234 [17:37:14]1041 (16) - 0000000000871826 [17:37:14]1040 (4) - 187425 [17:37:14]1012 (4) - 20.02.2025 11:14 [17:37:14]1206 (1) - 0 [17:37:14]OFD Sender: Remove packet 187425 [17:37:14]ProducePacketName [17:37:14]name=ofd_packets/00187425 [17:37:14]NVStorageDeleteData [17:37:14]Write to MH i2c: 01 00 00 9F 1C BB [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 07 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: 01 07 00 9F 1C 00 00 00 00 00 E6 0C B4 [17:37:14]RasterBufferAndPrint [17:37:14]line [17:37:14]line [17:37:14]line [17:37:14]line [17:37:14]line [17:37:14]written 0, free lines is 3309 [17:37:14]MH_Cut [17:37:14]Write to MH i2c: D1 01 00 A6 1C 01 94 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: D1 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: D1 01 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: D1 01 00 A6 1C 00 93 [17:37:14]Write to MH i2c: 01 00 00 A7 1C C3 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:15]OFD Sender: No OFD packet to send [17:37:15]*** Cut start [17:37:15]*** Partial cut [17:37:15]*** CUTSNS_PIN = 1 [17:37:15]*** CUTSNS_PIN = 0 [17:37:15]*** Brake cut motor [17:37:16]Read from MH i2c: 01 [17:37:16]MH_I2C_Read... [17:37:16]*** Stop cut motor [17:37:16]*** Cut end [17:37:16]Read from MH i2c: 01 07 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: 01 07 00 A7 1C 00 00 00 00 00 FF 0F D8 [17:37:16]process_action close_receipt done [17:37:16]requested_data is exist [17:37:16]produce_requested_data [17:37:16]requested_item fm.sn is exist - process it [17:37:16]wFMCommunicate request_size=4 [17:37:16]MH_SAM_APDU [17:37:16]CAPDU: 80 11 00 00 [17:37:16]Write to MH i2c: E2 08 00 A8 1C 80 11 00 00 00 00 00 00 3E [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:16]Read from MH i2c: E2 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 17 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 17 00 A8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 91 [17:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:37:16]wFMCommunicate OK [17:37:16]requested_item fd.num is exist - process it [17:37:16]SAM_PROTO_GetFieldsCounters [17:37:16]wFMCommunicate request_size=4 [17:37:16]MH_SAM_APDU [17:37:16]CAPDU: 80 13 00 00 [17:37:16]Write to MH i2c: E2 08 00 A9 1C 80 13 00 00 00 00 00 00 41 [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:16]Read from MH i2c: E2 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 62 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 62 00 A9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 21 DC 02 00 0E 04 04 00 88 02 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 96 [17:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 21 DC 02 00 0E 04 04 00 88 02 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 [17:37:16]wFMCommunicate OK [17:37:16]SAM_PROTO_GetFieldsCounters done [17:37:16]requested_item shift.num is exist - process it [17:37:16]requested_item shift.opened is exist - process it [17:37:16]req_shift_opened [17:37:16]FM_GetShiftState [17:37:16]SAM_PROTO_GetShiftState [17:37:16]wFMCommunicate request_size=4 [17:37:16]MH_SAM_APDU [17:37:16]CAPDU: 80 13 01 00 [17:37:16]Write to MH i2c: E2 08 00 AA 1C 80 13 01 00 00 00 00 00 43 [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:16]Read from MH i2c: E2 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 0E 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 0E 00 AA 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 95 [17:37:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:37:16]wFMCommunicate OK [17:37:16]SAM_PROTO_GetShiftState done [17:37:16]FM_GetShiftState done [17:37:16]req_shift_opened done [17:37:16]requested_item shift.open_date is exist - process it [17:37:16]req_shift_open_date [17:37:16]req_shift_open_date done [17:37:16]produce_requested_data done [17:37:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187425,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:37:16]process_action_free close_receipt [17:37:16]json_value_free [17:37:16]json_value_free done [17:37:16]process_json_proto returns [17:37:16]Send response to host [17:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187425,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:37:16]free response buf [17:37:16]execute_script done [17:37:16]execute_script returns [17:37:16]free content buf [17:37:16]Sock 9.Close socket [17:37:16]Sock 9.Thread stoped [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:04]accept exits with 10 [17:38:04]New connection [17:38:04]New thread 3067420004 created [17:38:04]Thread 3067276644 joined [17:38:04]Waiting for new connection... [17:38:04] Sock 10.Parse request [17:38:04]Sock 10.Check first char [17:38:04]Sock 10.First char is OK [17:38:04]request: POST /json_proto HTTP/1.0 [17:38:04]Method: POST [17:38:04]URL: /json_proto [17:38:04]Method is POST - this is cgi request [17:38:04]url: /json_proto [17:38:04]query_string will be loaded in cgi processing [17:38:04]execute_cgi json_proto POST (null) [17:38:04]execute_cgi path=json_proto method=POST [17:38:04]POST find Content-Length [17:38:04]Host: 172.17.46.131:8080 [17:38:04]Content-Length: 678 [17:38:04]Content-Type: application/json [17:38:04] [17:38:04]POST finish read [17:38:04]Found Content-Length = 678 [17:38:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:04]execute_script... [17:38: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)412584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:04]POST & json_proto [17:38:04]process_json_proto [17:38:04]json parsed OK: [17:38:04]protocol is kg_v1.0 [17:38:04]action value=close_receipt [17:38:04]process_action close_receipt [17:38:04]cmd_close_receipt [17:38:04]MH_GetDate [17:38:04]Write to MH i2c: F0 00 00 AB 1C B6 [17:38:04]Write i2c OK [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: F0 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: F0 09 00 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: F0 09 00 AB 1C 00 7D 68 B7 67 7E 41 4F 65 35 [17:38:04]GetLastDocTimeStamp 1740073034 [17:38:04]current date 1740073085 [17:38:04]FM_GetShiftState [17:38:04]SAM_PROTO_GetShiftState [17:38:04]wFMCommunicate request_size=4 [17:38:04]MH_SAM_APDU [17:38:04]CAPDU: 80 13 01 00 [17:38:04]Write to MH i2c: E2 08 00 AC 1C 80 13 01 00 00 00 00 00 45 [17:38:04]Write i2c OK [17:38:04]MH_I2C_Read... [17:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:04]Read from MH i2c: E2 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 0E 00 [17:38:04]MH_I2C_Read... [17:38:04]Read from MH i2c: E2 0E 00 AC 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 97 [17:38:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:38:04]wFMCommunicate OK [17:38:04]SAM_PROTO_GetShiftState done [17:38:04]FM_GetShiftState done [17:38:04]opened in 1740011697 [17:38:04]opened+sec_in_day 1740098097 [17:38:04]quantity*price = 250034 [17:38:04]sum+1 = 250035 [17:38:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 227 20.02.2025 17:38 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187426 ФПД: 192968591172158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187426&fm=192968591172158&tin=02508201610067®Number=0000000000091857&sum=250000 [17:38:05]StoreToDocumentArchive [17:38:05]shift 648 fd 187426 [17:38:05]save to /storage/0648/doc_00187426 [17:38:05]save last doc name /storage/0648/doc_00187426 to /storage/kkm_last_doc_name [17:38:05]save OK [17:38:05]Clear old archive folders... [17:38:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:38:05]tlvbuf is B6FCA730 [17:38:05]SAM_PROTO_ClearQueue [17:38:05]wFMCommunicate request_size=4 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 09 00 00 [17:38:05]Write to MH i2c: E2 08 00 B9 1C 80 09 00 00 00 00 00 00 47 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [17:38:05]RAPDU: 90 00 [17:38:05]wFMCommunicate OK [17:38:05]SAM_PROTO_ClearQueue done [17:38:05]KKMCreateOFDPacket [17:38:05]OFDProtocolAddRootSTLVToBuf [17:38:05]FM_MakeSignedData [17:38:05]FM_MakeSignedData [17:38:05]SAM_PROTO_SignData [17:38:05]wFMCommunicate request_size=4 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 0D 01 02 [17:38:05]Write to MH i2c: E2 08 00 BA 1C 80 0D 01 02 00 00 00 00 4F [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [17:38:05]RAPDU: 90 00 [17:38:05]wFMCommunicate OK [17:38:05]wFMCommunicate request_size=255 [17:38:05]MH_SAM_APDU [17:38: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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 E3 00 00 00 F4 03 04 00 7D 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DC 02 00 35 04 06 00 AF 81 00 54 [17:38:05]Write to MH i2c: E2 02 01 BB 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 E3 00 00 00 F4 03 04 00 7D 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DC 02 00 35 04 06 00 AF 81 00 54 00 00 42 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [17:38:05]RAPDU: 90 00 [17:38:05]wFMCommunicate OK [17:38:05]wFMCommunicate request_size=7 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 0D 02 02 02 62 3E [17:38:05]Write to MH i2c: E2 0A 00 BC 1C 80 0D 02 02 02 00 62 3E 00 00 F6 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 BC 1C 00 90 00 4C [17:38:05]RAPDU: 90 00 [17:38:05]wFMCommunicate OK [17:38:05]wFMCommunicate request_size=4 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 0D 03 02 [17:38:05]Write to MH i2c: E2 08 00 BD 1C 80 0D 03 02 00 00 00 00 54 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 0B 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 0B 00 BD 1C 00 30 CE 62 B6 D0 FC 0D F6 90 00 3A [17:38:05]RAPDU: 30 CE 62 B6 D0 FC 0D F6 90 00 [17:38:05]wFMCommunicate OK [17:38:05]SAM_PROTO_SignData done [17:38:05]FM_MakeSignedData done [17:38:05]CreateOFDProtocolMessage [17:38:05]wFMCommunicate request_size=4 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 11 00 00 [17:38:05]Write to MH i2c: E2 08 00 BE 1C 80 11 00 00 00 00 00 00 54 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 17 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 17 00 BE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [17:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:38:05]wFMCommunicate OK [17:38:05]CreateOFDProtocolMessage done [17:38:05]OFDSenderStorePacket 187426 [17:38:05]StoreOFDPacket docnum=187426 [17:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 64 09 04 01 C5 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 E3 00 00 00 F4 03 04 00 7D 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DC 02 00 35 04 06 00 AF 81 00 54 62 3E 30 CE 62 B6 D0 FC 0D F6 [17:38:05]CheckFolder [17:38:05]dirname=/storage/ofd_packets [17:38:05]CheckFolder done [17:38:05]ProducePacketName [17:38:05]name=ofd_packets/00187426 [17:38:05]NVStorageSaveData ofd_packets/00187426 [17:38:05]File name is /storage/ofd_packets/00187426 [17:38:05]Write 298 bytes [17:38:05]NVStorageSaveData done [17:38:05]OFDSenderStorePacket done [17:38:05]KKMCreateOFDPacket done [17:38:05]NVStorageSaveData kkm_last_timestamp [17:38:05]File name is /storage/kkm_last_timestamp [17:38:05]Write 4 bytes [17:38:05]NVStorageSaveData done [17:38:05]ExternCall_PrintAddStr [17:38:05]wPrintStart [17:38:05]Write to MH i2c: 01 00 00 BF 1C DB [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: 01 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: 01 07 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: 01 07 00 BF 1C 00 00 00 00 00 FF 0F F0 [17:38:05]RasterBufferAndPrint [17:38:05]line Счет N : (1)412584 [17:38:05]line ИНН: 02508201610067 [17:38:05]line Контрольно-Кассовый Чек [17:38:05]line ПРОДАЖА [17:38:05]line ТРК (МРК, ГНК) : 5 [17:38:05]line Товар: 2710194210 [17:38:05]line ДТ-К-5 [17:38:05]line 34.440 * 72.60 [17:38:05]line = 2500.34 [17:38:05]line НДС 12% НСП 1% [17:38:05]line > о реализуемом товаре [17:38:05]line ОКРУГЛЕНИЕ: -0.34 [17:38:05]line ИТОГО: 2500.00 [17:38:05]line Внесено: 2500.00 [17:38:05]line СДАЧА: 0.00 [17:38:05]line НСП 1% : 22.13 [17:38:05]line НДС 12% : 265.52 [17:38:05]line Наличными: 2500.00 [17:38:05]line Безнал.: 0.00 [17:38:05]line Место: АЗС № 92 "Партнер Нефть" [17:38:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:38:05]line СНО: Общий режим [17:38:05]line Чек 227 20.02.2025 17:38 [17:38:05]line Смена: 648 ФФД: 1.0 [17:38:05]line ЗНМ: 0300000118 [17:38:05]line РНМ: 0000000000091857 [17:38:05]line Версия ККМ: 001 [17:38:05]line ФМ: 0000000000871826 [17:38:05]line ФД: 187426 [17:38:05]line ФПД: 192968591172158 [17:38:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187426&fm=192968591172158&tin=02508201610067®Number=0000000000091857&sum=250000 [17:38:06]OFD Sender: Processing packet 187426 [packets to send 49, broken 48] [17:38:06]ProducePacketName [17:38:06]name=ofd_packets/00187426 [17:38:06]OFD Sender: To server: pG, [17:38:06]CommunicateWithHost lk.salyk.kg:30040 [17:38:06]ConnectInit lk.salyk.kg [17:38:06]written 0, free lines is 4095 [17:38:06]Connected sock=9 [17:38:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 64 09 04 01 C5 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 E3 00 00 00 F4 03 04 00 7D 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DC 02 00 35 04 06 00 AF 81 00 54 62 3E 30 CE 62 B6 D0 FC 0D F6 [17:38:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CD 65 47 00 BE 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 31 38 32 36 10 04 04 00 22 DC 02 00 F4 03 04 00 CE 0E B7 67 B6 04 01 00 00 FD 63 9A F0 10 BE 55 17 [17:38:06]CommunicateWithHost err = 0 [17:38:06]CheckOFDResponse [17:38:06]1017 (14) - 77093643461234 [17:38:06]1041 (16) - 0000000000871826 [17:38:06]1040 (4) - 187426 [17:38:06]1012 (4) - 20.02.2025 11:15 [17:38:06]1206 (1) - 0 [17:38:06]OFD Sender: Remove packet 187426 [17:38:06]ProducePacketName [17:38:06]name=ofd_packets/00187426 [17:38:06]NVStorageDeleteData [17:38:06]Write to MH i2c: 01 00 00 EA 1C 06 [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 07 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 07 00 EA 1C 00 00 00 00 00 F3 0C 0C [17:38:06]RasterBufferAndPrint [17:38:06]line [17:38:06]line [17:38:06]line [17:38:06]line [17:38:06]line [17:38:06]written 0, free lines is 3321 [17:38:06]MH_Cut [17:38:06]Write to MH i2c: D1 01 00 F1 1C 01 DF [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: D1 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: D1 01 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: D1 01 00 F1 1C 00 DE [17:38:06]Write to MH i2c: 01 00 00 F2 1C 0E [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:07]OFD Sender: No OFD packet to send [17:38:07]*** Cut start [17:38:07]*** Partial cut [17:38:07]*** CUTSNS_PIN = 1 [17:38:07]*** CUTSNS_PIN = 0 [17:38:07]*** Brake cut motor [17:38:08]Read from MH i2c: 01 [17:38:08]MH_I2C_Read... [17:38:08]*** Stop cut motor [17:38:08]*** Cut end [17:38:08]Read from MH i2c: 01 07 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: 01 07 00 F2 1C 00 00 00 00 00 FF 0F 23 [17:38:08]process_action close_receipt done [17:38:08]requested_data is exist [17:38:08]produce_requested_data [17:38:08]requested_item fm.sn is exist - process it [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 11 00 00 [17:38:08]Write to MH i2c: E2 08 00 F3 1C 80 11 00 00 00 00 00 00 89 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 17 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 17 00 F3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DC [17:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:38:08]wFMCommunicate OK [17:38:08]requested_item fd.num is exist - process it [17:38:08]SAM_PROTO_GetFieldsCounters [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 13 00 00 [17:38:08]Write to MH i2c: E2 08 00 F4 1C 80 13 00 00 00 00 00 00 8C [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 62 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 62 00 F4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 22 DC 02 00 0E 04 04 00 88 02 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 E5 [17:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 22 DC 02 00 0E 04 04 00 88 02 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 [17:38:08]wFMCommunicate OK [17:38:08]SAM_PROTO_GetFieldsCounters done [17:38:08]requested_item shift.num is exist - process it [17:38:08]requested_item shift.opened is exist - process it [17:38:08]req_shift_opened [17:38:08]FM_GetShiftState [17:38:08]SAM_PROTO_GetShiftState [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 13 01 00 [17:38:08]Write to MH i2c: E2 08 00 F5 1C 80 13 01 00 00 00 00 00 8E [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 0E 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 0E 00 F5 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E0 [17:38:08]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:38:08]wFMCommunicate OK [17:38:08]SAM_PROTO_GetShiftState done [17:38:08]FM_GetShiftState done [17:38:08]req_shift_opened done [17:38:08]requested_item shift.open_date is exist - process it [17:38:08]req_shift_open_date [17:38:08]req_shift_open_date done [17:38:08]produce_requested_data done [17:38:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187426,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:38:08]process_action_free close_receipt [17:38:08]json_value_free [17:38:08]json_value_free done [17:38:08]process_json_proto returns [17:38:08]Send response to host [17:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187426,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:38:08]free response buf [17:38:08]execute_script done [17:38:08]execute_script returns [17:38:08]free content buf [17:38:08]Sock 10.Close socket [17:38:08]Sock 10.Thread stoped [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:43]accept exits with 7 [17:38:43]New connection [17:38:43]New thread 3067276644 created [17:38:43]Thread 3067420004 joined [17:38:43]Waiting for new connection... [17:38:43] Sock 7.Parse request [17:38:43]Sock 7.Check first char [17:38:43]Sock 7.First char is OK [17:38:43]request: POST /json_proto HTTP/1.0 [17:38:43]Method: POST [17:38:43]URL: /json_proto [17:38:43]Method is POST - this is cgi request [17:38:43]url: /json_proto [17:38:43]query_string will be loaded in cgi processing [17:38:43]execute_cgi json_proto POST (null) [17:38:43]execute_cgi path=json_proto method=POST [17:38:43]POST find Content-Length [17:38:43]Host: 172.17.46.131:8080 [17:38:43]Content-Length: 678 [17:38:43]Content-Type: application/json [17:38:43] [17:38:43]POST finish read [17:38:43]Found Content-Length = 678 [17:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 11.220, "sum" : 720.32, "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" ] } } [17:38:43]execute_script... [17:38: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)412586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 11.220, "sum" : 720.32, "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" ] } } [17:38:43]POST & json_proto [17:38:43]process_json_proto [17:38:43]json parsed OK: [17:38:43]protocol is kg_v1.0 [17:38:43]action value=close_receipt [17:38:43]process_action close_receipt [17:38:43]cmd_close_receipt [17:38:43]MH_GetDate [17:38:43]Write to MH i2c: F0 00 00 F6 1C 01 [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: F0 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: F0 09 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: F0 09 00 F6 1C 00 A5 68 B7 67 7E 41 4F 65 A8 [17:38:43]GetLastDocTimeStamp 1740073085 [17:38:43]current date 1740073125 [17:38:43]FM_GetShiftState [17:38:43]SAM_PROTO_GetShiftState [17:38:43]wFMCommunicate request_size=4 [17:38:43]MH_SAM_APDU [17:38:43]CAPDU: 80 13 01 00 [17:38:43]Write to MH i2c: E2 08 00 F7 1C 80 13 01 00 00 00 00 00 90 [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:43]Read from MH i2c: E2 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 0E 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 0E 00 F7 1C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E2 [17:38:43]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:38:43]wFMCommunicate OK [17:38:43]SAM_PROTO_GetShiftState done [17:38:43]FM_GetShiftState done [17:38:43]opened in 1740011697 [17:38:43]opened+sec_in_day 1740098097 [17:38:43]quantity*price = 72032 [17:38:43]sum+1 = 72033 [17:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.49 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 228 20.02.2025 17:38 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187427 ФПД: 176402932664952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173845&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187427&fm=176402932664952&tin=02508201610067®Number=0000000000091857&sum=72000 [17:38:44]StoreToDocumentArchive [17:38:44]shift 648 fd 187427 [17:38:44]save to /storage/0648/doc_00187427 [17:38:44]save last doc name /storage/0648/doc_00187427 to /storage/kkm_last_doc_name [17:38:44]save OK [17:38:44]Clear old archive folders... [17:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:44]tlvbuf is 00E2B4A0 [17:38:44]SAM_PROTO_ClearQueue [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 09 00 00 [17:38:44]Write to MH i2c: E2 08 00 04 1D 80 09 00 00 00 00 00 00 93 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 04 1D 00 90 00 95 [17:38:44]RAPDU: 90 00 [17:38:44]wFMCommunicate OK [17:38:44]SAM_PROTO_ClearQueue done [17:38:44]KKMCreateOFDPacket [17:38:44]OFDProtocolAddRootSTLVToBuf [17:38:44]FM_MakeSignedData [17:38:44]FM_MakeSignedData [17:38:44]SAM_PROTO_SignData [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 0D 01 02 [17:38:44]Write to MH i2c: E2 08 00 05 1D 80 0D 01 02 00 00 00 00 9B [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:45]Read from MH i2c: E2 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 03 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 03 00 05 1D 00 90 00 96 [17:38:45]RAPDU: 90 00 [17:38:45]wFMCommunicate OK [17:38:45]wFMCommunicate request_size=255 [17:38:45]MH_SAM_APDU [17:38: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 32 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 60 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 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 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 E4 00 00 00 F4 03 04 00 A5 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DC 02 00 35 04 06 00 A0 [17:38:45]Write to MH i2c: E2 02 01 06 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 60 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 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 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 E4 00 00 00 F4 03 04 00 A5 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DC 02 00 35 04 06 00 A0 00 00 B8 [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:45]Read from MH i2c: E2 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 03 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 03 00 06 1D 00 90 00 97 [17:38:45]RAPDU: 90 00 [17:38:45]wFMCommunicate OK [17:38:45]wFMCommunicate request_size=10 [17:38:45]MH_SAM_APDU [17:38:45]CAPDU: 80 0D 02 02 05 70 02 23 8A 78 [17:38:45]Write to MH i2c: E2 0D 00 07 1D 80 0D 02 02 05 00 70 02 23 8A 78 00 00 3F [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:45]Read from MH i2c: E2 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 03 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 03 00 07 1D 00 90 00 98 [17:38:45]RAPDU: 90 00 [17:38:45]wFMCommunicate OK [17:38:45]wFMCommunicate request_size=4 [17:38:45]MH_SAM_APDU [17:38:45]CAPDU: 80 0D 03 02 [17:38:45]Write to MH i2c: E2 08 00 08 1D 80 0D 03 02 00 00 00 00 A0 [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:45]Read from MH i2c: E2 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 0B 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 0B 00 08 1D 00 ED 77 89 5D 39 D8 BB C6 90 00 7D [17:38:45]RAPDU: ED 77 89 5D 39 D8 BB C6 90 00 [17:38:45]wFMCommunicate OK [17:38:45]SAM_PROTO_SignData done [17:38:45]FM_MakeSignedData done [17:38:45]CreateOFDProtocolMessage [17:38:45]wFMCommunicate request_size=4 [17:38:45]MH_SAM_APDU [17:38:45]CAPDU: 80 11 00 00 [17:38:45]Write to MH i2c: E2 08 00 09 1D 80 11 00 00 00 00 00 00 A0 [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:45]Read from MH i2c: E2 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 17 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 17 00 09 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F3 [17:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:38:45]wFMCommunicate OK [17:38:45]CreateOFDProtocolMessage done [17:38:45]OFDSenderStorePacket 187427 [17:38:45]StoreOFDPacket docnum=187427 [17:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F F4 07 01 FE 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 60 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 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 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 E4 00 00 00 F4 03 04 00 A5 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DC 02 00 35 04 06 00 A0 70 02 23 8A 78 ED 77 89 5D 39 D8 BB C6 [17:38:45]CheckFolder [17:38:45]dirname=/storage/ofd_packets [17:38:45]CheckFolder done [17:38:45]ProducePacketName [17:38:45]name=ofd_packets/00187427 [17:38:45]NVStorageSaveData ofd_packets/00187427 [17:38:45]File name is /storage/ofd_packets/00187427 [17:38:45]Write 301 bytes [17:38:45]NVStorageSaveData done [17:38:45]OFDSenderStorePacket done [17:38:45]KKMCreateOFDPacket done [17:38:45]NVStorageSaveData kkm_last_timestamp [17:38:45]File name is /storage/kkm_last_timestamp [17:38:45]Write 4 bytes [17:38:45]NVStorageSaveData done [17:38:45]ExternCall_PrintAddStr [17:38:45]wPrintStart [17:38:45]Write to MH i2c: 01 00 00 0A 1D 27 [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: 01 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: 01 07 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: 01 07 00 0A 1D 00 00 00 00 00 FF 0F 3C [17:38:45]RasterBufferAndPrint [17:38:45]line Счет N : (1)412586 [17:38:45]line ИНН: 02508201610067 [17:38:45]line Контрольно-Кассовый Чек [17:38:45]line ПРОДАЖА [17:38:45]line ТРК (МРК, ГНК) : 12 [17:38:45]line Товар: 2710124130 [17:38:45]line Аи-92-К-2 [17:38:45]line 11.220 * 64.20 [17:38:45]line = 720.32 [17:38:45]line НДС 12% НСП 1% [17:38:45]line > о реализуемом товаре [17:38:45]line ОКРУГЛЕНИЕ: -0.32 [17:38:45]line ИТОГО: 720.00 [17:38:45]line Внесено: 720.00 [17:38:45]line СДАЧА: 0.00 [17:38:45]line НСП 1% : 6.37 [17:38:45]line НДС 12% : 76.49 [17:38:45]line Наличными: 720.00 [17:38:45]line Безнал.: 0.00 [17:38:45]line Место: АЗС № 92 "Партнер Нефть" [17:38:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:38:45]line СНО: Общий режим [17:38:45]line Чек 228 20.02.2025 17:38 [17:38:45]line Смена: 648 ФФД: 1.0 [17:38:45]line ЗНМ: 0300000118 [17:38:45]line РНМ: 0000000000091857 [17:38:45]line Версия ККМ: 001 [17:38:45]line ФМ: 0000000000871826 [17:38:45]line ФД: 187427 [17:38:45]line ФПД: 176402932664952 [17:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T173845&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187427&fm=176402932664952&tin=02508201610067®Number=0000000000091857&sum=72000 [17:38:45]OFD Sender: Processing packet 187427 [packets to send 49, broken 48] [17:38:45]ProducePacketName [17:38:45]name=ofd_packets/00187427 [17:38:45]OFD Sender: To server: pG, [17:38:45]CommunicateWithHost lk.salyk.kg:30040 [17:38:45]ConnectInit lk.salyk.kg [17:38:45]written 0, free lines is 4095 [17:38:45]Connected sock=10 [17:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F F4 07 01 FE 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 60 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 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 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 E4 00 00 00 F4 03 04 00 A5 68 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DC 02 00 35 04 06 00 A0 70 02 23 8A 78 ED 77 89 5D 39 D8 BB C6 [17:38:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8D 08 47 00 19 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 31 38 32 36 10 04 04 00 23 DC 02 00 F4 03 04 00 F5 0E B7 67 B6 04 01 00 00 4A 12 F5 DD 0E 4B 3C 2F [17:38:46]CommunicateWithHost err = 0 [17:38:46]CheckOFDResponse [17:38:46]1017 (14) - 77093643461234 [17:38:46]1041 (16) - 0000000000871826 [17:38:46]1040 (4) - 187427 [17:38:46]1012 (4) - 20.02.2025 11:16 [17:38:46]1206 (1) - 0 [17:38:46]OFD Sender: Remove packet 187427 [17:38:46]ProducePacketName [17:38:46]name=ofd_packets/00187427 [17:38:46]NVStorageDeleteData [17:38:46]Write to MH i2c: 01 00 00 35 1D 52 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: 01 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: 01 07 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: 01 07 00 35 1D 00 00 00 00 00 E5 0C 4A [17:38:46]RasterBufferAndPrint [17:38:46]line [17:38:46]line [17:38:46]line [17:38:46]line [17:38:46]line [17:38:46]written 0, free lines is 3307 [17:38:46]MH_Cut [17:38:46]Write to MH i2c: D1 01 00 3C 1D 01 2B [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: D1 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: D1 01 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: D1 01 00 3C 1D 00 2A [17:38:46]Write to MH i2c: 01 00 00 3D 1D 5A [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]OFD Sender: No OFD packet to send [17:38:46]*** Cut start [17:38:46]*** Partial cut [17:38:46]*** CUTSNS_PIN = 1 [17:38:46]*** CUTSNS_PIN = 0 [17:38:47]*** Brake cut motor [17:38:47]Read from MH i2c: 01 [17:38:47]MH_I2C_Read... [17:38:47]*** Stop cut motor [17:38:47]*** Cut end [17:38:47]Read from MH i2c: 01 07 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: 01 07 00 3D 1D 00 00 00 00 00 FF 0F 6F [17:38:47]process_action close_receipt done [17:38:47]requested_data is exist [17:38:47]produce_requested_data [17:38:47]requested_item fm.sn is exist - process it [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 11 00 00 [17:38:47]Write to MH i2c: E2 08 00 3E 1D 80 11 00 00 00 00 00 00 D5 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 17 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 17 00 3E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 28 [17:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:38:47]wFMCommunicate OK [17:38:47]requested_item fd.num is exist - process it [17:38:47]SAM_PROTO_GetFieldsCounters [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 13 00 00 [17:38:47]Write to MH i2c: E2 08 00 3F 1D 80 13 00 00 00 00 00 00 D8 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 62 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 62 00 3F 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 23 DC 02 00 0E 04 04 00 88 02 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 35 [17:38:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 23 DC 02 00 0E 04 04 00 88 02 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 [17:38:47]wFMCommunicate OK [17:38:47]SAM_PROTO_GetFieldsCounters done [17:38:47]requested_item shift.num is exist - process it [17:38:47]requested_item shift.opened is exist - process it [17:38:47]req_shift_opened [17:38:47]FM_GetShiftState [17:38:47]SAM_PROTO_GetShiftState [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 13 01 00 [17:38:47]Write to MH i2c: E2 08 00 40 1D 80 13 01 00 00 00 00 00 DA [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 0E 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 0E 00 40 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2C [17:38:47]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:38:47]wFMCommunicate OK [17:38:47]SAM_PROTO_GetShiftState done [17:38:47]FM_GetShiftState done [17:38:47]req_shift_opened done [17:38:47]requested_item shift.open_date is exist - process it [17:38:47]req_shift_open_date [17:38:47]req_shift_open_date done [17:38:47]produce_requested_data done [17:38:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187427,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:38:47]process_action_free close_receipt [17:38:47]json_value_free [17:38:47]json_value_free done [17:38:47]process_json_proto returns [17:38:47]Send response to host [17:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187427,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:38:47]free response buf [17:38:47]execute_script done [17:38:47]execute_script returns [17:38:47]free content buf [17:38:47]Sock 7.Close socket [17:38:47]Sock 7.Thread stoped [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:44:59]accept exits with 9 [17:44:59]New connection [17:44:59]New thread 3067420004 created [17:44:59]Thread 3067276644 joined [17:44:59]Waiting for new connection... [17:44:59] Sock 9.Parse request [17:44:59]Sock 9.Check first char [17:44:59]Sock 9.First char is OK [17:44:59]request: POST /json_proto HTTP/1.0 [17:44:59]Method: POST [17:44:59]URL: /json_proto [17:44:59]Method is POST - this is cgi request [17:44:59]url: /json_proto [17:44:59]query_string will be loaded in cgi processing [17:44:59]execute_cgi json_proto POST (null) [17:44:59]execute_cgi path=json_proto method=POST [17:44:59]POST find Content-Length [17:44:59]Host: 172.17.46.131:8080 [17:44:59]Content-Length: 678 [17:44:59]Content-Type: application/json [17:44:59] [17:44:59]POST finish read [17:44:59]Found Content-Length = 678 [17:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:59]execute_script... [17: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)412587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:59]POST & json_proto [17:44:59]process_json_proto [17:44:59]json parsed OK: [17:44:59]protocol is kg_v1.0 [17:44:59]action value=close_receipt [17:44:59]process_action close_receipt [17:44:59]cmd_close_receipt [17:44:59]MH_GetDate [17:44:59]Write to MH i2c: F0 00 00 41 1D 4D [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: F0 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: F0 09 00 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: F0 09 00 41 1D 00 1C 6A B7 67 7E 41 4F 65 6D [17:44:59]GetLastDocTimeStamp 1740073125 [17:44:59]current date 1740073500 [17:44:59]FM_GetShiftState [17:44:59]SAM_PROTO_GetShiftState [17:44:59]wFMCommunicate request_size=4 [17:44:59]MH_SAM_APDU [17:44:59]CAPDU: 80 13 01 00 [17:44:59]Write to MH i2c: E2 08 00 42 1D 80 13 01 00 00 00 00 00 DC [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:59]Read from MH i2c: E2 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: E2 0E 00 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: E2 0E 00 42 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2E [17:44:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:44:59]wFMCommunicate OK [17:44:59]SAM_PROTO_GetShiftState done [17:44:59]FM_GetShiftState done [17:44:59]opened in 1740011697 [17:44:59]opened+sec_in_day 1740098097 [17:44:59]quantity*price = 100042 [17:44:59]sum+1 = 100044 [17:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 229 20.02.2025 17:45 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187428 ФПД: 22582297776203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T174500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187428&fm=22582297776203&tin=02508201610067®Number=0000000000091857&sum=100000 [17:45:00]StoreToDocumentArchive [17:45:00]shift 648 fd 187428 [17:45:00]save to /storage/0648/doc_00187428 [17:45:00]save last doc name /storage/0648/doc_00187428 to /storage/kkm_last_doc_name [17:45:00]save OK [17:45:00]Clear old archive folders... [17:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:45:00]tlvbuf is 00E7BD30 [17:45:00]SAM_PROTO_ClearQueue [17:45:00]wFMCommunicate request_size=4 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 09 00 00 [17:45:00]Write to MH i2c: E2 08 00 4F 1D 80 09 00 00 00 00 00 00 DE [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 4F 1D 00 90 00 E0 [17:45:00]RAPDU: 90 00 [17:45:00]wFMCommunicate OK [17:45:00]SAM_PROTO_ClearQueue done [17:45:00]KKMCreateOFDPacket [17:45:00]OFDProtocolAddRootSTLVToBuf [17:45:00]FM_MakeSignedData [17:45:00]FM_MakeSignedData [17:45:00]SAM_PROTO_SignData [17:45:00]wFMCommunicate request_size=4 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 0D 01 02 [17:45:00]Write to MH i2c: E2 08 00 50 1D 80 0D 01 02 00 00 00 00 E6 [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 50 1D 00 90 00 E1 [17:45:00]RAPDU: 90 00 [17:45:00]wFMCommunicate OK [17:45:00]wFMCommunicate request_size=255 [17:45:00]MH_SAM_APDU [17:45: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 1C 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DC 02 00 35 04 06 00 14 89 D9 D6 [17:45:00]Write to MH i2c: E2 02 01 51 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 1C 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DC 02 00 35 04 06 00 14 89 D9 D6 00 00 EB [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 51 1D 00 90 00 E2 [17:45:00]RAPDU: 90 00 [17:45:00]wFMCommunicate OK [17:45:00]wFMCommunicate request_size=7 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 0D 02 02 02 50 4B [17:45:00]Write to MH i2c: E2 0A 00 52 1D 80 0D 02 02 02 00 50 4B 00 00 88 [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 52 1D 00 90 00 E3 [17:45:00]RAPDU: 90 00 [17:45:00]wFMCommunicate OK [17:45:00]wFMCommunicate request_size=4 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 0D 03 02 [17:45:00]Write to MH i2c: E2 08 00 53 1D 80 0D 03 02 00 00 00 00 EB [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 0B 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 0B 00 53 1D 00 33 2D 27 C8 65 FC 13 DD 90 00 8C [17:45:00]RAPDU: 33 2D 27 C8 65 FC 13 DD 90 00 [17:45:00]wFMCommunicate OK [17:45:00]SAM_PROTO_SignData done [17:45:00]FM_MakeSignedData done [17:45:00]CreateOFDProtocolMessage [17:45:00]wFMCommunicate request_size=4 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 11 00 00 [17:45:00]Write to MH i2c: E2 08 00 54 1D 80 11 00 00 00 00 00 00 EB [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 17 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 17 00 54 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [17:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:45:00]wFMCommunicate OK [17:45:00]CreateOFDProtocolMessage done [17:45:00]OFDSenderStorePacket 187428 [17:45:00]StoreOFDPacket docnum=187428 [17:45:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 57 A3 04 01 31 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 1C 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DC 02 00 35 04 06 00 14 89 D9 D6 50 4B 33 2D 27 C8 65 FC 13 DD [17:45:00]CheckFolder [17:45:00]dirname=/storage/ofd_packets [17:45:00]CheckFolder done [17:45:00]ProducePacketName [17:45:00]name=ofd_packets/00187428 [17:45:00]NVStorageSaveData ofd_packets/00187428 [17:45:00]File name is /storage/ofd_packets/00187428 [17:45:00]Write 298 bytes [17:45:00]NVStorageSaveData done [17:45:00]OFDSenderStorePacket done [17:45:00]KKMCreateOFDPacket done [17:45:00]NVStorageSaveData kkm_last_timestamp [17:45:00]File name is /storage/kkm_last_timestamp [17:45:00]Write 4 bytes [17:45:00]NVStorageSaveData done [17:45:00]ExternCall_PrintAddStr [17:45:00]wPrintStart [17:45:00]Write to MH i2c: 01 00 00 55 1D 72 [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: 01 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: 01 07 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: 01 07 00 55 1D 00 00 00 00 00 FF 0F 87 [17:45:00]RasterBufferAndPrint [17:45:00]line Счет N : (1)412587 [17:45:00]line ИНН: 02508201610067 [17:45:00]line Контрольно-Кассовый Чек [17:45:00]line ПРОДАЖА [17:45:00]line ТРК (МРК, ГНК) : 5 [17:45:00]line Товар: 2710194210 [17:45:00]line ДТ-К-5 [17:45:00]line 13.780 * 72.60 [17:45:00]line = 1000.43 [17:45:00]line НДС 12% НСП 1% [17:45:00]line > о реализуемом товаре [17:45:00]line ОКРУГЛЕНИЕ: -0.43 [17:45:00]line ИТОГО: 1000.00 [17:45:00]line Внесено: 1000.00 [17:45:00]line СДАЧА: 0.00 [17:45:00]line НСП 1% : 8.85 [17:45:00]line НДС 12% : 106.24 [17:45:00]line Наличными: 1000.00 [17:45:00]line Безнал.: 0.00 [17:45:00]line Место: АЗС № 92 "Партнер Нефть" [17:45:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:45:00]line СНО: Общий режим [17:45:00]line Чек 229 20.02.2025 17:45 [17:45:00]line Смена: 648 ФФД: 1.0 [17:45:00]line ЗНМ: 0300000118 [17:45:00]line РНМ: 0000000000091857 [17:45:00]line Версия ККМ: 001 [17:45:00]line ФМ: 0000000000871826 [17:45:00]line ФД: 187428 [17:45:00]line ФПД: 22582297776203 [17:45:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T174500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187428&fm=22582297776203&tin=02508201610067®Number=0000000000091857&sum=100000 [17:45:01]OFD Sender: Processing packet 187428 [packets to send 49, broken 48] [17:45:01]ProducePacketName [17:45:01]name=ofd_packets/00187428 [17:45:01]OFD Sender: To server: pG, [17:45:01]CommunicateWithHost lk.salyk.kg:30040 [17:45:01]ConnectInit lk.salyk.kg [17:45:01]written 0, free lines is 4095 [17:45:01]Connected sock=10 [17:45:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 57 A3 04 01 31 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 1C 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DC 02 00 35 04 06 00 14 89 D9 D6 50 4B 33 2D 27 C8 65 FC 13 DD [17:45:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 38 88 47 00 81 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DC 02 00 F4 03 04 00 6D 10 B7 67 B6 04 01 00 00 7C 9C F5 BE 5C C1 FE ED [17:45:01]CommunicateWithHost err = 0 [17:45:01]CheckOFDResponse [17:45:01]1017 (14) - 77093643461234 [17:45:01]1041 (16) - 0000000000871826 [17:45:01]1040 (4) - 187428 [17:45:01]1012 (4) - 20.02.2025 11:22 [17:45:01]1206 (1) - 0 [17:45:01]OFD Sender: Remove packet 187428 [17:45:01]ProducePacketName [17:45:01]name=ofd_packets/00187428 [17:45:01]NVStorageDeleteData [17:45:01]Write to MH i2c: 01 00 00 80 1D 9D [17:45:01]Write i2c OK [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: 01 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: 01 07 00 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: 01 07 00 80 1D 00 00 00 00 00 E4 0C 94 [17:45:01]RasterBufferAndPrint [17:45:01]line [17:45:01]line [17:45:01]line [17:45:01]line [17:45:01]line [17:45:01]written 0, free lines is 3306 [17:45:01]MH_Cut [17:45:01]Write to MH i2c: D1 01 00 87 1D 01 76 [17:45:01]Write i2c OK [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: D1 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: D1 01 00 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: D1 01 00 87 1D 00 75 [17:45:01]Write to MH i2c: 01 00 00 88 1D A5 [17:45:01]Write i2c OK [17:45:01]MH_I2C_Read... [17:45:02]OFD Sender: No OFD packet to send [17:45:02]*** Cut start [17:45:02]*** Partial cut [17:45:02]*** CUTSNS_PIN = 1 [17:45:02]*** CUTSNS_PIN = 0 [17:45:02]*** Brake cut motor [17:45:03]Read from MH i2c: 01 [17:45:03]MH_I2C_Read... [17:45:03]*** Stop cut motor [17:45:03]*** Cut end [17:45:03]Read from MH i2c: 01 07 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: 01 07 00 88 1D 00 00 00 00 00 FF 0F BA [17:45:03]process_action close_receipt done [17:45:03]requested_data is exist [17:45:03]produce_requested_data [17:45:03]requested_item fm.sn is exist - process it [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 11 00 00 [17:45:03]Write to MH i2c: E2 08 00 89 1D 80 11 00 00 00 00 00 00 20 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 17 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 17 00 89 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 73 [17:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:45:03]wFMCommunicate OK [17:45:03]requested_item fd.num is exist - process it [17:45:03]SAM_PROTO_GetFieldsCounters [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 13 00 00 [17:45:03]Write to MH i2c: E2 08 00 8A 1D 80 13 00 00 00 00 00 00 23 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 62 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 62 00 8A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 24 DC 02 00 0E 04 04 00 88 02 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 84 [17: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 24 DC 02 00 0E 04 04 00 88 02 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 [17:45:03]wFMCommunicate OK [17:45:03]SAM_PROTO_GetFieldsCounters done [17:45:03]requested_item shift.num is exist - process it [17:45:03]requested_item shift.opened is exist - process it [17:45:03]req_shift_opened [17:45:03]FM_GetShiftState [17:45:03]SAM_PROTO_GetShiftState [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 13 01 00 [17:45:03]Write to MH i2c: E2 08 00 8B 1D 80 13 01 00 00 00 00 00 25 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 0E 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 0E 00 8B 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 77 [17:45:03]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:45:03]wFMCommunicate OK [17:45:03]SAM_PROTO_GetShiftState done [17:45:03]FM_GetShiftState done [17:45:03]req_shift_opened done [17:45:03]requested_item shift.open_date is exist - process it [17:45:03]req_shift_open_date [17:45:03]req_shift_open_date done [17:45:03]produce_requested_data done [17:45:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187428,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:45:03]process_action_free close_receipt [17:45:03]json_value_free [17:45:03]json_value_free done [17:45:03]process_json_proto returns [17:45:03]Send response to host [17:45:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187428,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:45:03]free response buf [17:45:03]execute_script done [17:45:03]execute_script returns [17:45:03]free content buf [17:45:03]Sock 9.Close socket [17:45:03]Sock 9.Thread stoped [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:23]accept exits with 7 [17:45:23]New connection [17:45:23]New thread 3067276644 created [17:45:23]Thread 3067420004 joined [17:45:23]Waiting for new connection... [17:45:23] Sock 7.Parse request [17:45:23]Sock 7.Check first char [17:45:23]Sock 7.First char is OK [17:45:23]request: POST /json_proto HTTP/1.0 [17:45:23]Method: POST [17:45:23]URL: /json_proto [17:45:23]Method is POST - this is cgi request [17:45:23]url: /json_proto [17:45:23]query_string will be loaded in cgi processing [17:45:23]execute_cgi json_proto POST (null) [17:45:23]execute_cgi path=json_proto method=POST [17:45:23]POST find Content-Length [17:45:23]Host: 172.17.46.131:8080 [17:45:23]Content-Length: 677 [17:45:23]Content-Type: application/json [17:45:23] [17:45:23]POST finish read [17:45:23]Found Content-Length = 677 [17:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.620, "sum" : 489.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 489.00, "payments": [ { "type": 0, "sum" : 489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:23]execute_script... [17:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.620, "sum" : 489.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 489.00, "payments": [ { "type": 0, "sum" : 489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:23]POST & json_proto [17:45:23]process_json_proto [17:45:23]json parsed OK: [17:45:23]protocol is kg_v1.0 [17:45:23]action value=close_receipt [17:45:23]process_action close_receipt [17:45:23]cmd_close_receipt [17:45:23]MH_GetDate [17:45:23]Write to MH i2c: F0 00 00 8C 1D 98 [17:45:23]Write i2c OK [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: F0 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: F0 09 00 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: F0 09 00 8C 1D 00 35 6A B7 67 7E 41 4F 65 D1 [17:45:23]GetLastDocTimeStamp 1740073500 [17:45:23]current date 1740073525 [17:45:23]FM_GetShiftState [17:45:23]SAM_PROTO_GetShiftState [17:45:23]wFMCommunicate request_size=4 [17:45:23]MH_SAM_APDU [17:45:23]CAPDU: 80 13 01 00 [17:45:23]Write to MH i2c: E2 08 00 8D 1D 80 13 01 00 00 00 00 00 27 [17:45:23]Write i2c OK [17:45:23]MH_I2C_Read... [17:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:23]Read from MH i2c: E2 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: E2 0E 00 [17:45:23]MH_I2C_Read... [17:45:23]Read from MH i2c: E2 0E 00 8D 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 79 [17:45:23]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:45:23]wFMCommunicate OK [17:45:23]SAM_PROTO_GetShiftState done [17:45:23]FM_GetShiftState done [17:45:23]opened in 1740011697 [17:45:23]opened+sec_in_day 1740098097 [17:45:23]quantity*price = 48920 [17:45:23]sum+1 = 48921 [17:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 489.00 Внесено: 500.00 СДАЧА: 11.00 НСП 1% : 4.33 НДС 12% : 51.95 Наличными: 489.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 230 20.02.2025 17:45 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187429 ФПД: 73600786503662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T174525&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187429&fm=73600786503662&tin=02508201610067®Number=0000000000091857&sum=48900 [17:45:24]StoreToDocumentArchive [17:45:24]shift 648 fd 187429 [17:45:24]save to /storage/0648/doc_00187429 [17:45:24]save last doc name /storage/0648/doc_00187429 to /storage/kkm_last_doc_name [17:45:24]save OK [17:45:24]Clear old archive folders... [17:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:24]tlvbuf is 00E420C0 [17:45:24]SAM_PROTO_ClearQueue [17:45:24]wFMCommunicate request_size=4 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 09 00 00 [17:45:24]Write to MH i2c: E2 08 00 9A 1D 80 09 00 00 00 00 00 00 29 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 9A 1D 00 90 00 2B [17:45:24]RAPDU: 90 00 [17:45:24]wFMCommunicate OK [17:45:24]SAM_PROTO_ClearQueue done [17:45:24]KKMCreateOFDPacket [17:45:24]OFDProtocolAddRootSTLVToBuf [17:45:24]FM_MakeSignedData [17:45:24]FM_MakeSignedData [17:45:24]SAM_PROTO_SignData [17:45:24]wFMCommunicate request_size=4 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 0D 01 02 [17:45:24]Write to MH i2c: E2 08 00 9B 1D 80 0D 01 02 00 00 00 00 31 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 03 00 9B 1D 00 90 00 2C [17:45:24]RAPDU: 90 00 [17:45:24]wFMCommunicate OK [17:45:24]wFMCommunicate request_size=255 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 1D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 18 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 14 00 00 00 00 07 04 06 00 04 BF 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 35 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DC 02 00 35 04 06 00 42 [17:45:24]Write to MH i2c: E2 02 01 9C 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 32 FF 03 08 00 03 C4 1D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 18 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 14 00 00 00 00 07 04 06 00 04 BF 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 35 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DC 02 00 35 04 06 00 42 00 00 2B [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 9C 1D 00 90 00 2D [17:45:25]RAPDU: 90 00 [17:45:25]wFMCommunicate OK [17:45:25]wFMCommunicate request_size=10 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 0D 02 02 05 F0 84 BC 17 EE [17:45:25]Write to MH i2c: E2 0D 00 9D 1D 80 0D 02 02 05 00 F0 84 BC 17 EE 00 00 73 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 9D 1D 00 90 00 2E [17:45:25]RAPDU: 90 00 [17:45:25]wFMCommunicate OK [17:45:25]wFMCommunicate request_size=4 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 0D 03 02 [17:45:25]Write to MH i2c: E2 08 00 9E 1D 80 0D 03 02 00 00 00 00 36 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 0B 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 0B 00 9E 1D 00 D3 91 F8 CC 19 EB 98 10 90 00 0B [17:45:25]RAPDU: D3 91 F8 CC 19 EB 98 10 90 00 [17:45:25]wFMCommunicate OK [17:45:25]SAM_PROTO_SignData done [17:45:25]FM_MakeSignedData done [17:45:25]CreateOFDProtocolMessage [17:45:25]wFMCommunicate request_size=4 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 11 00 00 [17:45:25]Write to MH i2c: E2 08 00 9F 1D 80 11 00 00 00 00 00 00 36 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 17 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 17 00 9F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [17:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:45:25]wFMCommunicate OK [17:45:25]CreateOFDProtocolMessage done [17:45:25]OFDSenderStorePacket 187429 [17:45:25]StoreOFDPacket docnum=187429 [17:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0A 29 07 01 2A D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 1D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 18 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 14 00 00 00 00 07 04 06 00 04 BF 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 35 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DC 02 00 35 04 06 00 42 F0 84 BC 17 EE D3 91 F8 CC 19 EB 98 10 [17:45:25]CheckFolder [17:45:25]dirname=/storage/ofd_packets [17:45:25]CheckFolder done [17:45:25]ProducePacketName [17:45:25]name=ofd_packets/00187429 [17:45:25]NVStorageSaveData ofd_packets/00187429 [17:45:25]File name is /storage/ofd_packets/00187429 [17:45:25]Write 301 bytes [17:45:25]NVStorageSaveData done [17:45:25]OFDSenderStorePacket done [17:45:25]KKMCreateOFDPacket done [17:45:25]NVStorageSaveData kkm_last_timestamp [17:45:25]File name is /storage/kkm_last_timestamp [17:45:25]Write 4 bytes [17:45:25]NVStorageSaveData done [17:45:25]ExternCall_PrintAddStr [17:45:25]wPrintStart [17:45:25]Write to MH i2c: 01 00 00 A0 1D BD [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 A0 1D 00 00 00 00 00 FF 0F D2 [17:45:25]RasterBufferAndPrint [17:45:25]line Счет N : (1)412588 [17:45:25]line ИНН: 02508201610067 [17:45:25]line Контрольно-Кассовый Чек [17:45:25]line ПРОДАЖА [17:45:25]line ТРК (МРК, ГНК) : 32 [17:45:25]line Товар: 2710124130 [17:45:25]line Аи-92-К-2 [17:45:25]line 7.620 * 64.20 [17:45:25]line = 489.20 [17:45:25]line НДС 12% НСП 1% [17:45:25]line > о реализуемом товаре [17:45:25]line ОКРУГЛЕНИЕ: -0.20 [17:45:25]line ИТОГО: 489.00 [17:45:25]line Внесено: 500.00 [17:45:25]line СДАЧА: 11.00 [17:45:25]line НСП 1% : 4.33 [17:45:25]line НДС 12% : 51.95 [17:45:25]line Наличными: 489.00 [17:45:25]line Безнал.: 0.00 [17:45:25]line Место: АЗС № 92 "Партнер Нефть" [17:45:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:45:25]line СНО: Общий режим [17:45:25]line Чек 230 20.02.2025 17:45 [17:45:25]line Смена: 648 ФФД: 1.0 [17:45:25]line ЗНМ: 0300000118 [17:45:25]line РНМ: 0000000000091857 [17:45:25]line Версия ККМ: 001 [17:45:25]line ФМ: 0000000000871826 [17:45:25]line ФД: 187429 [17:45:25]line ФПД: 73600786503662 [17:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T174525&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187429&fm=73600786503662&tin=02508201610067®Number=0000000000091857&sum=48900 [17:45:25]written 0, free lines is 4095 [17:45:25]OFD Sender: Processing packet 187429 [packets to send 49, broken 48] [17:45:25]ProducePacketName [17:45:25]name=ofd_packets/00187429 [17:45:25]OFD Sender: To server: pG, [17:45:25]CommunicateWithHost lk.salyk.kg:30040 [17:45:25]ConnectInit lk.salyk.kg [17:45:25]Connected sock=10 [17:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0A 29 07 01 2A D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 1D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 18 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 14 00 00 00 00 07 04 06 00 04 BF 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 35 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DC 02 00 35 04 06 00 42 F0 84 BC 17 EE D3 91 F8 CC 19 EB 98 10 [17:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F8 4E 47 00 81 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DC 02 00 F4 03 04 00 85 10 B7 67 B6 04 01 00 00 92 A9 9D 71 A9 F9 F9 C7 [17:45:25]CommunicateWithHost err = 0 [17:45:25]CheckOFDResponse [17:45:25]1017 (14) - 77093643461234 [17:45:25]1041 (16) - 0000000000871826 [17:45:25]1040 (4) - 187429 [17:45:25]1012 (4) - 20.02.2025 11:22 [17:45:25]1206 (1) - 0 [17:45:25]OFD Sender: Remove packet 187429 [17:45:25]ProducePacketName [17:45:25]name=ofd_packets/00187429 [17:45:25]NVStorageDeleteData [17:45:25]Write to MH i2c: 01 00 00 CB 1D E8 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 CB 1D 00 00 00 00 00 02 0D FE [17:45:25]RasterBufferAndPrint [17:45:25]line [17:45:25]line [17:45:25]line [17:45:25]line [17:45:25]line [17:45:25]written 0, free lines is 3336 [17:45:25]MH_Cut [17:45:25]Write to MH i2c: D1 01 00 D2 1D 01 C1 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: D1 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: D1 01 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: D1 01 00 D2 1D 00 C0 [17:45:25]Write to MH i2c: 01 00 00 D3 1D F0 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:26]OFD Sender: No OFD packet to send [17:45:26]*** Cut start [17:45:26]*** Partial cut [17:45:26]*** CUTSNS_PIN = 1 [17:45:26]*** CUTSNS_PIN = 0 [17:45:26]*** Brake cut motor [17:45:27]Read from MH i2c: 01 [17:45:27]MH_I2C_Read... [17:45:27]*** Stop cut motor [17:45:27]*** Cut end [17:45:27]Read from MH i2c: 01 07 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: 01 07 00 D3 1D 00 00 00 00 00 FF 0F 05 [17:45:27]process_action close_receipt done [17:45:27]requested_data is exist [17:45:27]produce_requested_data [17:45:27]requested_item fm.sn is exist - process it [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 11 00 00 [17:45:27]Write to MH i2c: E2 08 00 D4 1D 80 11 00 00 00 00 00 00 6B [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:27]Read from MH i2c: E2 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 17 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 17 00 D4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BE [17:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:45:27]wFMCommunicate OK [17:45:27]requested_item fd.num is exist - process it [17:45:27]SAM_PROTO_GetFieldsCounters [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 13 00 00 [17:45:27]Write to MH i2c: E2 08 00 D5 1D 80 13 00 00 00 00 00 00 6E [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:27]Read from MH i2c: E2 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 62 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 62 00 D5 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 25 DC 02 00 0E 04 04 00 88 02 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 D3 [17:45:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 25 DC 02 00 0E 04 04 00 88 02 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 [17:45:27]wFMCommunicate OK [17:45:27]SAM_PROTO_GetFieldsCounters done [17:45:27]requested_item shift.num is exist - process it [17:45:27]requested_item shift.opened is exist - process it [17:45:27]req_shift_opened [17:45:27]FM_GetShiftState [17:45:27]SAM_PROTO_GetShiftState [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 13 01 00 [17:45:27]Write to MH i2c: E2 08 00 D6 1D 80 13 01 00 00 00 00 00 70 [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:27]Read from MH i2c: E2 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 0E 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 0E 00 D6 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C2 [17:45:27]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:45:27]wFMCommunicate OK [17:45:27]SAM_PROTO_GetShiftState done [17:45:27]FM_GetShiftState done [17:45:27]req_shift_opened done [17:45:27]requested_item shift.open_date is exist - process it [17:45:27]req_shift_open_date [17:45:27]req_shift_open_date done [17:45:27]produce_requested_data done [17:45:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187429,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:45:27]process_action_free close_receipt [17:45:27]json_value_free [17:45:27]json_value_free done [17:45:27]process_json_proto returns [17:45:27]Send response to host [17:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187429,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:45:27]free response buf [17:45:27]execute_script done [17:45:27]execute_script returns [17:45:27]free content buf [17:45:27]Sock 7.Close socket [17:45:27]Sock 7.Thread stoped [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:35]accept exits with 9 [17:48:35]New connection [17:48:35]New thread 3067420004 created [17:48:35]Thread 3067276644 joined [17:48:35]Waiting for new connection... [17:48:35] Sock 9.Parse request [17:48:35]Sock 9.Check first char [17:48:35]Sock 9.First char is OK [17:48:35]request: POST /json_proto HTTP/1.0 [17:48:35]Method: POST [17:48:35]URL: /json_proto [17:48:35]Method is POST - this is cgi request [17:48:35]url: /json_proto [17:48:35]query_string will be loaded in cgi processing [17:48:35]execute_cgi json_proto POST (null) [17:48:35]execute_cgi path=json_proto method=POST [17:48:35]POST find Content-Length [17:48:35]Host: 172.17.46.131:8080 [17:48:35]Content-Length: 788 [17:48:35]Content-Type: application/json [17:48:35] [17:48:35]POST finish read [17:48:35]Found Content-Length = 788 [17:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97990", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:35]execute_script... [17:48:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97990", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:35]POST & json_proto [17:48:35]process_json_proto [17:48:35]json parsed OK: [17:48:35]protocol is kg_v1.0 [17:48:35]action value=close_receipt [17:48:35]process_action close_receipt [17:48:35]cmd_close_receipt [17:48:35]MH_GetDate [17:48:35]Write to MH i2c: F0 00 00 D7 1D E3 [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: F0 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: F0 09 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: F0 09 00 D7 1D 00 F5 6A B7 67 7E 41 4F 65 DC [17:48:35]GetLastDocTimeStamp 1740073525 [17:48:35]current date 1740073717 [17:48:35]FM_GetShiftState [17:48:35]SAM_PROTO_GetShiftState [17:48:35]wFMCommunicate request_size=4 [17:48:35]MH_SAM_APDU [17:48:35]CAPDU: 80 13 01 00 [17:48:35]Write to MH i2c: E2 08 00 D8 1D 80 13 01 00 00 00 00 00 72 [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:35]Read from MH i2c: E2 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 0E 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 0E 00 D8 1D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C4 [17:48:35]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:48:35]wFMCommunicate OK [17:48:35]SAM_PROTO_GetShiftState done [17:48:35]FM_GetShiftState done [17:48:35]opened in 1740011697 [17:48:35]opened+sec_in_day 1740098097 [17:48:35]quantity*price = 0 [17:48:35]sum+1 = 1 [17:48:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 231 20.02.2025 17:48 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 97990 ФМ: 0000000000871826 ФД: 187430 ФПД: 53013285500904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T174837&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187430&fm=53013285500904&tin=02508201610067®Number=0000000000091857&sum=0 [17:48:37]StoreToDocumentArchive [17:48:37]shift 648 fd 187430 [17:48:37]save to /storage/0648/doc_00187430 [17:48:37]save last doc name /storage/0648/doc_00187430 to /storage/kkm_last_doc_name [17:48:37]save OK [17:48:37]Clear old archive folders... [17:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:48:37]tlvbuf is B6F1A090 [17:48:37]SAM_PROTO_ClearQueue [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 09 00 00 [17:48:37]Write to MH i2c: E2 08 00 E5 1D 80 09 00 00 00 00 00 00 74 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 E5 1D 00 90 00 76 [17:48:37]RAPDU: 90 00 [17:48:37]wFMCommunicate OK [17:48:37]SAM_PROTO_ClearQueue done [17:48:37]KKMCreateOFDPacket [17:48:37]OFDProtocolAddRootSTLVToBuf [17:48:37]FM_MakeSignedData [17:48:37]FM_MakeSignedData [17:48:37]SAM_PROTO_SignData [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 0D 01 02 [17:48:37]Write to MH i2c: E2 08 00 E6 1D 80 0D 01 02 00 00 00 00 7C [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 E6 1D 00 90 00 77 [17:48:37]RAPDU: 90 00 [17:48:37]wFMCommunicate OK [17:48:37]wFMCommunicate request_size=255 [17:48:37]MH_SAM_APDU [17:48: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 F5 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DC 02 00 35 04 06 00 30 37 1E 0C [17:48:37]Write to MH i2c: E2 02 01 E7 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 F5 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DC 02 00 35 04 06 00 30 37 1E 0C 00 00 06 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 E7 1D 00 90 00 78 [17:48:37]RAPDU: 90 00 [17:48:37]wFMCommunicate OK [17:48:37]wFMCommunicate request_size=7 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 0D 02 02 02 F7 E8 [17:48:37]Write to MH i2c: E2 0A 00 E8 1D 80 0D 02 02 02 00 F7 E8 00 00 62 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 E8 1D 00 90 00 79 [17:48:37]RAPDU: 90 00 [17:48:37]wFMCommunicate OK [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 0D 03 02 [17:48:37]Write to MH i2c: E2 08 00 E9 1D 80 0D 03 02 00 00 00 00 81 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 0B 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 0B 00 E9 1D 00 7A 32 A0 A3 CE B7 24 66 90 00 80 [17:48:37]RAPDU: 7A 32 A0 A3 CE B7 24 66 90 00 [17:48:37]wFMCommunicate OK [17:48:37]SAM_PROTO_SignData done [17:48:37]FM_MakeSignedData done [17:48:37]CreateOFDProtocolMessage [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 11 00 00 [17:48:37]Write to MH i2c: E2 08 00 EA 1D 80 11 00 00 00 00 00 00 81 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 17 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 17 00 EA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [17:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:48:37]wFMCommunicate OK [17:48:37]CreateOFDProtocolMessage done [17:48:37]OFDSenderStorePacket 187430 [17:48:37]StoreOFDPacket docnum=187430 [17:48:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BF E7 04 01 97 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 F5 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DC 02 00 35 04 06 00 30 37 1E 0C F7 E8 7A 32 A0 A3 CE B7 24 66 [17:48:37]CheckFolder [17:48:37]dirname=/storage/ofd_packets [17:48:37]CheckFolder done [17:48:37]ProducePacketName [17:48:37]name=ofd_packets/00187430 [17:48:37]NVStorageSaveData ofd_packets/00187430 [17:48:37]File name is /storage/ofd_packets/00187430 [17:48:37]Write 298 bytes [17:48:37]NVStorageSaveData done [17:48:37]OFDSenderStorePacket done [17:48:37]KKMCreateOFDPacket done [17:48:37]NVStorageSaveData kkm_last_timestamp [17:48:37]File name is /storage/kkm_last_timestamp [17:48:37]Write 4 bytes [17:48:37]NVStorageSaveData done [17:48:37]ExternCall_PrintAddStr [17:48:37]wPrintStart [17:48:37]Write to MH i2c: 01 00 00 EB 1D 08 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: 01 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: 01 07 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: 01 07 00 EB 1D 00 00 00 00 00 FF 0F 1D [17:48:37]RasterBufferAndPrint [17:48:37]line Счет N : (1)412589 [17:48:37]line ИНН: 02508201610067 [17:48:37]line Контрольно-Кассовый Чек [17:48:37]line ПРОДАЖА [17:48:37]line ТРК (МРК, ГНК) : 5 [17:48:37]line Товар: 2710194210 [17:48:37]line ДТ-К-5 [17:48:37]line 30.000 * 0.00 [17:48:37]line = 0.00 [17:48:37]line НДС 12% НСП 1% [17:48:37]line > о реализуемом товаре [17:48:37]line ИТОГО: 0.00 [17:48:37]line НСП 1% : 0.00 [17:48:37]line НДС 12% : 0.00 [17:48:37]line Наличными: 0.00 [17:48:37]line Безнал.: 0.00 [17:48:37]line Место: АЗС № 92 "Партнер Нефть" [17:48:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:48:37]line СНО: Общий режим [17:48:37]line Чек 231 20.02.2025 17:48 [17:48:37]line Смена: 648 ФФД: 1.0 [17:48:37]line ЗНМ: 0300000118 [17:48:37]line РНМ: 0000000000091857 [17:48:37]line Версия ККМ: 001 [17:48:37]line Талоны: Топливная Карта [17:48:37]line 97990 [17:48:37]line ФМ: 0000000000871826 [17:48:37]line ФД: 187430 [17:48:37]line ФПД: 53013285500904 [17:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T174837&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187430&fm=53013285500904&tin=02508201610067®Number=0000000000091857&sum=0 [17:48:37]OFD Sender: Processing packet 187430 [packets to send 49, broken 48] [17:48:37]ProducePacketName [17:48:37]name=ofd_packets/00187430 [17:48:37]OFD Sender: To server: pG, [17:48:37]CommunicateWithHost lk.salyk.kg:30040 [17:48:37]ConnectInit lk.salyk.kg [17:48:37]written 0, free lines is 4095 [17:48:38]Connected sock=10 [17: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 31 38 32 36 0C 01 00 00 BF E7 04 01 97 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 F5 6A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DC 02 00 35 04 06 00 30 37 1E 0C F7 E8 7A 32 A0 A3 CE B7 24 66 [17:48:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 16 B4 47 00 09 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 31 38 32 36 10 04 04 00 26 DC 02 00 F4 03 04 00 45 11 B7 67 B6 04 01 00 00 88 B2 43 07 7F D7 0E D9 [17:48:38]CommunicateWithHost err = 0 [17:48:38]CheckOFDResponse [17:48:38]1017 (14) - 77093643461234 [17:48:38]1041 (16) - 0000000000871826 [17:48:38]1040 (4) - 187430 [17:48:38]1012 (4) - 20.02.2025 11:25 [17:48:38]1206 (1) - 0 [17:48:38]OFD Sender: Remove packet 187430 [17:48:38]ProducePacketName [17:48:38]name=ofd_packets/00187430 [17:48:38]NVStorageDeleteData [17:48:38]Write to MH i2c: 01 00 00 15 1E 33 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 07 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 07 00 15 1E 00 00 00 00 00 10 0D 57 [17:48:38]RasterBufferAndPrint [17:48:38]line [17:48:38]line [17:48:38]line [17:48:38]line [17:48:38]line [17:48:38]written 0, free lines is 3350 [17:48:38]MH_Cut [17:48:38]Write to MH i2c: D1 01 00 1C 1E 01 0C [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: D1 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: D1 01 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: D1 01 00 1C 1E 00 0B [17:48:38]Write to MH i2c: 01 00 00 1D 1E 3B [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]OFD Sender: No OFD packet to send [17:48:39]*** Cut start [17:48:39]*** Partial cut [17:48:39]*** CUTSNS_PIN = 1 [17:48:39]*** CUTSNS_PIN = 0 [17:48:39]*** Brake cut motor [17:48:39]Read from MH i2c: 01 [17:48:39]MH_I2C_Read... [17:48:39]*** Stop cut motor [17:48:39]*** Cut end [17:48:39]Read from MH i2c: 01 07 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: 01 07 00 1D 1E 00 00 00 00 00 FF 0F 50 [17:48:39]process_action close_receipt done [17:48:39]requested_data is exist [17:48:39]produce_requested_data [17:48:39]requested_item fm.sn is exist - process it [17:48:39]wFMCommunicate request_size=4 [17:48:39]MH_SAM_APDU [17:48:39]CAPDU: 80 11 00 00 [17:48:39]Write to MH i2c: E2 08 00 1E 1E 80 11 00 00 00 00 00 00 B6 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:39]Read from MH i2c: E2 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 17 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 17 00 1E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [17:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:48:39]wFMCommunicate OK [17:48:39]requested_item fd.num is exist - process it [17:48:39]SAM_PROTO_GetFieldsCounters [17:48:39]wFMCommunicate request_size=4 [17:48:39]MH_SAM_APDU [17:48:39]CAPDU: 80 13 00 00 [17:48:39]Write to MH i2c: E2 08 00 1F 1E 80 13 00 00 00 00 00 00 B9 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:39]Read from MH i2c: E2 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 62 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 62 00 1F 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 26 DC 02 00 0E 04 04 00 88 02 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 22 [17:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 26 DC 02 00 0E 04 04 00 88 02 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 [17:48:39]wFMCommunicate OK [17:48:39]SAM_PROTO_GetFieldsCounters done [17:48:39]requested_item shift.num is exist - process it [17:48:39]requested_item shift.opened is exist - process it [17:48:39]req_shift_opened [17:48:39]FM_GetShiftState [17:48:39]SAM_PROTO_GetShiftState [17:48:39]wFMCommunicate request_size=4 [17:48:39]MH_SAM_APDU [17:48:39]CAPDU: 80 13 01 00 [17:48:39]Write to MH i2c: E2 08 00 20 1E 80 13 01 00 00 00 00 00 BB [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 0E 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 0E 00 20 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0D [17:48:40]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:48:40]wFMCommunicate OK [17:48:40]SAM_PROTO_GetShiftState done [17:48:40]FM_GetShiftState done [17:48:40]req_shift_opened done [17:48:40]requested_item shift.open_date is exist - process it [17:48:40]req_shift_open_date [17:48:40]req_shift_open_date done [17:48:40]produce_requested_data done [17:48:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187430,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:48:40]process_action_free close_receipt [17:48:40]json_value_free [17:48:40]json_value_free done [17:48:40]process_json_proto returns [17:48:40]Send response to host [17:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187430,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:48:40]free response buf [17:48:40]execute_script done [17:48:40]execute_script returns [17:48:40]free content buf [17:48:40]Sock 9.Close socket [17:48:40]Sock 9.Thread stoped [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [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:14]accept exits with 7 [17:53:14]New connection [17:53:14]New thread 3067276644 created [17:53:14]Thread 3067420004 joined [17:53:14]Waiting for new connection... [17:53:14] Sock 7.Parse request [17:53:14]Sock 7.Check first char [17:53:14]Sock 7.First char is OK [17:53:14]request: POST /json_proto HTTP/1.0 [17:53:14]Method: POST [17:53:14]URL: /json_proto [17:53:14]Method is POST - this is cgi request [17:53:14]url: /json_proto [17:53:14]query_string will be loaded in cgi processing [17:53:14]execute_cgi json_proto POST (null) [17:53:14]execute_cgi path=json_proto method=POST [17:53:14]POST find Content-Length [17:53:14]Host: 172.17.46.131:8080 [17:53:14]Content-Length: 678 [17:53:14]Content-Type: application/json [17:53:14] [17:53:14]POST finish read [17:53:14]Found Content-Length = 678 [17:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:14]execute_script... [17:53: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)412590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:14]POST & json_proto [17:53:14]process_json_proto [17:53:14]json parsed OK: [17:53:14]protocol is kg_v1.0 [17:53:14]action value=close_receipt [17:53:14]process_action close_receipt [17:53:14]cmd_close_receipt [17:53:14]MH_GetDate [17:53:14]Write to MH i2c: F0 00 00 21 1E 2E [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: F0 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: F0 09 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: F0 09 00 21 1E 00 0C 6C B7 67 7E 41 4F 65 40 [17:53:14]GetLastDocTimeStamp 1740073717 [17:53:14]current date 1740073996 [17:53:14]FM_GetShiftState [17:53:14]SAM_PROTO_GetShiftState [17:53:14]wFMCommunicate request_size=4 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 13 01 00 [17:53:14]Write to MH i2c: E2 08 00 22 1E 80 13 01 00 00 00 00 00 BD [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 0E 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 0E 00 22 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0F [17:53:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:53:14]wFMCommunicate OK [17:53:14]SAM_PROTO_GetShiftState done [17:53:14]FM_GetShiftState done [17:53:14]opened in 1740011697 [17:53:14]opened+sec_in_day 1740098097 [17:53:14]quantity*price = 100042 [17:53:14]sum+1 = 100044 [17:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 232 20.02.2025 17:53 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187431 ФПД: 72310169327244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T175316&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187431&fm=72310169327244&tin=02508201610067®Number=0000000000091857&sum=100000 [17:53:15]StoreToDocumentArchive [17:53:15]shift 648 fd 187431 [17:53:15]save to /storage/0648/doc_00187431 [17:53:15]save last doc name /storage/0648/doc_00187431 to /storage/kkm_last_doc_name [17:53:15]save OK [17:53:15]Clear old archive folders... [17:53:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:53:15]tlvbuf is 00E5F3D0 [17:53:15]SAM_PROTO_ClearQueue [17:53:15]wFMCommunicate request_size=4 [17:53:15]MH_SAM_APDU [17:53:15]CAPDU: 80 09 00 00 [17:53:15]Write to MH i2c: E2 08 00 2F 1E 80 09 00 00 00 00 00 00 BF [17:53:15]Write i2c OK [17:53:15]MH_I2C_Read... [17:53:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:15]Read from MH i2c: E2 [17:53:15]MH_I2C_Read... [17:53:15]Read from MH i2c: E2 03 00 [17:53:15]MH_I2C_Read... [17:53:15]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [17:53:15]RAPDU: 90 00 [17:53:15]wFMCommunicate OK [17:53:15]SAM_PROTO_ClearQueue done [17:53:15]KKMCreateOFDPacket [17:53:15]OFDProtocolAddRootSTLVToBuf [17:53:15]FM_MakeSignedData [17:53:15]FM_MakeSignedData [17:53:15]SAM_PROTO_SignData [17:53:15]wFMCommunicate request_size=4 [17:53:15]MH_SAM_APDU [17:53:15]CAPDU: 80 0D 01 02 [17:53:15]Write to MH i2c: E2 08 00 30 1E 80 0D 01 02 00 00 00 00 C7 [17:53:15]Write i2c OK [17:53:15]MH_I2C_Read... [17:53:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:16]Read from MH i2c: E2 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 03 00 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 03 00 30 1E 00 90 00 C2 [17:53:16]RAPDU: 90 00 [17:53:16]wFMCommunicate OK [17:53:16]wFMCommunicate request_size=255 [17:53:16]MH_SAM_APDU [17:53: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 0C 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DC 02 00 35 04 06 00 41 C4 05 F4 [17:53:16]Write to MH i2c: E2 02 01 31 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 0C 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DC 02 00 35 04 06 00 41 C4 05 F4 00 00 76 [17:53:16]Write i2c OK [17:53:16]MH_I2C_Read... [17:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:16]Read from MH i2c: E2 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 03 00 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 03 00 31 1E 00 90 00 C3 [17:53:16]RAPDU: 90 00 [17:53:16]wFMCommunicate OK [17:53:16]wFMCommunicate request_size=7 [17:53:16]MH_SAM_APDU [17:53:16]CAPDU: 80 0D 02 02 02 D6 8C [17:53:16]Write to MH i2c: E2 0A 00 32 1E 80 0D 02 02 02 00 D6 8C 00 00 30 [17:53:16]Write i2c OK [17:53:16]MH_I2C_Read... [17:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:16]Read from MH i2c: E2 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 03 00 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 03 00 32 1E 00 90 00 C4 [17:53:16]RAPDU: 90 00 [17:53:16]wFMCommunicate OK [17:53:16]wFMCommunicate request_size=4 [17:53:16]MH_SAM_APDU [17:53:16]CAPDU: 80 0D 03 02 [17:53:16]Write to MH i2c: E2 08 00 33 1E 80 0D 03 02 00 00 00 00 CC [17:53:16]Write i2c OK [17:53:16]MH_I2C_Read... [17:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:16]Read from MH i2c: E2 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 0B 00 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 0B 00 33 1E 00 24 B8 66 31 54 86 50 F0 90 00 5A [17:53:16]RAPDU: 24 B8 66 31 54 86 50 F0 90 00 [17:53:16]wFMCommunicate OK [17:53:16]SAM_PROTO_SignData done [17:53:16]FM_MakeSignedData done [17:53:16]CreateOFDProtocolMessage [17:53:16]wFMCommunicate request_size=4 [17:53:16]MH_SAM_APDU [17:53:16]CAPDU: 80 11 00 00 [17:53:16]Write to MH i2c: E2 08 00 34 1E 80 11 00 00 00 00 00 00 CC [17:53:16]Write i2c OK [17:53:16]MH_I2C_Read... [17:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:16]Read from MH i2c: E2 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 17 00 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: E2 17 00 34 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1F [17:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:53:16]wFMCommunicate OK [17:53:16]CreateOFDProtocolMessage done [17:53:16]OFDSenderStorePacket 187431 [17:53:16]StoreOFDPacket docnum=187431 [17:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 31 04 01 2B C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 0C 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DC 02 00 35 04 06 00 41 C4 05 F4 D6 8C 24 B8 66 31 54 86 50 F0 [17:53:16]CheckFolder [17:53:16]dirname=/storage/ofd_packets [17:53:16]CheckFolder done [17:53:16]ProducePacketName [17:53:16]name=ofd_packets/00187431 [17:53:16]NVStorageSaveData ofd_packets/00187431 [17:53:16]File name is /storage/ofd_packets/00187431 [17:53:16]Write 298 bytes [17:53:16]NVStorageSaveData done [17:53:16]OFDSenderStorePacket done [17:53:16]KKMCreateOFDPacket done [17:53:16]NVStorageSaveData kkm_last_timestamp [17:53:16]File name is /storage/kkm_last_timestamp [17:53:16]Write 4 bytes [17:53:16]NVStorageSaveData done [17:53:16]ExternCall_PrintAddStr [17:53:16]wPrintStart [17:53:16]Write to MH i2c: 01 00 00 35 1E 53 [17:53:16]Write i2c OK [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: 01 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: 01 07 00 [17:53:16]MH_I2C_Read... [17:53:16]Read from MH i2c: 01 07 00 35 1E 00 00 00 00 00 FF 0F 68 [17:53:16]RasterBufferAndPrint [17:53:16]line Счет N : (1)412590 [17:53:16]line ИНН: 02508201610067 [17:53:16]line Контрольно-Кассовый Чек [17:53:16]line ПРОДАЖА [17:53:16]line ТРК (МРК, ГНК) : 5 [17:53:16]line Товар: 2710194210 [17:53:16]line ДТ-К-5 [17:53:16]line 13.780 * 72.60 [17:53:16]line = 1000.43 [17:53:16]line НДС 12% НСП 1% [17:53:16]line > о реализуемом товаре [17:53:16]line ОКРУГЛЕНИЕ: -0.43 [17:53:16]line ИТОГО: 1000.00 [17:53:16]line Внесено: 1000.00 [17:53:16]line СДАЧА: 0.00 [17:53:16]line НСП 1% : 8.85 [17:53:16]line НДС 12% : 106.24 [17:53:16]line Наличными: 1000.00 [17:53:16]line Безнал.: 0.00 [17:53:16]line Место: АЗС № 92 "Партнер Нефть" [17:53:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:53:16]line СНО: Общий режим [17:53:16]line Чек 232 20.02.2025 17:53 [17:53:16]line Смена: 648 ФФД: 1.0 [17:53:16]line ЗНМ: 0300000118 [17:53:16]line РНМ: 0000000000091857 [17:53:16]line Версия ККМ: 001 [17:53:16]line ФМ: 0000000000871826 [17:53:16]line ФД: 187431 [17:53:16]line ФПД: 72310169327244 [17:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T175316&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187431&fm=72310169327244&tin=02508201610067®Number=0000000000091857&sum=100000 [17:53:16]OFD Sender: Processing packet 187431 [packets to send 49, broken 48] [17:53:16]ProducePacketName [17:53:16]name=ofd_packets/00187431 [17:53:16]OFD Sender: To server: pG, [17:53:16]CommunicateWithHost lk.salyk.kg:30040 [17:53:16]ConnectInit lk.salyk.kg [17:53:16]written 0, free lines is 4095 [17:53:16]Connected sock=10 [17:53:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 31 04 01 2B C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 0C 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DC 02 00 35 04 06 00 41 C4 05 F4 D6 8C 24 B8 66 31 54 86 50 F0 [17:53:17]Write to MH i2c: 01 00 00 60 1E 7E [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: 01 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: 01 07 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: 01 07 00 60 1E 00 00 00 00 00 EC 0C 7D [17:53:17]RasterBufferAndPrint [17:53:17]line [17:53:17]line [17:53:17]line [17:53:17]line [17:53:17]line [17:53:17]written 0, free lines is 3314 [17:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 13 48 47 00 47 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DC 02 00 F4 03 04 00 5C 12 B7 67 B6 04 01 00 00 44 FE 06 0B 7D 1F 14 6B [17:53:17]CommunicateWithHost err = 0 [17:53:17]CheckOFDResponse [17:53:17]1017 (14) - 77093643461234 [17:53:17]1041 (16) - 0000000000871826 [17:53:17]1040 (4) - 187431 [17:53:17]1012 (4) - 20.02.2025 11:30 [17:53:17]1206 (1) - 0 [17:53:17]OFD Sender: Remove packet 187431 [17:53:17]ProducePacketName [17:53:17]name=ofd_packets/00187431 [17:53:17]NVStorageDeleteData [17:53:17]MH_Cut [17:53:17]Write to MH i2c: D1 01 00 67 1E 01 57 [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: D1 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: D1 01 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: D1 01 00 67 1E 00 56 [17:53:17]Write to MH i2c: 01 00 00 68 1E 86 [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]OFD Sender: No OFD packet to send [17:53:17]*** Cut start [17:53:17]*** Partial cut [17:53:17]*** CUTSNS_PIN = 1 [17:53:17]*** CUTSNS_PIN = 0 [17:53:18]*** Brake cut motor [17:53:18]Read from MH i2c: 01 [17:53:18]MH_I2C_Read... [17:53:18]*** Stop cut motor [17:53:18]*** Cut end [17:53:18]Read from MH i2c: 01 07 00 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: 01 07 00 68 1E 00 00 00 00 00 FF 0F 9B [17:53:18]process_action close_receipt done [17:53:18]requested_data is exist [17:53:18]produce_requested_data [17:53:18]requested_item fm.sn is exist - process it [17:53:18]wFMCommunicate request_size=4 [17:53:18]MH_SAM_APDU [17:53:18]CAPDU: 80 11 00 00 [17:53:18]Write to MH i2c: E2 08 00 69 1E 80 11 00 00 00 00 00 00 01 [17:53:18]Write i2c OK [17:53:18]MH_I2C_Read... [17:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:18]Read from MH i2c: E2 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 17 00 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 17 00 69 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [17:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:53:18]wFMCommunicate OK [17:53:18]requested_item fd.num is exist - process it [17:53:18]SAM_PROTO_GetFieldsCounters [17:53:18]wFMCommunicate request_size=4 [17:53:18]MH_SAM_APDU [17:53:18]CAPDU: 80 13 00 00 [17:53:18]Write to MH i2c: E2 08 00 6A 1E 80 13 00 00 00 00 00 00 04 [17:53:18]Write i2c OK [17:53:18]MH_I2C_Read... [17:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:18]Read from MH i2c: E2 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 62 00 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 62 00 6A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 27 DC 02 00 0E 04 04 00 88 02 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 71 [17:53:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 27 DC 02 00 0E 04 04 00 88 02 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 [17:53:18]wFMCommunicate OK [17:53:18]SAM_PROTO_GetFieldsCounters done [17:53:18]requested_item shift.num is exist - process it [17:53:18]requested_item shift.opened is exist - process it [17:53:18]req_shift_opened [17:53:18]FM_GetShiftState [17:53:18]SAM_PROTO_GetShiftState [17:53:18]wFMCommunicate request_size=4 [17:53:18]MH_SAM_APDU [17:53:18]CAPDU: 80 13 01 00 [17:53:18]Write to MH i2c: E2 08 00 6B 1E 80 13 01 00 00 00 00 00 06 [17:53:18]Write i2c OK [17:53:18]MH_I2C_Read... [17:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:18]Read from MH i2c: E2 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 0E 00 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 0E 00 6B 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 58 [17:53:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:53:18]wFMCommunicate OK [17:53:18]SAM_PROTO_GetShiftState done [17:53:18]FM_GetShiftState done [17:53:18]req_shift_opened done [17:53:18]requested_item shift.open_date is exist - process it [17:53:18]req_shift_open_date [17:53:18]req_shift_open_date done [17:53:18]produce_requested_data done [17:53:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187431,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:53:18]process_action_free close_receipt [17:53:18]json_value_free [17:53:18]json_value_free done [17:53:18]process_json_proto returns [17:53:18]Send response to host [17:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187431,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:53:18]free response buf [17:53:18]execute_script done [17:53:18]execute_script returns [17:53:18]free content buf [17:53:18]Sock 7.Close socket [17:53:18]Sock 7.Thread stoped [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:12]accept exits with 9 [17:55:12]New connection [17:55:12]New thread 3067420004 created [17:55:12]Thread 3067276644 joined [17:55:12]Waiting for new connection... [17:55:12] Sock 9.Parse request [17:55:12]Sock 9.Check first char [17:55:12]Sock 9.First char is OK [17:55:12]request: POST /json_proto HTTP/1.0 [17:55:12]Method: POST [17:55:12]URL: /json_proto [17:55:12]Method is POST - this is cgi request [17:55:12]url: /json_proto [17:55:12]query_string will be loaded in cgi processing [17:55:12]execute_cgi json_proto POST (null) [17:55:12]execute_cgi path=json_proto method=POST [17:55:12]POST find Content-Length [17:55:12]Host: 172.17.46.131:8080 [17:55:12]Content-Length: 801 [17:55:12]Content-Type: application/json [17:55:12] [17:55:12]POST finish read [17:55:12]Found Content-Length = 801 [17:55:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:12]execute_script... [17:55: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)412591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:12]POST & json_proto [17:55:12]process_json_proto [17:55:12]json parsed OK: [17:55:12]protocol is kg_v1.0 [17:55:12]action value=close_receipt [17:55:12]process_action close_receipt [17:55:12]cmd_close_receipt [17:55:12]MH_GetDate [17:55:12]Write to MH i2c: F0 00 00 6C 1E 79 [17:55:12]Write i2c OK [17:55:12]MH_I2C_Read... [17:55:12]Read from MH i2c: F0 [17:55:12]MH_I2C_Read... [17:55:12]Read from MH i2c: F0 09 00 [17:55:12]MH_I2C_Read... [17:55:12]Read from MH i2c: F0 09 00 6C 1E 00 82 6C B7 67 7E 41 4F 65 01 [17:55:12]GetLastDocTimeStamp 1740073996 [17:55:12]current date 1740074114 [17:55:12]FM_GetShiftState [17:55:12]SAM_PROTO_GetShiftState [17:55:12]wFMCommunicate request_size=4 [17:55:12]MH_SAM_APDU [17:55:12]CAPDU: 80 13 01 00 [17:55:12]Write to MH i2c: E2 08 00 6D 1E 80 13 01 00 00 00 00 00 08 [17:55:12]Write i2c OK [17:55:12]MH_I2C_Read... [17:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:13]Read from MH i2c: E2 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 0E 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 0E 00 6D 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5A [17:55:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:55:13]wFMCommunicate OK [17:55:13]SAM_PROTO_GetShiftState done [17:55:13]FM_GetShiftState done [17:55:13]opened in 1740011697 [17:55:13]opened+sec_in_day 1740098097 [17:55:13]quantity*price = 70042 [17:55:13]sum+1 = 70043 [17:55:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 233 20.02.2025 17:55 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187432 ФПД: 113198110701848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T175514&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187432&fm=113198110701848&tin=02508201610067®Number=0000000000091857&sum=70042 [17:55:14]StoreToDocumentArchive [17:55:14]shift 648 fd 187432 [17:55:14]save to /storage/0648/doc_00187432 [17:55:14]save last doc name /storage/0648/doc_00187432 to /storage/kkm_last_doc_name [17:55:14]save OK [17:55:14]Clear old archive folders... [17:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:14]tlvbuf is 00E18C50 [17:55:14]SAM_PROTO_ClearQueue [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 09 00 00 [17:55:14]Write to MH i2c: E2 08 00 7A 1E 80 09 00 00 00 00 00 00 0A [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 7A 1E 00 90 00 0C [17:55:14]RAPDU: 90 00 [17:55:14]wFMCommunicate OK [17:55:14]SAM_PROTO_ClearQueue done [17:55:14]KKMCreateOFDPacket [17:55:14]OFDProtocolAddRootSTLVToBuf [17:55:14]FM_MakeSignedData [17:55:14]FM_MakeSignedData [17:55:14]SAM_PROTO_SignData [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 0D 01 02 [17:55:14]Write to MH i2c: E2 08 00 7B 1E 80 0D 01 02 00 00 00 00 12 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 7B 1E 00 90 00 0D [17:55:14]RAPDU: 90 00 [17:55:14]wFMCommunicate OK [17:55:14]wFMCommunicate request_size=255 [17:55:14]MH_SAM_APDU [17:55: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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 82 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DC 02 00 35 04 06 00 66 [17:55:14]Write to MH i2c: E2 02 01 7C 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 82 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DC 02 00 35 04 06 00 66 00 00 9B [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 7C 1E 00 90 00 0E [17:55:14]RAPDU: 90 00 [17:55:14]wFMCommunicate OK [17:55:14]wFMCommunicate request_size=10 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 0D 02 02 05 F3 FD 2D 79 18 [17:55:14]Write to MH i2c: E2 0D 00 7D 1E 80 0D 02 02 05 00 F3 FD 2D 79 18 00 00 CD [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 7D 1E 00 90 00 0F [17:55:14]RAPDU: 90 00 [17:55:14]wFMCommunicate OK [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 0D 03 02 [17:55:14]Write to MH i2c: E2 08 00 7E 1E 80 0D 03 02 00 00 00 00 17 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 0B 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 0B 00 7E 1E 00 30 DC 38 4F E1 22 7F D9 90 00 06 [17:55:14]RAPDU: 30 DC 38 4F E1 22 7F D9 90 00 [17:55:14]wFMCommunicate OK [17:55:14]SAM_PROTO_SignData done [17:55:14]FM_MakeSignedData done [17:55:14]CreateOFDProtocolMessage [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 11 00 00 [17:55:14]Write to MH i2c: E2 08 00 7F 1E 80 11 00 00 00 00 00 00 17 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 17 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 17 00 7F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6A [17:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:55:14]wFMCommunicate OK [17:55:14]CreateOFDProtocolMessage done [17:55:14]OFDSenderStorePacket 187432 [17:55:14]StoreOFDPacket docnum=187432 [17:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8E 83 07 01 0E 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 82 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DC 02 00 35 04 06 00 66 F3 FD 2D 79 18 30 DC 38 4F E1 22 7F D9 [17:55:14]CheckFolder [17:55:14]dirname=/storage/ofd_packets [17:55:14]CheckFolder done [17:55:14]ProducePacketName [17:55:14]name=ofd_packets/00187432 [17:55:14]NVStorageSaveData ofd_packets/00187432 [17:55:14]File name is /storage/ofd_packets/00187432 [17:55:14]Write 301 bytes [17:55:14]NVStorageSaveData done [17:55:14]OFDSenderStorePacket done [17:55:14]KKMCreateOFDPacket done [17:55:14]NVStorageSaveData kkm_last_timestamp [17:55:14]File name is /storage/kkm_last_timestamp [17:55:14]Write 4 bytes [17:55:14]NVStorageSaveData done [17:55:14]ExternCall_PrintAddStr [17:55:14]wPrintStart [17:55:14]Write to MH i2c: 01 00 00 80 1E 9E [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: 01 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: 01 07 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: 01 07 00 80 1E 00 00 00 00 00 FF 0F B3 [17:55:14]RasterBufferAndPrint [17:55:14]line Счет N : (1)412591 [17:55:14]line ИНН: 02508201610067 [17:55:14]line Контрольно-Кассовый Чек [17:55:14]line ПРОДАЖА [17:55:14]line ТРК (МРК, ГНК) : 22 [17:55:14]line Товар: 2710124130 [17:55:14]line Аи-92-К-2 [17:55:14]line 10.910 * 64.20 [17:55:14]line = 700.42 [17:55:14]line НДС 12% НСП 1% [17:55:14]line > о реализуемом товаре [17:55:14]line ИТОГО: 700.42 [17:55:14]line НСП 1% : 6.20 [17:55:14]line НДС 12% : 74.38 [17:55:14]line Наличными: 0.00 [17:55:14]line Безнал.: 700.42 [17:55:14]line Место: АЗС № 92 "Партнер Нефть" [17:55:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:55:14]line СНО: Общий режим [17:55:14]line Чек 233 20.02.2025 17:55 [17:55:14]line Смена: 648 ФФД: 1.0 [17:55:14]line ЗНМ: 0300000118 [17:55:14]line РНМ: 0000000000091857 [17:55:14]line Версия ККМ: 001 [17:55:14]line Платежная система: O! деньги [17:55:14]line ФМ: 0000000000871826 [17:55:14]line ФД: 187432 [17:55:14]line ФПД: 113198110701848 [17:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T175514&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187432&fm=113198110701848&tin=02508201610067®Number=0000000000091857&sum=70042 [17:55:14]OFD Sender: Processing packet 187432 [packets to send 49, broken 48] [17:55:14]ProducePacketName [17:55:14]name=ofd_packets/00187432 [17:55:14]OFD Sender: To server: pG, [17:55:14]CommunicateWithHost lk.salyk.kg:30040 [17:55:14]ConnectInit lk.salyk.kg [17:55:14]written 0, free lines is 4095 [17:55:15]Connected sock=10 [17:55:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8E 83 07 01 0E 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 82 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DC 02 00 35 04 06 00 66 F3 FD 2D 79 18 30 DC 38 4F E1 22 7F D9 [17:55:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E1 D6 47 00 78 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DC 02 00 F4 03 04 00 D2 12 B7 67 B6 04 01 00 00 4F 34 22 44 94 BE 91 D4 [17:55:15]CommunicateWithHost err = 0 [17:55:15]CheckOFDResponse [17:55:15]1017 (14) - 77093643461234 [17:55:15]1041 (16) - 0000000000871826 [17:55:15]1040 (4) - 187432 [17:55:15]1012 (4) - 20.02.2025 11:32 [17:55:15]1206 (1) - 0 [17:55:15]OFD Sender: Remove packet 187432 [17:55:15]ProducePacketName [17:55:15]name=ofd_packets/00187432 [17:55:15]NVStorageDeleteData [17:55:15]Write to MH i2c: 01 00 00 AA 1E C8 [17:55:15]Write i2c OK [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: 01 [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: 01 07 00 [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: 01 07 00 AA 1E 00 00 00 00 00 FF 0C DA [17:55:15]RasterBufferAndPrint [17:55:15]line [17:55:15]line [17:55:15]line [17:55:15]line [17:55:15]line [17:55:15]written 0, free lines is 3332 [17:55:15]MH_Cut [17:55:15]Write to MH i2c: D1 01 00 B1 1E 01 A1 [17:55:15]Write i2c OK [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: D1 [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: D1 01 00 [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: D1 01 00 B1 1E 00 A0 [17:55:15]Write to MH i2c: 01 00 00 B2 1E D0 [17:55:15]Write i2c OK [17:55:15]MH_I2C_Read... [17:55:15]OFD Sender: No OFD packet to send [17:55:16]*** Cut start [17:55:16]*** Partial cut [17:55:16]*** CUTSNS_PIN = 1 [17:55:16]*** CUTSNS_PIN = 0 [17:55:16]*** Brake cut motor [17:55:16]Read from MH i2c: 01 [17:55:16]MH_I2C_Read... [17:55:16]*** Stop cut motor [17:55:16]*** Cut end [17:55:16]Read from MH i2c: 01 07 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: 01 07 00 B2 1E 00 00 00 00 00 FF 0F E5 [17:55:16]process_action close_receipt done [17:55:16]requested_data is exist [17:55:16]produce_requested_data [17:55:16]requested_item fm.sn is exist - process it [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 11 00 00 [17:55:16]Write to MH i2c: E2 08 00 B3 1E 80 11 00 00 00 00 00 00 4B [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 17 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 17 00 B3 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [17:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:55:16]wFMCommunicate OK [17:55:16]requested_item fd.num is exist - process it [17:55:16]SAM_PROTO_GetFieldsCounters [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 13 00 00 [17:55:16]Write to MH i2c: E2 08 00 B4 1E 80 13 00 00 00 00 00 00 4E [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:17]Read from MH i2c: E2 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 62 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 62 00 B4 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 28 DC 02 00 0E 04 04 00 88 02 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 BF [17:55:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 28 DC 02 00 0E 04 04 00 88 02 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 [17:55:17]wFMCommunicate OK [17:55:17]SAM_PROTO_GetFieldsCounters done [17:55:17]requested_item shift.num is exist - process it [17:55:17]requested_item shift.opened is exist - process it [17:55:17]req_shift_opened [17:55:17]FM_GetShiftState [17:55:17]SAM_PROTO_GetShiftState [17:55:17]wFMCommunicate request_size=4 [17:55:17]MH_SAM_APDU [17:55:17]CAPDU: 80 13 01 00 [17:55:17]Write to MH i2c: E2 08 00 B5 1E 80 13 01 00 00 00 00 00 50 [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:17]Read from MH i2c: E2 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 0E 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 0E 00 B5 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A2 [17:55:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:55:17]wFMCommunicate OK [17:55:17]SAM_PROTO_GetShiftState done [17:55:17]FM_GetShiftState done [17:55:17]req_shift_opened done [17:55:17]requested_item shift.open_date is exist - process it [17:55:17]req_shift_open_date [17:55:17]req_shift_open_date done [17:55:17]produce_requested_data done [17:55:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187432,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:55:17]process_action_free close_receipt [17:55:17]json_value_free [17:55:17]json_value_free done [17:55:17]process_json_proto returns [17:55:17]Send response to host [17:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187432,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:55:17]free response buf [17:55:17]execute_script done [17:55:17]execute_script returns [17:55:17]free content buf [17:55:17]Sock 9.Close socket [17:55:17]Sock 9.Thread stoped [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:29]accept exits with 7 [17:55:29]New connection [17:55:29]New thread 3067276644 created [17:55:29]Thread 3067420004 joined [17:55:29]Waiting for new connection... [17:55:29] Sock 7.Parse request [17:55:29]Sock 7.Check first char [17:55:29]Sock 7.First char is OK [17:55:29]request: POST /json_proto HTTP/1.0 [17:55:29]Method: POST [17:55:29]URL: /json_proto [17:55:29]Method is POST - this is cgi request [17:55:29]url: /json_proto [17:55:29]query_string will be loaded in cgi processing [17:55:29]execute_cgi json_proto POST (null) [17:55:29]execute_cgi path=json_proto method=POST [17:55:29]POST find Content-Length [17:55:29]Host: 172.17.46.131:8080 [17:55:29]Content-Length: 677 [17:55:29]Content-Type: application/json [17:55:29] [17:55:29]POST finish read [17:55:29]Found Content-Length = 677 [17:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:29]execute_script... [17:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:29]POST & json_proto [17:55:29]process_json_proto [17:55:29]json parsed OK: [17:55:29]protocol is kg_v1.0 [17:55:29]action value=close_receipt [17:55:29]process_action close_receipt [17:55:29]cmd_close_receipt [17:55:29]MH_GetDate [17:55:29]Write to MH i2c: F0 00 00 B6 1E C3 [17:55:29]Write i2c OK [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: F0 [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: F0 09 00 [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: F0 09 00 B6 1E 00 93 6C B7 67 7E 41 4F 65 5C [17:55:29]GetLastDocTimeStamp 1740074114 [17:55:29]current date 1740074131 [17:55:29]FM_GetShiftState [17:55:29]SAM_PROTO_GetShiftState [17:55:29]wFMCommunicate request_size=4 [17:55:29]MH_SAM_APDU [17:55:29]CAPDU: 80 13 01 00 [17:55:29]Write to MH i2c: E2 08 00 B7 1E 80 13 01 00 00 00 00 00 52 [17:55:29]Write i2c OK [17:55:29]MH_I2C_Read... [17:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:29]Read from MH i2c: E2 [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: E2 0E 00 [17:55:29]MH_I2C_Read... [17:55:29]Read from MH i2c: E2 0E 00 B7 1E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A4 [17:55:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:55:29]wFMCommunicate OK [17:55:29]SAM_PROTO_GetShiftState done [17:55:29]FM_GetShiftState done [17:55:29]opened in 1740011697 [17:55:29]opened+sec_in_day 1740098097 [17:55:29]quantity*price = 60027 [17:55:29]sum+1 = 60028 [17:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 234 20.02.2025 17:55 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187433 ФПД: 23323112460724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T175531&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187433&fm=23323112460724&tin=02508201610067®Number=0000000000091857&sum=60000 [17:55:30]StoreToDocumentArchive [17:55:30]shift 648 fd 187433 [17:55:30]save to /storage/0648/doc_00187433 [17:55:30]save last doc name /storage/0648/doc_00187433 to /storage/kkm_last_doc_name [17:55:30]save OK [17:55:30]Clear old archive folders... [17:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:30]tlvbuf is B6FC7160 [17:55:30]SAM_PROTO_ClearQueue [17:55:30]wFMCommunicate request_size=4 [17:55:30]MH_SAM_APDU [17:55:30]CAPDU: 80 09 00 00 [17:55:30]Write to MH i2c: E2 08 00 C4 1E 80 09 00 00 00 00 00 00 54 [17:55:30]Write i2c OK [17:55:30]MH_I2C_Read... [17:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:31]Read from MH i2c: E2 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 03 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [17:55:31]RAPDU: 90 00 [17:55:31]wFMCommunicate OK [17:55:31]SAM_PROTO_ClearQueue done [17:55:31]KKMCreateOFDPacket [17:55:31]OFDProtocolAddRootSTLVToBuf [17:55:31]FM_MakeSignedData [17:55:31]FM_MakeSignedData [17:55:31]SAM_PROTO_SignData [17:55:31]wFMCommunicate request_size=4 [17:55:31]MH_SAM_APDU [17:55:31]CAPDU: 80 0D 01 02 [17:55:31]Write to MH i2c: E2 08 00 C5 1E 80 0D 01 02 00 00 00 00 5C [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:31]Read from MH i2c: E2 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 03 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 03 00 C5 1E 00 90 00 57 [17:55:31]RAPDU: 90 00 [17:55:31]wFMCommunicate OK [17:55:31]wFMCommunicate request_size=255 [17:55:31]MH_SAM_APDU [17:55:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 93 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DC 02 00 35 04 06 00 15 [17:55:31]Write to MH i2c: E2 02 01 C6 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 93 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DC 02 00 35 04 06 00 15 00 00 F8 [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:31]Read from MH i2c: E2 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 03 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 03 00 C6 1E 00 90 00 58 [17:55:31]RAPDU: 90 00 [17:55:31]wFMCommunicate OK [17:55:31]wFMCommunicate request_size=10 [17:55:31]MH_SAM_APDU [17:55:31]CAPDU: 80 0D 02 02 05 36 55 D5 51 B4 [17:55:31]Write to MH i2c: E2 0D 00 C7 1E 80 0D 02 02 05 00 36 55 D5 51 B4 00 00 CE [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:31]Read from MH i2c: E2 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 03 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 03 00 C7 1E 00 90 00 59 [17:55:31]RAPDU: 90 00 [17:55:31]wFMCommunicate OK [17:55:31]wFMCommunicate request_size=4 [17:55:31]MH_SAM_APDU [17:55:31]CAPDU: 80 0D 03 02 [17:55:31]Write to MH i2c: E2 08 00 C8 1E 80 0D 03 02 00 00 00 00 61 [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:31]Read from MH i2c: E2 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 0B 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 0B 00 C8 1E 00 CC 11 AB 60 B3 29 C9 A1 90 00 90 [17:55:31]RAPDU: CC 11 AB 60 B3 29 C9 A1 90 00 [17:55:31]wFMCommunicate OK [17:55:31]SAM_PROTO_SignData done [17:55:31]FM_MakeSignedData done [17:55:31]CreateOFDProtocolMessage [17:55:31]wFMCommunicate request_size=4 [17:55:31]MH_SAM_APDU [17:55:31]CAPDU: 80 11 00 00 [17:55:31]Write to MH i2c: E2 08 00 C9 1E 80 11 00 00 00 00 00 00 61 [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:31]Read from MH i2c: E2 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 17 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: E2 17 00 C9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B4 [17:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:55:31]wFMCommunicate OK [17:55:31]CreateOFDProtocolMessage done [17:55:31]OFDSenderStorePacket 187433 [17:55:31]StoreOFDPacket docnum=187433 [17:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 FC 07 01 43 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 93 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DC 02 00 35 04 06 00 15 36 55 D5 51 B4 CC 11 AB 60 B3 29 C9 A1 [17:55:31]CheckFolder [17:55:31]dirname=/storage/ofd_packets [17:55:31]CheckFolder done [17:55:31]ProducePacketName [17:55:31]name=ofd_packets/00187433 [17:55:31]NVStorageSaveData ofd_packets/00187433 [17:55:31]File name is /storage/ofd_packets/00187433 [17:55:31]Write 301 bytes [17:55:31]NVStorageSaveData done [17:55:31]OFDSenderStorePacket done [17:55:31]KKMCreateOFDPacket done [17:55:31]NVStorageSaveData kkm_last_timestamp [17:55:31]File name is /storage/kkm_last_timestamp [17:55:31]Write 4 bytes [17:55:31]NVStorageSaveData done [17:55:31]ExternCall_PrintAddStr [17:55:31]wPrintStart [17:55:31]Write to MH i2c: 01 00 00 CA 1E E8 [17:55:31]Write i2c OK [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: 01 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: 01 07 00 [17:55:31]MH_I2C_Read... [17:55:31]Read from MH i2c: 01 07 00 CA 1E 00 00 00 00 00 FF 0F FD [17:55:31]RasterBufferAndPrint [17:55:31]line Счет N : (1)412592 [17:55:31]line ИНН: 02508201610067 [17:55:31]line Контрольно-Кассовый Чек [17:55:31]line ПРОДАЖА [17:55:31]line ТРК (МРК, ГНК) : 42 [17:55:31]line Товар: 2710124130 [17:55:31]line Аи-92-К-2 [17:55:31]line 9.350 * 64.20 [17:55:31]line = 600.27 [17:55:31]line НДС 12% НСП 1% [17:55:31]line > о реализуемом товаре [17:55:31]line ОКРУГЛЕНИЕ: -0.27 [17:55:31]line ИТОГО: 600.00 [17:55:31]line Внесено: 600.00 [17:55:31]line СДАЧА: 0.00 [17:55:31]line НСП 1% : 5.31 [17:55:31]line НДС 12% : 63.74 [17:55:31]line Наличными: 600.00 [17:55:31]line Безнал.: 0.00 [17:55:31]line Место: АЗС № 92 "Партнер Нефть" [17:55:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:55:31]line СНО: Общий режим [17:55:31]line Чек 234 20.02.2025 17:55 [17:55:31]line Смена: 648 ФФД: 1.0 [17:55:31]line ЗНМ: 0300000118 [17:55:31]line РНМ: 0000000000091857 [17:55:31]line Версия ККМ: 001 [17:55:31]line ФМ: 0000000000871826 [17:55:31]line ФД: 187433 [17:55:31]line ФПД: 23323112460724 [17:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T175531&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187433&fm=23323112460724&tin=02508201610067®Number=0000000000091857&sum=60000 [17:55:31]OFD Sender: Processing packet 187433 [packets to send 49, broken 48] [17:55:31]ProducePacketName [17:55:31]name=ofd_packets/00187433 [17:55:31]OFD Sender: To server: pG, [17:55:31]CommunicateWithHost lk.salyk.kg:30040 [17:55:31]ConnectInit lk.salyk.kg [17:55:31]written 0, free lines is 4095 [17:55:31]Connected sock=10 [17: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 31 38 32 36 0F 01 00 00 43 FC 07 01 43 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 93 6C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DC 02 00 35 04 06 00 15 36 55 D5 51 B4 CC 11 AB 60 B3 29 C9 A1 [17:55:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E0 6A 47 00 29 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DC 02 00 F4 03 04 00 E3 12 B7 67 B6 04 01 00 00 8D 0B 61 C7 97 D0 F6 70 [17:55:32]CommunicateWithHost err = 0 [17:55:32]CheckOFDResponse [17:55:32]1017 (14) - 77093643461234 [17:55:32]1041 (16) - 0000000000871826 [17:55:32]1040 (4) - 187433 [17:55:32]1012 (4) - 20.02.2025 11:32 [17:55:32]1206 (1) - 0 [17:55:32]OFD Sender: Remove packet 187433 [17:55:32]ProducePacketName [17:55:32]name=ofd_packets/00187433 [17:55:32]NVStorageDeleteData [17:55:32]Write to MH i2c: 01 00 00 F5 1E 13 [17:55:32]Write i2c OK [17:55:32]MH_I2C_Read... [17:55:32]Read from MH i2c: 01 [17:55:32]MH_I2C_Read... [17:55:32]Read from MH i2c: 01 07 00 [17:55:32]MH_I2C_Read... [17:55:32]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 E7 0C 0D [17:55:32]RasterBufferAndPrint [17:55:32]line [17:55:32]line [17:55:32]line [17:55:32]line [17:55:32]line [17:55:32]written 0, free lines is 3310 [17:55:32]MH_Cut [17:55:32]Write to MH i2c: D1 01 00 FC 1E 01 EC [17:55:32]Write i2c OK [17:55:32]MH_I2C_Read... [17:55:32]Read from MH i2c: D1 [17:55:32]MH_I2C_Read... [17:55:32]Read from MH i2c: D1 01 00 [17:55:32]MH_I2C_Read... [17:55:32]Read from MH i2c: D1 01 00 FC 1E 00 EB [17:55:32]Write to MH i2c: 01 00 00 FD 1E 1B [17:55:32]Write i2c OK [17:55:32]MH_I2C_Read... [17:55:32]OFD Sender: No OFD packet to send [17:55:32]*** Cut start [17:55:32]*** Partial cut [17:55:32]*** CUTSNS_PIN = 1 [17:55:33]*** CUTSNS_PIN = 0 [17:55:33]*** Brake cut motor [17:55:33]Read from MH i2c: 01 [17:55:33]MH_I2C_Read... [17:55:33]*** Stop cut motor [17:55:33]*** Cut end [17:55:33]Read from MH i2c: 01 07 00 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: 01 07 00 FD 1E 00 00 00 00 00 FF 0F 30 [17:55:33]process_action close_receipt done [17:55:33]requested_data is exist [17:55:33]produce_requested_data [17:55:33]requested_item fm.sn is exist - process it [17:55:33]wFMCommunicate request_size=4 [17:55:33]MH_SAM_APDU [17:55:33]CAPDU: 80 11 00 00 [17:55:33]Write to MH i2c: E2 08 00 FE 1E 80 11 00 00 00 00 00 00 96 [17:55:33]Write i2c OK [17:55:33]MH_I2C_Read... [17:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:33]Read from MH i2c: E2 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 17 00 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 17 00 FE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E9 [17:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:55:33]wFMCommunicate OK [17:55:33]requested_item fd.num is exist - process it [17:55:33]SAM_PROTO_GetFieldsCounters [17:55:33]wFMCommunicate request_size=4 [17:55:33]MH_SAM_APDU [17:55:33]CAPDU: 80 13 00 00 [17:55:33]Write to MH i2c: E2 08 00 FF 1E 80 13 00 00 00 00 00 00 99 [17:55:33]Write i2c OK [17:55:33]MH_I2C_Read... [17:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:33]Read from MH i2c: E2 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 62 00 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 62 00 FF 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 29 DC 02 00 0E 04 04 00 88 02 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 0E [17:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 29 DC 02 00 0E 04 04 00 88 02 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 [17:55:33]wFMCommunicate OK [17:55:33]SAM_PROTO_GetFieldsCounters done [17:55:33]requested_item shift.num is exist - process it [17:55:33]requested_item shift.opened is exist - process it [17:55:33]req_shift_opened [17:55:33]FM_GetShiftState [17:55:33]SAM_PROTO_GetShiftState [17:55:33]wFMCommunicate request_size=4 [17:55:33]MH_SAM_APDU [17:55:33]CAPDU: 80 13 01 00 [17:55:33]Write to MH i2c: E2 08 00 00 1F 80 13 01 00 00 00 00 00 9C [17:55:33]Write i2c OK [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 [17:55:33]MH_I2C_Read... [17:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:33]Read from MH i2c: E2 0E 00 [17:55:33]MH_I2C_Read... [17:55:33]Read from MH i2c: E2 0E 00 00 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EE [17:55:33]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:55:33]wFMCommunicate OK [17:55:33]SAM_PROTO_GetShiftState done [17:55:33]FM_GetShiftState done [17:55:33]req_shift_opened done [17:55:33]requested_item shift.open_date is exist - process it [17:55:33]req_shift_open_date [17:55:33]req_shift_open_date done [17:55:33]produce_requested_data done [17:55:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187433,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:55:33]process_action_free close_receipt [17:55:33]json_value_free [17:55:33]json_value_free done [17:55:33]process_json_proto returns [17:55:33]Send response to host [17:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187433,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:55:33]free response buf [17:55:33]execute_script done [17:55:33]execute_script returns [17:55:33]free content buf [17:55:33]Sock 7.Close socket [17:55:33]Sock 7.Thread stoped [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]accept exits with 9 [17:59:17]New connection [17:59:17]New thread 3067420004 created [17:59:17]Thread 3067276644 joined [17:59:17]Waiting for new connection... [17:59:17] Sock 9.Parse request [17:59:17]Sock 9.Check first char [17:59:17]Sock 9.First char is OK [17:59:17]request: POST /json_proto HTTP/1.0 [17:59:17]Method: POST [17:59:17]URL: /json_proto [17:59:17]Method is POST - this is cgi request [17:59:17]url: /json_proto [17:59:17]query_string will be loaded in cgi processing [17:59:17]execute_cgi json_proto POST (null) [17:59:17]execute_cgi path=json_proto method=POST [17:59:17]POST find Content-Length [17:59:17]Host: 172.17.46.131:8080 [17:59:17]Content-Length: 674 [17:59:17]Content-Type: application/json [17:59:17] [17:59:17]POST finish read [17:59:17]Found Content-Length = 674 [17:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:59:17]execute_script... [17:59: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)412593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "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:59:17]POST & json_proto [17:59:17]process_json_proto [17:59:17]json parsed OK: [17:59:17]protocol is kg_v1.0 [17:59:17]action value=close_receipt [17:59:17]process_action close_receipt [17:59:17]cmd_close_receipt [17:59:17]MH_GetDate [17:59:17]Write to MH i2c: F0 00 00 01 1F 0F [17:59:17]Write i2c OK [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: F0 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: F0 09 00 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: F0 09 00 01 1F 00 77 6D B7 67 7E 41 4F 65 8D [17:59:17]GetLastDocTimeStamp 1740074131 [17:59:17]current date 1740074359 [17:59:17]FM_GetShiftState [17:59:17]SAM_PROTO_GetShiftState [17:59:17]wFMCommunicate request_size=4 [17:59:17]MH_SAM_APDU [17:59:17]CAPDU: 80 13 01 00 [17:59:17]Write to MH i2c: E2 08 00 02 1F 80 13 01 00 00 00 00 00 9E [17:59:17]Write i2c OK [17:59:17]MH_I2C_Read... [17:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:17]Read from MH i2c: E2 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: E2 0E 00 [17:59:17]MH_I2C_Read... [17:59:17]Read from MH i2c: E2 0E 00 02 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F0 [17:59:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:59:17]wFMCommunicate OK [17:59:17]SAM_PROTO_GetShiftState done [17:59:17]FM_GetShiftState done [17:59:17]opened in 1740011697 [17:59:17]opened+sec_in_day 1740098097 [17:59:17]quantity*price = 50021 [17:59:17]sum+1 = 50022 [17:59:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 235 20.02.2025 17:59 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187434 ФПД: 13405235348658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T175919&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187434&fm=13405235348658&tin=02508201610067®Number=0000000000091857&sum=50000 [17:59:18]StoreToDocumentArchive [17:59:18]shift 648 fd 187434 [17:59:18]save to /storage/0648/doc_00187434 [17:59:18]save last doc name /storage/0648/doc_00187434 to /storage/kkm_last_doc_name [17:59:18]save OK [17:59:18]Clear old archive folders... [17:59:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:59:18]tlvbuf is 00EACF00 [17:59:18]SAM_PROTO_ClearQueue [17:59:18]wFMCommunicate request_size=4 [17:59:18]MH_SAM_APDU [17:59:18]CAPDU: 80 09 00 00 [17:59:18]Write to MH i2c: E2 08 00 0F 1F 80 09 00 00 00 00 00 00 A0 [17:59:18]Write i2c OK [17:59:18]MH_I2C_Read... [17:59:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:18]Read from MH i2c: E2 [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: E2 03 00 [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: E2 03 00 0F 1F 00 90 00 A2 [17:59:18]RAPDU: 90 00 [17:59:18]wFMCommunicate OK [17:59:18]SAM_PROTO_ClearQueue done [17:59:18]KKMCreateOFDPacket [17:59:18]OFDProtocolAddRootSTLVToBuf [17:59:18]FM_MakeSignedData [17:59:18]FM_MakeSignedData [17:59:18]SAM_PROTO_SignData [17:59:18]wFMCommunicate request_size=4 [17:59:18]MH_SAM_APDU [17:59:18]CAPDU: 80 0D 01 02 [17:59:18]Write to MH i2c: E2 08 00 10 1F 80 0D 01 02 00 00 00 00 A8 [17:59:18]Write i2c OK [17:59:18]MH_I2C_Read... [17:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:18]Read from MH i2c: E2 [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: E2 03 00 [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: E2 03 00 10 1F 00 90 00 A3 [17:59:18]RAPDU: 90 00 [17:59:18]wFMCommunicate OK [17:59:18]wFMCommunicate request_size=255 [17:59:18]MH_SAM_APDU [17:59:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 77 6D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DC 02 00 35 04 06 00 0C 31 26 4A [17:59:18]Write to MH i2c: E2 02 01 11 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 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 77 6D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DC 02 00 35 04 06 00 0C 31 26 4A 00 00 8D [17:59:18]Write i2c OK [17:59:18]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 11 1F 00 90 00 A4 [17:59:19]RAPDU: 90 00 [17:59:19]wFMCommunicate OK [17:59:19]wFMCommunicate request_size=7 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 0D 02 02 02 84 B2 [17:59:19]Write to MH i2c: E2 0A 00 12 1F 80 0D 02 02 02 00 84 B2 00 00 E5 [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [17:59:19]RAPDU: 90 00 [17:59:19]wFMCommunicate OK [17:59:19]wFMCommunicate request_size=4 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 0D 03 02 [17:59:19]Write to MH i2c: E2 08 00 13 1F 80 0D 03 02 00 00 00 00 AD [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 0B 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 0B 00 13 1F 00 A2 86 F5 DA 0C 90 F4 D5 90 00 0A [17:59:19]RAPDU: A2 86 F5 DA 0C 90 F4 D5 90 00 [17:59:19]wFMCommunicate OK [17:59:19]SAM_PROTO_SignData done [17:59:19]FM_MakeSignedData done [17:59:19]CreateOFDProtocolMessage [17:59:19]wFMCommunicate request_size=4 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 11 00 00 [17:59:19]Write to MH i2c: E2 08 00 14 1F 80 11 00 00 00 00 00 00 AD [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 17 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 17 00 14 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 00 [17:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:59:19]wFMCommunicate OK [17:59:19]CreateOFDProtocolMessage done [17:59:19]OFDSenderStorePacket 187434 [17:59:19]StoreOFDPacket docnum=187434 [17:59:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E0 EB 04 01 56 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 77 6D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DC 02 00 35 04 06 00 0C 31 26 4A 84 B2 A2 86 F5 DA 0C 90 F4 D5 [17:59:19]CheckFolder [17:59:19]dirname=/storage/ofd_packets [17:59:19]CheckFolder done [17:59:19]ProducePacketName [17:59:19]name=ofd_packets/00187434 [17:59:19]NVStorageSaveData ofd_packets/00187434 [17:59:19]File name is /storage/ofd_packets/00187434 [17:59:19]Write 298 bytes [17:59:19]NVStorageSaveData done [17:59:19]OFDSenderStorePacket done [17:59:19]KKMCreateOFDPacket done [17:59:19]NVStorageSaveData kkm_last_timestamp [17:59:19]File name is /storage/kkm_last_timestamp [17:59:19]Write 4 bytes [17:59:19]NVStorageSaveData done [17:59:19]ExternCall_PrintAddStr [17:59:19]wPrintStart [17:59:19]Write to MH i2c: 01 00 00 15 1F 34 [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: 01 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: 01 07 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: 01 07 00 15 1F 00 00 00 00 00 FF 0F 49 [17:59:19]RasterBufferAndPrint [17:59:19]line Счет N : (1)412593 [17:59:19]line ИНН: 02508201610067 [17:59:19]line Контрольно-Кассовый Чек [17:59:19]line ПРОДАЖА [17:59:19]line ТРК (МРК, ГНК) : 41 [17:59:19]line Товар: 2710194210 [17:59:19]line ДТ-К-2 [17:59:19]line 6.890 * 72.60 [17:59:19]line = 500.21 [17:59:19]line НДС 12% НСП 1% [17:59:19]line > о реализуемом товаре [17:59:19]line ОКРУГЛЕНИЕ: -0.21 [17:59:19]line ИТОГО: 500.00 [17:59:19]line Внесено: 500.00 [17:59:19]line СДАЧА: 0.00 [17:59:19]line НСП 1% : 4.43 [17:59:19]line НДС 12% : 53.12 [17:59:19]line Наличными: 500.00 [17:59:19]line Безнал.: 0.00 [17:59:19]line Место: АЗС № 92 "Партнер Нефть" [17:59:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:59:19]line СНО: Общий режим [17:59:19]line Чек 235 20.02.2025 17:59 [17:59:19]line Смена: 648 ФФД: 1.0 [17:59:19]line ЗНМ: 0300000118 [17:59:19]line РНМ: 0000000000091857 [17:59:19]line Версия ККМ: 001 [17:59:19]line ФМ: 0000000000871826 [17:59:19]line ФД: 187434 [17:59:19]line ФПД: 13405235348658 [17:59:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T175919&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187434&fm=13405235348658&tin=02508201610067®Number=0000000000091857&sum=50000 [17:59:19]OFD Sender: Processing packet 187434 [packets to send 49, broken 48] [17:59:19]ProducePacketName [17:59:19]name=ofd_packets/00187434 [17:59:19]OFD Sender: To server: pG, [17:59:19]CommunicateWithHost lk.salyk.kg:30040 [17:59:19]ConnectInit lk.salyk.kg [17:59:19]written 0, free lines is 4095 [17:59:19]Connected sock=10 [17:59:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E0 EB 04 01 56 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 77 6D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DC 02 00 35 04 06 00 0C 31 26 4A 84 B2 A2 86 F5 DA 0C 90 F4 D5 [17:59:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3B 7E 47 00 57 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DC 02 00 F4 03 04 00 C7 13 B7 67 B6 04 01 00 00 E7 96 5F 63 C8 05 62 8C [17:59:20]CommunicateWithHost err = 0 [17:59:20]CheckOFDResponse [17:59:20]1017 (14) - 77093643461234 [17:59:20]1041 (16) - 0000000000871826 [17:59:20]1040 (4) - 187434 [17:59:20]1012 (4) - 20.02.2025 11:36 [17:59:20]1206 (1) - 0 [17:59:20]OFD Sender: Remove packet 187434 [17:59:20]ProducePacketName [17:59:20]name=ofd_packets/00187434 [17:59:20]NVStorageDeleteData [17:59:20]Write to MH i2c: 01 00 00 40 1F 5F [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 07 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 07 00 40 1F 00 00 00 00 00 E2 0C 54 [17:59:20]RasterBufferAndPrint [17:59:20]line [17:59:20]line [17:59:20]line [17:59:20]line [17:59:20]line [17:59:20]written 0, free lines is 3304 [17:59:20]MH_Cut [17:59:20]Write to MH i2c: D1 01 00 47 1F 01 38 [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: D1 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: D1 01 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: D1 01 00 47 1F 00 37 [17:59:20]Write to MH i2c: 01 00 00 48 1F 67 [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]OFD Sender: No OFD packet to send [17:59:20]*** Cut start [17:59:20]*** Partial cut [17:59:20]*** CUTSNS_PIN = 1 [17:59:20]*** CUTSNS_PIN = 0 [17:59:21]*** Brake cut motor [17:59:21]Read from MH i2c: 01 [17:59:21]MH_I2C_Read... [17:59:21]*** Stop cut motor [17:59:21]*** Cut end [17:59:21]Read from MH i2c: 01 07 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: 01 07 00 48 1F 00 00 00 00 00 FF 0F 7C [17:59:21]process_action close_receipt done [17:59:21]requested_data is exist [17:59:21]produce_requested_data [17:59:21]requested_item fm.sn is exist - process it [17:59:21]wFMCommunicate request_size=4 [17:59:21]MH_SAM_APDU [17:59:21]CAPDU: 80 11 00 00 [17:59:21]Write to MH i2c: E2 08 00 49 1F 80 11 00 00 00 00 00 00 E2 [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 17 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 17 00 49 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 35 [17:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:59:21]wFMCommunicate OK [17:59:21]requested_item fd.num is exist - process it [17:59:21]SAM_PROTO_GetFieldsCounters [17:59:21]wFMCommunicate request_size=4 [17:59:21]MH_SAM_APDU [17:59:21]CAPDU: 80 13 00 00 [17:59:21]Write to MH i2c: E2 08 00 4A 1F 80 13 00 00 00 00 00 00 E5 [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 62 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 62 00 4A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2A DC 02 00 0E 04 04 00 88 02 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 5E [17:59:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2A DC 02 00 0E 04 04 00 88 02 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 [17:59:21]wFMCommunicate OK [17:59:21]SAM_PROTO_GetFieldsCounters done [17:59:21]requested_item shift.num is exist - process it [17:59:21]requested_item shift.opened is exist - process it [17:59:21]req_shift_opened [17:59:21]FM_GetShiftState [17:59:21]SAM_PROTO_GetShiftState [17:59:21]wFMCommunicate request_size=4 [17:59:21]MH_SAM_APDU [17:59:21]CAPDU: 80 13 01 00 [17:59:21]Write to MH i2c: E2 08 00 4B 1F 80 13 01 00 00 00 00 00 E7 [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 0E 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 0E 00 4B 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 39 [17:59:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [17:59:21]wFMCommunicate OK [17:59:21]SAM_PROTO_GetShiftState done [17:59:21]FM_GetShiftState done [17:59:21]req_shift_opened done [17:59:21]requested_item shift.open_date is exist - process it [17:59:21]req_shift_open_date [17:59:21]req_shift_open_date done [17:59:21]produce_requested_data done [17:59:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187434,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [17:59:21]process_action_free close_receipt [17:59:21]json_value_free [17:59:21]json_value_free done [17:59:21]process_json_proto returns [17:59:21]Send response to host [17:59:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187434,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [17:59:21]free response buf [17:59:21]execute_script done [17:59:21]execute_script returns [17:59:21]free content buf [17:59:21]Sock 9.Close socket [17:59:21]Sock 9.Thread stoped [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:49]accept exits with 7 [18:04:49]New connection [18:04:49]New thread 3067276644 created [18:04:49]Thread 3067420004 joined [18:04:49]Waiting for new connection... [18:04:49] Sock 7.Parse request [18:04:49]Sock 7.Check first char [18:04:49]Sock 7.First char is OK [18:04:49]request: POST /json_proto HTTP/1.0 [18:04:49]Method: POST [18:04:49]URL: /json_proto [18:04:49]Method is POST - this is cgi request [18:04:49]url: /json_proto [18:04:49]query_string will be loaded in cgi processing [18:04:49]execute_cgi json_proto POST (null) [18:04:49]execute_cgi path=json_proto method=POST [18:04:49]POST find Content-Length [18:04:49]Host: 172.17.46.131:8080 [18:04:49]Content-Length: 677 [18:04:49]Content-Type: application/json [18:04:49] [18:04:49]POST finish read [18:04:49]Found Content-Length = 677 [18:04:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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:04:49]execute_script... [18:04: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)412594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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:04:49]POST & json_proto [18:04:49]process_json_proto [18:04:49]json parsed OK: [18:04:49]protocol is kg_v1.0 [18:04:49]action value=close_receipt [18:04:49]process_action close_receipt [18:04:49]cmd_close_receipt [18:04:49]MH_GetDate [18:04:49]Write to MH i2c: F0 00 00 4C 1F 5A [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: F0 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: F0 09 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: F0 09 00 4C 1F 00 C3 6E B7 67 7E 41 4F 65 25 [18:04:49]GetLastDocTimeStamp 1740074359 [18:04:49]current date 1740074691 [18:04:49]FM_GetShiftState [18:04:49]SAM_PROTO_GetShiftState [18:04:49]wFMCommunicate request_size=4 [18:04:49]MH_SAM_APDU [18:04:49]CAPDU: 80 13 01 00 [18:04:49]Write to MH i2c: E2 08 00 4D 1F 80 13 01 00 00 00 00 00 E9 [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:49]Read from MH i2c: E2 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 0E 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 0E 00 4D 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3B [18:04:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:04:49]wFMCommunicate OK [18:04:49]SAM_PROTO_GetShiftState done [18:04:49]FM_GetShiftState done [18:04:49]opened in 1740011697 [18:04:49]opened+sec_in_day 1740098097 [18:04:49]quantity*price = 30045 [18:04:49]sum+1 = 30047 [18:04:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 236 20.02.2025 18:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187435 ФПД: 184037721948484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T180451&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187435&fm=184037721948484&tin=02508201610067®Number=0000000000091857&sum=30000 [18:04:50]StoreToDocumentArchive [18:04:50]shift 648 fd 187435 [18:04:50]save to /storage/0648/doc_00187435 [18:04:50]save last doc name /storage/0648/doc_00187435 to /storage/kkm_last_doc_name [18:04:50]save OK [18:04:50]Clear old archive folders... [18:04:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:50]tlvbuf is 00E5F350 [18:04:50]SAM_PROTO_ClearQueue [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 09 00 00 [18:04:50]Write to MH i2c: E2 08 00 5A 1F 80 09 00 00 00 00 00 00 EB [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [18:04:50]RAPDU: 90 00 [18:04:50]wFMCommunicate OK [18:04:50]SAM_PROTO_ClearQueue done [18:04:50]KKMCreateOFDPacket [18:04:50]OFDProtocolAddRootSTLVToBuf [18:04:50]FM_MakeSignedData [18:04:50]FM_MakeSignedData [18:04:50]SAM_PROTO_SignData [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 0D 01 02 [18:04:50]Write to MH i2c: E2 08 00 5B 1F 80 0D 01 02 00 00 00 00 F3 [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:50]OFD Sender: No OFD packet to send [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 03 00 5B 1F 00 90 00 EE [18:04:50]RAPDU: 90 00 [18:04:50]wFMCommunicate OK [18:04:50]wFMCommunicate request_size=255 [18:04:50]MH_SAM_APDU [18:04: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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 C3 6E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DC 02 00 35 04 06 00 A7 [18:04:50]Write to MH i2c: E2 02 01 5C 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 C3 6E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DC 02 00 35 04 06 00 A7 00 00 A6 [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 5C 1F 00 90 00 EF [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]wFMCommunicate request_size=10 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 0D 02 02 05 61 9F 0A C1 44 [18:04:51]Write to MH i2c: E2 0D 00 5D 1F 80 0D 02 02 05 00 61 9F 0A C1 44 00 00 0F [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 5D 1F 00 90 00 F0 [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 0D 03 02 [18:04:51]Write to MH i2c: E2 08 00 5E 1F 80 0D 03 02 00 00 00 00 F8 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 0B 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 0B 00 5E 1F 00 4E CF 15 9E 4E D2 C0 ED 90 00 96 [18:04:51]RAPDU: 4E CF 15 9E 4E D2 C0 ED 90 00 [18:04:51]wFMCommunicate OK [18:04:51]SAM_PROTO_SignData done [18:04:51]FM_MakeSignedData done [18:04:51]CreateOFDProtocolMessage [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 11 00 00 [18:04:51]Write to MH i2c: E2 08 00 5F 1F 80 11 00 00 00 00 00 00 F8 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 17 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 17 00 5F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [18:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:04:51]wFMCommunicate OK [18:04:51]CreateOFDProtocolMessage done [18:04:51]OFDSenderStorePacket 187435 [18:04:51]StoreOFDPacket docnum=187435 [18:04:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 83 DD 07 01 BD 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 C3 6E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DC 02 00 35 04 06 00 A7 61 9F 0A C1 44 4E CF 15 9E 4E D2 C0 ED [18:04:51]CheckFolder [18:04:51]dirname=/storage/ofd_packets [18:04:51]CheckFolder done [18:04:51]ProducePacketName [18:04:51]name=ofd_packets/00187435 [18:04:51]NVStorageSaveData ofd_packets/00187435 [18:04:51]File name is /storage/ofd_packets/00187435 [18:04:51]Write 301 bytes [18:04:51]NVStorageSaveData done [18:04:51]OFDSenderStorePacket done [18:04:51]KKMCreateOFDPacket done [18:04:51]NVStorageSaveData kkm_last_timestamp [18:04:51]File name is /storage/kkm_last_timestamp [18:04:51]Write 4 bytes [18:04:51]NVStorageSaveData done [18:04:51]ExternCall_PrintAddStr [18:04:51]wPrintStart [18:04:51]Write to MH i2c: 01 00 00 60 1F 7F [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 07 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 07 00 60 1F 00 00 00 00 00 FF 0F 94 [18:04:51]RasterBufferAndPrint [18:04:51]line Счет N : (1)412594 [18:04:51]line ИНН: 02508201610067 [18:04:51]line Контрольно-Кассовый Чек [18:04:51]line ПРОДАЖА [18:04:51]line ТРК (МРК, ГНК) : 32 [18:04:51]line Товар: 2710124130 [18:04:51]line Аи-92-К-2 [18:04:51]line 4.680 * 64.20 [18:04:51]line = 300.46 [18:04:51]line НДС 12% НСП 1% [18:04:51]line > о реализуемом товаре [18:04:51]line ОКРУГЛЕНИЕ: -0.46 [18:04:51]line ИТОГО: 300.00 [18:04:51]line Внесено: 300.00 [18:04:51]line СДАЧА: 0.00 [18:04:51]line НСП 1% : 2.66 [18:04:51]line НДС 12% : 31.91 [18:04:51]line Наличными: 300.00 [18:04:51]line Безнал.: 0.00 [18:04:51]line Место: АЗС № 92 "Партнер Нефть" [18:04:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:04:51]line СНО: Общий режим [18:04:51]line Чек 236 20.02.2025 18:04 [18:04:51]line Смена: 648 ФФД: 1.0 [18:04:51]line ЗНМ: 0300000118 [18:04:51]line РНМ: 0000000000091857 [18:04:51]line Версия ККМ: 001 [18:04:51]line ФМ: 0000000000871826 [18:04:51]line ФД: 187435 [18:04:51]line ФПД: 184037721948484 [18:04:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T180451&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187435&fm=184037721948484&tin=02508201610067®Number=0000000000091857&sum=30000 [18:04:51]OFD Sender: Processing packet 187435 [packets to send 49, broken 48] [18:04:51]ProducePacketName [18:04:51]name=ofd_packets/00187435 [18:04:51]OFD Sender: To server: pG, [18:04:51]CommunicateWithHost lk.salyk.kg:30040 [18:04:51]ConnectInit lk.salyk.kg [18:04:51]written 0, free lines is 4095 [18:04:51]Connected sock=11 [18:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 83 DD 07 01 BD 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 C3 6E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DC 02 00 35 04 06 00 A7 61 9F 0A C1 44 4E CF 15 9E 4E D2 C0 ED [18:04:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 41 E3 47 00 88 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 31 38 32 36 10 04 04 00 2B DC 02 00 F4 03 04 00 13 15 B7 67 B6 04 01 00 00 1F 5E 27 66 C8 C6 62 99 [18:04:52]CommunicateWithHost err = 0 [18:04:52]CheckOFDResponse [18:04:52]1017 (14) - 77093643461234 [18:04:52]1041 (16) - 0000000000871826 [18:04:52]1040 (4) - 187435 [18:04:52]1012 (4) - 20.02.2025 11:42 [18:04:52]1206 (1) - 0 [18:04:52]OFD Sender: Remove packet 187435 [18:04:52]ProducePacketName [18:04:52]name=ofd_packets/00187435 [18:04:52]NVStorageDeleteData [18:04:52]Write to MH i2c: 01 00 00 8B 1F AA [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: 01 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: 01 07 00 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: 01 07 00 8B 1F 00 00 00 00 00 EE 0C AB [18:04:52]RasterBufferAndPrint [18:04:52]line [18:04:52]line [18:04:52]line [18:04:52]line [18:04:52]line [18:04:52]written 0, free lines is 3316 [18:04:52]MH_Cut [18:04:52]Write to MH i2c: D1 01 00 92 1F 01 83 [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: D1 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: D1 01 00 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: D1 01 00 92 1F 00 82 [18:04:52]Write to MH i2c: 01 00 00 93 1F B2 [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:52]OFD Sender: No OFD packet to send [18:04:52]*** Cut start [18:04:52]*** Partial cut [18:04:52]*** CUTSNS_PIN = 1 [18:04:52]*** CUTSNS_PIN = 0 [18:04:53]*** Brake cut motor [18:04:53]Read from MH i2c: 01 [18:04:53]MH_I2C_Read... [18:04:53]*** Stop cut motor [18:04:53]*** Cut end [18:04:53]Read from MH i2c: 01 07 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 07 00 93 1F 00 00 00 00 00 FF 0F C7 [18:04:53]process_action close_receipt done [18:04:53]requested_data is exist [18:04:53]produce_requested_data [18:04:53]requested_item fm.sn is exist - process it [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 11 00 00 [18:04:53]Write to MH i2c: E2 08 00 94 1F 80 11 00 00 00 00 00 00 2D [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:53]Read from MH i2c: E2 17 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 17 00 94 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 80 [18:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:04:53]wFMCommunicate OK [18:04:53]requested_item fd.num is exist - process it [18:04:53]SAM_PROTO_GetFieldsCounters [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 13 00 00 [18:04:53]Write to MH i2c: E2 08 00 95 1F 80 13 00 00 00 00 00 00 30 [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 62 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 62 00 95 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2B DC 02 00 0E 04 04 00 88 02 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 AD [18:04:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2B DC 02 00 0E 04 04 00 88 02 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 [18:04:53]wFMCommunicate OK [18:04:53]SAM_PROTO_GetFieldsCounters done [18:04:53]requested_item shift.num is exist - process it [18:04:53]requested_item shift.opened is exist - process it [18:04:53]req_shift_opened [18:04:53]FM_GetShiftState [18:04:53]SAM_PROTO_GetShiftState [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 13 01 00 [18:04:53]Write to MH i2c: E2 08 00 96 1F 80 13 01 00 00 00 00 00 32 [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 0E 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 0E 00 96 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 84 [18:04:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:04:53]wFMCommunicate OK [18:04:53]SAM_PROTO_GetShiftState done [18:04:53]FM_GetShiftState done [18:04:53]req_shift_opened done [18:04:53]requested_item shift.open_date is exist - process it [18:04:53]req_shift_open_date [18:04:53]req_shift_open_date done [18:04:53]produce_requested_data done [18:04:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187435,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:04:53]process_action_free close_receipt [18:04:53]json_value_free [18:04:53]json_value_free done [18:04:53]process_json_proto returns [18:04:53]Send response to host [18:04:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187435,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:04:53]free response buf [18:04:53]execute_script done [18:04:53]execute_script returns [18:04:53]free content buf [18:04:53]Sock 7.Close socket [18:04:53]Sock 7.Thread stoped [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:09]accept exits with 9 [18:06:09]New connection [18:06:09]New thread 3067420004 created [18:06:09]Thread 3067276644 joined [18:06:09]Waiting for new connection... [18:06:09] Sock 9.Parse request [18:06:09]Sock 9.Check first char [18:06:09]Sock 9.First char is OK [18:06:09]request: POST /json_proto HTTP/1.0 [18:06:09]Method: POST [18:06:09]URL: /json_proto [18:06:09]Method is POST - this is cgi request [18:06:09]url: /json_proto [18:06:09]query_string will be loaded in cgi processing [18:06:09]execute_cgi json_proto POST (null) [18:06:09]execute_cgi path=json_proto method=POST [18:06:09]POST find Content-Length [18:06:09]Host: 172.17.46.131:8080 [18:06:09]Content-Length: 682 [18:06:09]Content-Type: application/json [18:06:09] [18:06:09]POST finish read [18:06:09]Found Content-Length = 682 [18:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.790, "sum" : 1013.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1013.00, "payments": [ { "type": 0, "sum" : 1013.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:09]execute_script... [18:06: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)412595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.790, "sum" : 1013.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1013.00, "payments": [ { "type": 0, "sum" : 1013.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:09]POST & json_proto [18:06:09]process_json_proto [18:06:09]json parsed OK: [18:06:09]protocol is kg_v1.0 [18:06:09]action value=close_receipt [18:06:09]process_action close_receipt [18:06:09]cmd_close_receipt [18:06:09]MH_GetDate [18:06:09]Write to MH i2c: F0 00 00 97 1F A5 [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: F0 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: F0 09 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: F0 09 00 97 1F 00 13 6F B7 67 7E 41 4F 65 C1 [18:06:09]GetLastDocTimeStamp 1740074691 [18:06:09]current date 1740074771 [18:06:09]FM_GetShiftState [18:06:09]SAM_PROTO_GetShiftState [18:06:09]wFMCommunicate request_size=4 [18:06:09]MH_SAM_APDU [18:06:09]CAPDU: 80 13 01 00 [18:06:09]Write to MH i2c: E2 08 00 98 1F 80 13 01 00 00 00 00 00 34 [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:09]Read from MH i2c: E2 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 0E 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 0E 00 98 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 86 [18:06:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:06:09]wFMCommunicate OK [18:06:09]SAM_PROTO_GetShiftState done [18:06:09]FM_GetShiftState done [18:06:09]opened in 1740011697 [18:06:09]opened+sec_in_day 1740098097 [18:06:09]quantity*price = 101371 [18:06:09]sum+1 = 101373 [18:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1013.00 Внесено: 1500.00 СДАЧА: 487.00 НСП 1% : 8.97 НДС 12% : 107.65 Наличными: 1013.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 237 20.02.2025 18:06 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187436 ФПД: 262077487308964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T180611&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187436&fm=262077487308964&tin=02508201610067®Number=0000000000091857&sum=101300 [18:06:10]StoreToDocumentArchive [18:06:10]shift 648 fd 187436 [18:06:10]save to /storage/0648/doc_00187436 [18:06:10]save last doc name /storage/0648/doc_00187436 to /storage/kkm_last_doc_name [18:06:10]save OK [18:06:10]Clear old archive folders... [18:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:10]tlvbuf is B6FC72D0 [18:06:10]SAM_PROTO_ClearQueue [18:06:10]wFMCommunicate request_size=4 [18:06:10]MH_SAM_APDU [18:06:10]CAPDU: 80 09 00 00 [18:06:10]Write to MH i2c: E2 08 00 A5 1F 80 09 00 00 00 00 00 00 36 [18:06:10]Write i2c OK [18:06:10]MH_I2C_Read... [18:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:10]Read from MH i2c: E2 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 03 00 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 03 00 A5 1F 00 90 00 38 [18:06:10]RAPDU: 90 00 [18:06:10]wFMCommunicate OK [18:06:10]SAM_PROTO_ClearQueue done [18:06:10]KKMCreateOFDPacket [18:06:10]OFDProtocolAddRootSTLVToBuf [18:06:10]FM_MakeSignedData [18:06:10]FM_MakeSignedData [18:06:10]SAM_PROTO_SignData [18:06:10]wFMCommunicate request_size=4 [18:06:10]MH_SAM_APDU [18:06:10]CAPDU: 80 0D 01 02 [18:06:10]Write to MH i2c: E2 08 00 A6 1F 80 0D 01 02 00 00 00 00 3E [18:06:10]Write i2c OK [18:06:10]MH_I2C_Read... [18:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:11]Read from MH i2c: E2 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 03 00 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 03 00 A6 1F 00 90 00 39 [18:06:11]RAPDU: 90 00 [18:06:11]wFMCommunicate OK [18:06:11]wFMCommunicate request_size=255 [18:06:11]MH_SAM_APDU [18:06:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 3D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 FC 8B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 8B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 2A 00 00 00 00 07 04 06 00 B4 8B 01 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 13 6F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DC 02 00 35 04 06 00 EE [18:06:11]Write to MH i2c: E2 02 01 A7 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 32 FF 03 08 00 03 AE 3D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 FC 8B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 8B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 2A 00 00 00 00 07 04 06 00 B4 8B 01 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 13 6F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DC 02 00 35 04 06 00 EE 00 00 34 [18:06:11]Write i2c OK [18:06:11]MH_I2C_Read... [18:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:11]Read from MH i2c: E2 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 03 00 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 03 00 A7 1F 00 90 00 3A [18:06:11]RAPDU: 90 00 [18:06:11]wFMCommunicate OK [18:06:11]wFMCommunicate request_size=10 [18:06:11]MH_SAM_APDU [18:06:11]CAPDU: 80 0D 02 02 05 5B AB 88 E0 A4 [18:06:11]Write to MH i2c: E2 0D 00 A8 1F 80 0D 02 02 05 00 5B AB 88 E0 A4 00 00 5D [18:06:11]Write i2c OK [18:06:11]MH_I2C_Read... [18:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:11]Read from MH i2c: E2 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 03 00 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 03 00 A8 1F 00 90 00 3B [18:06:11]RAPDU: 90 00 [18:06:11]wFMCommunicate OK [18:06:11]wFMCommunicate request_size=4 [18:06:11]MH_SAM_APDU [18:06:11]CAPDU: 80 0D 03 02 [18:06:11]Write to MH i2c: E2 08 00 A9 1F 80 0D 03 02 00 00 00 00 43 [18:06:11]Write i2c OK [18:06:11]MH_I2C_Read... [18:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:11]Read from MH i2c: E2 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 0B 00 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 0B 00 A9 1F 00 F0 EE B5 0A 2C 1B 17 3E 90 00 7D [18:06:11]RAPDU: F0 EE B5 0A 2C 1B 17 3E 90 00 [18:06:11]wFMCommunicate OK [18:06:11]SAM_PROTO_SignData done [18:06:11]FM_MakeSignedData done [18:06:11]CreateOFDProtocolMessage [18:06:11]wFMCommunicate request_size=4 [18:06:11]MH_SAM_APDU [18:06:11]CAPDU: 80 11 00 00 [18:06:11]Write to MH i2c: E2 08 00 AA 1F 80 11 00 00 00 00 00 00 43 [18:06:11]Write i2c OK [18:06:11]MH_I2C_Read... [18:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:11]Read from MH i2c: E2 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 17 00 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: E2 17 00 AA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [18:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:06:11]wFMCommunicate OK [18:06:11]CreateOFDProtocolMessage done [18:06:11]OFDSenderStorePacket 187436 [18:06:11]StoreOFDPacket docnum=187436 [18:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F8 E4 07 01 99 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 32 FF 03 08 00 03 AE 3D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 FC 8B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 8B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 2A 00 00 00 00 07 04 06 00 B4 8B 01 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 13 6F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DC 02 00 35 04 06 00 EE 5B AB 88 E0 A4 F0 EE B5 0A 2C 1B 17 3E [18:06:11]CheckFolder [18:06:11]dirname=/storage/ofd_packets [18:06:11]CheckFolder done [18:06:11]ProducePacketName [18:06:11]name=ofd_packets/00187436 [18:06:11]NVStorageSaveData ofd_packets/00187436 [18:06:11]File name is /storage/ofd_packets/00187436 [18:06:11]Write 301 bytes [18:06:11]NVStorageSaveData done [18:06:11]OFDSenderStorePacket done [18:06:11]KKMCreateOFDPacket done [18:06:11]NVStorageSaveData kkm_last_timestamp [18:06:11]File name is /storage/kkm_last_timestamp [18:06:11]Write 4 bytes [18:06:11]NVStorageSaveData done [18:06:11]ExternCall_PrintAddStr [18:06:11]wPrintStart [18:06:11]Write to MH i2c: 01 00 00 AB 1F CA [18:06:11]Write i2c OK [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: 01 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: 01 07 00 [18:06:11]MH_I2C_Read... [18:06:11]Read from MH i2c: 01 07 00 AB 1F 00 00 00 00 00 FF 0F DF [18:06:11]RasterBufferAndPrint [18:06:11]line Счет N : (1)412595 [18:06:11]line ИНН: 02508201610067 [18:06:11]line Контрольно-Кассовый Чек [18:06:11]line ПРОДАЖА [18:06:11]line ТРК (МРК, ГНК) : 12 [18:06:11]line Товар: 2710124130 [18:06:11]line Аи-92-К-2 [18:06:11]line 15.790 * 64.20 [18:06:11]line = 1013.72 [18:06:11]line НДС 12% НСП 1% [18:06:11]line > о реализуемом товаре [18:06:11]line ОКРУГЛЕНИЕ: -0.72 [18:06:11]line ИТОГО: 1013.00 [18:06:11]line Внесено: 1500.00 [18:06:11]line СДАЧА: 487.00 [18:06:11]line НСП 1% : 8.97 [18:06:11]line НДС 12% : 107.65 [18:06:11]line Наличными: 1013.00 [18:06:11]line Безнал.: 0.00 [18:06:11]line Место: АЗС № 92 "Партнер Нефть" [18:06:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:06:11]line СНО: Общий режим [18:06:11]line Чек 237 20.02.2025 18:06 [18:06:11]line Смена: 648 ФФД: 1.0 [18:06:11]line ЗНМ: 0300000118 [18:06:11]line РНМ: 0000000000091857 [18:06:11]line Версия ККМ: 001 [18:06:11]line ФМ: 0000000000871826 [18:06:11]line ФД: 187436 [18:06:11]line ФПД: 262077487308964 [18:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T180611&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187436&fm=262077487308964&tin=02508201610067®Number=0000000000091857&sum=101300 [18:06:11]OFD Sender: Processing packet 187436 [packets to send 49, broken 48] [18:06:11]ProducePacketName [18:06:11]name=ofd_packets/00187436 [18:06:11]OFD Sender: To server: pG, [18:06:11]CommunicateWithHost lk.salyk.kg:30040 [18:06:11]ConnectInit lk.salyk.kg [18:06:11]written 0, free lines is 4095 [18:06:11]Connected sock=10 [18:06:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F8 E4 07 01 99 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 32 FF 03 08 00 03 AE 3D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 FC 8B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 8B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 2A 00 00 00 00 07 04 06 00 B4 8B 01 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 13 6F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DC 02 00 35 04 06 00 EE 5B AB 88 E0 A4 F0 EE B5 0A 2C 1B 17 3E [18:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 0A 47 00 A5 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 31 38 32 36 10 04 04 00 2C DC 02 00 F4 03 04 00 63 15 B7 67 B6 04 01 00 00 BA E9 3A 5D 60 01 CD 37 [18:06:12]CommunicateWithHost err = 0 [18:06:12]CheckOFDResponse [18:06:12]1017 (14) - 77093643461234 [18:06:12]1041 (16) - 0000000000871826 [18:06:12]1040 (4) - 187436 [18:06:12]1012 (4) - 20.02.2025 11:43 [18:06:12]1206 (1) - 0 [18:06:12]OFD Sender: Remove packet 187436 [18:06:12]ProducePacketName [18:06:12]name=ofd_packets/00187436 [18:06:12]NVStorageDeleteData [18:06:12]Write to MH i2c: 01 00 00 D6 1F F5 [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: 01 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: 01 07 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: 01 07 00 D6 1F 00 00 00 00 00 EF 0C F7 [18:06:12]RasterBufferAndPrint [18:06:12]line [18:06:12]line [18:06:12]line [18:06:12]line [18:06:12]line [18:06:12]written 0, free lines is 3320 [18:06:12]MH_Cut [18:06:12]Write to MH i2c: D1 01 00 DD 1F 01 CE [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: D1 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: D1 01 00 [18:06:12]MH_I2C_Read... [18:06:12]Read from MH i2c: D1 01 00 DD 1F 00 CD [18:06:12]Write to MH i2c: 01 00 00 DE 1F FD [18:06:12]Write i2c OK [18:06:12]MH_I2C_Read... [18:06:12]OFD Sender: No OFD packet to send [18:06:12]*** Cut start [18:06:12]*** Partial cut [18:06:12]*** CUTSNS_PIN = 1 [18:06:13]*** CUTSNS_PIN = 0 [18:06:13]*** Brake cut motor [18:06:13]Read from MH i2c: 01 [18:06:13]MH_I2C_Read... [18:06:13]*** Stop cut motor [18:06:13]Read from MH i2c: 01 07 00 [18:06:13]MH_I2C_Read... [18:06:13]*** Cut end [18:06:13]Read from MH i2c: 01 07 00 DE 1F 00 00 00 00 00 FF 0F 12 [18:06:13]process_action close_receipt done [18:06:13]requested_data is exist [18:06:13]produce_requested_data [18:06:13]requested_item fm.sn is exist - process it [18:06:13]wFMCommunicate request_size=4 [18:06:13]MH_SAM_APDU [18:06:13]CAPDU: 80 11 00 00 [18:06:13]Write to MH i2c: E2 08 00 DF 1F 80 11 00 00 00 00 00 00 78 [18:06:13]Write i2c OK [18:06:13]MH_I2C_Read... [18:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:13]Read from MH i2c: E2 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: E2 17 00 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: E2 17 00 DF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [18:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:06:13]wFMCommunicate OK [18:06:13]requested_item fd.num is exist - process it [18:06:13]SAM_PROTO_GetFieldsCounters [18:06:13]wFMCommunicate request_size=4 [18:06:13]MH_SAM_APDU [18:06:13]CAPDU: 80 13 00 00 [18:06:13]Write to MH i2c: E2 08 00 E0 1F 80 13 00 00 00 00 00 00 7B [18:06:13]Write i2c OK [18:06:13]MH_I2C_Read... [18:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:13]Read from MH i2c: E2 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: E2 62 00 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: E2 62 00 E0 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2C DC 02 00 0E 04 04 00 88 02 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 FC [18:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2C DC 02 00 0E 04 04 00 88 02 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 [18:06:13]wFMCommunicate OK [18:06:13]SAM_PROTO_GetFieldsCounters done [18:06:13]requested_item shift.num is exist - process it [18:06:13]requested_item shift.opened is exist - process it [18:06:13]req_shift_opened [18:06:13]FM_GetShiftState [18:06:13]SAM_PROTO_GetShiftState [18:06:13]wFMCommunicate request_size=4 [18:06:13]MH_SAM_APDU [18:06:13]CAPDU: 80 13 01 00 [18:06:13]Write to MH i2c: E2 08 00 E1 1F 80 13 01 00 00 00 00 00 7D [18:06:13]Write i2c OK [18:06:13]MH_I2C_Read... [18:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:13]Read from MH i2c: E2 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: E2 0E 00 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: E2 0E 00 E1 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CF [18:06:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:06:13]wFMCommunicate OK [18:06:13]SAM_PROTO_GetShiftState done [18:06:13]FM_GetShiftState done [18:06:13]req_shift_opened done [18:06:13]requested_item shift.open_date is exist - process it [18:06:13]req_shift_open_date [18:06:13]req_shift_open_date done [18:06:13]produce_requested_data done [18:06:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187436,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:06:13]process_action_free close_receipt [18:06:13]json_value_free [18:06:13]json_value_free done [18:06:13]process_json_proto returns [18:06:13]Send response to host [18:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187436,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:06:13]free response buf [18:06:13]execute_script done [18:06:13]execute_script returns [18:06:13]free content buf [18:06:13]Sock 9.Close socket [18:06:13]Sock 9.Thread stoped [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:29]accept exits with 7 [18:08:29]New connection [18:08:29]New thread 3067276644 created [18:08:29]Thread 3067420004 joined [18:08:29]Waiting for new connection... [18:08:29] Sock 7.Parse request [18:08:29]Sock 7.Check first char [18:08:29]Sock 7.First char is OK [18:08:29]request: POST /json_proto HTTP/1.0 [18:08:29]Method: POST [18:08:29]URL: /json_proto [18:08:29]Method is POST - this is cgi request [18:08:29]url: /json_proto [18:08:29]query_string will be loaded in cgi processing [18:08:29]execute_cgi json_proto POST (null) [18:08:29]execute_cgi path=json_proto method=POST [18:08:29]POST find Content-Length [18:08:29]Host: 172.17.46.131:8080 [18:08:29]Content-Length: 677 [18:08:29]Content-Type: application/json [18:08:29] [18:08:29]POST finish read [18:08:29]Found Content-Length = 677 [18:08:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:08:29]execute_script... [18:08: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)412596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:08:29]POST & json_proto [18:08:29]process_json_proto [18:08:29]json parsed OK: [18:08:29]protocol is kg_v1.0 [18:08:29]action value=close_receipt [18:08:29]process_action close_receipt [18:08:29]cmd_close_receipt [18:08:29]MH_GetDate [18:08:29]Write to MH i2c: F0 00 00 E2 1F F0 [18:08:29]Write i2c OK [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: F0 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: F0 09 00 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: F0 09 00 E2 1F 00 9F 6F B7 67 7E 41 4F 65 98 [18:08:29]GetLastDocTimeStamp 1740074771 [18:08:29]current date 1740074911 [18:08:29]FM_GetShiftState [18:08:29]SAM_PROTO_GetShiftState [18:08:29]wFMCommunicate request_size=4 [18:08:29]MH_SAM_APDU [18:08:29]CAPDU: 80 13 01 00 [18:08:29]Write to MH i2c: E2 08 00 E3 1F 80 13 01 00 00 00 00 00 7F [18:08:29]Write i2c OK [18:08:29]MH_I2C_Read... [18:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:29]Read from MH i2c: E2 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: E2 0E 00 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: E2 0E 00 E3 1F 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D1 [18:08:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:08:29]wFMCommunicate OK [18:08:29]SAM_PROTO_GetShiftState done [18:08:29]FM_GetShiftState done [18:08:29]opened in 1740011697 [18:08:29]opened+sec_in_day 1740098097 [18:08:29]quantity*price = 50011 [18:08:29]sum+1 = 50013 [18:08:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 238 20.02.2025 18:08 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187437 ФПД: 13842340154316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T180831&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187437&fm=13842340154316&tin=02508201610067®Number=0000000000091857&sum=50000 [18:08:30]StoreToDocumentArchive [18:08:30]shift 648 fd 187437 [18:08:30]save to /storage/0648/doc_00187437 [18:08:30]save last doc name /storage/0648/doc_00187437 to /storage/kkm_last_doc_name [18:08:30]save OK [18:08:30]Clear old archive folders... [18:08:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:30]tlvbuf is B6F4C9D0 [18:08:30]SAM_PROTO_ClearQueue [18:08:30]wFMCommunicate request_size=4 [18:08:30]MH_SAM_APDU [18:08:30]CAPDU: 80 09 00 00 [18:08:30]Write to MH i2c: E2 08 00 F0 1F 80 09 00 00 00 00 00 00 81 [18:08:30]Write i2c OK [18:08:30]MH_I2C_Read... [18:08:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:30]Read from MH i2c: E2 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 03 00 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 03 00 F0 1F 00 90 00 83 [18:08:30]RAPDU: 90 00 [18:08:30]wFMCommunicate OK [18:08:30]SAM_PROTO_ClearQueue done [18:08:30]KKMCreateOFDPacket [18:08:30]OFDProtocolAddRootSTLVToBuf [18:08:30]FM_MakeSignedData [18:08:30]FM_MakeSignedData [18:08:30]SAM_PROTO_SignData [18:08:30]wFMCommunicate request_size=4 [18:08:30]MH_SAM_APDU [18:08:30]CAPDU: 80 0D 01 02 [18:08:30]Write to MH i2c: E2 08 00 F1 1F 80 0D 01 02 00 00 00 00 89 [18:08:30]Write i2c OK [18:08:30]MH_I2C_Read... [18:08:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:30]Read from MH i2c: E2 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 03 00 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 03 00 F1 1F 00 90 00 84 [18:08:30]RAPDU: 90 00 [18:08:30]wFMCommunicate OK [18:08:30]wFMCommunicate request_size=255 [18:08:30]MH_SAM_APDU [18:08: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 9F 6F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DC 02 00 35 04 06 00 0C [18:08:30]Write to MH i2c: E2 02 01 F2 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 9F 6F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DC 02 00 35 04 06 00 0C 00 00 DD [18:08:30]Write i2c OK [18:08:30]MH_I2C_Read... [18:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:30]Read from MH i2c: E2 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 03 00 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 03 00 F2 1F 00 90 00 85 [18:08:30]RAPDU: 90 00 [18:08:30]wFMCommunicate OK [18:08:30]wFMCommunicate request_size=10 [18:08:30]MH_SAM_APDU [18:08:30]CAPDU: 80 0D 02 02 05 96 EB C4 8B CC [18:08:30]Write to MH i2c: E2 0D 00 F3 1F 80 0D 02 02 05 00 96 EB C4 8B CC 00 00 32 [18:08:30]Write i2c OK [18:08:30]MH_I2C_Read... [18:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:31]Read from MH i2c: E2 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 03 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 03 00 F3 1F 00 90 00 86 [18:08:31]RAPDU: 90 00 [18:08:31]wFMCommunicate OK [18:08:31]wFMCommunicate request_size=4 [18:08:31]MH_SAM_APDU [18:08:31]CAPDU: 80 0D 03 02 [18:08:31]Write to MH i2c: E2 08 00 F4 1F 80 0D 03 02 00 00 00 00 8E [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:31]Read from MH i2c: E2 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 0B 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 0B 00 F4 1F 00 A9 43 74 A3 77 B2 EC 06 90 00 AD [18:08:31]RAPDU: A9 43 74 A3 77 B2 EC 06 90 00 [18:08:31]wFMCommunicate OK [18:08:31]SAM_PROTO_SignData done [18:08:31]FM_MakeSignedData done [18:08:31]CreateOFDProtocolMessage [18:08:31]wFMCommunicate request_size=4 [18:08:31]MH_SAM_APDU [18:08:31]CAPDU: 80 11 00 00 [18:08:31]Write to MH i2c: E2 08 00 F5 1F 80 11 00 00 00 00 00 00 8E [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:31]Read from MH i2c: E2 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 17 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 17 00 F5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [18:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:08:31]wFMCommunicate OK [18:08:31]CreateOFDProtocolMessage done [18:08:31]OFDSenderStorePacket 187437 [18:08:31]StoreOFDPacket docnum=187437 [18:08:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C 51 07 01 74 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 9F 6F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DC 02 00 35 04 06 00 0C 96 EB C4 8B CC A9 43 74 A3 77 B2 EC 06 [18:08:31]CheckFolder [18:08:31]dirname=/storage/ofd_packets [18:08:31]CheckFolder done [18:08:31]ProducePacketName [18:08:31]name=ofd_packets/00187437 [18:08:31]NVStorageSaveData ofd_packets/00187437 [18:08:31]File name is /storage/ofd_packets/00187437 [18:08:31]Write 301 bytes [18:08:31]NVStorageSaveData done [18:08:31]OFDSenderStorePacket done [18:08:31]KKMCreateOFDPacket done [18:08:31]NVStorageSaveData kkm_last_timestamp [18:08:31]File name is /storage/kkm_last_timestamp [18:08:31]Write 4 bytes [18:08:31]NVStorageSaveData done [18:08:31]ExternCall_PrintAddStr [18:08:31]wPrintStart [18:08:31]Write to MH i2c: 01 00 00 F6 1F 15 [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: 01 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: 01 07 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: 01 07 00 F6 1F 00 00 00 00 00 FF 0F 2A [18:08:31]RasterBufferAndPrint [18:08:31]line Счет N : (1)412596 [18:08:31]line ИНН: 02508201610067 [18:08:31]line Контрольно-Кассовый Чек [18:08:31]line ПРОДАЖА [18:08:31]line ТРК (МРК, ГНК) : 42 [18:08:31]line Товар: 2710124130 [18:08:31]line Аи-92-К-2 [18:08:31]line 7.790 * 64.20 [18:08:31]line = 500.12 [18:08:31]line НДС 12% НСП 1% [18:08:31]line > о реализуемом товаре [18:08:31]line ОКРУГЛЕНИЕ: -0.12 [18:08:31]line ИТОГО: 500.00 [18:08:31]line Внесено: 500.00 [18:08:31]line СДАЧА: 0.00 [18:08:31]line НСП 1% : 4.43 [18:08:31]line НДС 12% : 53.11 [18:08:31]line Наличными: 500.00 [18:08:31]line Безнал.: 0.00 [18:08:31]line Место: АЗС № 92 "Партнер Нефть" [18:08:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:08:31]line СНО: Общий режим [18:08:31]line Чек 238 20.02.2025 18:08 [18:08:31]line Смена: 648 ФФД: 1.0 [18:08:31]line ЗНМ: 0300000118 [18:08:31]line РНМ: 0000000000091857 [18:08:31]line Версия ККМ: 001 [18:08:31]line ФМ: 0000000000871826 [18:08:31]line ФД: 187437 [18:08:31]line ФПД: 13842340154316 [18:08:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T180831&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187437&fm=13842340154316&tin=02508201610067®Number=0000000000091857&sum=50000 [18:08:31]written 0, free lines is 4095 [18:08:31]OFD Sender: Processing packet 187437 [packets to send 49, broken 48] [18:08:31]ProducePacketName [18:08:31]name=ofd_packets/00187437 [18:08:31]OFD Sender: To server: pG, [18:08:31]CommunicateWithHost lk.salyk.kg:30040 [18:08:31]ConnectInit lk.salyk.kg [18:08:31]Connected sock=10 [18:08:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C 51 07 01 74 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 9F 6F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DC 02 00 35 04 06 00 0C 96 EB C4 8B CC A9 43 74 A3 77 B2 EC 06 [18:08:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D1 02 47 00 98 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 31 38 32 36 10 04 04 00 2D DC 02 00 F4 03 04 00 EF 15 B7 67 B6 04 01 00 00 6B A1 6C 94 E8 34 C0 B2 [18:08:31]CommunicateWithHost err = 0 [18:08:31]CheckOFDResponse [18:08:31]1017 (14) - 77093643461234 [18:08:31]1041 (16) - 0000000000871826 [18:08:31]1040 (4) - 187437 [18:08:31]1012 (4) - 20.02.2025 11:45 [18:08:31]1206 (1) - 0 [18:08:31]OFD Sender: Remove packet 187437 [18:08:31]ProducePacketName [18:08:31]name=ofd_packets/00187437 [18:08:31]NVStorageDeleteData [18:08:31]Write to MH i2c: 01 00 00 21 20 41 [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: 01 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: 01 07 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 F4 0C 48 [18:08:31]RasterBufferAndPrint [18:08:31]line [18:08:31]line [18:08:31]line [18:08:31]line [18:08:31]line [18:08:31]written 0, free lines is 3322 [18:08:31]MH_Cut [18:08:31]Write to MH i2c: D1 01 00 28 20 01 1A [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: D1 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: D1 01 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: D1 01 00 28 20 00 19 [18:08:31]Write to MH i2c: 01 00 00 29 20 49 [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:32]OFD Sender: No OFD packet to send [18:08:32]*** Cut start [18:08:32]*** Partial cut [18:08:32]*** CUTSNS_PIN = 1 [18:08:32]*** CUTSNS_PIN = 0 [18:08:32]*** Brake cut motor [18:08:33]Read from MH i2c: 01 [18:08:33]MH_I2C_Read... [18:08:33]*** Stop cut motor [18:08:33]*** Cut end [18:08:33]Read from MH i2c: 01 07 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: 01 07 00 29 20 00 00 00 00 00 FF 0F 5E [18:08:33]process_action close_receipt done [18:08:33]requested_data is exist [18:08:33]produce_requested_data [18:08:33]requested_item fm.sn is exist - process it [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 11 00 00 [18:08:33]Write to MH i2c: E2 08 00 2A 20 80 11 00 00 00 00 00 00 C4 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 17 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 17 00 2A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [18:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:08:33]wFMCommunicate OK [18:08:33]requested_item fd.num is exist - process it [18:08:33]SAM_PROTO_GetFieldsCounters [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 13 00 00 [18:08:33]Write to MH i2c: E2 08 00 2B 20 80 13 00 00 00 00 00 00 C7 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 62 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 62 00 2B 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2D DC 02 00 0E 04 04 00 88 02 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 4C [18:08:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2D DC 02 00 0E 04 04 00 88 02 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 [18:08:33]wFMCommunicate OK [18:08:33]SAM_PROTO_GetFieldsCounters done [18:08:33]requested_item shift.num is exist - process it [18:08:33]requested_item shift.opened is exist - process it [18:08:33]req_shift_opened [18:08:33]FM_GetShiftState [18:08:33]SAM_PROTO_GetShiftState [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 13 01 00 [18:08:33]Write to MH i2c: E2 08 00 2C 20 80 13 01 00 00 00 00 00 C9 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 0E 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 0E 00 2C 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1B [18:08:33]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:08:33]wFMCommunicate OK [18:08:33]SAM_PROTO_GetShiftState done [18:08:33]FM_GetShiftState done [18:08:33]req_shift_opened done [18:08:33]requested_item shift.open_date is exist - process it [18:08:33]req_shift_open_date [18:08:33]req_shift_open_date done [18:08:33]produce_requested_data done [18:08:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187437,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:08:33]process_action_free close_receipt [18:08:33]json_value_free [18:08:33]json_value_free done [18:08:33]process_json_proto returns [18:08:33]Send response to host [18:08:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187437,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:08:33]free response buf [18:08:33]execute_script done [18:08:33]execute_script returns [18:08:33]free content buf [18:08:33]Sock 7.Close socket [18:08:33]Sock 7.Thread stoped [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:30]accept exits with 9 [18:10:30]New connection [18:10:30]New thread 3067420004 created [18:10:30]Thread 3067276644 joined [18:10:30]Waiting for new connection... [18:10:30] Sock 9.Parse request [18:10:30]Sock 9.Check first char [18:10:30]Sock 9.First char is OK [18:10:30]request: POST /json_proto HTTP/1.0 [18:10:30]Method: POST [18:10:30]URL: /json_proto [18:10:30]Method is POST - this is cgi request [18:10:30]url: /json_proto [18:10:30]query_string will be loaded in cgi processing [18:10:30]execute_cgi json_proto POST (null) [18:10:30]execute_cgi path=json_proto method=POST [18:10:30]POST find Content-Length [18:10:30]Host: 172.17.46.131:8080 [18:10:30]Content-Length: 750 [18:10:30]Content-Type: application/json [18:10:30] [18:10:30]POST finish read [18:10:30]Found Content-Length = 750 [18:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:30]execute_script... [18:10: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)412598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:30]POST & json_proto [18:10:30]process_json_proto [18:10:30]json parsed OK: [18:10:30]protocol is kg_v1.0 [18:10:30]action value=close_receipt [18:10:30]process_action close_receipt [18:10:30]cmd_close_receipt [18:10:30]MH_GetDate [18:10:30]Write to MH i2c: F0 00 00 2D 20 3C [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: F0 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: F0 09 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: F0 09 00 2D 20 00 18 70 B7 67 7E 41 4F 65 5E [18:10:30]GetLastDocTimeStamp 1740074911 [18:10:30]current date 1740075032 [18:10:30]FM_GetShiftState [18:10:30]SAM_PROTO_GetShiftState [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 13 01 00 [18:10:30]Write to MH i2c: E2 08 00 2E 20 80 13 01 00 00 00 00 00 CB [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 0E 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 0E 00 2E 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1D [18:10:30]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:10:30]wFMCommunicate OK [18:10:30]SAM_PROTO_GetShiftState done [18:10:30]FM_GetShiftState done [18:10:30]opened in 1740011697 [18:10:30]opened+sec_in_day 1740098097 [18:10:30]quantity*price = 0 [18:10:30]sum+1 = 1 [18:10:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 239 20.02.2025 18:10 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106530 ФМ: 0000000000871826 ФД: 187438 ФПД: 206453926906813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181032&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187438&fm=206453926906813&tin=02508201610067®Number=0000000000091857&sum=0 [18:10:31]StoreToDocumentArchive [18:10:31]shift 648 fd 187438 [18:10:31]save to /storage/0648/doc_00187438 [18:10:31]save last doc name /storage/0648/doc_00187438 to /storage/kkm_last_doc_name [18:10:31]save OK [18:10:31]Clear old archive folders... [18:10:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:31]tlvbuf is 00EA8CC0 [18:10:31]SAM_PROTO_ClearQueue [18:10:31]wFMCommunicate request_size=4 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 09 00 00 [18:10:31]Write to MH i2c: E2 08 00 3B 20 80 09 00 00 00 00 00 00 CD [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 3B 20 00 90 00 CF [18:10:31]RAPDU: 90 00 [18:10:31]wFMCommunicate OK [18:10:31]SAM_PROTO_ClearQueue done [18:10:31]KKMCreateOFDPacket [18:10:31]OFDProtocolAddRootSTLVToBuf [18:10:31]FM_MakeSignedData [18:10:31]FM_MakeSignedData [18:10:31]SAM_PROTO_SignData [18:10:31]wFMCommunicate request_size=4 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 0D 01 02 [18:10:31]Write to MH i2c: E2 08 00 3C 20 80 0D 01 02 00 00 00 00 D5 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 3C 20 00 90 00 D0 [18:10:31]RAPDU: 90 00 [18:10:31]wFMCommunicate OK [18:10:31]wFMCommunicate request_size=255 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 18 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DC 02 00 35 04 06 00 BB C4 CC F9 [18:10:31]Write to MH i2c: E2 02 01 3D 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 18 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DC 02 00 35 04 06 00 BB C4 CC F9 00 00 14 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 3D 20 00 90 00 D1 [18:10:31]RAPDU: 90 00 [18:10:31]wFMCommunicate OK [18:10:31]wFMCommunicate request_size=7 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 0D 02 02 02 CB BD [18:10:31]Write to MH i2c: E2 0A 00 3E 20 80 0D 02 02 02 00 CB BD 00 00 64 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 3E 20 00 90 00 D2 [18:10:31]RAPDU: 90 00 [18:10:31]wFMCommunicate OK [18:10:31]wFMCommunicate request_size=4 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 0D 03 02 [18:10:31]Write to MH i2c: E2 08 00 3F 20 80 0D 03 02 00 00 00 00 DA [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 0B 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 0B 00 3F 20 00 AA 46 E0 E7 8D 57 3A EE 90 00 9E [18:10:31]RAPDU: AA 46 E0 E7 8D 57 3A EE 90 00 [18:10:31]wFMCommunicate OK [18:10:31]SAM_PROTO_SignData done [18:10:31]FM_MakeSignedData done [18:10:31]CreateOFDProtocolMessage [18:10:31]wFMCommunicate request_size=4 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 11 00 00 [18:10:31]Write to MH i2c: E2 08 00 40 20 80 11 00 00 00 00 00 00 DA [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 17 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 17 00 40 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2D [18:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:10:32]wFMCommunicate OK [18:10:32]CreateOFDProtocolMessage done [18:10:32]OFDSenderStorePacket 187438 [18:10:32]StoreOFDPacket docnum=187438 [18:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 6C E9 04 01 ED D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 18 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DC 02 00 35 04 06 00 BB C4 CC F9 CB BD AA 46 E0 E7 8D 57 3A EE [18:10:32]CheckFolder [18:10:32]dirname=/storage/ofd_packets [18:10:32]CheckFolder done [18:10:32]ProducePacketName [18:10:32]name=ofd_packets/00187438 [18:10:32]NVStorageSaveData ofd_packets/00187438 [18:10:32]File name is /storage/ofd_packets/00187438 [18:10:32]Write 298 bytes [18:10:32]NVStorageSaveData done [18:10:32]OFDSenderStorePacket done [18:10:32]KKMCreateOFDPacket done [18:10:32]NVStorageSaveData kkm_last_timestamp [18:10:32]File name is /storage/kkm_last_timestamp [18:10:32]Write 4 bytes [18:10:32]NVStorageSaveData done [18:10:32]ExternCall_PrintAddStr [18:10:32]wPrintStart [18:10:32]Write to MH i2c: 01 00 00 41 20 61 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 41 20 00 00 00 00 00 FF 0F 76 [18:10:32]RasterBufferAndPrint [18:10:32]line Счет N : (1)412598 [18:10:32]line ИНН: 02508201610067 [18:10:32]line Контрольно-Кассовый Чек [18:10:32]line ПРОДАЖА [18:10:32]line ТРК (МРК, ГНК) : 6 [18:10:32]line Товар: 2710194210 [18:10:32]line ДТ-К-5 [18:10:32]line 20.000 * 0.00 [18:10:32]line = 0.00 [18:10:32]line НДС 12% НСП 1% [18:10:32]line > о реализуемом товаре [18:10:32]line ИТОГО: 0.00 [18:10:32]line НСП 1% : 0.00 [18:10:32]line НДС 12% : 0.00 [18:10:32]line Наличными: 0.00 [18:10:32]line Безнал.: 0.00 [18:10:32]line Место: АЗС № 92 "Партнер Нефть" [18:10:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:10:32]line СНО: Общий режим [18:10:32]line Чек 239 20.02.2025 18:10 [18:10:32]line Смена: 648 ФФД: 1.0 [18:10:32]line ЗНМ: 0300000118 [18:10:32]line РНМ: 0000000000091857 [18:10:32]line Версия ККМ: 001 [18:10:32]line Талоны: ТК ГПНА Online [18:10:32]line 30106530 [18:10:32]line ФМ: 0000000000871826 [18:10:32]line ФД: 187438 [18:10:32]line ФПД: 206453926906813 [18:10:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181032&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187438&fm=206453926906813&tin=02508201610067®Number=0000000000091857&sum=0 [18:10:32]OFD Sender: Processing packet 187438 [packets to send 49, broken 48] [18:10:32]ProducePacketName [18:10:32]name=ofd_packets/00187438 [18:10:32]OFD Sender: To server: pG, [18:10:32]CommunicateWithHost lk.salyk.kg:30040 [18:10:32]ConnectInit lk.salyk.kg [18:10:32]written 0, free lines is 4095 [18:10:32]Connected sock=10 [18:10:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 6C E9 04 01 ED D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 18 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DC 02 00 35 04 06 00 BB C4 CC F9 CB BD AA 46 E0 E7 8D 57 3A EE [18:10:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 80 E1 47 00 71 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 31 38 32 36 10 04 04 00 2E DC 02 00 F4 03 04 00 68 16 B7 67 B6 04 01 00 00 8A C3 67 2B F8 E4 C7 36 [18:10:32]CommunicateWithHost err = 0 [18:10:32]CheckOFDResponse [18:10:32]1017 (14) - 77093643461234 [18:10:32]1041 (16) - 0000000000871826 [18:10:32]1040 (4) - 187438 [18:10:32]1012 (4) - 20.02.2025 11:47 [18:10:32]1206 (1) - 0 [18:10:32]OFD Sender: Remove packet 187438 [18:10:32]ProducePacketName [18:10:32]name=ofd_packets/00187438 [18:10:32]NVStorageDeleteData [18:10:32]Write to MH i2c: 01 00 00 6B 20 8B [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 6B 20 00 00 00 00 00 F9 0C 97 [18:10:32]RasterBufferAndPrint [18:10:32]line [18:10:32]line [18:10:32]line [18:10:32]line [18:10:32]line [18:10:32]written 0, free lines is 3327 [18:10:32]MH_Cut [18:10:32]Write to MH i2c: D1 01 00 72 20 01 64 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: D1 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: D1 01 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: D1 01 00 72 20 00 63 [18:10:32]Write to MH i2c: 01 00 00 73 20 93 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:33]OFD Sender: No OFD packet to send [18:10:33]*** Cut start [18:10:33]*** Partial cut [18:10:33]*** CUTSNS_PIN = 1 [18:10:33]*** CUTSNS_PIN = 0 [18:10:33]*** Brake cut motor [18:10:34]Read from MH i2c: 01 [18:10:34]MH_I2C_Read... [18:10:34]*** Stop cut motor [18:10:34]*** Cut end [18:10:34]Read from MH i2c: 01 07 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: 01 07 00 73 20 00 00 00 00 00 FF 0F A8 [18:10:34]process_action close_receipt done [18:10:34]requested_data is exist [18:10:34]produce_requested_data [18:10:34]requested_item fm.sn is exist - process it [18:10:34]wFMCommunicate request_size=4 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 11 00 00 [18:10:34]Write to MH i2c: E2 08 00 74 20 80 11 00 00 00 00 00 00 0E [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:34]Read from MH i2c: E2 17 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 17 00 74 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [18:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:10:34]wFMCommunicate OK [18:10:34]requested_item fd.num is exist - process it [18:10:34]SAM_PROTO_GetFieldsCounters [18:10:34]wFMCommunicate request_size=4 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 13 00 00 [18:10:34]Write to MH i2c: E2 08 00 75 20 80 13 00 00 00 00 00 00 11 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:34]Read from MH i2c: E2 62 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 62 00 75 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2E DC 02 00 0E 04 04 00 88 02 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 9A [18:10:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2E DC 02 00 0E 04 04 00 88 02 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 [18:10:34]wFMCommunicate OK [18:10:34]SAM_PROTO_GetFieldsCounters done [18:10:34]requested_item shift.num is exist - process it [18:10:34]requested_item shift.opened is exist - process it [18:10:34]req_shift_opened [18:10:34]FM_GetShiftState [18:10:34]SAM_PROTO_GetShiftState [18:10:34]wFMCommunicate request_size=4 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 13 01 00 [18:10:34]Write to MH i2c: E2 08 00 76 20 80 13 01 00 00 00 00 00 13 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 0E 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 0E 00 76 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 65 [18:10:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:10:34]wFMCommunicate OK [18:10:34]SAM_PROTO_GetShiftState done [18:10:34]FM_GetShiftState done [18:10:34]req_shift_opened done [18:10:34]requested_item shift.open_date is exist - process it [18:10:34]req_shift_open_date [18:10:34]req_shift_open_date done [18:10:34]produce_requested_data done [18:10:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187438,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:10:34]process_action_free close_receipt [18:10:34]json_value_free [18:10:34]json_value_free done [18:10:34]process_json_proto returns [18:10:34]Send response to host [18:10:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187438,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:10:34]free response buf [18:10:34]execute_script done [18:10:34]execute_script returns [18:10:34]free content buf [18:10:34]Sock 9.Close socket [18:10:34]Sock 9.Thread stoped [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]accept exits with 7 [18:10:58]New connection [18:10:58]New thread 3067276644 created [18:10:58]Thread 3067420004 joined [18:10:58]Waiting for new connection... [18:10:58] Sock 7.Parse request [18:10:58]Sock 7.Check first char [18:10:58]Sock 7.First char is OK [18:10:58]request: POST /json_proto HTTP/1.0 [18:10:58]Method: POST [18:10:58]URL: /json_proto [18:10:58]Method is POST - this is cgi request [18:10:58]url: /json_proto [18:10:58]query_string will be loaded in cgi processing [18:10:58]execute_cgi json_proto POST (null) [18:10:58]execute_cgi path=json_proto method=POST [18:10:58]POST find Content-Length [18:10:58]Host: 172.17.46.131:8080 [18:10:58]Content-Length: 1012 [18:10:58]Content-Type: application/json [18:10:58] [18:10:58]POST finish read [18:10:58]Found Content-Length = 1012 [18:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 62.850, "sum" : 4500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 62.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:58]execute_script... [18:10: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)412597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 62.850, "sum" : 4500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 62.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:58]POST & json_proto [18:10:58]process_json_proto [18:10:58]json parsed OK: [18:10:58]protocol is kg_v1.0 [18:10:58]action value=close_receipt [18:10:58]process_action close_receipt [18:10:58]cmd_close_receipt [18:10:58]MH_GetDate [18:10:58]Write to MH i2c: F0 00 00 77 20 86 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: F0 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: F0 09 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: F0 09 00 77 20 00 33 70 B7 67 7E 41 4F 65 C3 [18:10:58]GetLastDocTimeStamp 1740075032 [18:10:58]current date 1740075059 [18:10:58]FM_GetShiftState [18:10:58]SAM_PROTO_GetShiftState [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 13 01 00 [18:10:58]Write to MH i2c: E2 08 00 78 20 80 13 01 00 00 00 00 00 15 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 0E 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 0E 00 78 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 67 [18:10:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:10:58]wFMCommunicate OK [18:10:58]SAM_PROTO_GetShiftState done [18:10:58]FM_GetShiftState done [18:10:58]opened in 1740011697 [18:10:58]opened+sec_in_day 1740098097 [18:10:58]quantity*price = 450006 [18:10:58]sum+1 = 450007 [18:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.82 НДС 12% : 477.88 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 240 20.02.2025 18:10 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Дисконтная программа СкидкаДТ номер 92 сэкономлено 62.85 сом ФМ: 0000000000871826 ФД: 187439 ФПД: 48044474336293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181059&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187439&fm=48044474336293&tin=02508201610067®Number=0000000000091857&sum=450000 [18:10:59]StoreToDocumentArchive [18:10:59]shift 648 fd 187439 [18:10:59]save to /storage/0648/doc_00187439 [18:10:59]save last doc name /storage/0648/doc_00187439 to /storage/kkm_last_doc_name [18:10:59]save OK [18:10:59]Clear old archive folders... [18:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:59]tlvbuf is 00EAD620 [18:10:59]SAM_PROTO_ClearQueue [18:10:59]wFMCommunicate request_size=4 [18:10:59]MH_SAM_APDU [18:10:59]CAPDU: 80 09 00 00 [18:10:59]Write to MH i2c: E2 08 00 85 20 80 09 00 00 00 00 00 00 17 [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:59]Read from MH i2c: E2 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 03 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 03 00 85 20 00 90 00 19 [18:10:59]RAPDU: 90 00 [18:10:59]wFMCommunicate OK [18:10:59]SAM_PROTO_ClearQueue done [18:10:59]KKMCreateOFDPacket [18:10:59]OFDProtocolAddRootSTLVToBuf [18:10:59]FM_MakeSignedData [18:10:59]FM_MakeSignedData [18:10:59]SAM_PROTO_SignData [18:10:59]wFMCommunicate request_size=4 [18:10:59]MH_SAM_APDU [18:10:59]CAPDU: 80 0D 01 02 [18:10:59]Write to MH i2c: E2 08 00 86 20 80 0D 01 02 00 00 00 00 1F [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:59]Read from MH i2c: E2 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 03 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 03 00 86 20 00 90 00 1A [18:10:59]RAPDU: 90 00 [18:10:59]wFMCommunicate OK [18:10:59]wFMCommunicate request_size=255 [18:10:59]MH_SAM_APDU [18:10: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 82 F5 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 D6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 D0 DD 06 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 33 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DC 02 00 35 04 06 00 2B B2 39 D3 [18:10:59]Write to MH i2c: E2 02 01 87 20 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 82 F5 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 D6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 D0 DD 06 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 33 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DC 02 00 35 04 06 00 2B B2 39 D3 00 00 5E [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:59]Read from MH i2c: E2 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 03 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 03 00 87 20 00 90 00 1B [18:10:59]RAPDU: 90 00 [18:10:59]wFMCommunicate OK [18:10:59]wFMCommunicate request_size=7 [18:10:59]MH_SAM_APDU [18:10:59]CAPDU: 80 0D 02 02 02 84 25 [18:10:59]Write to MH i2c: E2 0A 00 88 20 80 0D 02 02 02 00 84 25 00 00 CF [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:59]Read from MH i2c: E2 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 03 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 03 00 88 20 00 90 00 1C [18:10:59]RAPDU: 90 00 [18:10:59]wFMCommunicate OK [18:10:59]wFMCommunicate request_size=4 [18:10:59]MH_SAM_APDU [18:10:59]CAPDU: 80 0D 03 02 [18:10:59]Write to MH i2c: E2 08 00 89 20 80 0D 03 02 00 00 00 00 24 [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:59]Read from MH i2c: E2 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 0B 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 0B 00 89 20 00 CD A1 66 63 5E AA 91 C6 90 00 BB [18:10:59]RAPDU: CD A1 66 63 5E AA 91 C6 90 00 [18:10:59]wFMCommunicate OK [18:10:59]SAM_PROTO_SignData done [18:10:59]FM_MakeSignedData done [18:10:59]CreateOFDProtocolMessage [18:10:59]wFMCommunicate request_size=4 [18:10:59]MH_SAM_APDU [18:10:59]CAPDU: 80 11 00 00 [18:10:59]Write to MH i2c: E2 08 00 8A 20 80 11 00 00 00 00 00 00 24 [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:59]Read from MH i2c: E2 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 17 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 17 00 8A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 77 [18:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:10:59]wFMCommunicate OK [18:10:59]CreateOFDProtocolMessage done [18:10:59]OFDSenderStorePacket 187439 [18:10:59]StoreOFDPacket docnum=187439 [18:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F 6B 04 01 B7 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 82 F5 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 D6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 D0 DD 06 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 33 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DC 02 00 35 04 06 00 2B B2 39 D3 84 25 CD A1 66 63 5E AA 91 C6 [18:10:59]CheckFolder [18:10:59]dirname=/storage/ofd_packets [18:10:59]CheckFolder done [18:10:59]ProducePacketName [18:10:59]name=ofd_packets/00187439 [18:10:59]NVStorageSaveData ofd_packets/00187439 [18:10:59]File name is /storage/ofd_packets/00187439 [18:10:59]Write 298 bytes [18:10:59]NVStorageSaveData done [18:10:59]OFDSenderStorePacket done [18:10:59]KKMCreateOFDPacket done [18:10:59]NVStorageSaveData kkm_last_timestamp [18:10:59]File name is /storage/kkm_last_timestamp [18:10:59]Write 4 bytes [18:10:59]NVStorageSaveData done [18:10:59]ExternCall_PrintAddStr [18:10:59]wPrintStart [18:10:59]Write to MH i2c: 01 00 00 8B 20 AB [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 07 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: 01 07 00 8B 20 00 00 00 00 00 FF 0F C0 [18:10:59]RasterBufferAndPrint [18:10:59]line Счет N : (1)412597 [18:10:59]line ИНН: 02508201610067 [18:10:59]line Контрольно-Кассовый Чек [18:10:59]line ПРОДАЖА [18:10:59]line ТРК (МРК, ГНК) : 5 [18:10:59]line Товар: 2710194210 [18:10:59]line ДТ-К-5 [18:10:59]line 62.850 * 71.60 [18:10:59]line = 4500.06 [18:10:59]line НДС 12% НСП 1% [18:10:59]line > о реализуемом товаре [18:10:59]line ОКРУГЛЕНИЕ: -0.06 [18:10:59]line ИТОГО: 4500.00 [18:10:59]line Внесено: 4500.00 [18:10:59]line СДАЧА: 0.00 [18:10:59]line НСП 1% : 39.82 [18:10:59]line НДС 12% : 477.88 [18:10:59]line Наличными: 4500.00 [18:10:59]line Безнал.: 0.00 [18:10:59]line Место: АЗС № 92 "Партнер Нефть" [18:10:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:10:59]line СНО: Общий режим [18:10:59]line Чек 240 20.02.2025 18:10 [18:10:59]line Смена: 648 ФФД: 1.0 [18:10:59]line ЗНМ: 0300000118 [18:10:59]line РНМ: 0000000000091857 [18:10:59]line Версия ККМ: 001 [18:10:59]line [18:10:59]line Дисконтная программа [18:10:59]line СкидкаДТ [18:10:59]line номер 92 [18:11:00]line сэкономлено 62.85 сом [18:11:00]line ФМ: 0000000000871826 [18:11:00]line ФД: 187439 [18:11:00]line ФПД: 48044474336293 [18:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181059&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187439&fm=48044474336293&tin=02508201610067®Number=0000000000091857&sum=450000 [18:11:00]OFD Sender: Processing packet 187439 [packets to send 49, broken 48] [18:11:00]ProducePacketName [18:11:00]name=ofd_packets/00187439 [18:11:00]OFD Sender: To server: pG, [18:11:00]CommunicateWithHost lk.salyk.kg:30040 [18:11:00]ConnectInit lk.salyk.kg [18:11:00]written 0, free lines is 4095 [18:11:00]Connected sock=10 [18:11:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F 6B 04 01 B7 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 82 F5 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 D6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 D0 DD 06 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 33 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DC 02 00 35 04 06 00 2B B2 39 D3 84 25 CD A1 66 63 5E AA 91 C6 [18:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A3 E9 47 00 28 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 31 38 32 36 10 04 04 00 2F DC 02 00 F4 03 04 00 84 16 B7 67 B6 04 01 00 00 A3 F9 3E F7 64 49 2B C0 [18:11:00]CommunicateWithHost err = 0 [18:11:00]CheckOFDResponse [18:11:00]1017 (14) - 77093643461234 [18:11:00]1041 (16) - 0000000000871826 [18:11:00]1040 (4) - 187439 [18:11:00]1012 (4) - 20.02.2025 11:48 [18:11:00]1206 (1) - 0 [18:11:00]OFD Sender: Remove packet 187439 [18:11:00]ProducePacketName [18:11:00]name=ofd_packets/00187439 [18:11:00]NVStorageDeleteData [18:11:00]Write to MH i2c: 01 00 00 BB 20 DB [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: 01 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: 01 07 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: 01 07 00 BB 20 00 00 00 00 00 9C 0C 8A [18:11:00]RasterBufferAndPrint [18:11:00]line [18:11:00]line [18:11:00]line [18:11:00]line [18:11:00]line [18:11:00]written 0, free lines is 3234 [18:11:00]MH_Cut [18:11:00]Write to MH i2c: D1 01 00 C2 20 01 B4 [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: D1 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: D1 01 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: D1 01 00 C2 20 00 B3 [18:11:00]Write to MH i2c: 01 00 00 C3 20 E3 [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:01]OFD Sender: No OFD packet to send [18:11:01]*** Cut start [18:11:01]*** Partial cut [18:11:01]*** CUTSNS_PIN = 1 [18:11:01]*** CUTSNS_PIN = 0 [18:11:01]*** Brake cut motor [18:11:02]Read from MH i2c: 01 [18:11:02]MH_I2C_Read... [18:11:02]*** Stop cut motor [18:11:02]*** Cut end [18:11:02]Read from MH i2c: 01 07 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: 01 07 00 C3 20 00 00 00 00 00 FF 0F F8 [18:11:02]process_action close_receipt done [18:11:02]requested_data is exist [18:11:02]produce_requested_data [18:11:02]requested_item fm.sn is exist - process it [18:11:02]wFMCommunicate request_size=4 [18:11:02]MH_SAM_APDU [18:11:02]CAPDU: 80 11 00 00 [18:11:02]Write to MH i2c: E2 08 00 C4 20 80 11 00 00 00 00 00 00 5E [18:11:02]Write i2c OK [18:11:02]MH_I2C_Read... [18:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:02]Read from MH i2c: E2 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 17 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 17 00 C4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [18:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:11:02]wFMCommunicate OK [18:11:02]requested_item fd.num is exist - process it [18:11:02]SAM_PROTO_GetFieldsCounters [18:11:02]wFMCommunicate request_size=4 [18:11:02]MH_SAM_APDU [18:11:02]CAPDU: 80 13 00 00 [18:11:02]Write to MH i2c: E2 08 00 C5 20 80 13 00 00 00 00 00 00 61 [18:11:02]Write i2c OK [18:11:02]MH_I2C_Read... [18:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:02]Read from MH i2c: E2 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 62 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 62 00 C5 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2F DC 02 00 0E 04 04 00 88 02 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 EE [18:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2F DC 02 00 0E 04 04 00 88 02 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 [18:11:02]wFMCommunicate OK [18:11:02]SAM_PROTO_GetFieldsCounters done [18:11:02]requested_item shift.num is exist - process it [18:11:02]requested_item shift.opened is exist - process it [18:11:02]req_shift_opened [18:11:02]FM_GetShiftState [18:11:02]SAM_PROTO_GetShiftState [18:11:02]wFMCommunicate request_size=4 [18:11:02]MH_SAM_APDU [18:11:02]CAPDU: 80 13 01 00 [18:11:02]Write to MH i2c: E2 08 00 C6 20 80 13 01 00 00 00 00 00 63 [18:11:02]Write i2c OK [18:11:02]MH_I2C_Read... [18:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:02]Read from MH i2c: E2 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 0E 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 0E 00 C6 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B5 [18:11:02]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:11:02]wFMCommunicate OK [18:11:02]SAM_PROTO_GetShiftState done [18:11:02]FM_GetShiftState done [18:11:02]req_shift_opened done [18:11:02]requested_item shift.open_date is exist - process it [18:11:02]req_shift_open_date [18:11:02]req_shift_open_date done [18:11:02]produce_requested_data done [18:11:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187439,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:11:02]process_action_free close_receipt [18:11:02]json_value_free [18:11:02]json_value_free done [18:11:02]process_json_proto returns [18:11:02]Send response to host [18:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187439,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:11:02]free response buf [18:11:02]execute_script done [18:11:02]execute_script returns [18:11:02]free content buf [18:11:02]Sock 7.Close socket [18:11:02]Sock 7.Thread stoped [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:12:59]accept exits with 9 [18:12:59]New connection [18:12:59]New thread 3067420004 created [18:12:59]Thread 3067276644 joined [18:12:59]Waiting for new connection... [18:12:59] Sock 9.Parse request [18:12:59]Sock 9.Check first char [18:12:59]Sock 9.First char is OK [18:12:59]request: POST /json_proto HTTP/1.0 [18:12:59]Method: POST [18:12:59]URL: /json_proto [18:12:59]Method is POST - this is cgi request [18:12:59]url: /json_proto [18:12:59]query_string will be loaded in cgi processing [18:12:59]execute_cgi json_proto POST (null) [18:12:59]execute_cgi path=json_proto method=POST [18:12:59]POST find Content-Length [18:12:59]Host: 172.17.46.131:8080 [18:12:59]Content-Length: 673 [18:12:59]Content-Type: application/json [18:12:59] [18:12:59]POST finish read [18:12:59]Found Content-Length = 673 [18:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "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:12:59]execute_script... [18:12: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)412599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "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:12:59]POST & json_proto [18:12:59]process_json_proto [18:12:59]json parsed OK: [18:12:59]protocol is kg_v1.0 [18:12:59]action value=close_receipt [18:12:59]process_action close_receipt [18:12:59]cmd_close_receipt [18:12:59]MH_GetDate [18:12:59]Write to MH i2c: F0 00 00 C7 20 D6 [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 09 00 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 09 00 C7 20 00 AD 70 B7 67 7E 41 4F 65 8D [18:12:59]GetLastDocTimeStamp 1740075059 [18:12:59]current date 1740075181 [18:12:59]FM_GetShiftState [18:12:59]SAM_PROTO_GetShiftState [18:12:59]wFMCommunicate request_size=4 [18:12:59]MH_SAM_APDU [18:12:59]CAPDU: 80 13 01 00 [18:12:59]Write to MH i2c: E2 08 00 C8 20 80 13 01 00 00 00 00 00 65 [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:59]Read from MH i2c: E2 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: E2 0E 00 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: E2 0E 00 C8 20 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B7 [18:12:59]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:12:59]wFMCommunicate OK [18:12:59]SAM_PROTO_GetShiftState done [18:12:59]FM_GetShiftState done [18:12:59]opened in 1740011697 [18:12:59]opened+sec_in_day 1740098097 [18:12:59]quantity*price = 70059 [18:12:59]sum+1 = 70060 [18:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 241 20.02.2025 18:13 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187440 ФПД: 1289861534826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181301&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187440&fm=1289861534826&tin=02508201610067®Number=0000000000091857&sum=70000 [18:13:01]StoreToDocumentArchive [18:13:01]shift 648 fd 187440 [18:13:01]save to /storage/0648/doc_00187440 [18:13:01]save last doc name /storage/0648/doc_00187440 to /storage/kkm_last_doc_name [18:13:01]save OK [18:13:01]Clear old archive folders... [18:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:13:01]tlvbuf is B6FC7110 [18:13:01]SAM_PROTO_ClearQueue [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 09 00 00 [18:13:01]Write to MH i2c: E2 08 00 D5 20 80 09 00 00 00 00 00 00 67 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 D5 20 00 90 00 69 [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]SAM_PROTO_ClearQueue done [18:13:01]KKMCreateOFDPacket [18:13:01]OFDProtocolAddRootSTLVToBuf [18:13:01]FM_MakeSignedData [18:13:01]FM_MakeSignedData [18:13:01]SAM_PROTO_SignData [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 01 02 [18:13:01]Write to MH i2c: E2 08 00 D6 20 80 0D 01 02 00 00 00 00 6F [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 D6 20 00 90 00 6A [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=255 [18:13:01]MH_SAM_APDU [18:13: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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 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 10 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 F1 00 00 00 F4 03 04 00 AD 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DC 02 00 35 04 06 00 01 2C 51 BD [18:13:01]Write to MH i2c: E2 02 01 D7 20 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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 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 10 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 F1 00 00 00 F4 03 04 00 AD 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DC 02 00 35 04 06 00 01 2C 51 BD 00 00 7B [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]OFD Sender: No OFD packet to send [18:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 D7 20 00 90 00 6B [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=7 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 02 02 02 14 6A [18:13:01]Write to MH i2c: E2 0A 00 D8 20 80 0D 02 02 02 00 14 6A 00 00 F4 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 D8 20 00 90 00 6C [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 03 02 [18:13:01]Write to MH i2c: E2 08 00 D9 20 80 0D 03 02 00 00 00 00 74 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 0B 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 0B 00 D9 20 00 7E 60 B8 BF EB 75 CC 19 90 00 0F [18:13:01]RAPDU: 7E 60 B8 BF EB 75 CC 19 90 00 [18:13:01]wFMCommunicate OK [18:13:01]SAM_PROTO_SignData done [18:13:01]FM_MakeSignedData done [18:13:01]CreateOFDProtocolMessage [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 11 00 00 [18:13:01]Write to MH i2c: E2 08 00 DA 20 80 11 00 00 00 00 00 00 74 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 17 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 17 00 DA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [18:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:13:01]wFMCommunicate OK [18:13:01]CreateOFDProtocolMessage done [18:13:01]OFDSenderStorePacket 187440 [18:13:01]StoreOFDPacket docnum=187440 [18:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 73 F5 04 01 CF C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 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 10 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 F1 00 00 00 F4 03 04 00 AD 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DC 02 00 35 04 06 00 01 2C 51 BD 14 6A 7E 60 B8 BF EB 75 CC 19 [18:13:01]CheckFolder [18:13:01]dirname=/storage/ofd_packets [18:13:01]CheckFolder done [18:13:01]ProducePacketName [18:13:01]name=ofd_packets/00187440 [18:13:01]NVStorageSaveData ofd_packets/00187440 [18:13:01]File name is /storage/ofd_packets/00187440 [18:13:01]Write 298 bytes [18:13:01]NVStorageSaveData done [18:13:01]OFDSenderStorePacket done [18:13:01]KKMCreateOFDPacket done [18:13:01]NVStorageSaveData kkm_last_timestamp [18:13:01]File name is /storage/kkm_last_timestamp [18:13:01]Write 4 bytes [18:13:01]NVStorageSaveData done [18:13:01]ExternCall_PrintAddStr [18:13:01]wPrintStart [18:13:01]Write to MH i2c: 01 00 00 DB 20 FB [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 07 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 07 00 DB 20 00 00 00 00 00 FF 0F 10 [18:13:01]RasterBufferAndPrint [18:13:01]line Счет N : (1)412599 [18:13:01]line ИНН: 02508201610067 [18:13:01]line Контрольно-Кассовый Чек [18:13:01]line ПРОДАЖА [18:13:01]line ТРК (МРК, ГНК) : 6 [18:13:01]line Товар: 2710194210 [18:13:01]line ДТ-К-5 [18:13:01]line 9.650 * 72.60 [18:13:01]line = 700.59 [18:13:01]line НДС 12% НСП 1% [18:13:01]line > о реализуемом товаре [18:13:01]line ОКРУГЛЕНИЕ: -0.59 [18:13:01]line ИТОГО: 700.00 [18:13:01]line Внесено: 700.00 [18:13:01]line СДАЧА: 0.00 [18:13:01]line НСП 1% : 6.20 [18:13:01]line НДС 12% : 74.40 [18:13:01]line Наличными: 700.00 [18:13:01]line Безнал.: 0.00 [18:13:01]line Место: АЗС № 92 "Партнер Нефть" [18:13:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:13:01]line СНО: Общий режим [18:13:01]line Чек 241 20.02.2025 18:13 [18:13:01]line Смена: 648 ФФД: 1.0 [18:13:01]line ЗНМ: 0300000118 [18:13:01]line РНМ: 0000000000091857 [18:13:01]line Версия ККМ: 001 [18:13:01]line ФМ: 0000000000871826 [18:13:01]line ФД: 187440 [18:13:01]line ФПД: 1289861534826 [18:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181301&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187440&fm=1289861534826&tin=02508201610067®Number=0000000000091857&sum=70000 [18:13:01]OFD Sender: Processing packet 187440 [packets to send 49, broken 48] [18:13:01]ProducePacketName [18:13:01]name=ofd_packets/00187440 [18:13:01]OFD Sender: To server: pG, [18:13:01]CommunicateWithHost lk.salyk.kg:30040 [18:13:01]ConnectInit lk.salyk.kg [18:13:01]written 0, free lines is 4095 [18:13:02]Connected sock=10 [18: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 31 38 32 36 0C 01 00 00 73 F5 04 01 CF C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 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 10 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 F1 00 00 00 F4 03 04 00 AD 70 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DC 02 00 35 04 06 00 01 2C 51 BD 14 6A 7E 60 B8 BF EB 75 CC 19 [18:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BC B1 47 00 4C E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DC 02 00 F4 03 04 00 FD 16 B7 67 B6 04 01 00 00 AD 04 21 56 0F DD A9 09 [18:13:02]CommunicateWithHost err = 0 [18:13:02]CheckOFDResponse [18:13:02]1017 (14) - 77093643461234 [18:13:02]1041 (16) - 0000000000871826 [18:13:02]1040 (4) - 187440 [18:13:02]1012 (4) - 20.02.2025 11:50 [18:13:02]1206 (1) - 0 [18:13:02]OFD Sender: Remove packet 187440 [18:13:02]ProducePacketName [18:13:02]name=ofd_packets/00187440 [18:13:02]NVStorageDeleteData [18:13:02]Write to MH i2c: 01 00 00 06 21 27 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 07 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 07 00 06 21 00 00 00 00 00 E0 0C 1A [18:13:02]RasterBufferAndPrint [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]written 0, free lines is 3305 [18:13:02]MH_Cut [18:13:02]Write to MH i2c: D1 01 00 0D 21 01 00 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 01 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 01 00 0D 21 00 FF [18:13:02]Write to MH i2c: 01 00 00 0E 21 2F [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]OFD Sender: No OFD packet to send [18:13:02]*** Cut start [18:13:02]*** Partial cut [18:13:02]*** CUTSNS_PIN = 1 [18:13:03]*** CUTSNS_PIN = 0 [18:13:03]*** Brake cut motor [18:13:03]Read from MH i2c: 01 [18:13:03]MH_I2C_Read... [18:13:03]*** Stop cut motor [18:13:03]*** Cut end [18:13:03]Read from MH i2c: 01 07 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: 01 07 00 0E 21 00 00 00 00 00 FF 0F 44 [18:13:03]process_action close_receipt done [18:13:03]requested_data is exist [18:13:03]produce_requested_data [18:13:03]requested_item fm.sn is exist - process it [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 11 00 00 [18:13:03]Write to MH i2c: E2 08 00 0F 21 80 11 00 00 00 00 00 00 AA [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 17 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 17 00 0F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [18:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:13:03]wFMCommunicate OK [18:13:03]requested_item fd.num is exist - process it [18:13:03]SAM_PROTO_GetFieldsCounters [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 13 00 00 [18:13:03]Write to MH i2c: E2 08 00 10 21 80 13 00 00 00 00 00 00 AD [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 62 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 62 00 10 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 30 DC 02 00 0E 04 04 00 88 02 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 3E [18: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 30 DC 02 00 0E 04 04 00 88 02 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 [18:13:03]wFMCommunicate OK [18:13:03]SAM_PROTO_GetFieldsCounters done [18:13:03]requested_item shift.num is exist - process it [18:13:03]requested_item shift.opened is exist - process it [18:13:03]req_shift_opened [18:13:03]FM_GetShiftState [18:13:03]SAM_PROTO_GetShiftState [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 13 01 00 [18:13:03]Write to MH i2c: E2 08 00 11 21 80 13 01 00 00 00 00 00 AF [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 0E 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 0E 00 11 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 01 [18:13:03]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:13:03]wFMCommunicate OK [18:13:03]SAM_PROTO_GetShiftState done [18:13:03]FM_GetShiftState done [18:13:03]req_shift_opened done [18:13:03]requested_item shift.open_date is exist - process it [18:13:03]req_shift_open_date [18:13:03]req_shift_open_date done [18:13:03]produce_requested_data done [18:13:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187440,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:13:03]process_action_free close_receipt [18:13:03]json_value_free [18:13:03]json_value_free done [18:13:03]process_json_proto returns [18:13:03]Send response to host [18:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187440,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:13:03]free response buf [18:13:03]execute_script done [18:13:03]execute_script returns [18:13:03]free content buf [18:13:03]Sock 9.Close socket [18:13:03]Sock 9.Thread stoped [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:49]accept exits with 7 [18:14:49]New connection [18:14:49]New thread 3067276644 created [18:14:49]Thread 3067420004 joined [18:14:49]Waiting for new connection... [18:14:49] Sock 7.Parse request [18:14:49]Sock 7.Check first char [18:14:49]Sock 7.First char is OK [18:14:49]request: POST /json_proto HTTP/1.0 [18:14:49]Method: POST [18:14:49]URL: /json_proto [18:14:49]Method is POST - this is cgi request [18:14:49]url: /json_proto [18:14:49]query_string will be loaded in cgi processing [18:14:49]execute_cgi json_proto POST (null) [18:14:49]execute_cgi path=json_proto method=POST [18:14:49]POST find Content-Length [18:14:49]Host: 172.17.46.131:8080 [18:14:49]Content-Length: 800 [18:14:49]Content-Type: application/json [18:14:49] [18:14:49]POST finish read [18:14:49]Found Content-Length = 800 [18:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 1.950, "sum" : 140.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:49]execute_script... [18:14: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)412600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 1.950, "sum" : 140.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:49]POST & json_proto [18:14:49]process_json_proto [18:14:49]json parsed OK: [18:14:49]protocol is kg_v1.0 [18:14:49]action value=close_receipt [18:14:49]process_action close_receipt [18:14:49]cmd_close_receipt [18:14:49]MH_GetDate [18:14:49]Write to MH i2c: F0 00 00 12 21 22 [18:14:49]Write i2c OK [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: F0 [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: F0 09 00 [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: F0 09 00 12 21 00 1B 71 B7 67 7E 41 4F 65 48 [18:14:49]GetLastDocTimeStamp 1740075181 [18:14:49]current date 1740075291 [18:14:49]FM_GetShiftState [18:14:49]SAM_PROTO_GetShiftState [18:14:49]wFMCommunicate request_size=4 [18:14:49]MH_SAM_APDU [18:14:49]CAPDU: 80 13 01 00 [18:14:49]Write to MH i2c: E2 08 00 13 21 80 13 01 00 00 00 00 00 B1 [18:14:49]Write i2c OK [18:14:49]MH_I2C_Read... [18:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:49]Read from MH i2c: E2 [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: E2 0E 00 [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: E2 0E 00 13 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 03 [18:14:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:14:49]wFMCommunicate OK [18:14:49]SAM_PROTO_GetShiftState done [18:14:49]FM_GetShiftState done [18:14:49]opened in 1740011697 [18:14:49]opened+sec_in_day 1740098097 [18:14:49]quantity*price = 14020 [18:14:49]sum+1 = 14022 [18:14:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.21 НСП 1% : 1.24 НДС 12% : 14.89 Наличными: 0.00 Безнал.: 140.21 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 242 20.02.2025 18:14 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187441 ФПД: 69451001495850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181451&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187441&fm=69451001495850&tin=02508201610067®Number=0000000000091857&sum=14021 [18:14:50]StoreToDocumentArchive [18:14:50]shift 648 fd 187441 [18:14:50]save to /storage/0648/doc_00187441 [18:14:50]save last doc name /storage/0648/doc_00187441 to /storage/kkm_last_doc_name [18:14:50]save OK [18:14:50]Clear old archive folders... [18:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:50]tlvbuf is 00E14D20 [18:14:50]SAM_PROTO_ClearQueue [18:14:50]wFMCommunicate request_size=4 [18:14:50]MH_SAM_APDU [18:14:50]CAPDU: 80 09 00 00 [18:14:50]Write to MH i2c: E2 08 00 20 21 80 09 00 00 00 00 00 00 B3 [18:14:50]Write i2c OK [18:14:50]MH_I2C_Read... [18:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:50]Read from MH i2c: E2 [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: E2 03 00 [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: E2 03 00 20 21 00 90 00 B5 [18:14:50]RAPDU: 90 00 [18:14:50]wFMCommunicate OK [18:14:50]SAM_PROTO_ClearQueue done [18:14:50]KKMCreateOFDPacket [18:14:50]OFDProtocolAddRootSTLVToBuf [18:14:50]FM_MakeSignedData [18:14:50]FM_MakeSignedData [18:14:50]SAM_PROTO_SignData [18:14:50]wFMCommunicate request_size=4 [18:14:50]MH_SAM_APDU [18:14:50]CAPDU: 80 0D 01 02 [18:14:50]Write to MH i2c: E2 08 00 21 21 80 0D 01 02 00 00 00 00 BB [18:14:50]Write i2c OK [18:14:50]MH_I2C_Read... [18:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:50]Read from MH i2c: E2 [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: E2 03 00 [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: E2 03 00 21 21 00 90 00 B6 [18:14:50]RAPDU: 90 00 [18:14:50]wFMCommunicate OK [18:14:50]wFMCommunicate request_size=255 [18:14:50]MH_SAM_APDU [18:14:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C5 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 D1 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 1B 71 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DC 02 00 35 04 06 00 3F [18:14:50]Write to MH i2c: E2 02 01 22 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C5 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 D1 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 1B 71 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DC 02 00 35 04 06 00 3F 00 00 5C [18:14:50]Write i2c OK [18:14:50]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 22 21 00 90 00 B7 [18:14:51]RAPDU: 90 00 [18:14:51]wFMCommunicate OK [18:14:51]wFMCommunicate request_size=10 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 0D 02 02 05 2A 52 46 01 2A [18:14:51]Write to MH i2c: E2 0D 00 23 21 80 0D 02 02 05 00 2A 52 46 01 2A 00 00 B5 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 23 21 00 90 00 B8 [18:14:51]RAPDU: 90 00 [18:14:51]wFMCommunicate OK [18:14:51]wFMCommunicate request_size=4 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 0D 03 02 [18:14:51]Write to MH i2c: E2 08 00 24 21 80 0D 03 02 00 00 00 00 C0 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 0B 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 0B 00 24 21 00 A6 11 0A D2 A3 70 BD 48 90 00 6C [18:14:51]RAPDU: A6 11 0A D2 A3 70 BD 48 90 00 [18:14:51]wFMCommunicate OK [18:14:51]SAM_PROTO_SignData done [18:14:51]FM_MakeSignedData done [18:14:51]CreateOFDProtocolMessage [18:14:51]wFMCommunicate request_size=4 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 11 00 00 [18:14:51]Write to MH i2c: E2 08 00 25 21 80 11 00 00 00 00 00 00 C0 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 17 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 17 00 25 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [18:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:14:51]wFMCommunicate OK [18:14:51]CreateOFDProtocolMessage done [18:14:51]OFDSenderStorePacket 187441 [18:14:51]StoreOFDPacket docnum=187441 [18:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 74 B3 07 01 69 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C5 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 D1 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 1B 71 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DC 02 00 35 04 06 00 3F 2A 52 46 01 2A A6 11 0A D2 A3 70 BD 48 [18:14:51]CheckFolder [18:14:51]dirname=/storage/ofd_packets [18:14:51]CheckFolder done [18:14:51]ProducePacketName [18:14:51]name=ofd_packets/00187441 [18:14:51]NVStorageSaveData ofd_packets/00187441 [18:14:51]File name is /storage/ofd_packets/00187441 [18:14:51]Write 301 bytes [18:14:51]NVStorageSaveData done [18:14:51]OFDSenderStorePacket done [18:14:51]KKMCreateOFDPacket done [18:14:51]NVStorageSaveData kkm_last_timestamp [18:14:51]File name is /storage/kkm_last_timestamp [18:14:51]Write 4 bytes [18:14:51]NVStorageSaveData done [18:14:51]ExternCall_PrintAddStr [18:14:51]wPrintStart [18:14:51]Write to MH i2c: 01 00 00 26 21 47 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: 01 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: 01 07 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: 01 07 00 26 21 00 00 00 00 00 FF 0F 5C [18:14:51]RasterBufferAndPrint [18:14:51]line Счет N : (1)412600 [18:14:51]line ИНН: 02508201610067 [18:14:51]line Контрольно-Кассовый Чек [18:14:51]line ПРОДАЖА [18:14:51]line ТРК (МРК, ГНК) : 23 [18:14:51]line Товар: 2710124500 [18:14:51]line Аи-95-К-5 [18:14:51]line 1.950 * 71.90 [18:14:51]line = 140.21 [18:14:51]line НДС 12% НСП 1% [18:14:51]line > о реализуемом товаре [18:14:51]line ИТОГО: 140.21 [18:14:51]line НСП 1% : 1.24 [18:14:51]line НДС 12% : 14.89 [18:14:51]line Наличными: 0.00 [18:14:51]line Безнал.: 140.21 [18:14:51]line Место: АЗС № 92 "Партнер Нефть" [18:14:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:14:51]line СНО: Общий режим [18:14:51]line Чек 242 20.02.2025 18:14 [18:14:51]line Смена: 648 ФФД: 1.0 [18:14:51]line ЗНМ: 0300000118 [18:14:51]line РНМ: 0000000000091857 [18:14:51]line Версия ККМ: 001 [18:14:51]line Платежная система: O! деньги [18:14:51]line ФМ: 0000000000871826 [18:14:51]line ФД: 187441 [18:14:51]line ФПД: 69451001495850 [18:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181451&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187441&fm=69451001495850&tin=02508201610067®Number=0000000000091857&sum=14021 [18:14:51]OFD Sender: Processing packet 187441 [packets to send 49, broken 48] [18:14:51]ProducePacketName [18:14:51]name=ofd_packets/00187441 [18:14:51]OFD Sender: To server: pG, [18:14:51]CommunicateWithHost lk.salyk.kg:30040 [18:14:51]ConnectInit lk.salyk.kg [18:14:51]written 0, free lines is 4095 [18:14:51]Connected sock=10 [18:14:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 74 B3 07 01 69 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C5 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 D1 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 1B 71 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DC 02 00 35 04 06 00 3F 2A 52 46 01 2A A6 11 0A D2 A3 70 BD 48 [18:14:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 28 91 47 00 30 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DC 02 00 F4 03 04 00 6B 17 B7 67 B6 04 01 00 00 61 64 1A 22 9A 25 82 07 [18:14:51]CommunicateWithHost err = 0 [18:14:51]CheckOFDResponse [18:14:51]1017 (14) - 77093643461234 [18:14:51]1041 (16) - 0000000000871826 [18:14:51]1040 (4) - 187441 [18:14:51]1012 (4) - 20.02.2025 11:52 [18:14:51]1206 (1) - 0 [18:14:51]OFD Sender: Remove packet 187441 [18:14:51]ProducePacketName [18:14:51]name=ofd_packets/00187441 [18:14:51]NVStorageDeleteData [18:14:51]Write to MH i2c: 01 00 00 50 21 71 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: 01 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: 01 07 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: 01 07 00 50 21 00 00 00 00 00 05 0D 8A [18:14:51]RasterBufferAndPrint [18:14:51]line [18:14:51]line [18:14:51]line [18:14:51]line [18:14:51]line [18:14:51]written 0, free lines is 3340 [18:14:51]MH_Cut [18:14:51]Write to MH i2c: D1 01 00 57 21 01 4A [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: D1 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: D1 01 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: D1 01 00 57 21 00 49 [18:14:51]Write to MH i2c: 01 00 00 58 21 79 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:52]OFD Sender: No OFD packet to send [18:14:52]*** Cut start [18:14:52]*** Partial cut [18:14:52]*** CUTSNS_PIN = 1 [18:14:52]*** CUTSNS_PIN = 0 [18:14:52]*** Brake cut motor [18:14:53]Read from MH i2c: 01 [18:14:53]MH_I2C_Read... [18:14:53]*** Stop cut motor [18:14:53]*** Cut end [18:14:53]Read from MH i2c: 01 07 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: 01 07 00 58 21 00 00 00 00 00 FF 0F 8E [18:14:53]process_action close_receipt done [18:14:53]requested_data is exist [18:14:53]produce_requested_data [18:14:53]requested_item fm.sn is exist - process it [18:14:53]wFMCommunicate request_size=4 [18:14:53]MH_SAM_APDU [18:14:53]CAPDU: 80 11 00 00 [18:14:53]Write to MH i2c: E2 08 00 59 21 80 11 00 00 00 00 00 00 F4 [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:53]Read from MH i2c: E2 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 17 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 17 00 59 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 47 [18:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:14:53]wFMCommunicate OK [18:14:53]requested_item fd.num is exist - process it [18:14:53]SAM_PROTO_GetFieldsCounters [18:14:53]wFMCommunicate request_size=4 [18:14:53]MH_SAM_APDU [18:14:53]CAPDU: 80 13 00 00 [18:14:53]Write to MH i2c: E2 08 00 5A 21 80 13 00 00 00 00 00 00 F7 [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:53]Read from MH i2c: E2 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 62 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 62 00 5A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 31 DC 02 00 0E 04 04 00 88 02 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 8C [18:14:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 31 DC 02 00 0E 04 04 00 88 02 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 [18:14:53]wFMCommunicate OK [18:14:53]SAM_PROTO_GetFieldsCounters done [18:14:53]requested_item shift.num is exist - process it [18:14:53]requested_item shift.opened is exist - process it [18:14:53]req_shift_opened [18:14:53]FM_GetShiftState [18:14:53]SAM_PROTO_GetShiftState [18:14:53]wFMCommunicate request_size=4 [18:14:53]MH_SAM_APDU [18:14:53]CAPDU: 80 13 01 00 [18:14:53]Write to MH i2c: E2 08 00 5B 21 80 13 01 00 00 00 00 00 F9 [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:53]Read from MH i2c: E2 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 0E 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: E2 0E 00 5B 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4B [18:14:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:14:53]wFMCommunicate OK [18:14:53]SAM_PROTO_GetShiftState done [18:14:53]FM_GetShiftState done [18:14:53]req_shift_opened done [18:14:53]requested_item shift.open_date is exist - process it [18:14:53]req_shift_open_date [18:14:53]req_shift_open_date done [18:14:53]produce_requested_data done [18:14:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187441,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:14:53]process_action_free close_receipt [18:14:53]json_value_free [18:14:53]json_value_free done [18:14:53]process_json_proto returns [18:14:53]Send response to host [18:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187441,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:14:53]free response buf [18:14:53]execute_script done [18:14:53]execute_script returns [18:14:53]free content buf [18:14:53]Sock 7.Close socket [18:14:53]Sock 7.Thread stoped [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]accept exits with 9 [18:16:17]New connection [18:16:17]New thread 3067420004 created [18:16:17]Thread 3067276644 joined [18:16:17]Waiting for new connection... [18:16:17] Sock 9.Parse request [18:16:17]Sock 9.Check first char [18:16:17]Sock 9.First char is OK [18:16:17]request: POST /json_proto HTTP/1.0 [18:16:17]Method: POST [18:16:17]URL: /json_proto [18:16:17]Method is POST - this is cgi request [18:16:17]url: /json_proto [18:16:17]query_string will be loaded in cgi processing [18:16:17]execute_cgi json_proto POST (null) [18:16:17]execute_cgi path=json_proto method=POST [18:16:17]POST find Content-Length [18:16:17]Host: 172.17.46.131:8080 [18:16:17]Content-Length: 677 [18:16:17]Content-Type: application/json [18:16:17] [18:16:17]POST finish read [18:16:17]Found Content-Length = 677 [18:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 1.810, "sum" : 130.14, "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" ] } } [18:16:17]execute_script... [18:16: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)412601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 1.810, "sum" : 130.14, "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" ] } } [18:16:17]POST & json_proto [18:16:17]process_json_proto [18:16:17]json parsed OK: [18:16:17]protocol is kg_v1.0 [18:16:17]action value=close_receipt [18:16:17]process_action close_receipt [18:16:17]cmd_close_receipt [18:16:17]MH_GetDate [18:16:17]Write to MH i2c: F0 00 00 5C 21 6C [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: F0 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: F0 09 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: F0 09 00 5C 21 00 73 71 B7 67 7E 41 4F 65 EA [18:16:17]GetLastDocTimeStamp 1740075291 [18:16:17]current date 1740075379 [18:16:17]FM_GetShiftState [18:16:17]SAM_PROTO_GetShiftState [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 13 01 00 [18:16:17]Write to MH i2c: E2 08 00 5D 21 80 13 01 00 00 00 00 00 FB [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 0E 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 0E 00 5D 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 4D [18:16:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:16:17]wFMCommunicate OK [18:16:17]SAM_PROTO_GetShiftState done [18:16:17]FM_GetShiftState done [18:16:17]opened in 1740011697 [18:16:17]opened+sec_in_day 1740098097 [18:16:17]quantity*price = 13013 [18:16:17]sum+1 = 13015 [18:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.82 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 243 20.02.2025 18:16 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187442 ФПД: 58691930958885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181619&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187442&fm=58691930958885&tin=02508201610067®Number=0000000000091857&sum=13000 [18:16:18]StoreToDocumentArchive [18:16:18]shift 648 fd 187442 [18:16:18]save to /storage/0648/doc_00187442 [18:16:18]save last doc name /storage/0648/doc_00187442 to /storage/kkm_last_doc_name [18:16:18]save OK [18:16:18]Clear old archive folders... [18:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:18]tlvbuf is 00E68F30 [18:16:18]SAM_PROTO_ClearQueue [18:16:18]wFMCommunicate request_size=4 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 09 00 00 [18:16:18]Write to MH i2c: E2 08 00 6A 21 80 09 00 00 00 00 00 00 FD [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 03 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 03 00 6A 21 00 90 00 FF [18:16:18]RAPDU: 90 00 [18:16:18]wFMCommunicate OK [18:16:18]SAM_PROTO_ClearQueue done [18:16:18]KKMCreateOFDPacket [18:16:18]OFDProtocolAddRootSTLVToBuf [18:16:18]FM_MakeSignedData [18:16:18]FM_MakeSignedData [18:16:18]SAM_PROTO_SignData [18:16:18]wFMCommunicate request_size=4 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 0D 01 02 [18:16:18]Write to MH i2c: E2 08 00 6B 21 80 0D 01 02 00 00 00 00 05 [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 03 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 03 00 6B 21 00 90 00 00 [18:16:18]RAPDU: 90 00 [18:16:18]wFMCommunicate OK [18:16:18]wFMCommunicate request_size=255 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D6 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 66 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 F3 00 00 00 F4 03 04 00 73 71 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DC 02 00 35 04 06 00 35 [18:16:18]Write to MH i2c: E2 02 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D6 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 66 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 F3 00 00 00 F4 03 04 00 73 71 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DC 02 00 35 04 06 00 35 00 00 01 [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 03 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 03 00 6C 21 00 90 00 01 [18:16:18]RAPDU: 90 00 [18:16:18]wFMCommunicate OK [18:16:18]wFMCommunicate request_size=10 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 0D 02 02 05 61 47 B2 2C 25 [18:16:18]Write to MH i2c: E2 0D 00 6D 21 80 0D 02 02 05 00 61 47 B2 2C 25 00 00 BD [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 03 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 03 00 6D 21 00 90 00 02 [18:16:18]RAPDU: 90 00 [18:16:18]wFMCommunicate OK [18:16:18]wFMCommunicate request_size=4 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 0D 03 02 [18:16:18]Write to MH i2c: E2 08 00 6E 21 80 0D 03 02 00 00 00 00 0A [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 0B 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 0B 00 6E 21 00 A9 CF 2B B7 B9 67 82 5D 90 00 64 [18:16:18]RAPDU: A9 CF 2B B7 B9 67 82 5D 90 00 [18:16:18]wFMCommunicate OK [18:16:18]SAM_PROTO_SignData done [18:16:18]FM_MakeSignedData done [18:16:18]CreateOFDProtocolMessage [18:16:18]wFMCommunicate request_size=4 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 11 00 00 [18:16:18]Write to MH i2c: E2 08 00 6F 21 80 11 00 00 00 00 00 00 0A [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 17 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 17 00 6F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5D [18:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:16:18]wFMCommunicate OK [18:16:18]CreateOFDProtocolMessage done [18:16:18]OFDSenderStorePacket 187442 [18:16:18]StoreOFDPacket docnum=187442 [18:16:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC 77 07 01 04 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D6 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 66 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 F3 00 00 00 F4 03 04 00 73 71 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DC 02 00 35 04 06 00 35 61 47 B2 2C 25 A9 CF 2B B7 B9 67 82 5D [18:16:18]CheckFolder [18:16:18]dirname=/storage/ofd_packets [18:16:18]CheckFolder done [18:16:18]ProducePacketName [18:16:18]name=ofd_packets/00187442 [18:16:18]NVStorageSaveData ofd_packets/00187442 [18:16:18]File name is /storage/ofd_packets/00187442 [18:16:18]Write 301 bytes [18:16:18]NVStorageSaveData done [18:16:18]OFDSenderStorePacket done [18:16:18]KKMCreateOFDPacket done [18:16:18]NVStorageSaveData kkm_last_timestamp [18:16:18]File name is /storage/kkm_last_timestamp [18:16:18]Write 4 bytes [18:16:18]NVStorageSaveData done [18:16:18]ExternCall_PrintAddStr [18:16:18]wPrintStart [18:16:18]Write to MH i2c: 01 00 00 70 21 91 [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: 01 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: 01 07 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: 01 07 00 70 21 00 00 00 00 00 FF 0F A6 [18:16:18]RasterBufferAndPrint [18:16:18]line Счет N : (1)412601 [18:16:18]line ИНН: 02508201610067 [18:16:18]line Контрольно-Кассовый Чек [18:16:18]line ПРОДАЖА [18:16:18]line ТРК (МРК, ГНК) : 23 [18:16:18]line Товар: 2710124500 [18:16:18]line Аи-95-К-5 [18:16:18]line 1.810 * 71.90 [18:16:18]line = 130.14 [18:16:18]line НДС 12% НСП 1% [18:16:18]line > о реализуемом товаре [18:16:18]line ОКРУГЛЕНИЕ: -0.14 [18:16:18]line ИТОГО: 130.00 [18:16:18]line Внесено: 130.00 [18:16:18]line СДАЧА: 0.00 [18:16:18]line НСП 1% : 1.15 [18:16:18]line НДС 12% : 13.82 [18:16:18]line Наличными: 130.00 [18:16:18]line Безнал.: 0.00 [18:16:18]line Место: АЗС № 92 "Партнер Нефть" [18:16:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:16:18]line СНО: Общий режим [18:16:18]line Чек 243 20.02.2025 18:16 [18:16:18]line Смена: 648 ФФД: 1.0 [18:16:18]line ЗНМ: 0300000118 [18:16:18]line РНМ: 0000000000091857 [18:16:18]line Версия ККМ: 001 [18:16:18]line ФМ: 0000000000871826 [18:16:18]line ФД: 187442 [18:16:18]line ФПД: 58691930958885 [18:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T181619&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187442&fm=58691930958885&tin=02508201610067®Number=0000000000091857&sum=13000 [18:16:18]OFD Sender: Processing packet 187442 [packets to send 49, broken 48] [18:16:18]ProducePacketName [18:16:18]name=ofd_packets/00187442 [18:16:18]OFD Sender: To server: pG, [18:16:18]CommunicateWithHost lk.salyk.kg:30040 [18:16:18]ConnectInit lk.salyk.kg [18:16:18]written 0, free lines is 4095 [18:16:19]Connected sock=7 [18:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC 77 07 01 04 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D6 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 66 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 F3 00 00 00 F4 03 04 00 73 71 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DC 02 00 35 04 06 00 35 61 47 B2 2C 25 A9 CF 2B B7 B9 67 82 5D [18:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 10 74 47 00 B7 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DC 02 00 F4 03 04 00 C2 17 B7 67 B6 04 01 00 00 FE 7C A8 A6 E1 29 8F 08 [18:16:19]CommunicateWithHost err = 0 [18:16:19]CheckOFDResponse [18:16:19]1017 (14) - 77093643461234 [18:16:19]1041 (16) - 0000000000871826 [18:16:19]1040 (4) - 187442 [18:16:19]1012 (4) - 20.02.2025 11:53 [18:16:19]1206 (1) - 0 [18:16:19]OFD Sender: Remove packet 187442 [18:16:19]ProducePacketName [18:16:19]name=ofd_packets/00187442 [18:16:19]NVStorageDeleteData [18:16:19]Write to MH i2c: 01 00 00 9B 21 BC [18:16:19]Write i2c OK [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: 01 [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: 01 07 00 [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: 01 07 00 9B 21 00 00 00 00 00 F3 0C C2 [18:16:19]RasterBufferAndPrint [18:16:19]line [18:16:19]line [18:16:19]line [18:16:19]line [18:16:19]line [18:16:19]written 0, free lines is 3321 [18:16:19]MH_Cut [18:16:19]Write to MH i2c: D1 01 00 A2 21 01 95 [18:16:19]Write i2c OK [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: D1 [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: D1 01 00 [18:16:19]MH_I2C_Read... [18:16:19]Read from MH i2c: D1 01 00 A2 21 00 94 [18:16:19]Write to MH i2c: 01 00 00 A3 21 C4 [18:16:19]Write i2c OK [18:16:19]MH_I2C_Read... [18:16:19]OFD Sender: No OFD packet to send [18:16:20]*** Cut start [18:16:20]*** Partial cut [18:16:20]*** CUTSNS_PIN = 1 [18:16:20]*** CUTSNS_PIN = 0 [18:16:20]*** Brake cut motor [18:16:20]Read from MH i2c: 01 [18:16:20]MH_I2C_Read... [18:16:20]*** Stop cut motor [18:16:20]*** Cut end [18:16:20]Read from MH i2c: 01 07 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: 01 07 00 A3 21 00 00 00 00 00 FF 0F D9 [18:16:20]process_action close_receipt done [18:16:20]requested_data is exist [18:16:20]produce_requested_data [18:16:20]requested_item fm.sn is exist - process it [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 11 00 00 [18:16:20]Write to MH i2c: E2 08 00 A4 21 80 11 00 00 00 00 00 00 3F [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 17 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 17 00 A4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [18:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:16:20]wFMCommunicate OK [18:16:20]requested_item fd.num is exist - process it [18:16:20]SAM_PROTO_GetFieldsCounters [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 13 00 00 [18:16:20]Write to MH i2c: E2 08 00 A5 21 80 13 00 00 00 00 00 00 42 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:21]Read from MH i2c: E2 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: E2 62 00 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: E2 62 00 A5 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DC 02 00 0E 04 04 00 88 02 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 DB [18:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DC 02 00 0E 04 04 00 88 02 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 [18:16:21]wFMCommunicate OK [18:16:21]SAM_PROTO_GetFieldsCounters done [18:16:21]requested_item shift.num is exist - process it [18:16:21]requested_item shift.opened is exist - process it [18:16:21]req_shift_opened [18:16:21]FM_GetShiftState [18:16:21]SAM_PROTO_GetShiftState [18:16:21]wFMCommunicate request_size=4 [18:16:21]MH_SAM_APDU [18:16:21]CAPDU: 80 13 01 00 [18:16:21]Write to MH i2c: E2 08 00 A6 21 80 13 01 00 00 00 00 00 44 [18:16:21]Write i2c OK [18:16:21]MH_I2C_Read... [18:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:21]Read from MH i2c: E2 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: E2 0E 00 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: E2 0E 00 A6 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 96 [18:16:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:16:21]wFMCommunicate OK [18:16:21]SAM_PROTO_GetShiftState done [18:16:21]FM_GetShiftState done [18:16:21]req_shift_opened done [18:16:21]requested_item shift.open_date is exist - process it [18:16:21]req_shift_open_date [18:16:21]req_shift_open_date done [18:16:21]produce_requested_data done [18:16:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187442,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:16:21]process_action_free close_receipt [18:16:21]json_value_free [18:16:21]json_value_free done [18:16:21]process_json_proto returns [18:16:21]Send response to host [18:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187442,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:16:21]free response buf [18:16:21]execute_script done [18:16:21]execute_script returns [18:16:21]free content buf [18:16:21]Sock 9.Close socket [18:16:21]Sock 9.Thread stoped [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [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:36]accept exits with 10 [18:26:36]New connection [18:26:36]New thread 3067276644 created [18:26:36]Thread 3067420004 joined [18:26:36]Waiting for new connection... [18:26:36] Sock 10.Parse request [18:26:36]Sock 10.Check first char [18:26:36]Sock 10.First char is OK [18:26:36]request: POST /json_proto HTTP/1.0 [18:26:36]Method: POST [18:26:36]URL: /json_proto [18:26:36]Method is POST - this is cgi request [18:26:36]url: /json_proto [18:26:36]query_string will be loaded in cgi processing [18:26:36]execute_cgi json_proto POST (null) [18:26:36]execute_cgi path=json_proto method=POST [18:26:36]POST find Content-Length [18:26:36]Host: 172.17.46.131:8080 [18:26:36]Content-Length: 1012 [18:26:36]Content-Type: application/json [18:26:36] [18:26:36]POST finish read [18:26:36]Found Content-Length = 1012 [18:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 55.870, "sum" : 4000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.87 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:36]execute_script... [18:26:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 55.870, "sum" : 4000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.87 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:36]POST & json_proto [18:26:36]process_json_proto [18:26:36]json parsed OK: [18:26:36]protocol is kg_v1.0 [18:26:36]action value=close_receipt [18:26:36]process_action close_receipt [18:26:36]cmd_close_receipt [18:26:36]MH_GetDate [18:26:36]Write to MH i2c: F0 00 00 A7 21 B7 [18:26:36]Write i2c OK [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: F0 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: F0 09 00 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: F0 09 00 A7 21 00 DE 73 B7 67 7E 41 4F 65 A2 [18:26:36]GetLastDocTimeStamp 1740075379 [18:26:36]current date 1740075998 [18:26:36]FM_GetShiftState [18:26:36]SAM_PROTO_GetShiftState [18:26:36]wFMCommunicate request_size=4 [18:26:36]MH_SAM_APDU [18:26:36]CAPDU: 80 13 01 00 [18:26:36]Write to MH i2c: E2 08 00 A8 21 80 13 01 00 00 00 00 00 46 [18:26:36]Write i2c OK [18:26:36]MH_I2C_Read... [18:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:36]Read from MH i2c: E2 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 0E 00 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 0E 00 A8 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 98 [18:26:36]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:26:36]wFMCommunicate OK [18:26:36]SAM_PROTO_GetShiftState done [18:26:36]FM_GetShiftState done [18:26:36]opened in 1740011697 [18:26:36]opened+sec_in_day 1740098097 [18:26:36]quantity*price = 400029 [18:26:36]sum+1 = 400030 [18:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.81 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 244 20.02.2025 18:26 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Дисконтная программа СкидкаДТ номер 92 сэкономлено 55.87 сом ФМ: 0000000000871826 ФД: 187443 ФПД: 273550525943001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T182638&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187443&fm=273550525943001&tin=02508201610067®Number=0000000000091857&sum=400000 [18:26:37]StoreToDocumentArchive [18:26:37]shift 648 fd 187443 [18:26:37]save to /storage/0648/doc_00187443 [18:26:37]save last doc name /storage/0648/doc_00187443 to /storage/kkm_last_doc_name [18:26:37]save OK [18:26:37]Clear old archive folders... [18:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:26:37]tlvbuf is 00E19300 [18:26:37]SAM_PROTO_ClearQueue [18:26:37]wFMCommunicate request_size=4 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 09 00 00 [18:26:37]Write to MH i2c: E2 08 00 B5 21 80 09 00 00 00 00 00 00 48 [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 B5 21 00 90 00 4A [18:26:37]RAPDU: 90 00 [18:26:37]wFMCommunicate OK [18:26:37]SAM_PROTO_ClearQueue done [18:26:37]KKMCreateOFDPacket [18:26:37]OFDProtocolAddRootSTLVToBuf [18:26:37]FM_MakeSignedData [18:26:37]FM_MakeSignedData [18:26:37]SAM_PROTO_SignData [18:26:37]wFMCommunicate request_size=4 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 0D 01 02 [18:26:37]Write to MH i2c: E2 08 00 B6 21 80 0D 01 02 00 00 00 00 50 [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 B6 21 00 90 00 4B [18:26:37]RAPDU: 90 00 [18:26:37]wFMCommunicate OK [18:26:37]wFMCommunicate request_size=255 [18:26:37]MH_SAM_APDU [18:26: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 3E DA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 9D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 DE 73 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DC 02 00 35 04 06 00 F8 CA F1 ED [18:26:37]Write to MH i2c: E2 02 01 B7 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 3E DA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 9D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 DE 73 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DC 02 00 35 04 06 00 F8 CA F1 ED 00 00 EF [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 B7 21 00 90 00 4C [18:26:37]RAPDU: 90 00 [18:26:37]wFMCommunicate OK [18:26:37]wFMCommunicate request_size=7 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 0D 02 02 02 4C D9 [18:26:37]Write to MH i2c: E2 0A 00 B8 21 80 0D 02 02 02 00 4C D9 00 00 7C [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 B8 21 00 90 00 4D [18:26:37]RAPDU: 90 00 [18:26:37]wFMCommunicate OK [18:26:37]wFMCommunicate request_size=4 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 0D 03 02 [18:26:37]Write to MH i2c: E2 08 00 B9 21 80 0D 03 02 00 00 00 00 55 [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 0B 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 0B 00 B9 21 00 E8 86 97 0C FC 82 81 5C 90 00 C2 [18:26:37]RAPDU: E8 86 97 0C FC 82 81 5C 90 00 [18:26:37]wFMCommunicate OK [18:26:37]SAM_PROTO_SignData done [18:26:37]FM_MakeSignedData done [18:26:37]CreateOFDProtocolMessage [18:26:37]wFMCommunicate request_size=4 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 11 00 00 [18:26:37]Write to MH i2c: E2 08 00 BA 21 80 11 00 00 00 00 00 00 55 [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 17 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 17 00 BA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A8 [18:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:26:37]wFMCommunicate OK [18:26:37]CreateOFDProtocolMessage done [18:26:37]OFDSenderStorePacket 187443 [18:26:37]StoreOFDPacket docnum=187443 [18:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 4D 9D 04 01 07 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E DA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 9D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 DE 73 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DC 02 00 35 04 06 00 F8 CA F1 ED 4C D9 E8 86 97 0C FC 82 81 5C [18:26:37]CheckFolder [18:26:37]dirname=/storage/ofd_packets [18:26:37]CheckFolder done [18:26:37]ProducePacketName [18:26:37]name=ofd_packets/00187443 [18:26:37]NVStorageSaveData ofd_packets/00187443 [18:26:37]File name is /storage/ofd_packets/00187443 [18:26:37]Write 298 bytes [18:26:37]NVStorageSaveData done [18:26:37]OFDSenderStorePacket done [18:26:37]KKMCreateOFDPacket done [18:26:37]NVStorageSaveData kkm_last_timestamp [18:26:37]File name is /storage/kkm_last_timestamp [18:26:37]Write 4 bytes [18:26:37]NVStorageSaveData done [18:26:37]ExternCall_PrintAddStr [18:26:37]wPrintStart [18:26:37]Write to MH i2c: 01 00 00 BB 21 DC [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 07 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 07 00 BB 21 00 00 00 00 00 FF 0F F1 [18:26:37]RasterBufferAndPrint [18:26:37]line Счет N : (1)412603 [18:26:37]line ИНН: 02508201610067 [18:26:37]line Контрольно-Кассовый Чек [18:26:37]line ПРОДАЖА [18:26:37]line ТРК (МРК, ГНК) : 5 [18:26:37]line Товар: 2710194210 [18:26:37]line ДТ-К-5 [18:26:37]line 55.870 * 71.60 [18:26:37]line = 4000.29 [18:26:37]line НДС 12% НСП 1% [18:26:37]line > о реализуемом товаре [18:26:37]line ОКРУГЛЕНИЕ: -0.29 [18:26:37]line ИТОГО: 4000.00 [18:26:37]line Внесено: 4000.00 [18:26:37]line СДАЧА: 0.00 [18:26:37]line НСП 1% : 35.40 [18:26:37]line НДС 12% : 424.81 [18:26:37]line Наличными: 4000.00 [18:26:37]line Безнал.: 0.00 [18:26:37]line Место: АЗС № 92 "Партнер Нефть" [18:26:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:26:37]line СНО: Общий режим [18:26:37]line Чек 244 20.02.2025 18:26 [18:26:37]line Смена: 648 ФФД: 1.0 [18:26:37]line ЗНМ: 0300000118 [18:26:37]line РНМ: 0000000000091857 [18:26:37]line Версия ККМ: 001 [18:26:37]line [18:26:37]line Дисконтная программа [18:26:37]line СкидкаДТ [18:26:37]line номер 92 [18:26:37]line сэкономлено 55.87 сом [18:26:37]line ФМ: 0000000000871826 [18:26:37]line ФД: 187443 [18:26:37]line ФПД: 273550525943001 [18:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T182638&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187443&fm=273550525943001&tin=02508201610067®Number=0000000000091857&sum=400000 [18:26:38]OFD Sender: Processing packet 187443 [packets to send 49, broken 48] [18:26:38]ProducePacketName [18:26:38]name=ofd_packets/00187443 [18:26:38]OFD Sender: To server: pG, [18:26:38]CommunicateWithHost lk.salyk.kg:30040 [18:26:38]ConnectInit lk.salyk.kg [18:26:38]written 0, free lines is 4095 [18:26:38]Connected sock=9 [18:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 4D 9D 04 01 07 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E DA 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 9D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 DE 73 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DC 02 00 35 04 06 00 F8 CA F1 ED 4C D9 E8 86 97 0C FC 82 81 5C [18:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 97 1D 47 00 2C 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 31 38 32 36 10 04 04 00 33 DC 02 00 F4 03 04 00 2E 1A B7 67 B6 04 01 00 00 67 76 C3 D9 10 9B 42 7C [18:26:38]CommunicateWithHost err = 0 [18:26:38]CheckOFDResponse [18:26:38]1017 (14) - 77093643461234 [18:26:38]1041 (16) - 0000000000871826 [18:26:38]1040 (4) - 187443 [18:26:38]1012 (4) - 20.02.2025 12:03 [18:26:38]1206 (1) - 0 [18:26:38]OFD Sender: Remove packet 187443 [18:26:38]ProducePacketName [18:26:38]name=ofd_packets/00187443 [18:26:38]NVStorageDeleteData [18:26:38]Write to MH i2c: 01 00 00 EB 21 0C [18:26:38]Write i2c OK [18:26:38]MH_I2C_Read... [18:26:38]Read from MH i2c: 01 [18:26:38]MH_I2C_Read... [18:26:38]Read from MH i2c: 01 07 00 [18:26:38]MH_I2C_Read... [18:26:38]Read from MH i2c: 01 07 00 EB 21 00 00 00 00 00 9C 0C BB [18:26:38]RasterBufferAndPrint [18:26:38]line [18:26:38]line [18:26:38]line [18:26:38]line [18:26:38]line [18:26:38]written 0, free lines is 3234 [18:26:38]MH_Cut [18:26:38]Write to MH i2c: D1 01 00 F2 21 01 E5 [18:26:38]Write i2c OK [18:26:38]MH_I2C_Read... [18:26:38]Read from MH i2c: D1 [18:26:38]MH_I2C_Read... [18:26:38]Read from MH i2c: D1 01 00 [18:26:38]MH_I2C_Read... [18:26:38]Read from MH i2c: D1 01 00 F2 21 00 E4 [18:26:38]Write to MH i2c: 01 00 00 F3 21 14 [18:26:38]Write i2c OK [18:26:38]MH_I2C_Read... [18:26:39]OFD Sender: No OFD packet to send [18:26:39]*** Cut start [18:26:39]*** Partial cut [18:26:39]*** CUTSNS_PIN = 1 [18:26:39]*** CUTSNS_PIN = 0 [18:26:39]*** Brake cut motor [18:26:40]Read from MH i2c: 01 [18:26:40]MH_I2C_Read... [18:26:40]*** Stop cut motor [18:26:40]*** Cut end [18:26:40]Read from MH i2c: 01 07 00 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: 01 07 00 F3 21 00 00 00 00 00 FF 0F 29 [18:26:40]process_action close_receipt done [18:26:40]requested_data is exist [18:26:40]produce_requested_data [18:26:40]requested_item fm.sn is exist - process it [18:26:40]wFMCommunicate request_size=4 [18:26:40]MH_SAM_APDU [18:26:40]CAPDU: 80 11 00 00 [18:26:40]Write to MH i2c: E2 08 00 F4 21 80 11 00 00 00 00 00 00 8F [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:40]Read from MH i2c: E2 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 17 00 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 17 00 F4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [18:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:26:40]wFMCommunicate OK [18:26:40]requested_item fd.num is exist - process it [18:26:40]SAM_PROTO_GetFieldsCounters [18:26:40]wFMCommunicate request_size=4 [18:26:40]MH_SAM_APDU [18:26:40]CAPDU: 80 13 00 00 [18:26:40]Write to MH i2c: E2 08 00 F5 21 80 13 00 00 00 00 00 00 92 [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:40]Read from MH i2c: E2 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 62 00 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 62 00 F5 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 DC 02 00 0E 04 04 00 88 02 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 2F [18:26: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 DC 02 00 0E 04 04 00 88 02 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 [18:26:40]wFMCommunicate OK [18:26:40]SAM_PROTO_GetFieldsCounters done [18:26:40]requested_item shift.num is exist - process it [18:26:40]requested_item shift.opened is exist - process it [18:26:40]req_shift_opened [18:26:40]FM_GetShiftState [18:26:40]SAM_PROTO_GetShiftState [18:26:40]wFMCommunicate request_size=4 [18:26:40]MH_SAM_APDU [18:26:40]CAPDU: 80 13 01 00 [18:26:40]Write to MH i2c: E2 08 00 F6 21 80 13 01 00 00 00 00 00 94 [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:40]Read from MH i2c: E2 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 0E 00 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: E2 0E 00 F6 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E6 [18:26:40]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:26:40]wFMCommunicate OK [18:26:40]SAM_PROTO_GetShiftState done [18:26:40]FM_GetShiftState done [18:26:40]req_shift_opened done [18:26:40]requested_item shift.open_date is exist - process it [18:26:40]req_shift_open_date [18:26:40]req_shift_open_date done [18:26:40]produce_requested_data done [18:26:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187443,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:26:40]process_action_free close_receipt [18:26:40]json_value_free [18:26:40]json_value_free done [18:26:40]process_json_proto returns [18:26:40]Send response to host [18:26:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187443,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:26:40]free response buf [18:26:40]execute_script done [18:26:40]execute_script returns [18:26:40]free content buf [18:26:40]Sock 10.Close socket [18:26:40]Sock 10.Thread stoped [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:03]accept exits with 7 [18:27:03]New connection [18:27:03]New thread 3067420004 created [18:27:03]Thread 3067276644 joined [18:27:03]Waiting for new connection... [18:27:03] Sock 7.Parse request [18:27:03]Sock 7.Check first char [18:27:03]Sock 7.First char is OK [18:27:03]request: POST /json_proto HTTP/1.0 [18:27:03]Method: POST [18:27:03]URL: /json_proto [18:27:03]Method is POST - this is cgi request [18:27:03]url: /json_proto [18:27:03]query_string will be loaded in cgi processing [18:27:03]execute_cgi json_proto POST (null) [18:27:03]execute_cgi path=json_proto method=POST [18:27:03]POST find Content-Length [18:27:03]Host: 172.17.46.131:8080 [18:27:03]Content-Length: 682 [18:27:03]Content-Type: application/json [18:27:03] [18:27:03]POST finish read [18:27:03]Found Content-Length = 682 [18:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [18:27:03]execute_script... [18:27: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)412604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [18:27:03]POST & json_proto [18:27:03]process_json_proto [18:27:03]json parsed OK: [18:27:03]protocol is kg_v1.0 [18:27:03]action value=close_receipt [18:27:03]process_action close_receipt [18:27:03]cmd_close_receipt [18:27:03]MH_GetDate [18:27:03]Write to MH i2c: F0 00 00 F7 21 07 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 09 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 09 00 F7 21 00 F9 73 B7 67 7E 41 4F 65 0D [18:27:03]GetLastDocTimeStamp 1740075998 [18:27:03]current date 1740076025 [18:27:03]FM_GetShiftState [18:27:03]SAM_PROTO_GetShiftState [18:27:03]wFMCommunicate request_size=4 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 13 01 00 [18:27:03]Write to MH i2c: E2 08 00 F8 21 80 13 01 00 00 00 00 00 96 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 0E 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 0E 00 F8 21 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E8 [18:27:03]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:27:03]wFMCommunicate OK [18:27:03]SAM_PROTO_GetShiftState done [18:27:03]FM_GetShiftState done [18:27:03]opened in 1740011697 [18:27:03]opened+sec_in_day 1740098097 [18:27:03]quantity*price = 200025 [18:27:03]sum+1 = 200027 [18:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 245 20.02.2025 18:27 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187444 ФПД: 205024741520740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T182705&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187444&fm=205024741520740&tin=02508201610067®Number=0000000000091857&sum=200000 [18:27:04]StoreToDocumentArchive [18:27:04]shift 648 fd 187444 [18:27:04]save to /storage/0648/doc_00187444 [18:27:04]save last doc name /storage/0648/doc_00187444 to /storage/kkm_last_doc_name [18:27:04]save OK [18:27:04]Clear old archive folders... [18:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:04]tlvbuf is B6FCA4C0 [18:27:04]SAM_PROTO_ClearQueue [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 09 00 00 [18:27:04]Write to MH i2c: E2 08 00 05 22 80 09 00 00 00 00 00 00 99 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 05 22 00 90 00 9B [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]SAM_PROTO_ClearQueue done [18:27:04]KKMCreateOFDPacket [18:27:04]OFDProtocolAddRootSTLVToBuf [18:27:04]FM_MakeSignedData [18:27:04]FM_MakeSignedData [18:27:04]SAM_PROTO_SignData [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 01 02 [18:27:04]Write to MH i2c: E2 08 00 06 22 80 0D 01 02 00 00 00 00 A1 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 06 22 00 90 00 9C [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]wFMCommunicate request_size=255 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 F5 00 00 00 F4 03 04 00 F9 73 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DC 02 00 35 04 06 00 BA [18:27:04]Write to MH i2c: E2 02 01 07 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 F5 00 00 00 F4 03 04 00 F9 73 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DC 02 00 35 04 06 00 BA 00 00 19 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 07 22 00 90 00 9D [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]wFMCommunicate request_size=10 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 02 02 05 78 0A E3 75 64 [18:27:04]Write to MH i2c: E2 0D 00 08 22 80 0D 02 02 05 00 78 0A E3 75 64 00 00 EC [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 08 22 00 90 00 9E [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 03 02 [18:27:04]Write to MH i2c: E2 08 00 09 22 80 0D 03 02 00 00 00 00 A6 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 0B 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 0B 00 09 22 00 21 13 2D 81 2B B4 BA 07 90 00 29 [18:27:04]RAPDU: 21 13 2D 81 2B B4 BA 07 90 00 [18:27:04]wFMCommunicate OK [18:27:04]SAM_PROTO_SignData done [18:27:04]FM_MakeSignedData done [18:27:04]CreateOFDProtocolMessage [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 11 00 00 [18:27:04]Write to MH i2c: E2 08 00 0A 22 80 11 00 00 00 00 00 00 A6 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 0A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F9 [18:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:27:05]wFMCommunicate OK [18:27:05]CreateOFDProtocolMessage done [18:27:05]OFDSenderStorePacket 187444 [18:27:05]StoreOFDPacket docnum=187444 [18:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2B 4F 07 01 90 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 F5 00 00 00 F4 03 04 00 F9 73 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DC 02 00 35 04 06 00 BA 78 0A E3 75 64 21 13 2D 81 2B B4 BA 07 [18:27:05]CheckFolder [18:27:05]dirname=/storage/ofd_packets [18:27:05]CheckFolder done [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00187444 [18:27:05]NVStorageSaveData ofd_packets/00187444 [18:27:05]File name is /storage/ofd_packets/00187444 [18:27:05]Write 301 bytes [18:27:05]NVStorageSaveData done [18:27:05]OFDSenderStorePacket done [18:27:05]KKMCreateOFDPacket done [18:27:05]NVStorageSaveData kkm_last_timestamp [18:27:05]File name is /storage/kkm_last_timestamp [18:27:05]Write 4 bytes [18:27:05]NVStorageSaveData done [18:27:05]ExternCall_PrintAddStr [18:27:05]wPrintStart [18:27:05]Write to MH i2c: 01 00 00 0B 22 2D [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 0B 22 00 00 00 00 00 FF 0F 42 [18:27:05]RasterBufferAndPrint [18:27:05]line Счет N : (1)412604 [18:27:05]line ИНН: 02508201610067 [18:27:05]line Контрольно-Кассовый Чек [18:27:05]line ПРОДАЖА [18:27:05]line ТРК (МРК, ГНК) : 23 [18:27:05]line Товар: 2710124500 [18:27:05]line Аи-95-К-5 [18:27:05]line 27.820 * 71.90 [18:27:05]line = 2000.26 [18:27:05]line НДС 12% НСП 1% [18:27:05]line > о реализуемом товаре [18:27:05]line ОКРУГЛЕНИЕ: -0.26 [18:27:05]line ИТОГО: 2000.00 [18:27:05]line Внесено: 2000.00 [18:27:05]line СДАЧА: 0.00 [18:27:05]line НСП 1% : 17.70 [18:27:05]line НДС 12% : 212.42 [18:27:05]line Наличными: 2000.00 [18:27:05]line Безнал.: 0.00 [18:27:05]line Место: АЗС № 92 "Партнер Нефть" [18:27:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:27:05]line СНО: Общий режим [18:27:05]line Чек 245 20.02.2025 18:27 [18:27:05]line Смена: 648 ФФД: 1.0 [18:27:05]line ЗНМ: 0300000118 [18:27:05]line РНМ: 0000000000091857 [18:27:05]line Версия ККМ: 001 [18:27:05]line ФМ: 0000000000871826 [18:27:05]line ФД: 187444 [18:27:05]line ФПД: 205024741520740 [18:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T182705&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187444&fm=205024741520740&tin=02508201610067®Number=0000000000091857&sum=200000 [18:27:05]OFD Sender: Processing packet 187444 [packets to send 49, broken 48] [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00187444 [18:27:05]OFD Sender: To server: pG, [18:27:05]CommunicateWithHost lk.salyk.kg:30040 [18:27:05]ConnectInit lk.salyk.kg [18:27:05]written 0, free lines is 4095 [18:27:05]Connected sock=10 [18:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2B 4F 07 01 90 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 F5 00 00 00 F4 03 04 00 F9 73 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DC 02 00 35 04 06 00 BA 78 0A E3 75 64 21 13 2D 81 2B B4 BA 07 [18:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 55 9E 47 00 44 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DC 02 00 F4 03 04 00 49 1A B7 67 B6 04 01 00 00 FA 0D C9 D2 64 42 92 FD [18:27:05]CommunicateWithHost err = 0 [18:27:05]CheckOFDResponse [18:27:05]1017 (14) - 77093643461234 [18:27:05]1041 (16) - 0000000000871826 [18:27:05]1040 (4) - 187444 [18:27:05]1012 (4) - 20.02.2025 12:04 [18:27:05]1206 (1) - 0 [18:27:05]OFD Sender: Remove packet 187444 [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00187444 [18:27:05]NVStorageDeleteData [18:27:05]Write to MH i2c: 01 00 00 36 22 58 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 36 22 00 00 00 00 00 EF 0C 5A [18:27:05]RasterBufferAndPrint [18:27:05]line [18:27:05]line [18:27:05]line [18:27:05]line [18:27:05]line [18:27:05]written 0, free lines is 3317 [18:27:05]MH_Cut [18:27:05]Write to MH i2c: D1 01 00 3D 22 01 31 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D1 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D1 01 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D1 01 00 3D 22 00 30 [18:27:05]Write to MH i2c: 01 00 00 3E 22 60 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:06]OFD Sender: No OFD packet to send [18:27:06]*** Cut start [18:27:06]*** Partial cut [18:27:06]*** CUTSNS_PIN = 1 [18:27:06]*** CUTSNS_PIN = 0 [18:27:06]*** Brake cut motor [18:27:07]Read from MH i2c: 01 [18:27:07]MH_I2C_Read... [18:27:07]*** Stop cut motor [18:27:07]*** Cut end [18:27:07]Read from MH i2c: 01 07 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: 01 07 00 3E 22 00 00 00 00 00 FF 0F 75 [18:27:07]process_action close_receipt done [18:27:07]requested_data is exist [18:27:07]produce_requested_data [18:27:07]requested_item fm.sn is exist - process it [18:27:07]wFMCommunicate request_size=4 [18:27:07]MH_SAM_APDU [18:27:07]CAPDU: 80 11 00 00 [18:27:07]Write to MH i2c: E2 08 00 3F 22 80 11 00 00 00 00 00 00 DB [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:07]Read from MH i2c: E2 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 17 00 [18:27:07]MH_I2C_Read... [18:27:07]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 31 38 32 36 90 00 2E [18:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:27:07]wFMCommunicate OK [18:27:07]requested_item fd.num is exist - process it [18:27:07]SAM_PROTO_GetFieldsCounters [18:27:07]wFMCommunicate request_size=4 [18:27:07]MH_SAM_APDU [18:27:07]CAPDU: 80 13 00 00 [18:27:07]Write to MH i2c: E2 08 00 40 22 80 13 00 00 00 00 00 00 DE [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:07]Read from MH i2c: E2 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 62 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 62 00 40 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DC 02 00 0E 04 04 00 88 02 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 7F [18:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DC 02 00 0E 04 04 00 88 02 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 [18:27:07]wFMCommunicate OK [18:27:07]SAM_PROTO_GetFieldsCounters done [18:27:07]requested_item shift.num is exist - process it [18:27:07]requested_item shift.opened is exist - process it [18:27:07]req_shift_opened [18:27:07]FM_GetShiftState [18:27:07]SAM_PROTO_GetShiftState [18:27:07]wFMCommunicate request_size=4 [18:27:07]MH_SAM_APDU [18:27:07]CAPDU: 80 13 01 00 [18:27:07]Write to MH i2c: E2 08 00 41 22 80 13 01 00 00 00 00 00 E0 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:07]Read from MH i2c: E2 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 0E 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 0E 00 41 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 32 [18:27:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:27:07]wFMCommunicate OK [18:27:07]SAM_PROTO_GetShiftState done [18:27:07]FM_GetShiftState done [18:27:07]req_shift_opened done [18:27:07]requested_item shift.open_date is exist - process it [18:27:07]req_shift_open_date [18:27:07]req_shift_open_date done [18:27:07]produce_requested_data done [18:27:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187444,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:27:07]process_action_free close_receipt [18:27:07]json_value_free [18:27:07]json_value_free done [18:27:07]process_json_proto returns [18:27:07]Send response to host [18:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187444,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:27:07]free response buf [18:27:07]execute_script done [18:27:07]execute_script returns [18:27:07]free content buf [18:27:07]Sock 7.Close socket [18:27:07]Sock 7.Thread stoped [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:22]accept exits with 9 [18:31:22]New connection [18:31:22]New thread 3067276644 created [18:31:22]Thread 3067420004 joined [18:31:22]Waiting for new connection... [18:31:22] Sock 9.Parse request [18:31:22]Sock 9.Check first char [18:31:22]Sock 9.First char is OK [18:31:22]request: POST /json_proto HTTP/1.0 [18:31:22]Method: POST [18:31:22]URL: /json_proto [18:31:22]Method is POST - this is cgi request [18:31:22]url: /json_proto [18:31:22]query_string will be loaded in cgi processing [18:31:22]execute_cgi json_proto POST (null) [18:31:22]execute_cgi path=json_proto method=POST [18:31:22]POST find Content-Length [18:31:22]Host: 172.17.46.131:8080 [18:31:22]Content-Length: 789 [18:31:22]Content-Type: application/json [18:31:22] [18:31:22]POST finish read [18:31:22]Found Content-Length = 789 [18:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97983", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:22]execute_script... [18: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)412605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97983", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:22]POST & json_proto [18:31:22]process_json_proto [18:31:22]json parsed OK: [18:31:22]protocol is kg_v1.0 [18:31:22]action value=close_receipt [18:31:22]process_action close_receipt [18:31:22]cmd_close_receipt [18:31:22]MH_GetDate [18:31:22]Write to MH i2c: F0 00 00 42 22 53 [18:31:22]Write i2c OK [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: F0 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: F0 09 00 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: F0 09 00 42 22 00 FC 74 B7 67 7E 41 4F 65 5D [18:31:22]GetLastDocTimeStamp 1740076025 [18:31:22]current date 1740076284 [18:31:22]FM_GetShiftState [18:31:22]SAM_PROTO_GetShiftState [18:31:22]wFMCommunicate request_size=4 [18:31:22]MH_SAM_APDU [18:31:22]CAPDU: 80 13 01 00 [18:31:22]Write to MH i2c: E2 08 00 43 22 80 13 01 00 00 00 00 00 E2 [18:31:22]Write i2c OK [18:31:22]MH_I2C_Read... [18:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:22]Read from MH i2c: E2 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 0E 00 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 0E 00 43 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 34 [18:31:22]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:31:22]wFMCommunicate OK [18:31:22]SAM_PROTO_GetShiftState done [18:31:22]FM_GetShiftState done [18:31:22]opened in 1740011697 [18:31:22]opened+sec_in_day 1740098097 [18:31:22]quantity*price = 0 [18:31:22]sum+1 = 1 [18:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 246 20.02.2025 18:31 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 97983 ФМ: 0000000000871826 ФД: 187445 ФПД: 151769833337579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183124&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187445&fm=151769833337579&tin=02508201610067®Number=0000000000091857&sum=0 [18:31:23]StoreToDocumentArchive [18:31:23]shift 648 fd 187445 [18:31:23]save to /storage/0648/doc_00187445 [18:31:23]save last doc name /storage/0648/doc_00187445 to /storage/kkm_last_doc_name [18:31:23]save OK [18:31:23]Clear old archive folders... [18:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:31:23]tlvbuf is 00E5ECE0 [18:31:23]SAM_PROTO_ClearQueue [18:31:23]wFMCommunicate request_size=4 [18:31:23]MH_SAM_APDU [18:31:23]CAPDU: 80 09 00 00 [18:31:23]Write to MH i2c: E2 08 00 50 22 80 09 00 00 00 00 00 00 E4 [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 03 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 03 00 50 22 00 90 00 E6 [18:31:23]RAPDU: 90 00 [18:31:23]wFMCommunicate OK [18:31:23]SAM_PROTO_ClearQueue done [18:31:23]KKMCreateOFDPacket [18:31:23]OFDProtocolAddRootSTLVToBuf [18:31:23]FM_MakeSignedData [18:31:23]FM_MakeSignedData [18:31:23]SAM_PROTO_SignData [18:31:23]wFMCommunicate request_size=4 [18:31:23]MH_SAM_APDU [18:31:23]CAPDU: 80 0D 01 02 [18:31:23]Write to MH i2c: E2 08 00 51 22 80 0D 01 02 00 00 00 00 EC [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 03 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 03 00 51 22 00 90 00 E7 [18:31:23]RAPDU: 90 00 [18:31:23]wFMCommunicate OK [18:31:23]wFMCommunicate request_size=255 [18:31:23]MH_SAM_APDU [18:31: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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 FC 74 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DC 02 00 35 04 06 00 8A 08 AB 00 [18:31:23]Write to MH i2c: E2 02 01 52 22 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 FC 74 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DC 02 00 35 04 06 00 8A 08 AB 00 00 00 85 [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 03 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 03 00 52 22 00 90 00 E8 [18:31:23]RAPDU: 90 00 [18:31:23]wFMCommunicate OK [18:31:23]wFMCommunicate request_size=7 [18:31:23]MH_SAM_APDU [18:31:23]CAPDU: 80 0D 02 02 02 F2 EB [18:31:23]Write to MH i2c: E2 0A 00 53 22 80 0D 02 02 02 00 F2 EB 00 00 D0 [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:23]Read from MH i2c: E2 03 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 03 00 53 22 00 90 00 E9 [18:31:23]RAPDU: 90 00 [18:31:23]wFMCommunicate OK [18:31:23]wFMCommunicate request_size=4 [18:31:23]MH_SAM_APDU [18:31:23]CAPDU: 80 0D 03 02 [18:31:23]Write to MH i2c: E2 08 00 54 22 80 0D 03 02 00 00 00 00 F1 [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 0B 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 0B 00 54 22 00 DB A3 CA 3A 1D B3 FD 31 90 00 72 [18:31:23]RAPDU: DB A3 CA 3A 1D B3 FD 31 90 00 [18:31:23]wFMCommunicate OK [18:31:23]SAM_PROTO_SignData done [18:31:23]FM_MakeSignedData done [18:31:23]CreateOFDProtocolMessage [18:31:23]wFMCommunicate request_size=4 [18:31:23]MH_SAM_APDU [18:31:23]CAPDU: 80 11 00 00 [18:31:23]Write to MH i2c: E2 08 00 55 22 80 11 00 00 00 00 00 00 F1 [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 17 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 17 00 55 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [18:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:31:23]wFMCommunicate OK [18:31:23]CreateOFDProtocolMessage done [18:31:23]OFDSenderStorePacket 187445 [18:31:23]StoreOFDPacket docnum=187445 [18:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E5 8D 04 01 ED 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 FC 74 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DC 02 00 35 04 06 00 8A 08 AB 00 F2 EB DB A3 CA 3A 1D B3 FD 31 [18:31:23]CheckFolder [18:31:23]dirname=/storage/ofd_packets [18:31:23]CheckFolder done [18:31:23]ProducePacketName [18:31:23]name=ofd_packets/00187445 [18:31:23]NVStorageSaveData ofd_packets/00187445 [18:31:23]File name is /storage/ofd_packets/00187445 [18:31:23]Write 298 bytes [18:31:23]NVStorageSaveData done [18:31:23]OFDSenderStorePacket done [18:31:23]KKMCreateOFDPacket done [18:31:23]NVStorageSaveData kkm_last_timestamp [18:31:23]File name is /storage/kkm_last_timestamp [18:31:23]Write 4 bytes [18:31:23]NVStorageSaveData done [18:31:23]ExternCall_PrintAddStr [18:31:23]wPrintStart [18:31:23]Write to MH i2c: 01 00 00 56 22 78 [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: 01 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: 01 07 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: 01 07 00 56 22 00 00 00 00 00 FF 0F 8D [18:31:23]RasterBufferAndPrint [18:31:23]line Счет N : (1)412605 [18:31:23]line ИНН: 02508201610067 [18:31:23]line Контрольно-Кассовый Чек [18:31:23]line ПРОДАЖА [18:31:23]line ТРК (МРК, ГНК) : 41 [18:31:23]line Товар: 2710194210 [18:31:23]line ДТ-К-2 [18:31:23]line 40.000 * 0.00 [18:31:23]line = 0.00 [18:31:23]line НДС 12% НСП 1% [18:31:23]line > о реализуемом товаре [18:31:23]line ИТОГО: 0.00 [18:31:23]line НСП 1% : 0.00 [18:31:23]line НДС 12% : 0.00 [18:31:23]line Наличными: 0.00 [18:31:23]line Безнал.: 0.00 [18:31:23]line Место: АЗС № 92 "Партнер Нефть" [18:31:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:31:23]line СНО: Общий режим [18:31:23]line Чек 246 20.02.2025 18:31 [18:31:23]line Смена: 648 ФФД: 1.0 [18:31:23]line ЗНМ: 0300000118 [18:31:23]line РНМ: 0000000000091857 [18:31:23]line Версия ККМ: 001 [18:31:23]line Талоны: Топливная Карта [18:31:23]line 97983 [18:31:23]line ФМ: 0000000000871826 [18:31:23]line ФД: 187445 [18:31:23]line ФПД: 151769833337579 [18:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183124&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187445&fm=151769833337579&tin=02508201610067®Number=0000000000091857&sum=0 [18:31:24]OFD Sender: Processing packet 187445 [packets to send 49, broken 48] [18:31:24]ProducePacketName [18:31:24]name=ofd_packets/00187445 [18:31:24]OFD Sender: To server: pG, [18:31:24]CommunicateWithHost lk.salyk.kg:30040 [18:31:24]ConnectInit lk.salyk.kg [18:31:24]written 0, free lines is 4095 [18:31:24]Connected sock=10 [18:31:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E5 8D 04 01 ED 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 FC 74 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DC 02 00 35 04 06 00 8A 08 AB 00 F2 EB DB A3 CA 3A 1D B3 FD 31 [18:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F2 21 47 00 4C 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DC 02 00 F4 03 04 00 4C 1B B7 67 B6 04 01 00 00 8C 07 09 1D 62 DF 5E 77 [18:31:24]CommunicateWithHost err = 0 [18:31:24]CheckOFDResponse [18:31:24]1017 (14) - 77093643461234 [18:31:24]1041 (16) - 0000000000871826 [18:31:24]1040 (4) - 187445 [18:31:24]1012 (4) - 20.02.2025 12:08 [18:31:24]1206 (1) - 0 [18:31:24]OFD Sender: Remove packet 187445 [18:31:24]ProducePacketName [18:31:24]name=ofd_packets/00187445 [18:31:24]NVStorageDeleteData [18:31:24]Write to MH i2c: 01 00 00 80 22 A2 [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 07 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 07 00 80 22 00 00 00 00 00 FB 0C B0 [18:31:24]RasterBufferAndPrint [18:31:24]line [18:31:24]line [18:31:24]line [18:31:24]line [18:31:24]line [18:31:24]written 0, free lines is 3329 [18:31:24]MH_Cut [18:31:24]Write to MH i2c: D1 01 00 87 22 01 7B [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: D1 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: D1 01 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: D1 01 00 87 22 00 7A [18:31:24]Write to MH i2c: 01 00 00 88 22 AA [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:25]OFD Sender: No OFD packet to send [18:31:25]*** Cut start [18:31:25]*** Partial cut [18:31:25]*** CUTSNS_PIN = 1 [18:31:25]*** CUTSNS_PIN = 0 [18:31:25]*** Brake cut motor [18:31:26]Read from MH i2c: 01 [18:31:26]MH_I2C_Read... [18:31:26]*** Stop cut motor [18:31:26]*** Cut end [18:31:26]Read from MH i2c: 01 07 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: 01 07 00 88 22 00 00 00 00 00 FF 0F BF [18:31:26]process_action close_receipt done [18:31:26]requested_data is exist [18:31:26]produce_requested_data [18:31:26]requested_item fm.sn is exist - process it [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 11 00 00 [18:31:26]Write to MH i2c: E2 08 00 89 22 80 11 00 00 00 00 00 00 25 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 17 00 [18:31:26]MH_I2C_Read... [18:31:26]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 31 38 32 36 90 00 78 [18:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:31:26]wFMCommunicate OK [18:31:26]requested_item fd.num is exist - process it [18:31:26]SAM_PROTO_GetFieldsCounters [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 13 00 00 [18:31:26]Write to MH i2c: E2 08 00 8A 22 80 13 00 00 00 00 00 00 28 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 62 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 62 00 8A 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 DC 02 00 0E 04 04 00 88 02 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 CD [18: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 DC 02 00 0E 04 04 00 88 02 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 [18:31:26]wFMCommunicate OK [18:31:26]SAM_PROTO_GetFieldsCounters done [18:31:26]requested_item shift.num is exist - process it [18:31:26]requested_item shift.opened is exist - process it [18:31:26]req_shift_opened [18:31:26]FM_GetShiftState [18:31:26]SAM_PROTO_GetShiftState [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 13 01 00 [18:31:26]Write to MH i2c: E2 08 00 8B 22 80 13 01 00 00 00 00 00 2A [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 0E 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 0E 00 8B 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7C [18:31:26]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:31:26]wFMCommunicate OK [18:31:26]SAM_PROTO_GetShiftState done [18:31:26]FM_GetShiftState done [18:31:26]req_shift_opened done [18:31:26]requested_item shift.open_date is exist - process it [18:31:26]req_shift_open_date [18:31:26]req_shift_open_date done [18:31:26]produce_requested_data done [18:31:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187445,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:31:26]process_action_free close_receipt [18:31:26]json_value_free [18:31:26]json_value_free done [18:31:26]process_json_proto returns [18:31:26]Send response to host [18:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187445,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:31:26]free response buf [18:31:26]execute_script done [18:31:26]execute_script returns [18:31:26]free content buf [18:31:26]Sock 9.Close socket [18:31:26]Sock 9.Thread stoped [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:32:57]accept exits with 7 [18:32:57]New connection [18:32:57]New thread 3067420004 created [18:32:57]Thread 3067276644 joined [18:32:57]Waiting for new connection... [18:32:57] Sock 7.Parse request [18:32:57]Sock 7.Check first char [18:32:57]Sock 7.First char is OK [18:32:57]request: POST /json_proto HTTP/1.0 [18:32:57]Method: POST [18:32:57]URL: /json_proto [18:32:57]Method is POST - this is cgi request [18:32:57]url: /json_proto [18:32:57]query_string will be loaded in cgi processing [18:32:57]execute_cgi json_proto POST (null) [18:32:57]execute_cgi path=json_proto method=POST [18:32:57]POST find Content-Length [18:32:57]Host: 172.17.46.131:8080 [18:32:57]Content-Length: 789 [18:32:57]Content-Type: application/json [18:32:57] [18:32:57]POST finish read [18:32:57]Found Content-Length = 789 [18:32:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97983", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:57]execute_script... [18:32: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)412602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97983", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:57]POST & json_proto [18:32:57]process_json_proto [18:32:57]json parsed OK: [18:32:57]protocol is kg_v1.0 [18:32:57]action value=close_receipt [18:32:57]process_action close_receipt [18:32:57]cmd_close_receipt [18:32:57]MH_GetDate [18:32:57]Write to MH i2c: F0 00 00 8C 22 9D [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: F0 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: F0 09 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: F0 09 00 8C 22 00 5A 75 B7 67 7E 41 4F 65 06 [18:32:57]GetLastDocTimeStamp 1740076284 [18:32:57]current date 1740076378 [18:32:57]FM_GetShiftState [18:32:57]SAM_PROTO_GetShiftState [18:32:57]wFMCommunicate request_size=4 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 13 01 00 [18:32:57]Write to MH i2c: E2 08 00 8D 22 80 13 01 00 00 00 00 00 2C [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 0E 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 0E 00 8D 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7E [18:32:57]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:32:57]wFMCommunicate OK [18:32:57]SAM_PROTO_GetShiftState done [18:32:57]FM_GetShiftState done [18:32:57]opened in 1740011697 [18:32:57]opened+sec_in_day 1740098097 [18:32:57]quantity*price = 0 [18:32:57]sum+1 = 1 [18:32:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 247 20.02.2025 18:32 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 97983 ФМ: 0000000000871826 ФД: 187446 ФПД: 51548759105326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183259&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187446&fm=51548759105326&tin=02508201610067®Number=0000000000091857&sum=0 [18:32:58]StoreToDocumentArchive [18:32:58]shift 648 fd 187446 [18:32:58]save to /storage/0648/doc_00187446 [18:32:58]save last doc name /storage/0648/doc_00187446 to /storage/kkm_last_doc_name [18:32:58]save OK [18:32:58]Clear old archive folders... [18:32:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:32:58]tlvbuf is 00EA2E80 [18:32:58]SAM_PROTO_ClearQueue [18:32:58]wFMCommunicate request_size=4 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 09 00 00 [18:32:58]Write to MH i2c: E2 08 00 9A 22 80 09 00 00 00 00 00 00 2E [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:58]Read from MH i2c: E2 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 03 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 03 00 9A 22 00 90 00 30 [18:32:58]RAPDU: 90 00 [18:32:58]wFMCommunicate OK [18:32:58]SAM_PROTO_ClearQueue done [18:32:58]KKMCreateOFDPacket [18:32:58]OFDProtocolAddRootSTLVToBuf [18:32:58]FM_MakeSignedData [18:32:58]FM_MakeSignedData [18:32:58]SAM_PROTO_SignData [18:32:58]wFMCommunicate request_size=4 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 0D 01 02 [18:32:58]Write to MH i2c: E2 08 00 9B 22 80 0D 01 02 00 00 00 00 36 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:58]Read from MH i2c: E2 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 03 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 03 00 9B 22 00 90 00 31 [18:32:58]RAPDU: 90 00 [18:32:58]wFMCommunicate OK [18:32:58]wFMCommunicate request_size=255 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 5B 75 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DC 02 00 35 04 06 00 2E E2 21 79 [18:32:58]Write to MH i2c: E2 02 01 9C 22 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 5B 75 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DC 02 00 35 04 06 00 2E E2 21 79 00 00 F9 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:58]Read from MH i2c: E2 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 03 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 03 00 9C 22 00 90 00 32 [18:32:58]RAPDU: 90 00 [18:32:58]wFMCommunicate OK [18:32:58]wFMCommunicate request_size=7 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 0D 02 02 02 9F 2E [18:32:58]Write to MH i2c: E2 0A 00 9D 22 80 0D 02 02 02 00 9F 2E 00 00 0A [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:58]Read from MH i2c: E2 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 03 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 03 00 9D 22 00 90 00 33 [18:32:58]RAPDU: 90 00 [18:32:58]wFMCommunicate OK [18:32:58]wFMCommunicate request_size=4 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 0D 03 02 [18:32:58]Write to MH i2c: E2 08 00 9E 22 80 0D 03 02 00 00 00 00 3B [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:58]Read from MH i2c: E2 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 0B 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 0B 00 9E 22 00 AA 30 B4 2E 6B D6 C9 9B 90 00 9D [18:32:58]RAPDU: AA 30 B4 2E 6B D6 C9 9B 90 00 [18:32:58]wFMCommunicate OK [18:32:58]SAM_PROTO_SignData done [18:32:58]FM_MakeSignedData done [18:32:58]CreateOFDProtocolMessage [18:32:58]wFMCommunicate request_size=4 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 11 00 00 [18:32:58]Write to MH i2c: E2 08 00 9F 22 80 11 00 00 00 00 00 00 3B [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:58]Read from MH i2c: E2 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 17 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 17 00 9F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8E [18:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:32:58]wFMCommunicate OK [18:32:58]CreateOFDProtocolMessage done [18:32:58]OFDSenderStorePacket 187446 [18:32:58]StoreOFDPacket docnum=187446 [18:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 78 4F 04 01 C2 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 5B 75 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DC 02 00 35 04 06 00 2E E2 21 79 9F 2E AA 30 B4 2E 6B D6 C9 9B [18:32:58]CheckFolder [18:32:58]dirname=/storage/ofd_packets [18:32:58]CheckFolder done [18:32:58]ProducePacketName [18:32:58]name=ofd_packets/00187446 [18:32:58]NVStorageSaveData ofd_packets/00187446 [18:32:58]File name is /storage/ofd_packets/00187446 [18:32:58]Write 298 bytes [18:32:58]NVStorageSaveData done [18:32:58]OFDSenderStorePacket done [18:32:58]KKMCreateOFDPacket done [18:32:58]NVStorageSaveData kkm_last_timestamp [18:32:58]File name is /storage/kkm_last_timestamp [18:32:58]Write 4 bytes [18:32:58]NVStorageSaveData done [18:32:58]ExternCall_PrintAddStr [18:32:58]wPrintStart [18:32:58]Write to MH i2c: 01 00 00 A0 22 C2 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 07 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 07 00 A0 22 00 00 00 00 00 FF 0F D7 [18:32:58]RasterBufferAndPrint [18:32:58]line Счет N : (1)412602 [18:32:58]line ИНН: 02508201610067 [18:32:58]line Контрольно-Кассовый Чек [18:32:58]line ПРОДАЖА [18:32:58]line ТРК (МРК, ГНК) : 11 [18:32:58]line Товар: 2710194210 [18:32:58]line ДТ-К-2 [18:32:58]line 10.000 * 0.00 [18:32:58]line = 0.00 [18:32:58]line НДС 12% НСП 1% [18:32:58]line > о реализуемом товаре [18:32:58]line ИТОГО: 0.00 [18:32:58]line НСП 1% : 0.00 [18:32:58]line НДС 12% : 0.00 [18:32:58]line Наличными: 0.00 [18:32:58]line Безнал.: 0.00 [18:32:58]line Место: АЗС № 92 "Партнер Нефть" [18:32:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:32:58]line СНО: Общий режим [18:32:58]line Чек 247 20.02.2025 18:32 [18:32:58]line Смена: 648 ФФД: 1.0 [18:32:58]line ЗНМ: 0300000118 [18:32:58]line РНМ: 0000000000091857 [18:32:58]line Версия ККМ: 001 [18:32:58]line Талоны: Топливная Карта [18:32:58]line 97983 [18:32:58]line ФМ: 0000000000871826 [18:32:58]line ФД: 187446 [18:32:58]line ФПД: 51548759105326 [18:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183259&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187446&fm=51548759105326&tin=02508201610067®Number=0000000000091857&sum=0 [18:32:59]OFD Sender: Processing packet 187446 [packets to send 49, broken 48] [18:32:59]ProducePacketName [18:32:59]name=ofd_packets/00187446 [18:32:59]OFD Sender: To server: pG, [18:32:59]CommunicateWithHost lk.salyk.kg:30040 [18:32:59]ConnectInit lk.salyk.kg [18:32:59]written 0, free lines is 4095 [18:32:59]Connected sock=10 [18: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 31 38 32 36 0C 01 00 00 78 4F 04 01 C2 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 5B 75 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DC 02 00 35 04 06 00 2E E2 21 79 9F 2E AA 30 B4 2E 6B D6 C9 9B [18:32:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2A D4 47 00 58 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 31 38 32 36 10 04 04 00 36 DC 02 00 F4 03 04 00 AB 1B B7 67 B6 04 01 00 00 8F 46 41 35 B7 F1 9C 1D [18:32:59]CommunicateWithHost err = 0 [18:32:59]CheckOFDResponse [18:32:59]1017 (14) - 77093643461234 [18:32:59]1041 (16) - 0000000000871826 [18:32:59]1040 (4) - 187446 [18:32:59]1012 (4) - 20.02.2025 12:10 [18:32:59]1206 (1) - 0 [18:32:59]OFD Sender: Remove packet 187446 [18:32:59]ProducePacketName [18:32:59]name=ofd_packets/00187446 [18:32:59]NVStorageDeleteData [18:32:59]Write to MH i2c: 01 00 00 CA 22 EC [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: 01 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: 01 07 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: 01 07 00 CA 22 00 00 00 00 00 00 0D 00 [18:32:59]RasterBufferAndPrint [18:32:59]line [18:32:59]line [18:32:59]line [18:32:59]line [18:32:59]line [18:32:59]written 0, free lines is 3334 [18:32:59]MH_Cut [18:32:59]Write to MH i2c: D1 01 00 D1 22 01 C5 [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: D1 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: D1 01 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: D1 01 00 D1 22 00 C4 [18:32:59]Write to MH i2c: 01 00 00 D2 22 F4 [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:33:00]OFD Sender: No OFD packet to send [18:33:00]*** Cut start [18:33:00]*** Partial cut [18:33:00]*** CUTSNS_PIN = 1 [18:33:00]*** CUTSNS_PIN = 0 [18:33:00]*** Brake cut motor [18:33:00]Read from MH i2c: 01 [18:33:01]MH_I2C_Read... [18:33:01]*** Stop cut motor [18:33:01]*** Cut end [18:33:01]Read from MH i2c: 01 07 00 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: 01 07 00 D2 22 00 00 00 00 00 FF 0F 09 [18:33:01]process_action close_receipt done [18:33:01]requested_data is exist [18:33:01]produce_requested_data [18:33:01]requested_item fm.sn is exist - process it [18:33:01]wFMCommunicate request_size=4 [18:33:01]MH_SAM_APDU [18:33:01]CAPDU: 80 11 00 00 [18:33:01]Write to MH i2c: E2 08 00 D3 22 80 11 00 00 00 00 00 00 6F [18:33:01]Write i2c OK [18:33:01]MH_I2C_Read... [18:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:01]Read from MH i2c: E2 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: E2 17 00 [18:33:01]MH_I2C_Read... [18:33:01]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 31 38 32 36 90 00 C2 [18:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:33:01]wFMCommunicate OK [18:33:01]requested_item fd.num is exist - process it [18:33:01]SAM_PROTO_GetFieldsCounters [18:33:01]wFMCommunicate request_size=4 [18:33:01]MH_SAM_APDU [18:33:01]CAPDU: 80 13 00 00 [18:33:01]Write to MH i2c: E2 08 00 D4 22 80 13 00 00 00 00 00 00 72 [18:33:01]Write i2c OK [18:33:01]MH_I2C_Read... [18:33:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:01]Read from MH i2c: E2 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: E2 62 00 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: E2 62 00 D4 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DC 02 00 0E 04 04 00 88 02 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 1B [18:33:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DC 02 00 0E 04 04 00 88 02 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 [18:33:01]wFMCommunicate OK [18:33:01]SAM_PROTO_GetFieldsCounters done [18:33:01]requested_item shift.num is exist - process it [18:33:01]requested_item shift.opened is exist - process it [18:33:01]req_shift_opened [18:33:01]FM_GetShiftState [18:33:01]SAM_PROTO_GetShiftState [18:33:01]wFMCommunicate request_size=4 [18:33:01]MH_SAM_APDU [18:33:01]CAPDU: 80 13 01 00 [18:33:01]Write to MH i2c: E2 08 00 D5 22 80 13 01 00 00 00 00 00 74 [18:33:01]Write i2c OK [18:33:01]MH_I2C_Read... [18:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:01]Read from MH i2c: E2 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: E2 0E 00 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: E2 0E 00 D5 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C6 [18:33:01]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:33:01]wFMCommunicate OK [18:33:01]SAM_PROTO_GetShiftState done [18:33:01]FM_GetShiftState done [18:33:01]req_shift_opened done [18:33:01]requested_item shift.open_date is exist - process it [18:33:01]req_shift_open_date [18:33:01]req_shift_open_date done [18:33:01]produce_requested_data done [18:33:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187446,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:33:01]process_action_free close_receipt [18:33:01]json_value_free [18:33:01]json_value_free done [18:33:01]process_json_proto returns [18:33:01]Send response to host [18:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187446,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:33:01]free response buf [18:33:01]execute_script done [18:33:01]execute_script returns [18:33:01]free content buf [18:33:01]Sock 7.Close socket [18:33:01]Sock 7.Thread stoped [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:23]accept exits with 9 [18:36:23]New connection [18:36:23]New thread 3067276644 created [18:36:23]Thread 3067420004 joined [18:36:23]Waiting for new connection... [18:36:23] Sock 9.Parse request [18:36:23]Sock 9.Check first char [18:36:23]Sock 9.First char is OK [18:36:23]request: POST /json_proto HTTP/1.0 [18:36:23]Method: POST [18:36:23]URL: /json_proto [18:36:23]Method is POST - this is cgi request [18:36:23]url: /json_proto [18:36:23]query_string will be loaded in cgi processing [18:36:23]execute_cgi json_proto POST (null) [18:36:23]execute_cgi path=json_proto method=POST [18:36:23]POST find Content-Length [18:36:23]Host: 172.17.46.131:8080 [18:36:23]Content-Length: 799 [18:36:23]Content-Type: application/json [18:36:23] [18:36:23]POST finish read [18:36:23]Found Content-Length = 799 [18:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:23]execute_script... [18: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)412606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:23]POST & json_proto [18:36:23]process_json_proto [18:36:23]json parsed OK: [18:36:23]protocol is kg_v1.0 [18:36:23]action value=close_receipt [18:36:23]process_action close_receipt [18:36:23]cmd_close_receipt [18:36:23]MH_GetDate [18:36:23]Write to MH i2c: F0 00 00 D6 22 E7 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: F0 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: F0 09 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: F0 09 00 D6 22 00 29 76 B7 67 7E 41 4F 65 20 [18:36:23]GetLastDocTimeStamp 1740076379 [18:36:23]current date 1740076585 [18:36:23]FM_GetShiftState [18:36:23]SAM_PROTO_GetShiftState [18:36:23]wFMCommunicate request_size=4 [18:36:23]MH_SAM_APDU [18:36:23]CAPDU: 80 13 01 00 [18:36:23]Write to MH i2c: E2 08 00 D7 22 80 13 01 00 00 00 00 00 76 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 0E 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 0E 00 D7 22 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C8 [18:36:24]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:36:24]wFMCommunicate OK [18:36:24]SAM_PROTO_GetShiftState done [18:36:24]FM_GetShiftState done [18:36:24]opened in 1740011697 [18:36:24]opened+sec_in_day 1740098097 [18:36:24]quantity*price = 200013 [18:36:24]sum+1 = 200014 [18:36:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 248 20.02.2025 18:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187447 ФПД: 232168842295720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183625&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187447&fm=232168842295720&tin=02508201610067®Number=0000000000091857&sum=200013 [18:36:25]StoreToDocumentArchive [18:36:25]shift 648 fd 187447 [18:36:25]save to /storage/0648/doc_00187447 [18:36:25]save last doc name /storage/0648/doc_00187447 to /storage/kkm_last_doc_name [18:36:25]save OK [18:36:25]Clear old archive folders... [18:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:36:25]tlvbuf is 00EA8E10 [18:36:25]SAM_PROTO_ClearQueue [18:36:25]wFMCommunicate request_size=4 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 09 00 00 [18:36:25]Write to MH i2c: E2 08 00 E4 22 80 09 00 00 00 00 00 00 78 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 E4 22 00 90 00 7A [18:36:25]RAPDU: 90 00 [18:36:25]wFMCommunicate OK [18:36:25]SAM_PROTO_ClearQueue done [18:36:25]KKMCreateOFDPacket [18:36:25]OFDProtocolAddRootSTLVToBuf [18:36:25]FM_MakeSignedData [18:36:25]FM_MakeSignedData [18:36:25]SAM_PROTO_SignData [18:36:25]wFMCommunicate request_size=4 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 0D 01 02 [18:36:25]Write to MH i2c: E2 08 00 E5 22 80 0D 01 02 00 00 00 00 80 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 E5 22 00 90 00 7B [18:36:25]RAPDU: 90 00 [18:36:25]wFMCommunicate OK [18:36:25]wFMCommunicate request_size=255 [18:36:25]MH_SAM_APDU [18:36: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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 29 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DC 02 00 35 04 06 00 D3 28 05 5F [18:36:25]Write to MH i2c: E2 02 01 E6 22 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 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 29 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DC 02 00 35 04 06 00 D3 28 05 5F 00 00 67 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]OFD Sender: No OFD packet to send [18:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 E6 22 00 90 00 7C [18:36:25]RAPDU: 90 00 [18:36:25]wFMCommunicate OK [18:36:25]wFMCommunicate request_size=7 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 0D 02 02 02 79 A8 [18:36:25]Write to MH i2c: E2 0A 00 E7 22 80 0D 02 02 02 00 79 A8 00 00 A8 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 E7 22 00 90 00 7D [18:36:25]RAPDU: 90 00 [18:36:25]wFMCommunicate OK [18:36:25]wFMCommunicate request_size=4 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 0D 03 02 [18:36:25]Write to MH i2c: E2 08 00 E8 22 80 0D 03 02 00 00 00 00 85 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 0B 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 0B 00 E8 22 00 A6 EC E9 56 44 78 D3 52 90 00 38 [18:36:25]RAPDU: A6 EC E9 56 44 78 D3 52 90 00 [18:36:25]wFMCommunicate OK [18:36:25]SAM_PROTO_SignData done [18:36:25]FM_MakeSignedData done [18:36:25]CreateOFDProtocolMessage [18:36:25]wFMCommunicate request_size=4 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 11 00 00 [18:36:25]Write to MH i2c: E2 08 00 E9 22 80 11 00 00 00 00 00 00 85 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 17 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 17 00 E9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [18:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:36:25]wFMCommunicate OK [18:36:25]CreateOFDProtocolMessage done [18:36:25]OFDSenderStorePacket 187447 [18:36:25]StoreOFDPacket docnum=187447 [18:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A4 E2 04 01 0F 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 29 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DC 02 00 35 04 06 00 D3 28 05 5F 79 A8 A6 EC E9 56 44 78 D3 52 [18:36:25]CheckFolder [18:36:25]dirname=/storage/ofd_packets [18:36:25]CheckFolder done [18:36:25]ProducePacketName [18:36:25]name=ofd_packets/00187447 [18:36:25]NVStorageSaveData ofd_packets/00187447 [18:36:25]File name is /storage/ofd_packets/00187447 [18:36:25]Write 298 bytes [18:36:25]NVStorageSaveData done [18:36:25]OFDSenderStorePacket done [18:36:25]KKMCreateOFDPacket done [18:36:25]NVStorageSaveData kkm_last_timestamp [18:36:25]File name is /storage/kkm_last_timestamp [18:36:25]Write 4 bytes [18:36:25]NVStorageSaveData done [18:36:25]ExternCall_PrintAddStr [18:36:25]wPrintStart [18:36:25]Write to MH i2c: 01 00 00 EA 22 0C [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 07 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 07 00 EA 22 00 00 00 00 00 FF 0F 21 [18:36:25]RasterBufferAndPrint [18:36:25]line Счет N : (1)412606 [18:36:25]line ИНН: 02508201610067 [18:36:25]line Контрольно-Кассовый Чек [18:36:25]line ПРОДАЖА [18:36:25]line ТРК (МРК, ГНК) : 5 [18:36:25]line Товар: 2710194210 [18:36:25]line ДТ-К-5 [18:36:25]line 27.550 * 72.60 [18:36:25]line = 2000.13 [18:36:25]line НДС 12% НСП 1% [18:36:25]line > о реализуемом товаре [18:36:25]line ИТОГО: 2000.13 [18:36:25]line НСП 1% : 17.70 [18:36:25]line НДС 12% : 212.40 [18:36:25]line Наличными: 0.00 [18:36:25]line Безнал.: 2000.13 [18:36:25]line Место: АЗС № 92 "Партнер Нефть" [18:36:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:36:25]line СНО: Общий режим [18:36:25]line Чек 248 20.02.2025 18:36 [18:36:25]line Смена: 648 ФФД: 1.0 [18:36:25]line ЗНМ: 0300000118 [18:36:25]line РНМ: 0000000000091857 [18:36:25]line Версия ККМ: 001 [18:36:25]line Платежная система: O! деньги [18:36:25]line ФМ: 0000000000871826 [18:36:25]line ФД: 187447 [18:36:25]line ФПД: 232168842295720 [18:36:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183625&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187447&fm=232168842295720&tin=02508201610067®Number=0000000000091857&sum=200013 [18:36:26]OFD Sender: Processing packet 187447 [packets to send 49, broken 48] [18:36:26]ProducePacketName [18:36:26]name=ofd_packets/00187447 [18:36:26]OFD Sender: To server: pG, [18:36:26]CommunicateWithHost lk.salyk.kg:30040 [18:36:26]ConnectInit lk.salyk.kg [18:36:26]written 0, free lines is 4095 [18:36:26]Connected sock=11 [18:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A4 E2 04 01 0F 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 29 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DC 02 00 35 04 06 00 D3 28 05 5F 79 A8 A6 EC E9 56 44 78 D3 52 [18:36:26]Write to MH i2c: 01 00 00 14 23 37 [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 07 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 07 00 14 23 00 00 00 00 00 02 0D 4D [18:36:26]RasterBufferAndPrint [18:36:26]line [18:36:26]line [18:36:26]line [18:36:26]line [18:36:26]line [18:36:26]written 0, free lines is 3336 [18:36:26]MH_Cut [18:36:26]Write to MH i2c: D1 01 00 1B 23 01 10 [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: D1 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: D1 01 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: D1 01 00 1B 23 00 0F [18:36:26]Write to MH i2c: 01 00 00 1C 23 3F [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D0 5C 47 00 D0 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 31 38 32 36 10 04 04 00 37 DC 02 00 F4 03 04 00 7A 1C B7 67 B6 04 01 00 00 DB 18 FD B5 00 98 23 E2 [18:36:26]CommunicateWithHost err = 0 [18:36:26]CheckOFDResponse [18:36:26]1017 (14) - 77093643461234 [18:36:26]1041 (16) - 0000000000871826 [18:36:26]1040 (4) - 187447 [18:36:26]1012 (4) - 20.02.2025 12:13 [18:36:26]1206 (1) - 0 [18:36:26]OFD Sender: Remove packet 187447 [18:36:26]ProducePacketName [18:36:26]name=ofd_packets/00187447 [18:36:26]NVStorageDeleteData [18:36:27]OFD Sender: No OFD packet to send [18:36:27]*** Cut start [18:36:27]*** Partial cut [18:36:27]*** CUTSNS_PIN = 1 [18:36:27]*** CUTSNS_PIN = 0 [18:36:27]*** Brake cut motor [18:36:27]Read from MH i2c: 01 [18:36:27]MH_I2C_Read... [18:36:27]*** Stop cut motor [18:36:27]*** Cut end [18:36:27]Read from MH i2c: 01 07 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: 01 07 00 1C 23 00 00 00 00 00 FF 0F 54 [18:36:27]process_action close_receipt done [18:36:27]requested_data is exist [18:36:27]produce_requested_data [18:36:27]requested_item fm.sn is exist - process it [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 11 00 00 [18:36:27]Write to MH i2c: E2 08 00 1D 23 80 11 00 00 00 00 00 00 BA [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 17 00 [18:36:27]MH_I2C_Read... [18:36:27]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 31 38 32 36 90 00 0D [18:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:36:27]wFMCommunicate OK [18:36:27]requested_item fd.num is exist - process it [18:36:27]SAM_PROTO_GetFieldsCounters [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 13 00 00 [18:36:27]Write to MH i2c: E2 08 00 1E 23 80 13 00 00 00 00 00 00 BD [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:28]Read from MH i2c: E2 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: E2 62 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: E2 62 00 1E 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 37 DC 02 00 0E 04 04 00 88 02 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 6A [18:36:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 37 DC 02 00 0E 04 04 00 88 02 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 [18:36:28]wFMCommunicate OK [18:36:28]SAM_PROTO_GetFieldsCounters done [18:36:28]requested_item shift.num is exist - process it [18:36:28]requested_item shift.opened is exist - process it [18:36:28]req_shift_opened [18:36:28]FM_GetShiftState [18:36:28]SAM_PROTO_GetShiftState [18:36:28]wFMCommunicate request_size=4 [18:36:28]MH_SAM_APDU [18:36:28]CAPDU: 80 13 01 00 [18:36:28]Write to MH i2c: E2 08 00 1F 23 80 13 01 00 00 00 00 00 BF [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:28]Read from MH i2c: E2 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: E2 0E 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: E2 0E 00 1F 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 11 [18:36:28]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:36:28]wFMCommunicate OK [18:36:28]SAM_PROTO_GetShiftState done [18:36:28]FM_GetShiftState done [18:36:28]req_shift_opened done [18:36:28]requested_item shift.open_date is exist - process it [18:36:28]req_shift_open_date [18:36:28]req_shift_open_date done [18:36:28]produce_requested_data done [18:36:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187447,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:36:28]process_action_free close_receipt [18:36:28]json_value_free [18:36:28]json_value_free done [18:36:28]process_json_proto returns [18:36:28]Send response to host [18:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187447,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:36:28]free response buf [18:36:28]execute_script done [18:36:28]execute_script returns [18:36:28]free content buf [18:36:28]Sock 9.Close socket [18:36:28]Sock 9.Thread stoped [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:10]accept exits with 7 [18:37:10]New connection [18:37:10]New thread 3067420004 created [18:37:10]Thread 3067276644 joined [18:37:10]Waiting for new connection... [18:37:10] Sock 7.Parse request [18:37:10]Sock 7.Check first char [18:37:10]Sock 7.First char is OK [18:37:10]request: POST /json_proto HTTP/1.0 [18:37:10]Method: POST [18:37:10]URL: /json_proto [18:37:10]Method is POST - this is cgi request [18:37:10]url: /json_proto [18:37:10]query_string will be loaded in cgi processing [18:37:10]execute_cgi json_proto POST (null) [18:37:10]execute_cgi path=json_proto method=POST [18:37:10]POST find Content-Length [18:37:10]Host: 172.17.46.131:8080 [18:37:10]Content-Length: 682 [18:37:10]Content-Type: application/json [18:37:10] [18:37:10]POST finish read [18:37:10]Found Content-Length = 682 [18:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:10]execute_script... [18:37:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:10]POST & json_proto [18:37:10]process_json_proto [18:37:10]json parsed OK: [18:37:10]protocol is kg_v1.0 [18:37:10]action value=close_receipt [18:37:10]process_action close_receipt [18:37:10]cmd_close_receipt [18:37:10]MH_GetDate [18:37:10]Write to MH i2c: F0 00 00 20 23 32 [18:37:10]Write i2c OK [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: F0 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: F0 09 00 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: F0 09 00 20 23 00 58 76 B7 67 7E 41 4F 65 9A [18:37:10]GetLastDocTimeStamp 1740076585 [18:37:10]current date 1740076632 [18:37:10]FM_GetShiftState [18:37:10]SAM_PROTO_GetShiftState [18:37:10]wFMCommunicate request_size=4 [18:37:10]MH_SAM_APDU [18:37:10]CAPDU: 80 13 01 00 [18:37:10]Write to MH i2c: E2 08 00 21 23 80 13 01 00 00 00 00 00 C1 [18:37:10]Write i2c OK [18:37:10]MH_I2C_Read... [18:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:10]Read from MH i2c: E2 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: E2 0E 00 [18:37:10]MH_I2C_Read... [18:37:10]Read from MH i2c: E2 0E 00 21 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 13 [18:37:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:37:10]wFMCommunicate OK [18:37:10]SAM_PROTO_GetShiftState done [18:37:10]FM_GetShiftState done [18:37:10]opened in 1740011697 [18:37:10]opened+sec_in_day 1740098097 [18:37:10]quantity*price = 200047 [18:37:10]sum+1 = 200048 [18:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 249 20.02.2025 18:37 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187448 ФПД: 168550885215535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183712&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187448&fm=168550885215535&tin=02508201610067®Number=0000000000091857&sum=200000 [18:37:11]StoreToDocumentArchive [18:37:11]shift 648 fd 187448 [18:37:11]save to /storage/0648/doc_00187448 [18:37:11]save last doc name /storage/0648/doc_00187448 to /storage/kkm_last_doc_name [18:37:11]save OK [18:37:11]Clear old archive folders... [18:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:11]tlvbuf is B6FCA380 [18:37:11]SAM_PROTO_ClearQueue [18:37:11]wFMCommunicate request_size=4 [18:37:11]MH_SAM_APDU [18:37:11]CAPDU: 80 09 00 00 [18:37:11]Write to MH i2c: E2 08 00 2E 23 80 09 00 00 00 00 00 00 C3 [18:37:11]Write i2c OK [18:37:11]MH_I2C_Read... [18:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:11]Read from MH i2c: E2 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 03 00 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 03 00 2E 23 00 90 00 C5 [18:37:11]RAPDU: 90 00 [18:37:11]wFMCommunicate OK [18:37:11]SAM_PROTO_ClearQueue done [18:37:11]KKMCreateOFDPacket [18:37:11]OFDProtocolAddRootSTLVToBuf [18:37:11]FM_MakeSignedData [18:37:11]FM_MakeSignedData [18:37:11]SAM_PROTO_SignData [18:37:11]wFMCommunicate request_size=4 [18:37:11]MH_SAM_APDU [18:37:11]CAPDU: 80 0D 01 02 [18:37:11]Write to MH i2c: E2 08 00 2F 23 80 0D 01 02 00 00 00 00 CB [18:37:11]Write i2c OK [18:37:11]MH_I2C_Read... [18:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:11]Read from MH i2c: E2 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 03 00 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 03 00 2F 23 00 90 00 C6 [18:37:11]RAPDU: 90 00 [18:37:11]wFMCommunicate OK [18:37:11]wFMCommunicate request_size=255 [18:37:11]MH_SAM_APDU [18:37:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 F9 00 00 00 F4 03 04 00 58 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DC 02 00 35 04 06 00 99 [18:37:11]Write to MH i2c: E2 02 01 30 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 F9 00 00 00 F4 03 04 00 58 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DC 02 00 35 04 06 00 99 00 00 B0 [18:37:11]Write i2c OK [18:37:11]MH_I2C_Read... [18:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:11]Read from MH i2c: E2 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 03 00 [18:37:11]MH_I2C_Read... [18:37:11]Read from MH i2c: E2 03 00 30 23 00 90 00 C7 [18:37:11]RAPDU: 90 00 [18:37:11]wFMCommunicate OK [18:37:11]wFMCommunicate request_size=10 [18:37:11]MH_SAM_APDU [18:37:11]CAPDU: 80 0D 02 02 05 4B CF A3 CD 2F [18:37:11]Write to MH i2c: E2 0D 00 31 23 80 0D 02 02 05 00 4B CF A3 CD 2F 00 00 91 [18:37:11]Write i2c OK [18:37:11]MH_I2C_Read... [18:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:12]Read from MH i2c: E2 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: E2 03 00 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: E2 03 00 31 23 00 90 00 C8 [18:37:12]RAPDU: 90 00 [18:37:12]wFMCommunicate OK [18:37:12]wFMCommunicate request_size=4 [18:37:12]MH_SAM_APDU [18:37:12]CAPDU: 80 0D 03 02 [18:37:12]Write to MH i2c: E2 08 00 32 23 80 0D 03 02 00 00 00 00 D0 [18:37:12]Write i2c OK [18:37:12]MH_I2C_Read... [18:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:12]Read from MH i2c: E2 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: E2 0B 00 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: E2 0B 00 32 23 00 46 D0 D2 17 16 C3 C1 3C 90 00 A6 [18:37:12]RAPDU: 46 D0 D2 17 16 C3 C1 3C 90 00 [18:37:12]wFMCommunicate OK [18:37:12]SAM_PROTO_SignData done [18:37:12]FM_MakeSignedData done [18:37:12]CreateOFDProtocolMessage [18:37:12]wFMCommunicate request_size=4 [18:37:12]MH_SAM_APDU [18:37:12]CAPDU: 80 11 00 00 [18:37:12]Write to MH i2c: E2 08 00 33 23 80 11 00 00 00 00 00 00 D0 [18:37:12]Write i2c OK [18:37:12]MH_I2C_Read... [18:37:12]OFD Sender: No OFD packet to send [18:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:12]Read from MH i2c: E2 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: E2 17 00 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: E2 17 00 33 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 23 [18:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:37:12]wFMCommunicate OK [18:37:12]CreateOFDProtocolMessage done [18:37:12]OFDSenderStorePacket 187448 [18:37:12]StoreOFDPacket docnum=187448 [18:37:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 16 DD 07 01 03 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 F9 00 00 00 F4 03 04 00 58 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DC 02 00 35 04 06 00 99 4B CF A3 CD 2F 46 D0 D2 17 16 C3 C1 3C [18:37:12]CheckFolder [18:37:12]dirname=/storage/ofd_packets [18:37:12]CheckFolder done [18:37:12]ProducePacketName [18:37:12]name=ofd_packets/00187448 [18:37:12]NVStorageSaveData ofd_packets/00187448 [18:37:12]File name is /storage/ofd_packets/00187448 [18:37:12]Write 301 bytes [18:37:12]NVStorageSaveData done [18:37:12]OFDSenderStorePacket done [18:37:12]KKMCreateOFDPacket done [18:37:12]NVStorageSaveData kkm_last_timestamp [18:37:12]File name is /storage/kkm_last_timestamp [18:37:12]Write 4 bytes [18:37:12]NVStorageSaveData done [18:37:12]ExternCall_PrintAddStr [18:37:12]wPrintStart [18:37:12]Write to MH i2c: 01 00 00 34 23 57 [18:37:12]Write i2c OK [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: 01 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: 01 07 00 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: 01 07 00 34 23 00 00 00 00 00 FF 0F 6C [18:37:12]RasterBufferAndPrint [18:37:12]line Счет N : (1)412607 [18:37:12]line ИНН: 02508201610067 [18:37:12]line Контрольно-Кассовый Чек [18:37:12]line ПРОДАЖА [18:37:12]line ТРК (МРК, ГНК) : 12 [18:37:12]line Товар: 2710124130 [18:37:12]line Аи-92-К-2 [18:37:12]line 31.160 * 64.20 [18:37:12]line = 2000.47 [18:37:12]line НДС 12% НСП 1% [18:37:12]line > о реализуемом товаре [18:37:12]line ОКРУГЛЕНИЕ: -0.47 [18:37:12]line ИТОГО: 2000.00 [18:37:12]line Внесено: 2000.00 [18:37:12]line СДАЧА: 0.00 [18:37:12]line НСП 1% : 17.70 [18:37:12]line НДС 12% : 212.44 [18:37:12]line Наличными: 2000.00 [18:37:12]line Безнал.: 0.00 [18:37:12]line Место: АЗС № 92 "Партнер Нефть" [18:37:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:37:12]line СНО: Общий режим [18:37:12]line Чек 249 20.02.2025 18:37 [18:37:12]line Смена: 648 ФФД: 1.0 [18:37:12]line ЗНМ: 0300000118 [18:37:12]line РНМ: 0000000000091857 [18:37:12]line Версия ККМ: 001 [18:37:12]line ФМ: 0000000000871826 [18:37:12]line ФД: 187448 [18:37:12]line ФПД: 168550885215535 [18:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183712&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187448&fm=168550885215535&tin=02508201610067®Number=0000000000091857&sum=200000 [18:37:12]OFD Sender: Processing packet 187448 [packets to send 49, broken 48] [18:37:12]ProducePacketName [18:37:12]name=ofd_packets/00187448 [18:37:12]OFD Sender: To server: pG, [18:37:12]CommunicateWithHost lk.salyk.kg:30040 [18:37:12]ConnectInit lk.salyk.kg [18:37:12]written 0, free lines is 4095 [18:37:12]Connected sock=10 [18:37:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 16 DD 07 01 03 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 F9 00 00 00 F4 03 04 00 58 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DC 02 00 35 04 06 00 99 4B CF A3 CD 2F 46 D0 D2 17 16 C3 C1 3C [18:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 17 73 47 00 42 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DC 02 00 F4 03 04 00 A8 1C B7 67 B6 04 01 00 00 0A 8B 3F EB 46 B2 FF E2 [18:37:12]CommunicateWithHost err = 0 [18:37:12]CheckOFDResponse [18:37:12]1017 (14) - 77093643461234 [18:37:12]1041 (16) - 0000000000871826 [18:37:12]1040 (4) - 187448 [18:37:12]1012 (4) - 20.02.2025 12:14 [18:37:12]1206 (1) - 0 [18:37:12]OFD Sender: Remove packet 187448 [18:37:12]ProducePacketName [18:37:12]name=ofd_packets/00187448 [18:37:12]NVStorageDeleteData [18:37:12]Write to MH i2c: 01 00 00 5F 23 82 [18:37:12]Write i2c OK [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: 01 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: 01 07 00 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: 01 07 00 5F 23 00 00 00 00 00 F7 0C 8C [18:37:12]RasterBufferAndPrint [18:37:12]line [18:37:12]line [18:37:12]line [18:37:12]line [18:37:12]line [18:37:12]written 0, free lines is 3328 [18:37:12]MH_Cut [18:37:12]Write to MH i2c: D1 01 00 66 23 01 5B [18:37:12]Write i2c OK [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: D1 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: D1 01 00 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: D1 01 00 66 23 00 5A [18:37:12]Write to MH i2c: 01 00 00 67 23 8A [18:37:12]Write i2c OK [18:37:12]MH_I2C_Read... [18:37:13]OFD Sender: No OFD packet to send [18:37:13]*** Cut start [18:37:13]*** Partial cut [18:37:13]*** CUTSNS_PIN = 1 [18:37:13]*** CUTSNS_PIN = 0 [18:37:13]*** Brake cut motor [18:37:14]Read from MH i2c: 01 [18:37:14]MH_I2C_Read... [18:37:14]*** Stop cut motor [18:37:14]*** Cut end [18:37:14]Read from MH i2c: 01 07 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: 01 07 00 67 23 00 00 00 00 00 FF 0F 9F [18:37:14]process_action close_receipt done [18:37:14]requested_data is exist [18:37:14]produce_requested_data [18:37:14]requested_item fm.sn is exist - process it [18:37:14]wFMCommunicate request_size=4 [18:37:14]MH_SAM_APDU [18:37:14]CAPDU: 80 11 00 00 [18:37:14]Write to MH i2c: E2 08 00 68 23 80 11 00 00 00 00 00 00 05 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:14]Read from MH i2c: E2 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 17 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 17 00 68 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [18:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:37:14]wFMCommunicate OK [18:37:14]requested_item fd.num is exist - process it [18:37:14]SAM_PROTO_GetFieldsCounters [18:37:14]wFMCommunicate request_size=4 [18:37:14]MH_SAM_APDU [18:37:14]CAPDU: 80 13 00 00 [18:37:14]Write to MH i2c: E2 08 00 69 23 80 13 00 00 00 00 00 00 08 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:14]Read from MH i2c: E2 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 62 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 62 00 69 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 DC 02 00 0E 04 04 00 88 02 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 B9 [18:37:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 DC 02 00 0E 04 04 00 88 02 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 [18:37:14]wFMCommunicate OK [18:37:14]SAM_PROTO_GetFieldsCounters done [18:37:14]requested_item shift.num is exist - process it [18:37:14]requested_item shift.opened is exist - process it [18:37:14]req_shift_opened [18:37:14]FM_GetShiftState [18:37:14]SAM_PROTO_GetShiftState [18:37:14]wFMCommunicate request_size=4 [18:37:14]MH_SAM_APDU [18:37:14]CAPDU: 80 13 01 00 [18:37:14]Write to MH i2c: E2 08 00 6A 23 80 13 01 00 00 00 00 00 0A [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:14]Read from MH i2c: E2 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 0E 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 0E 00 6A 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5C [18:37:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:37:14]wFMCommunicate OK [18:37:14]SAM_PROTO_GetShiftState done [18:37:14]FM_GetShiftState done [18:37:14]req_shift_opened done [18:37:14]requested_item shift.open_date is exist - process it [18:37:14]req_shift_open_date [18:37:14]req_shift_open_date done [18:37:14]produce_requested_data done [18:37:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187448,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:37:14]process_action_free close_receipt [18:37:14]json_value_free [18:37:14]json_value_free done [18:37:14]process_json_proto returns [18:37:14]Send response to host [18:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187448,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:37:14]free response buf [18:37:14]execute_script done [18:37:14]execute_script returns [18:37:14]free content buf [18:37:14]Sock 7.Close socket [18:37:14]Sock 7.Thread stoped [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:46]accept exits with 9 [18:38:46]New connection [18:38:46]New thread 3067276644 created [18:38:46]Thread 3067420004 joined [18:38:46]Waiting for new connection... [18:38:46] Sock 9.Parse request [18:38:46]Sock 9.Check first char [18:38:46]Sock 9.First char is OK [18:38:46]request: POST /json_proto HTTP/1.0 [18:38:46]Method: POST [18:38:46]URL: /json_proto [18:38:46]Method is POST - this is cgi request [18:38:46]url: /json_proto [18:38:46]query_string will be loaded in cgi processing [18:38:46]execute_cgi json_proto POST (null) [18:38:46]execute_cgi path=json_proto method=POST [18:38:46]POST find Content-Length [18:38:46]Host: 172.17.46.131:8080 [18:38:46]Content-Length: 678 [18:38:46]Content-Type: application/json [18:38:46] [18:38:46]POST finish read [18:38:46]Found Content-Length = 678 [18:38:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:38:46]execute_script... [18:38: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)412608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:38:46]POST & json_proto [18:38:46]process_json_proto [18:38:46]json parsed OK: [18:38:46]protocol is kg_v1.0 [18:38:46]action value=close_receipt [18:38:46]process_action close_receipt [18:38:46]cmd_close_receipt [18:38:46]MH_GetDate [18:38:46]Write to MH i2c: F0 00 00 6B 23 7D [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: F0 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: F0 09 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: F0 09 00 6B 23 00 B8 76 B7 67 7E 41 4F 65 45 [18:38:46]GetLastDocTimeStamp 1740076632 [18:38:46]current date 1740076728 [18:38:46]FM_GetShiftState [18:38:46]SAM_PROTO_GetShiftState [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 13 01 00 [18:38:46]Write to MH i2c: E2 08 00 6C 23 80 13 01 00 00 00 00 00 0C [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 0E 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 0E 00 6C 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 5E [18:38:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:38:46]wFMCommunicate OK [18:38:46]SAM_PROTO_GetShiftState done [18:38:46]FM_GetShiftState done [18:38:46]opened in 1740011697 [18:38:46]opened+sec_in_day 1740098097 [18:38:46]quantity*price = 100042 [18:38:46]sum+1 = 100044 [18:38:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 250 20.02.2025 18:38 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187449 ФПД: 26613963272041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183848&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187449&fm=26613963272041&tin=02508201610067®Number=0000000000091857&sum=100000 [18:38:47]StoreToDocumentArchive [18:38:47]shift 648 fd 187449 [18:38:47]save to /storage/0648/doc_00187449 [18:38:47]save last doc name /storage/0648/doc_00187449 to /storage/kkm_last_doc_name [18:38:47]save OK [18:38:47]Clear old archive folders... [18:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:38:47]tlvbuf is 00E69360 [18:38:47]SAM_PROTO_ClearQueue [18:38:47]wFMCommunicate request_size=4 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 09 00 00 [18:38:47]Write to MH i2c: E2 08 00 79 23 80 09 00 00 00 00 00 00 0E [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 03 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 03 00 79 23 00 90 00 10 [18:38:47]RAPDU: 90 00 [18:38:47]wFMCommunicate OK [18:38:47]SAM_PROTO_ClearQueue done [18:38:47]KKMCreateOFDPacket [18:38:47]OFDProtocolAddRootSTLVToBuf [18:38:47]FM_MakeSignedData [18:38:47]FM_MakeSignedData [18:38:47]SAM_PROTO_SignData [18:38:47]wFMCommunicate request_size=4 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 0D 01 02 [18:38:47]Write to MH i2c: E2 08 00 7A 23 80 0D 01 02 00 00 00 00 16 [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 03 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 03 00 7A 23 00 90 00 11 [18:38:47]RAPDU: 90 00 [18:38:47]wFMCommunicate OK [18:38:47]wFMCommunicate request_size=255 [18:38:47]MH_SAM_APDU [18:38: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 B8 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DC 02 00 35 04 06 00 18 34 8B D3 [18:38:47]Write to MH i2c: E2 02 01 7B 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 B8 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DC 02 00 35 04 06 00 18 34 8B D3 00 00 4B [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 03 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 03 00 7B 23 00 90 00 12 [18:38:47]RAPDU: 90 00 [18:38:47]wFMCommunicate OK [18:38:47]wFMCommunicate request_size=7 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 0D 02 02 02 AF 69 [18:38:47]Write to MH i2c: E2 0A 00 7C 23 80 0D 02 02 02 00 AF 69 00 00 35 [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 03 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 03 00 7C 23 00 90 00 13 [18:38:47]RAPDU: 90 00 [18:38:47]wFMCommunicate OK [18:38:47]wFMCommunicate request_size=4 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 0D 03 02 [18:38:47]Write to MH i2c: E2 08 00 7D 23 80 0D 03 02 00 00 00 00 1B [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 0B 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 0B 00 7D 23 00 14 29 0D 4D B7 FD 77 AA 90 00 88 [18:38:47]RAPDU: 14 29 0D 4D B7 FD 77 AA 90 00 [18:38:47]wFMCommunicate OK [18:38:47]SAM_PROTO_SignData done [18:38:47]FM_MakeSignedData done [18:38:47]CreateOFDProtocolMessage [18:38:47]wFMCommunicate request_size=4 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 11 00 00 [18:38:47]Write to MH i2c: E2 08 00 7E 23 80 11 00 00 00 00 00 00 1B [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:48]Read from MH i2c: E2 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 17 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 17 00 7E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6E [18:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:38:48]wFMCommunicate OK [18:38:48]CreateOFDProtocolMessage done [18:38:48]OFDSenderStorePacket 187449 [18:38:48]StoreOFDPacket docnum=187449 [18:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C2 F9 04 01 7A 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 B8 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DC 02 00 35 04 06 00 18 34 8B D3 AF 69 14 29 0D 4D B7 FD 77 AA [18:38:48]CheckFolder [18:38:48]dirname=/storage/ofd_packets [18:38:48]CheckFolder done [18:38:48]ProducePacketName [18:38:48]name=ofd_packets/00187449 [18:38:48]NVStorageSaveData ofd_packets/00187449 [18:38:48]File name is /storage/ofd_packets/00187449 [18:38:48]Write 298 bytes [18:38:48]NVStorageSaveData done [18:38:48]OFDSenderStorePacket done [18:38:48]KKMCreateOFDPacket done [18:38:48]NVStorageSaveData kkm_last_timestamp [18:38:48]File name is /storage/kkm_last_timestamp [18:38:48]Write 4 bytes [18:38:48]NVStorageSaveData done [18:38:48]ExternCall_PrintAddStr [18:38:48]wPrintStart [18:38:48]Write to MH i2c: 01 00 00 7F 23 A2 [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: 01 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: 01 07 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: 01 07 00 7F 23 00 00 00 00 00 FF 0F B7 [18:38:48]RasterBufferAndPrint [18:38:48]line Счет N : (1)412608 [18:38:48]line ИНН: 02508201610067 [18:38:48]line Контрольно-Кассовый Чек [18:38:48]line ПРОДАЖА [18:38:48]line ТРК (МРК, ГНК) : 6 [18:38:48]line Товар: 2710194210 [18:38:48]line ДТ-К-5 [18:38:48]line 13.780 * 72.60 [18:38:48]line = 1000.43 [18:38:48]line НДС 12% НСП 1% [18:38:48]line > о реализуемом товаре [18:38:48]line ОКРУГЛЕНИЕ: -0.43 [18:38:48]line ИТОГО: 1000.00 [18:38:48]line Внесено: 1000.00 [18:38:48]line СДАЧА: 0.00 [18:38:48]line НСП 1% : 8.85 [18:38:48]line НДС 12% : 106.24 [18:38:48]line Наличными: 1000.00 [18:38:48]line Безнал.: 0.00 [18:38:48]line Место: АЗС № 92 "Партнер Нефть" [18:38:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:38:48]line СНО: Общий режим [18:38:48]line Чек 250 20.02.2025 18:38 [18:38:48]line Смена: 648 ФФД: 1.0 [18:38:48]line ЗНМ: 0300000118 [18:38:48]line РНМ: 0000000000091857 [18:38:48]line Версия ККМ: 001 [18:38:48]line ФМ: 0000000000871826 [18:38:48]line ФД: 187449 [18:38:48]line ФПД: 26613963272041 [18:38:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183848&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187449&fm=26613963272041&tin=02508201610067®Number=0000000000091857&sum=100000 [18:38:48]OFD Sender: Processing packet 187449 [packets to send 49, broken 48] [18:38:48]ProducePacketName [18:38:48]name=ofd_packets/00187449 [18:38:48]OFD Sender: To server: pG, [18:38:48]CommunicateWithHost lk.salyk.kg:30040 [18:38:48]ConnectInit lk.salyk.kg [18:38:48]written 0, free lines is 4095 [18:38:48]Connected sock=10 [18:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C2 F9 04 01 7A 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 B8 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DC 02 00 35 04 06 00 18 34 8B D3 AF 69 14 29 0D 4D B7 FD 77 AA [18:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 59 19 47 00 6D 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DC 02 00 F4 03 04 00 08 1D B7 67 B6 04 01 00 00 F8 18 83 96 B8 F6 FC 6E [18:38:48]CommunicateWithHost err = 0 [18:38:48]CheckOFDResponse [18:38:48]1017 (14) - 77093643461234 [18:38:48]1041 (16) - 0000000000871826 [18:38:48]1040 (4) - 187449 [18:38:48]1012 (4) - 20.02.2025 12:16 [18:38:48]1206 (1) - 0 [18:38:48]OFD Sender: Remove packet 187449 [18:38:48]ProducePacketName [18:38:48]name=ofd_packets/00187449 [18:38:48]NVStorageDeleteData [18:38:48]Write to MH i2c: 01 00 00 AA 23 CD [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: 01 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: 01 07 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: 01 07 00 AA 23 00 00 00 00 00 F0 0C D0 [18:38:48]RasterBufferAndPrint [18:38:48]line [18:38:48]line [18:38:48]line [18:38:48]line [18:38:48]line [18:38:48]written 0, free lines is 3318 [18:38:48]MH_Cut [18:38:48]Write to MH i2c: D1 01 00 B1 23 01 A6 [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: D1 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: D1 01 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: D1 01 00 B1 23 00 A5 [18:38:48]Write to MH i2c: 01 00 00 B2 23 D5 [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:49]OFD Sender: No OFD packet to send [18:38:49]*** Cut start [18:38:49]*** Partial cut [18:38:49]*** CUTSNS_PIN = 1 [18:38:49]*** CUTSNS_PIN = 0 [18:38:49]*** Brake cut motor [18:38:50]Read from MH i2c: 01 [18:38:50]MH_I2C_Read... [18:38:50]*** Stop cut motor [18:38:50]*** Cut end [18:38:50]Read from MH i2c: 01 07 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: 01 07 00 B2 23 00 00 00 00 00 FF 0F EA [18:38:50]process_action close_receipt done [18:38:50]requested_data is exist [18:38:50]produce_requested_data [18:38:50]requested_item fm.sn is exist - process it [18:38:50]wFMCommunicate request_size=4 [18:38:50]MH_SAM_APDU [18:38:50]CAPDU: 80 11 00 00 [18:38:50]Write to MH i2c: E2 08 00 B3 23 80 11 00 00 00 00 00 00 50 [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:50]Read from MH i2c: E2 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 17 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 17 00 B3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A3 [18:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:38:50]wFMCommunicate OK [18:38:50]requested_item fd.num is exist - process it [18:38:50]SAM_PROTO_GetFieldsCounters [18:38:50]wFMCommunicate request_size=4 [18:38:50]MH_SAM_APDU [18:38:50]CAPDU: 80 13 00 00 [18:38:50]Write to MH i2c: E2 08 00 B4 23 80 13 00 00 00 00 00 00 53 [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:50]Read from MH i2c: E2 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 62 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 62 00 B4 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 DC 02 00 0E 04 04 00 88 02 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 08 [18:38:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 DC 02 00 0E 04 04 00 88 02 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:38:50]wFMCommunicate OK [18:38:50]SAM_PROTO_GetFieldsCounters done [18:38:50]requested_item shift.num is exist - process it [18:38:50]requested_item shift.opened is exist - process it [18:38:50]req_shift_opened [18:38:50]FM_GetShiftState [18:38:50]SAM_PROTO_GetShiftState [18:38:50]wFMCommunicate request_size=4 [18:38:50]MH_SAM_APDU [18:38:50]CAPDU: 80 13 01 00 [18:38:50]Write to MH i2c: E2 08 00 B5 23 80 13 01 00 00 00 00 00 55 [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:50]Read from MH i2c: E2 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 0E 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 0E 00 B5 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A7 [18:38:50]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:38:50]wFMCommunicate OK [18:38:50]SAM_PROTO_GetShiftState done [18:38:50]FM_GetShiftState done [18:38:50]req_shift_opened done [18:38:50]requested_item shift.open_date is exist - process it [18:38:50]req_shift_open_date [18:38:50]req_shift_open_date done [18:38:50]produce_requested_data done [18:38:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187449,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:38:50]process_action_free close_receipt [18:38:50]json_value_free [18:38:50]json_value_free done [18:38:50]process_json_proto returns [18:38:50]Send response to host [18:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187449,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:38:50]free response buf [18:38:50]execute_script done [18:38:50]execute_script returns [18:38:50]free content buf [18:38:50]Sock 9.Close socket [18:38:50]Sock 9.Thread stoped [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:27]accept exits with 7 [18:39:27]New connection [18:39:27]New thread 3067420004 created [18:39:27]Thread 3067276644 joined [18:39:27]Waiting for new connection... [18:39:27] Sock 7.Parse request [18:39:27]Sock 7.Check first char [18:39:27]Sock 7.First char is OK [18:39:27]request: POST /json_proto HTTP/1.0 [18:39:27]Method: POST [18:39:27]URL: /json_proto [18:39:27]Method is POST - this is cgi request [18:39:27]url: /json_proto [18:39:27]query_string will be loaded in cgi processing [18:39:27]execute_cgi json_proto POST (null) [18:39:27]execute_cgi path=json_proto method=POST [18:39:27]POST find Content-Length [18:39:27]Host: 172.17.46.131:8080 [18:39:27]Content-Length: 803 [18:39:27]Content-Type: application/json [18:39:27] [18:39:27]POST finish read [18:39:27]Found Content-Length = 803 [18:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:27]execute_script... [18:39: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)412609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:27]POST & json_proto [18:39:27]process_json_proto [18:39:27]json parsed OK: [18:39:27]protocol is kg_v1.0 [18:39:27]action value=close_receipt [18:39:27]process_action close_receipt [18:39:27]cmd_close_receipt [18:39:27]MH_GetDate [18:39:27]Write to MH i2c: F0 00 00 B6 23 C8 [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: F0 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: F0 09 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: F0 09 00 B6 23 00 E1 76 B7 67 7E 41 4F 65 B9 [18:39:27]GetLastDocTimeStamp 1740076728 [18:39:27]current date 1740076769 [18:39:27]FM_GetShiftState [18:39:27]SAM_PROTO_GetShiftState [18:39:27]wFMCommunicate request_size=4 [18:39:27]MH_SAM_APDU [18:39:27]CAPDU: 80 13 01 00 [18:39:27]Write to MH i2c: E2 08 00 B7 23 80 13 01 00 00 00 00 00 57 [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:27]Read from MH i2c: E2 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 0E 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 0E 00 B7 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A9 [18:39:27]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:39:27]wFMCommunicate OK [18:39:27]SAM_PROTO_GetShiftState done [18:39:27]FM_GetShiftState done [18:39:27]opened in 1740011697 [18:39:27]opened+sec_in_day 1740098097 [18:39:27]quantity*price = 100023 [18:39:27]sum+1 = 100025 [18:39:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 251 20.02.2025 18:39 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187450 ФПД: 213158943455969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183929&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187450&fm=213158943455969&tin=02508201610067®Number=0000000000091857&sum=100024 [18:39:28]StoreToDocumentArchive [18:39:28]shift 648 fd 187450 [18:39:28]save to /storage/0648/doc_00187450 [18:39:28]save last doc name /storage/0648/doc_00187450 to /storage/kkm_last_doc_name [18:39:28]save OK [18:39:28]Clear old archive folders... [18:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:28]tlvbuf is 00EDA390 [18:39:28]SAM_PROTO_ClearQueue [18:39:28]wFMCommunicate request_size=4 [18:39:28]MH_SAM_APDU [18:39:28]CAPDU: 80 09 00 00 [18:39:28]Write to MH i2c: E2 08 00 C4 23 80 09 00 00 00 00 00 00 59 [18:39:28]Write i2c OK [18:39:28]MH_I2C_Read... [18:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:28]Read from MH i2c: E2 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: E2 03 00 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: E2 03 00 C4 23 00 90 00 5B [18:39:28]RAPDU: 90 00 [18:39:28]wFMCommunicate OK [18:39:28]SAM_PROTO_ClearQueue done [18:39:28]KKMCreateOFDPacket [18:39:28]OFDProtocolAddRootSTLVToBuf [18:39:28]FM_MakeSignedData [18:39:28]FM_MakeSignedData [18:39:28]SAM_PROTO_SignData [18:39:28]wFMCommunicate request_size=4 [18:39:28]MH_SAM_APDU [18:39:28]CAPDU: 80 0D 01 02 [18:39:28]Write to MH i2c: E2 08 00 C5 23 80 0D 01 02 00 00 00 00 61 [18:39:28]Write i2c OK [18:39:28]MH_I2C_Read... [18:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:28]Read from MH i2c: E2 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: E2 03 00 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: E2 03 00 C5 23 00 90 00 5C [18:39:28]RAPDU: 90 00 [18:39:28]wFMCommunicate OK [18:39:28]wFMCommunicate request_size=255 [18:39:28]MH_SAM_APDU [18:39: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E1 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DC 02 00 35 04 06 00 C1 [18:39:28]Write to MH i2c: E2 02 01 C6 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E1 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DC 02 00 35 04 06 00 C1 00 00 61 [18:39:28]Write i2c OK [18:39:28]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 C6 23 00 90 00 5D [18:39:29]RAPDU: 90 00 [18:39:29]wFMCommunicate OK [18:39:29]wFMCommunicate request_size=10 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 0D 02 02 05 DD EF 1A FA E1 [18:39:29]Write to MH i2c: E2 0D 00 C7 23 80 0D 02 02 05 00 DD EF 1A FA E1 00 00 2F [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 C7 23 00 90 00 5E [18:39:29]RAPDU: 90 00 [18:39:29]wFMCommunicate OK [18:39:29]wFMCommunicate request_size=4 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 0D 03 02 [18:39:29]Write to MH i2c: E2 08 00 C8 23 80 0D 03 02 00 00 00 00 66 [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 0B 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 0B 00 C8 23 00 24 D9 A3 53 B8 E7 73 9F 90 00 0B [18:39:29]RAPDU: 24 D9 A3 53 B8 E7 73 9F 90 00 [18:39:29]wFMCommunicate OK [18:39:29]SAM_PROTO_SignData done [18:39:29]FM_MakeSignedData done [18:39:29]CreateOFDProtocolMessage [18:39:29]wFMCommunicate request_size=4 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 11 00 00 [18:39:29]Write to MH i2c: E2 08 00 C9 23 80 11 00 00 00 00 00 00 66 [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 17 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 17 00 C9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B9 [18:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:39:29]wFMCommunicate OK [18:39:29]CreateOFDProtocolMessage done [18:39:29]OFDSenderStorePacket 187450 [18:39:29]StoreOFDPacket docnum=187450 [18:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B0 14 07 01 44 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E1 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DC 02 00 35 04 06 00 C1 DD EF 1A FA E1 24 D9 A3 53 B8 E7 73 9F [18:39:29]CheckFolder [18:39:29]dirname=/storage/ofd_packets [18:39:29]CheckFolder done [18:39:29]ProducePacketName [18:39:29]name=ofd_packets/00187450 [18:39:29]NVStorageSaveData ofd_packets/00187450 [18:39:29]File name is /storage/ofd_packets/00187450 [18:39:29]Write 301 bytes [18:39:29]NVStorageSaveData done [18:39:29]OFDSenderStorePacket done [18:39:29]KKMCreateOFDPacket done [18:39:29]NVStorageSaveData kkm_last_timestamp [18:39:29]File name is /storage/kkm_last_timestamp [18:39:29]Write 4 bytes [18:39:29]NVStorageSaveData done [18:39:29]ExternCall_PrintAddStr [18:39:29]wPrintStart [18:39:29]Write to MH i2c: 01 00 00 CA 23 ED [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: 01 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: 01 07 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: 01 07 00 CA 23 00 00 00 00 00 FF 0F 02 [18:39:29]RasterBufferAndPrint [18:39:29]line Счет N : (1)412609 [18:39:29]line ИНН: 02508201610067 [18:39:29]line Контрольно-Кассовый Чек [18:39:29]line ПРОДАЖА [18:39:29]line ТРК (МРК, ГНК) : 32 [18:39:29]line Товар: 2710124130 [18:39:29]line Аи-92-К-2 [18:39:29]line 15.580 * 64.20 [18:39:29]line = 1000.24 [18:39:29]line НДС 12% НСП 1% [18:39:29]line > о реализуемом товаре [18:39:29]line ИТОГО: 1000.24 [18:39:29]line НСП 1% : 8.85 [18:39:29]line НДС 12% : 106.22 [18:39:29]line Наличными: 0.00 [18:39:29]line Безнал.: 1000.24 [18:39:29]line Место: АЗС № 92 "Партнер Нефть" [18:39:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:39:29]line СНО: Общий режим [18:39:29]line Чек 251 20.02.2025 18:39 [18:39:29]line Смена: 648 ФФД: 1.0 [18:39:29]line ЗНМ: 0300000118 [18:39:29]line РНМ: 0000000000091857 [18:39:29]line Версия ККМ: 001 [18:39:29]line Платежная система: O! деньги [18:39:29]line ФМ: 0000000000871826 [18:39:29]line ФД: 187450 [18:39:29]line ФПД: 213158943455969 [18:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T183929&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187450&fm=213158943455969&tin=02508201610067®Number=0000000000091857&sum=100024 [18:39:29]written 0, free lines is 4095 [18:39:29]OFD Sender: Processing packet 187450 [packets to send 49, broken 48] [18:39:29]ProducePacketName [18:39:29]name=ofd_packets/00187450 [18:39:29]OFD Sender: To server: pG, [18:39:29]CommunicateWithHost lk.salyk.kg:30040 [18:39:29]ConnectInit lk.salyk.kg [18:39:30]Write to MH i2c: 01 00 00 F4 23 17 [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: 01 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: 01 07 00 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: 01 07 00 F4 23 00 00 00 00 00 05 0D 30 [18:39:30]RasterBufferAndPrint [18:39:30]line [18:39:30]line [18:39:30]line [18:39:30]line [18:39:30]line [18:39:30]written 0, free lines is 3339 [18:39:30]MH_Cut [18:39:30]Write to MH i2c: D1 01 00 FB 23 01 F0 [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: D1 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: D1 01 00 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: D1 01 00 FB 23 00 EF [18:39:30]Write to MH i2c: 01 00 00 FC 23 1F [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]*** Cut start [18:39:30]*** Partial cut [18:39:30]*** CUTSNS_PIN = 1 [18:39:30]*** CUTSNS_PIN = 0 [18:39:31]*** Brake cut motor [18:39:31]Read from MH i2c: 01 [18:39:31]MH_I2C_Read... [18:39:31]*** Stop cut motor [18:39:31]*** Cut end [18:39:31]Read from MH i2c: 01 07 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 07 00 FC 23 00 00 00 00 00 FF 0F 34 [18:39:31]process_action close_receipt done [18:39:31]requested_data is exist [18:39:31]produce_requested_data [18:39:31]requested_item fm.sn is exist - process it [18:39:31]wFMCommunicate request_size=4 [18:39:31]MH_SAM_APDU [18:39:31]CAPDU: 80 11 00 00 [18:39:31]Write to MH i2c: E2 08 00 FD 23 80 11 00 00 00 00 00 00 9A [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:31]Read from MH i2c: E2 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: E2 17 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: E2 17 00 FD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [18:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:39:31]wFMCommunicate OK [18:39:31]requested_item fd.num is exist - process it [18:39:31]SAM_PROTO_GetFieldsCounters [18:39:31]wFMCommunicate request_size=4 [18:39:31]MH_SAM_APDU [18:39:31]CAPDU: 80 13 00 00 [18:39:31]Write to MH i2c: E2 08 00 FE 23 80 13 00 00 00 00 00 00 9D [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:31]Read from MH i2c: E2 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: E2 62 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: E2 62 00 FE 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A DC 02 00 0E 04 04 00 88 02 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 56 [18:39: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A DC 02 00 0E 04 04 00 88 02 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:39:31]wFMCommunicate OK [18:39:31]SAM_PROTO_GetFieldsCounters done [18:39:31]requested_item shift.num is exist - process it [18:39:31]requested_item shift.opened is exist - process it [18:39:31]req_shift_opened [18:39:31]FM_GetShiftState [18:39:31]SAM_PROTO_GetShiftState [18:39:31]wFMCommunicate request_size=4 [18:39:31]MH_SAM_APDU [18:39:31]CAPDU: 80 13 01 00 [18:39:31]Write to MH i2c: E2 08 00 FF 23 80 13 01 00 00 00 00 00 9F [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:31]Read from MH i2c: E2 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: E2 0E 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: E2 0E 00 FF 23 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F1 [18:39:31]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:39:31]wFMCommunicate OK [18:39:31]SAM_PROTO_GetShiftState done [18:39:31]FM_GetShiftState done [18:39:31]req_shift_opened done [18:39:31]requested_item shift.open_date is exist - process it [18:39:31]req_shift_open_date [18:39:31]req_shift_open_date done [18:39:31]produce_requested_data done [18:39:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187450,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:39:31]process_action_free close_receipt [18:39:31]json_value_free [18:39:31]json_value_free done [18:39:31]process_json_proto returns [18:39:31]Send response to host [18:39:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187450,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:39:31]free response buf [18:39:31]execute_script done [18:39:31]execute_script returns [18:39:31]free content buf [18:39:31]Sock 7.Close socket [18:39:31]Sock 7.Thread stoped [18:41:42]ConnectInit Can't connect to host [18:41:42]CommunicateWithHost connect error [18:41:42]CommunicateWithHost err = -1 [18:41:42]OFD Sender: Server communicate error [18:41:47]OFD Sender: Processing packet 187450 [packets to send 49, broken 48] [18:41:47]ProducePacketName [18:41:47]name=ofd_packets/00187450 [18:41:47]OFD Sender: To server: pG, [18:41:47]CommunicateWithHost lk.salyk.kg:30040 [18:41:47]ConnectInit lk.salyk.kg [18:41:47]Connected sock=7 [18:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B0 14 07 01 44 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 E1 76 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DC 02 00 35 04 06 00 C1 DD EF 1A FA E1 24 D9 A3 53 B8 E7 73 9F [18:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F1 D7 47 00 B9 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DC 02 00 F4 03 04 00 BB 1D B7 67 B6 04 01 00 00 14 4A 29 7A 28 BA 1B 48 [18:41:48]CommunicateWithHost err = 0 [18:41:48]CheckOFDResponse [18:41:48]1017 (14) - 77093643461234 [18:41:48]1041 (16) - 0000000000871826 [18:41:48]1040 (4) - 187450 [18:41:48]1012 (4) - 20.02.2025 12:19 [18:41:48]1206 (1) - 0 [18:41:48]OFD Sender: Remove packet 187450 [18:41:48]ProducePacketName [18:41:48]name=ofd_packets/00187450 [18:41:48]NVStorageDeleteData [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:10]accept exits with 9 [18:43:10]New connection [18:43:10]New thread 3067276644 created [18:43:10]Thread 3067420004 joined [18:43:10]Waiting for new connection... [18:43:10] Sock 9.Parse request [18:43:10]Sock 9.Check first char [18:43:10]Sock 9.First char is OK [18:43:10]request: POST /json_proto HTTP/1.0 [18:43:10]Method: POST [18:43:10]URL: /json_proto [18:43:10]Method is POST - this is cgi request [18:43:10]url: /json_proto [18:43:10]query_string will be loaded in cgi processing [18:43:10]execute_cgi json_proto POST (null) [18:43:10]execute_cgi path=json_proto method=POST [18:43:10]POST find Content-Length [18:43:10]Host: 172.17.46.131:8080 [18:43:10]Content-Length: 678 [18:43:10]Content-Type: application/json [18:43:10] [18:43:10]POST finish read [18:43:10]Found Content-Length = 678 [18:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:43:10]execute_script... [18:43: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)412610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:43:10]POST & json_proto [18:43:10]process_json_proto [18:43:10]json parsed OK: [18:43:10]protocol is kg_v1.0 [18:43:10]action value=close_receipt [18:43:10]process_action close_receipt [18:43:10]cmd_close_receipt [18:43:10]MH_GetDate [18:43:10]Write to MH i2c: F0 00 00 00 24 13 [18:43:10]Write i2c OK [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 09 00 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 09 00 00 24 00 C0 77 B7 67 7E 41 4F 65 E4 [18:43:10]GetLastDocTimeStamp 1740076769 [18:43:10]current date 1740076992 [18:43:10]FM_GetShiftState [18:43:10]SAM_PROTO_GetShiftState [18:43:10]wFMCommunicate request_size=4 [18:43:10]MH_SAM_APDU [18:43:10]CAPDU: 80 13 01 00 [18:43:10]Write to MH i2c: E2 08 00 01 24 80 13 01 00 00 00 00 00 A2 [18:43:10]Write i2c OK [18:43:10]MH_I2C_Read... [18:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:10]Read from MH i2c: E2 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: E2 0E 00 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: E2 0E 00 01 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F4 [18:43:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:43:10]wFMCommunicate OK [18:43:10]SAM_PROTO_GetShiftState done [18:43:10]FM_GetShiftState done [18:43:10]opened in 1740011697 [18:43:10]opened+sec_in_day 1740098097 [18:43:10]quantity*price = 100042 [18:43:10]sum+1 = 100044 [18:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 252 20.02.2025 18:43 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187451 ФПД: 268484329971378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184312&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187451&fm=268484329971378&tin=02508201610067®Number=0000000000091857&sum=100000 [18:43:11]StoreToDocumentArchive [18:43:11]shift 648 fd 187451 [18:43:11]save to /storage/0648/doc_00187451 [18:43:11]save last doc name /storage/0648/doc_00187451 to /storage/kkm_last_doc_name [18:43:11]save OK [18:43:11]Clear old archive folders... [18:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:43:11]tlvbuf is 00E7C1A0 [18:43:11]SAM_PROTO_ClearQueue [18:43:11]wFMCommunicate request_size=4 [18:43:11]MH_SAM_APDU [18:43:11]CAPDU: 80 09 00 00 [18:43:11]Write to MH i2c: E2 08 00 0E 24 80 09 00 00 00 00 00 00 A4 [18:43:11]Write i2c OK [18:43:11]MH_I2C_Read... [18:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:11]Read from MH i2c: E2 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: E2 03 00 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: E2 03 00 0E 24 00 90 00 A6 [18:43:11]RAPDU: 90 00 [18:43:11]wFMCommunicate OK [18:43:11]SAM_PROTO_ClearQueue done [18:43:11]KKMCreateOFDPacket [18:43:11]OFDProtocolAddRootSTLVToBuf [18:43:11]FM_MakeSignedData [18:43:11]FM_MakeSignedData [18:43:11]SAM_PROTO_SignData [18:43:11]wFMCommunicate request_size=4 [18:43:11]MH_SAM_APDU [18:43:11]CAPDU: 80 0D 01 02 [18:43:11]Write to MH i2c: E2 08 00 0F 24 80 0D 01 02 00 00 00 00 AC [18:43:11]Write i2c OK [18:43:11]MH_I2C_Read... [18:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:11]Read from MH i2c: E2 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: E2 03 00 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: E2 03 00 0F 24 00 90 00 A7 [18:43:11]RAPDU: 90 00 [18:43:11]wFMCommunicate OK [18:43:11]wFMCommunicate request_size=255 [18:43:11]MH_SAM_APDU [18:43:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 C0 77 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DC 02 00 35 04 06 00 F4 2F 61 1D [18:43:12]Write to MH i2c: E2 02 01 10 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 C0 77 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DC 02 00 35 04 06 00 F4 2F 61 1D 00 00 E5 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 10 24 00 90 00 A8 [18:43:12]RAPDU: 90 00 [18:43:12]wFMCommunicate OK [18:43:12]wFMCommunicate request_size=7 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 0D 02 02 02 9E B2 [18:43:12]Write to MH i2c: E2 0A 00 11 24 80 0D 02 02 02 00 9E B2 00 00 03 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 11 24 00 90 00 A9 [18:43:12]RAPDU: 90 00 [18:43:12]wFMCommunicate OK [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 0D 03 02 [18:43:12]Write to MH i2c: E2 08 00 12 24 80 0D 03 02 00 00 00 00 B1 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 0B 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 0B 00 12 24 00 58 56 CA 10 35 4C C4 E9 90 00 68 [18:43:12]RAPDU: 58 56 CA 10 35 4C C4 E9 90 00 [18:43:12]wFMCommunicate OK [18:43:12]SAM_PROTO_SignData done [18:43:12]FM_MakeSignedData done [18:43:12]CreateOFDProtocolMessage [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 11 00 00 [18:43:12]Write to MH i2c: E2 08 00 13 24 80 11 00 00 00 00 00 00 B1 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 17 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 17 00 13 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 04 [18:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:43:12]wFMCommunicate OK [18:43:12]CreateOFDProtocolMessage done [18:43:12]OFDSenderStorePacket 187451 [18:43:12]StoreOFDPacket docnum=187451 [18:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 5E 00 04 01 FB 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 C0 77 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DC 02 00 35 04 06 00 F4 2F 61 1D 9E B2 58 56 CA 10 35 4C C4 E9 [18:43:12]CheckFolder [18:43:12]dirname=/storage/ofd_packets [18:43:12]CheckFolder done [18:43:12]ProducePacketName [18:43:12]name=ofd_packets/00187451 [18:43:12]NVStorageSaveData ofd_packets/00187451 [18:43:12]File name is /storage/ofd_packets/00187451 [18:43:12]Write 298 bytes [18:43:12]NVStorageSaveData done [18:43:12]OFDSenderStorePacket done [18:43:12]KKMCreateOFDPacket done [18:43:12]NVStorageSaveData kkm_last_timestamp [18:43:12]File name is /storage/kkm_last_timestamp [18:43:12]Write 4 bytes [18:43:12]NVStorageSaveData done [18:43:12]ExternCall_PrintAddStr [18:43:12]wPrintStart [18:43:12]Write to MH i2c: 01 00 00 14 24 38 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: 01 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: 01 07 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: 01 07 00 14 24 00 00 00 00 00 FF 0F 4D [18:43:12]RasterBufferAndPrint [18:43:12]line Счет N : (1)412610 [18:43:12]line ИНН: 02508201610067 [18:43:12]line Контрольно-Кассовый Чек [18:43:12]line ПРОДАЖА [18:43:12]line ТРК (МРК, ГНК) : 5 [18:43:12]line Товар: 2710194210 [18:43:12]line ДТ-К-5 [18:43:12]line 13.780 * 72.60 [18:43:12]line = 1000.43 [18:43:12]line НДС 12% НСП 1% [18:43:12]line > о реализуемом товаре [18:43:12]line ОКРУГЛЕНИЕ: -0.43 [18:43:12]line ИТОГО: 1000.00 [18:43:12]line Внесено: 1000.00 [18:43:12]line СДАЧА: 0.00 [18:43:12]line НСП 1% : 8.85 [18:43:12]line НДС 12% : 106.24 [18:43:12]line Наличными: 1000.00 [18:43:12]line Безнал.: 0.00 [18:43:12]line Место: АЗС № 92 "Партнер Нефть" [18:43:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:43:12]line СНО: Общий режим [18:43:12]line Чек 252 20.02.2025 18:43 [18:43:12]line Смена: 648 ФФД: 1.0 [18:43:12]line ЗНМ: 0300000118 [18:43:12]line РНМ: 0000000000091857 [18:43:12]line Версия ККМ: 001 [18:43:12]line ФМ: 0000000000871826 [18:43:12]line ФД: 187451 [18:43:12]line ФПД: 268484329971378 [18:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184312&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187451&fm=268484329971378&tin=02508201610067®Number=0000000000091857&sum=100000 [18:43:12]written 0, free lines is 4095 [18:43:12]OFD Sender: Processing packet 187451 [packets to send 49, broken 48] [18:43:12]ProducePacketName [18:43:12]name=ofd_packets/00187451 [18:43:12]OFD Sender: To server: pG, [18:43:12]CommunicateWithHost lk.salyk.kg:30040 [18:43:12]ConnectInit lk.salyk.kg [18:43:12]Connected sock=10 [18:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 5E 00 04 01 FB 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 C0 77 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DC 02 00 35 04 06 00 F4 2F 61 1D 9E B2 58 56 CA 10 35 4C C4 E9 [18:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B8 CD 47 00 07 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DC 02 00 F4 03 04 00 10 1E B7 67 B6 04 01 00 00 9A D0 8B 17 EA 0A D0 B3 [18:43:13]CommunicateWithHost err = 0 [18:43:13]CheckOFDResponse [18:43:13]1017 (14) - 77093643461234 [18:43:13]1041 (16) - 0000000000871826 [18:43:13]1040 (4) - 187451 [18:43:13]1012 (4) - 20.02.2025 12:20 [18:43:13]1206 (1) - 0 [18:43:13]OFD Sender: Remove packet 187451 [18:43:13]ProducePacketName [18:43:13]name=ofd_packets/00187451 [18:43:13]NVStorageDeleteData [18:43:13]Write to MH i2c: 01 00 00 3F 24 63 [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 07 00 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 07 00 3F 24 00 00 00 00 00 F6 0C 6C [18:43:13]RasterBufferAndPrint [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]written 0, free lines is 3324 [18:43:13]MH_Cut [18:43:13]Write to MH i2c: D1 01 00 46 24 01 3C [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 01 00 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 01 00 46 24 00 3B [18:43:13]Write to MH i2c: 01 00 00 47 24 6B [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]OFD Sender: No OFD packet to send [18:43:13]*** Cut start [18:43:13]*** Partial cut [18:43:13]*** CUTSNS_PIN = 1 [18:43:13]*** CUTSNS_PIN = 0 [18:43:14]*** Brake cut motor [18:43:14]Read from MH i2c: 01 [18:43:14]MH_I2C_Read... [18:43:14]*** Stop cut motor [18:43:14]*** Cut end [18:43:14]Read from MH i2c: 01 07 00 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: 01 07 00 47 24 00 00 00 00 00 FF 0F 80 [18:43:14]process_action close_receipt done [18:43:14]requested_data is exist [18:43:14]produce_requested_data [18:43:14]requested_item fm.sn is exist - process it [18:43:14]wFMCommunicate request_size=4 [18:43:14]MH_SAM_APDU [18:43:14]CAPDU: 80 11 00 00 [18:43:14]Write to MH i2c: E2 08 00 48 24 80 11 00 00 00 00 00 00 E6 [18:43:14]Write i2c OK [18:43:14]MH_I2C_Read... [18:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:14]Read from MH i2c: E2 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 17 00 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 17 00 48 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 39 [18:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:43:14]wFMCommunicate OK [18:43:14]requested_item fd.num is exist - process it [18:43:14]SAM_PROTO_GetFieldsCounters [18:43:14]wFMCommunicate request_size=4 [18:43:14]MH_SAM_APDU [18:43:14]CAPDU: 80 13 00 00 [18:43:14]Write to MH i2c: E2 08 00 49 24 80 13 00 00 00 00 00 00 E9 [18:43:14]Write i2c OK [18:43:14]MH_I2C_Read... [18:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:14]Read from MH i2c: E2 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 62 00 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 62 00 49 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B DC 02 00 0E 04 04 00 88 02 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 A6 [18:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B DC 02 00 0E 04 04 00 88 02 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:43:14]wFMCommunicate OK [18:43:14]SAM_PROTO_GetFieldsCounters done [18:43:14]requested_item shift.num is exist - process it [18:43:14]requested_item shift.opened is exist - process it [18:43:14]req_shift_opened [18:43:14]FM_GetShiftState [18:43:14]SAM_PROTO_GetShiftState [18:43:14]wFMCommunicate request_size=4 [18:43:14]MH_SAM_APDU [18:43:14]CAPDU: 80 13 01 00 [18:43:14]Write to MH i2c: E2 08 00 4A 24 80 13 01 00 00 00 00 00 EB [18:43:14]Write i2c OK [18:43:14]MH_I2C_Read... [18:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:14]Read from MH i2c: E2 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 0E 00 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 0E 00 4A 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3D [18:43:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:43:14]wFMCommunicate OK [18:43:14]SAM_PROTO_GetShiftState done [18:43:14]FM_GetShiftState done [18:43:14]req_shift_opened done [18:43:14]requested_item shift.open_date is exist - process it [18:43:14]req_shift_open_date [18:43:14]req_shift_open_date done [18:43:14]produce_requested_data done [18:43:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187451,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:43:14]process_action_free close_receipt [18:43:14]json_value_free [18:43:14]json_value_free done [18:43:14]process_json_proto returns [18:43:14]Send response to host [18:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187451,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:43:14]free response buf [18:43:14]execute_script done [18:43:14]execute_script returns [18:43:14]free content buf [18:43:14]Sock 9.Close socket [18:43:14]Sock 9.Thread stoped [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:40]accept exits with 7 [18:43:40]New connection [18:43:40]New thread 3067420004 created [18:43:40]Thread 3067276644 joined [18:43:40]Waiting for new connection... [18:43:40] Sock 7.Parse request [18:43:40]Sock 7.Check first char [18:43:40]Sock 7.First char is OK [18:43:40]request: POST /json_proto HTTP/1.0 [18:43:40]Method: POST [18:43:40]URL: /json_proto [18:43:40]Method is POST - this is cgi request [18:43:40]url: /json_proto [18:43:40]query_string will be loaded in cgi processing [18:43:40]execute_cgi json_proto POST (null) [18:43:40]execute_cgi path=json_proto method=POST [18:43:40]POST find Content-Length [18:43:40]Host: 172.17.46.131:8080 [18:43:40]Content-Length: 677 [18:43:40]Content-Type: application/json [18:43:40] [18:43:40]POST finish read [18:43:40]Found Content-Length = 677 [18:43:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [18:43:40]execute_script... [18:43: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)412611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [18:43:40]POST & json_proto [18:43:40]process_json_proto [18:43:40]json parsed OK: [18:43:40]protocol is kg_v1.0 [18:43:40]action value=close_receipt [18:43:40]process_action close_receipt [18:43:40]cmd_close_receipt [18:43:40]MH_GetDate [18:43:40]Write to MH i2c: F0 00 00 4B 24 5E [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: F0 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: F0 09 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: F0 09 00 4B 24 00 DE 77 B7 67 7E 41 4F 65 4D [18:43:40]GetLastDocTimeStamp 1740076992 [18:43:40]current date 1740077022 [18:43:40]FM_GetShiftState [18:43:40]SAM_PROTO_GetShiftState [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 13 01 00 [18:43:40]Write to MH i2c: E2 08 00 4C 24 80 13 01 00 00 00 00 00 ED [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0E 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0E 00 4C 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 3F [18:43:40]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:43:40]wFMCommunicate OK [18:43:40]SAM_PROTO_GetShiftState done [18:43:40]FM_GetShiftState done [18:43:40]opened in 1740011697 [18:43:40]opened+sec_in_day 1740098097 [18:43:40]quantity*price = 50042 [18:43:40]sum+1 = 50043 [18:43: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 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 253 20.02.2025 18:43 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187452 ФПД: 110730972580910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184342&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187452&fm=110730972580910&tin=02508201610067®Number=0000000000091857&sum=50000 [18:43:41]StoreToDocumentArchive [18:43:41]shift 648 fd 187452 [18:43:41]save to /storage/0648/doc_00187452 [18:43:41]save last doc name /storage/0648/doc_00187452 to /storage/kkm_last_doc_name [18:43:41]save OK [18:43:41]Clear old archive folders... [18:43:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:41]tlvbuf is 00E41DC0 [18:43:41]SAM_PROTO_ClearQueue [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 09 00 00 [18:43:41]Write to MH i2c: E2 08 00 59 24 80 09 00 00 00 00 00 00 EF [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 59 24 00 90 00 F1 [18:43:41]RAPDU: 90 00 [18:43:41]wFMCommunicate OK [18:43:41]SAM_PROTO_ClearQueue done [18:43:41]KKMCreateOFDPacket [18:43:41]OFDProtocolAddRootSTLVToBuf [18:43:41]FM_MakeSignedData [18:43:41]FM_MakeSignedData [18:43:41]SAM_PROTO_SignData [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 0D 01 02 [18:43:41]Write to MH i2c: E2 08 00 5A 24 80 0D 01 02 00 00 00 00 F7 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 03 00 5A 24 00 90 00 F2 [18:43:41]RAPDU: 90 00 [18:43:41]wFMCommunicate OK [18:43:41]wFMCommunicate request_size=255 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 FD 00 00 00 F4 03 04 00 DE 77 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DC 02 00 35 04 06 00 64 [18:43:41]Write to MH i2c: E2 02 01 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 FD 00 00 00 F4 03 04 00 DE 77 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DC 02 00 35 04 06 00 64 00 00 F4 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 5B 24 00 90 00 F3 [18:43:42]RAPDU: 90 00 [18:43:42]wFMCommunicate OK [18:43:42]wFMCommunicate request_size=10 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 0D 02 02 05 B5 90 49 4C 2E [18:43:42]Write to MH i2c: E2 0D 00 5C 24 80 0D 02 02 05 00 B5 90 49 4C 2E 00 00 0C [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 5C 24 00 90 00 F4 [18:43:42]RAPDU: 90 00 [18:43:42]wFMCommunicate OK [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 0D 03 02 [18:43:42]Write to MH i2c: E2 08 00 5D 24 80 0D 03 02 00 00 00 00 FC [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0B 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0B 00 5D 24 00 54 63 D1 E9 A1 A9 54 E2 90 00 EE [18:43:42]RAPDU: 54 63 D1 E9 A1 A9 54 E2 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_SignData done [18:43:42]FM_MakeSignedData done [18:43:42]CreateOFDProtocolMessage [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 11 00 00 [18:43:42]Write to MH i2c: E2 08 00 5E 24 80 11 00 00 00 00 00 00 FC [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 5E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4F [18:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:43:42]wFMCommunicate OK [18:43:42]CreateOFDProtocolMessage done [18:43:42]OFDSenderStorePacket 187452 [18:43:42]StoreOFDPacket docnum=187452 [18:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 6D 07 01 D1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 FD 00 00 00 F4 03 04 00 DE 77 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DC 02 00 35 04 06 00 64 B5 90 49 4C 2E 54 63 D1 E9 A1 A9 54 E2 [18:43:42]CheckFolder [18:43:42]dirname=/storage/ofd_packets [18:43:42]CheckFolder done [18:43:42]ProducePacketName [18:43:42]name=ofd_packets/00187452 [18:43:42]NVStorageSaveData ofd_packets/00187452 [18:43:42]File name is /storage/ofd_packets/00187452 [18:43:42]Write 301 bytes [18:43:42]NVStorageSaveData done [18:43:42]OFDSenderStorePacket done [18:43:42]KKMCreateOFDPacket done [18:43:42]NVStorageSaveData kkm_last_timestamp [18:43:42]File name is /storage/kkm_last_timestamp [18:43:42]Write 4 bytes [18:43:42]NVStorageSaveData done [18:43:42]ExternCall_PrintAddStr [18:43:42]wPrintStart [18:43:42]Write to MH i2c: 01 00 00 5F 24 83 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 5F 24 00 00 00 00 00 FF 0F 98 [18:43:42]RasterBufferAndPrint [18:43:42]line Счет N : (1)412611 [18:43:42]line ИНН: 02508201610067 [18:43:42]line Контрольно-Кассовый Чек [18:43:42]line ПРОДАЖА [18:43:42]line ТРК (МРК, ГНК) : 33 [18:43:42]line Товар: 2710124500 [18:43:42]line Аи-95-К-5 [18:43:42]line 6.960 * 71.90 [18:43:42]line = 500.42 [18:43:42]line НДС 12% НСП 1% [18:43:42]line > о реализуемом товаре [18:43:42]line ОКРУГЛЕНИЕ: -0.42 [18:43:42]line ИТОГО: 500.00 [18:43:42]line Внесено: 500.00 [18:43:42]line СДАЧА: 0.00 [18:43:42]line НСП 1% : 4.43 [18:43:42]line НДС 12% : 53.14 [18:43:42]line Наличными: 500.00 [18:43:42]line Безнал.: 0.00 [18:43:42]line Место: АЗС № 92 "Партнер Нефть" [18:43:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:43:42]line СНО: Общий режим [18:43:42]line Чек 253 20.02.2025 18:43 [18:43:42]line Смена: 648 ФФД: 1.0 [18:43:42]line ЗНМ: 0300000118 [18:43:42]line РНМ: 0000000000091857 [18:43:42]line Версия ККМ: 001 [18:43:42]line ФМ: 0000000000871826 [18:43:42]line ФД: 187452 [18:43:42]line ФПД: 110730972580910 [18:43:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184342&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187452&fm=110730972580910&tin=02508201610067®Number=0000000000091857&sum=50000 [18:43:42]OFD Sender: Processing packet 187452 [packets to send 49, broken 48] [18:43:42]ProducePacketName [18:43:42]name=ofd_packets/00187452 [18:43:42]OFD Sender: To server: pG, [18:43:42]CommunicateWithHost lk.salyk.kg:30040 [18:43:42]ConnectInit lk.salyk.kg [18:43:42]written 0, free lines is 4095 [18:43:42]Connected sock=10 [18:43:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 6D 07 01 D1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 FD 00 00 00 F4 03 04 00 DE 77 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DC 02 00 35 04 06 00 64 B5 90 49 4C 2E 54 63 D1 E9 A1 A9 54 E2 [18:43:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 54 FC 47 00 3D 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DC 02 00 F4 03 04 00 2E 1E B7 67 B6 04 01 00 00 C7 B4 BE DA 24 31 3A BB [18:43:42]CommunicateWithHost err = 0 [18:43:42]CheckOFDResponse [18:43:42]1017 (14) - 77093643461234 [18:43:42]1041 (16) - 0000000000871826 [18:43:42]1040 (4) - 187452 [18:43:42]1012 (4) - 20.02.2025 12:21 [18:43:42]1206 (1) - 0 [18:43:42]OFD Sender: Remove packet 187452 [18:43:42]ProducePacketName [18:43:42]name=ofd_packets/00187452 [18:43:42]NVStorageDeleteData [18:43:43]Write to MH i2c: 01 00 00 8A 24 AE [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 07 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 07 00 8A 24 00 00 00 00 00 FD 0C BE [18:43:43]RasterBufferAndPrint [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]written 0, free lines is 3334 [18:43:43]MH_Cut [18:43:43]Write to MH i2c: D1 01 00 91 24 01 87 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: D1 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: D1 01 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: D1 01 00 91 24 00 86 [18:43:43]Write to MH i2c: 01 00 00 92 24 B6 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]OFD Sender: No OFD packet to send [18:43:43]*** Cut start [18:43:43]*** Partial cut [18:43:43]*** CUTSNS_PIN = 1 [18:43:43]*** CUTSNS_PIN = 0 [18:43:44]*** Brake cut motor [18:43:44]Read from MH i2c: 01 [18:43:44]MH_I2C_Read... [18:43:44]*** Stop cut motor [18:43:44]*** Cut end [18:43:44]Read from MH i2c: 01 07 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: 01 07 00 92 24 00 00 00 00 00 FF 0F CB [18:43:44]process_action close_receipt done [18:43:44]requested_data is exist [18:43:44]produce_requested_data [18:43:44]requested_item fm.sn is exist - process it [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 11 00 00 [18:43:44]Write to MH i2c: E2 08 00 93 24 80 11 00 00 00 00 00 00 31 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 17 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 17 00 93 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 84 [18:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:43:44]wFMCommunicate OK [18:43:44]requested_item fd.num is exist - process it [18:43:44]SAM_PROTO_GetFieldsCounters [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 13 00 00 [18:43:44]Write to MH i2c: E2 08 00 94 24 80 13 00 00 00 00 00 00 34 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 62 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 62 00 94 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C DC 02 00 0E 04 04 00 88 02 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 F5 [18:43:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C DC 02 00 0E 04 04 00 88 02 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:43:44]wFMCommunicate OK [18:43:44]SAM_PROTO_GetFieldsCounters done [18:43:44]requested_item shift.num is exist - process it [18:43:44]requested_item shift.opened is exist - process it [18:43:44]req_shift_opened [18:43:44]FM_GetShiftState [18:43:44]SAM_PROTO_GetShiftState [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 13 01 00 [18:43:44]Write to MH i2c: E2 08 00 95 24 80 13 01 00 00 00 00 00 36 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 0E 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 0E 00 95 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 88 [18:43:44]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:43:44]wFMCommunicate OK [18:43:44]SAM_PROTO_GetShiftState done [18:43:44]FM_GetShiftState done [18:43:44]req_shift_opened done [18:43:44]requested_item shift.open_date is exist - process it [18:43:44]req_shift_open_date [18:43:44]req_shift_open_date done [18:43:44]produce_requested_data done [18:43:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187452,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:43:44]process_action_free close_receipt [18:43:44]json_value_free [18:43:44]json_value_free done [18:43:44]process_json_proto returns [18:43:44]Send response to host [18:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187452,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:43:44]free response buf [18:43:44]execute_script done [18:43:44]execute_script returns [18:43:44]free content buf [18:43:44]Sock 7.Close socket [18:43:44]Sock 7.Thread stoped [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:10]accept exits with 9 [18:47:10]New connection [18:47:10]New thread 3067276644 created [18:47:10]Thread 3067420004 joined [18:47:10]Waiting for new connection... [18:47:10] Sock 9.Parse request [18:47:10]Sock 9.Check first char [18:47:10]Sock 9.First char is OK [18:47:10]request: POST /json_proto HTTP/1.0 [18:47:10]Method: POST [18:47:10]URL: /json_proto [18:47:10]Method is POST - this is cgi request [18:47:10]url: /json_proto [18:47:10]query_string will be loaded in cgi processing [18:47:10]execute_cgi json_proto POST (null) [18:47:10]execute_cgi path=json_proto method=POST [18:47:10]POST find Content-Length [18:47:10]Host: 172.17.46.131:8080 [18:47:10]Content-Length: 803 [18:47:10]Content-Type: application/json [18:47:10] [18:47:10]POST finish read [18:47:10]Found Content-Length = 803 [18:47:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:10]execute_script... [18:47: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)412613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:10]POST & json_proto [18:47:10]process_json_proto [18:47:10]json parsed OK: [18:47:10]protocol is kg_v1.0 [18:47:10]action value=close_receipt [18:47:10]process_action close_receipt [18:47:10]cmd_close_receipt [18:47:10]MH_GetDate [18:47:10]Write to MH i2c: F0 00 00 96 24 A9 [18:47:10]Write i2c OK [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: F0 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: F0 09 00 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: F0 09 00 96 24 00 B0 78 B7 67 7E 41 4F 65 6B [18:47:10]GetLastDocTimeStamp 1740077022 [18:47:10]current date 1740077232 [18:47:10]FM_GetShiftState [18:47:10]SAM_PROTO_GetShiftState [18:47:10]wFMCommunicate request_size=4 [18:47:10]MH_SAM_APDU [18:47:10]CAPDU: 80 13 01 00 [18:47:10]Write to MH i2c: E2 08 00 97 24 80 13 01 00 00 00 00 00 38 [18:47:10]Write i2c OK [18:47:10]MH_I2C_Read... [18:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:10]Read from MH i2c: E2 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: E2 0E 00 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: E2 0E 00 97 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8A [18:47:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:47:10]wFMCommunicate OK [18:47:10]SAM_PROTO_GetShiftState done [18:47:10]FM_GetShiftState done [18:47:10]opened in 1740011697 [18:47:10]opened+sec_in_day 1740098097 [18:47:10]quantity*price = 100012 [18:47:10]sum+1 = 100014 [18:47:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 254 20.02.2025 18:47 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187453 ФПД: 160510775029007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184712&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187453&fm=160510775029007&tin=02508201610067®Number=0000000000091857&sum=100013 [18:47:11]StoreToDocumentArchive [18:47:11]shift 648 fd 187453 [18:47:11]save to /storage/0648/doc_00187453 [18:47:11]save last doc name /storage/0648/doc_00187453 to /storage/kkm_last_doc_name [18:47:11]save OK [18:47:11]Clear old archive folders... [18:47:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:11]tlvbuf is 00EACCD0 [18:47:11]SAM_PROTO_ClearQueue [18:47:11]wFMCommunicate request_size=4 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 09 00 00 [18:47:11]Write to MH i2c: E2 08 00 A4 24 80 09 00 00 00 00 00 00 3A [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 A4 24 00 90 00 3C [18:47:11]RAPDU: 90 00 [18:47:11]wFMCommunicate OK [18:47:11]SAM_PROTO_ClearQueue done [18:47:11]KKMCreateOFDPacket [18:47:11]OFDProtocolAddRootSTLVToBuf [18:47:11]FM_MakeSignedData [18:47:11]FM_MakeSignedData [18:47:11]SAM_PROTO_SignData [18:47:11]wFMCommunicate request_size=4 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 0D 01 02 [18:47:11]Write to MH i2c: E2 08 00 A5 24 80 0D 01 02 00 00 00 00 42 [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 03 00 A5 24 00 90 00 3D [18:47:11]RAPDU: 90 00 [18:47:11]wFMCommunicate OK [18:47:11]wFMCommunicate request_size=255 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 B0 78 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DC 02 00 35 04 06 00 91 [18:47:11]Write to MH i2c: E2 02 01 A6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 B0 78 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DC 02 00 35 04 06 00 91 00 00 47 [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:12]Read from MH i2c: E2 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: E2 03 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: E2 03 00 A6 24 00 90 00 3E [18:47:12]RAPDU: 90 00 [18:47:12]wFMCommunicate OK [18:47:12]wFMCommunicate request_size=10 [18:47:12]MH_SAM_APDU [18:47:12]CAPDU: 80 0D 02 02 05 FB D3 BA 6D 0F [18:47:12]Write to MH i2c: E2 0D 00 A7 24 80 0D 02 02 05 00 FB D3 BA 6D 0F 00 00 53 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:12]Read from MH i2c: E2 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: E2 03 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: E2 03 00 A7 24 00 90 00 3F [18:47:12]RAPDU: 90 00 [18:47:12]wFMCommunicate OK [18:47:12]wFMCommunicate request_size=4 [18:47:12]MH_SAM_APDU [18:47:12]CAPDU: 80 0D 03 02 [18:47:12]Write to MH i2c: E2 08 00 A8 24 80 0D 03 02 00 00 00 00 47 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:12]Read from MH i2c: E2 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: E2 0B 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: E2 0B 00 A8 24 00 95 83 4D DE 1B F2 58 31 90 00 21 [18:47:12]RAPDU: 95 83 4D DE 1B F2 58 31 90 00 [18:47:12]wFMCommunicate OK [18:47:12]SAM_PROTO_SignData done [18:47:12]FM_MakeSignedData done [18:47:12]CreateOFDProtocolMessage [18:47:12]wFMCommunicate request_size=4 [18:47:12]MH_SAM_APDU [18:47:12]CAPDU: 80 11 00 00 [18:47:12]Write to MH i2c: E2 08 00 A9 24 80 11 00 00 00 00 00 00 47 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:12]Read from MH i2c: E2 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: E2 17 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: E2 17 00 A9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9A [18:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:47:12]wFMCommunicate OK [18:47:12]CreateOFDProtocolMessage done [18:47:12]OFDSenderStorePacket 187453 [18:47:12]StoreOFDPacket docnum=187453 [18:47:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 60 C7 07 01 D6 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 B0 78 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DC 02 00 35 04 06 00 91 FB D3 BA 6D 0F 95 83 4D DE 1B F2 58 31 [18:47:12]CheckFolder [18:47:12]dirname=/storage/ofd_packets [18:47:12]CheckFolder done [18:47:12]ProducePacketName [18:47:12]name=ofd_packets/00187453 [18:47:12]NVStorageSaveData ofd_packets/00187453 [18:47:12]File name is /storage/ofd_packets/00187453 [18:47:12]Write 301 bytes [18:47:12]NVStorageSaveData done [18:47:12]OFDSenderStorePacket done [18:47:12]KKMCreateOFDPacket done [18:47:12]NVStorageSaveData kkm_last_timestamp [18:47:12]File name is /storage/kkm_last_timestamp [18:47:12]Write 4 bytes [18:47:12]NVStorageSaveData done [18:47:12]ExternCall_PrintAddStr [18:47:12]wPrintStart [18:47:12]Write to MH i2c: 01 00 00 AA 24 CE [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 AA 24 00 00 00 00 00 FF 0F E3 [18:47:12]RasterBufferAndPrint [18:47:12]line Счет N : (1)412613 [18:47:12]line ИНН: 02508201610067 [18:47:12]line Контрольно-Кассовый Чек [18:47:12]line ПРОДАЖА [18:47:12]line ТРК (МРК, ГНК) : 33 [18:47:12]line Товар: 2710124500 [18:47:12]line Аи-95-К-5 [18:47:12]line 13.910 * 71.90 [18:47:12]line = 1000.13 [18:47:12]line НДС 12% НСП 1% [18:47:12]line > о реализуемом товаре [18:47:12]line ИТОГО: 1000.13 [18:47:12]line НСП 1% : 8.85 [18:47:12]line НДС 12% : 106.21 [18:47:12]line Наличными: 0.00 [18:47:12]line Безнал.: 1000.13 [18:47:12]line Место: АЗС № 92 "Партнер Нефть" [18:47:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:47:12]line СНО: Общий режим [18:47:12]line Чек 254 20.02.2025 18:47 [18:47:12]line Смена: 648 ФФД: 1.0 [18:47:12]line ЗНМ: 0300000118 [18:47:12]line РНМ: 0000000000091857 [18:47:12]line Версия ККМ: 001 [18:47:12]line Платежная система: O! деньги [18:47:12]line ФМ: 0000000000871826 [18:47:12]line ФД: 187453 [18:47:12]line ФПД: 160510775029007 [18:47:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184712&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187453&fm=160510775029007&tin=02508201610067®Number=0000000000091857&sum=100013 [18:47:12]written 0, free lines is 4095 [18:47:12]OFD Sender: Processing packet 187453 [packets to send 49, broken 48] [18:47:12]ProducePacketName [18:47:12]name=ofd_packets/00187453 [18:47:12]OFD Sender: To server: pG, [18:47:12]CommunicateWithHost lk.salyk.kg:30040 [18:47:12]ConnectInit lk.salyk.kg [18:47:12]Connected sock=10 [18:47:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 60 C7 07 01 D6 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 B0 78 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DC 02 00 35 04 06 00 91 FB D3 BA 6D 0F 95 83 4D DE 1B F2 58 31 [18:47:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FD 47 47 00 0F 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 31 38 32 36 10 04 04 00 3D DC 02 00 F4 03 04 00 00 1F B7 67 B6 04 01 00 00 01 0F 7F B0 FB 12 A0 BF [18:47:12]CommunicateWithHost err = 0 [18:47:12]CheckOFDResponse [18:47:12]1017 (14) - 77093643461234 [18:47:12]1041 (16) - 0000000000871826 [18:47:12]1040 (4) - 187453 [18:47:12]1012 (4) - 20.02.2025 12:24 [18:47:12]1206 (1) - 0 [18:47:12]OFD Sender: Remove packet 187453 [18:47:12]ProducePacketName [18:47:12]name=ofd_packets/00187453 [18:47:12]NVStorageDeleteData [18:47:13]Write to MH i2c: 01 00 00 D4 24 F8 [18:47:13]Write i2c OK [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: 01 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: 01 07 00 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: 01 07 00 D4 24 00 00 00 00 00 1A 0D 26 [18:47:13]RasterBufferAndPrint [18:47:13]line [18:47:13]line [18:47:13]line [18:47:13]line [18:47:13]line [18:47:13]written 0, free lines is 3361 [18:47:13]MH_Cut [18:47:13]Write to MH i2c: D1 01 00 DB 24 01 D1 [18:47:13]Write i2c OK [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: D1 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: D1 01 00 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: D1 01 00 DB 24 00 D0 [18:47:13]Write to MH i2c: 01 00 00 DC 24 00 [18:47:13]Write i2c OK [18:47:13]MH_I2C_Read... [18:47:13]OFD Sender: No OFD packet to send [18:47:13]*** Cut start [18:47:13]*** Partial cut [18:47:13]*** CUTSNS_PIN = 1 [18:47:13]*** CUTSNS_PIN = 0 [18:47:14]*** Brake cut motor [18:47:14]Read from MH i2c: 01 [18:47:14]MH_I2C_Read... [18:47:14]*** Stop cut motor [18:47:14]*** Cut end [18:47:14]Read from MH i2c: 01 07 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 07 00 DC 24 00 00 00 00 00 FF 0F 15 [18:47:14]process_action close_receipt done [18:47:14]requested_data is exist [18:47:14]produce_requested_data [18:47:14]requested_item fm.sn is exist - process it [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 11 00 00 [18:47:14]Write to MH i2c: E2 08 00 DD 24 80 11 00 00 00 00 00 00 7B [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 17 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 17 00 DD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [18:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:47:14]wFMCommunicate OK [18:47:14]requested_item fd.num is exist - process it [18:47:14]SAM_PROTO_GetFieldsCounters [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 13 00 00 [18:47:14]Write to MH i2c: E2 08 00 DE 24 80 13 00 00 00 00 00 00 7E [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 62 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 62 00 DE 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D DC 02 00 0E 04 04 00 88 02 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 43 [18:47:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D DC 02 00 0E 04 04 00 88 02 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:47:14]wFMCommunicate OK [18:47:14]SAM_PROTO_GetFieldsCounters done [18:47:14]requested_item shift.num is exist - process it [18:47:14]requested_item shift.opened is exist - process it [18:47:14]req_shift_opened [18:47:14]FM_GetShiftState [18:47:14]SAM_PROTO_GetShiftState [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 13 01 00 [18:47:14]Write to MH i2c: E2 08 00 DF 24 80 13 01 00 00 00 00 00 80 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 0E 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 0E 00 DF 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D2 [18:47:14]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:47:14]wFMCommunicate OK [18:47:14]SAM_PROTO_GetShiftState done [18:47:14]FM_GetShiftState done [18:47:14]req_shift_opened done [18:47:14]requested_item shift.open_date is exist - process it [18:47:14]req_shift_open_date [18:47:14]req_shift_open_date done [18:47:14]produce_requested_data done [18:47:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187453,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:47:14]process_action_free close_receipt [18:47:14]json_value_free [18:47:14]json_value_free done [18:47:14]process_json_proto returns [18:47:14]Send response to host [18:47:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187453,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:47:14]free response buf [18:47:14]execute_script done [18:47:14]execute_script returns [18:47:14]free content buf [18:47:14]Sock 9.Close socket [18:47:14]Sock 9.Thread stoped [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:09]accept exits with 7 [18:48:09]New connection [18:48:09]New thread 3067420004 created [18:48:09]Thread 3067276644 joined [18:48:09]Waiting for new connection... [18:48:09] Sock 7.Parse request [18:48:09]Sock 7.Check first char [18:48:09]Sock 7.First char is OK [18:48:09]request: POST /json_proto HTTP/1.0 [18:48:09]Method: POST [18:48:09]URL: /json_proto [18:48:09]Method is POST - this is cgi request [18:48:09]url: /json_proto [18:48:09]query_string will be loaded in cgi processing [18:48:09]execute_cgi json_proto POST (null) [18:48:09]execute_cgi path=json_proto method=POST [18:48:09]POST find Content-Length [18:48:09]Host: 172.17.46.131:8080 [18:48:09]Content-Length: 799 [18:48:09]Content-Type: application/json [18:48:09] [18:48:09]POST finish read [18:48:09]Found Content-Length = 799 [18:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 37.260, "sum" : 2705.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2705.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:09]execute_script... [18:48: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)412612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 37.260, "sum" : 2705.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2705.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:09]POST & json_proto [18:48:09]process_json_proto [18:48:09]json parsed OK: [18:48:09]protocol is kg_v1.0 [18:48:09]action value=close_receipt [18:48:09]process_action close_receipt [18:48:09]cmd_close_receipt [18:48:09]MH_GetDate [18:48:09]Write to MH i2c: F0 00 00 E0 24 F3 [18:48:09]Write i2c OK [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: F0 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: F0 09 00 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: F0 09 00 E0 24 00 EA 78 B7 67 7E 41 4F 65 EF [18:48:09]GetLastDocTimeStamp 1740077232 [18:48:09]current date 1740077290 [18:48:09]FM_GetShiftState [18:48:09]SAM_PROTO_GetShiftState [18:48:09]wFMCommunicate request_size=4 [18:48:09]MH_SAM_APDU [18:48:09]CAPDU: 80 13 01 00 [18:48:09]Write to MH i2c: E2 08 00 E1 24 80 13 01 00 00 00 00 00 82 [18:48:09]Write i2c OK [18:48:09]MH_I2C_Read... [18:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:09]Read from MH i2c: E2 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: E2 0E 00 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: E2 0E 00 E1 24 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D4 [18:48:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:48:09]wFMCommunicate OK [18:48:09]SAM_PROTO_GetShiftState done [18:48:09]FM_GetShiftState done [18:48:09]opened in 1740011697 [18:48:09]opened+sec_in_day 1740098097 [18:48:09]quantity*price = 270507 [18:48:09]sum+1 = 270509 [18:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2705.08 НСП 1% : 23.94 НДС 12% : 287.26 Наличными: 0.00 Безнал.: 2705.08 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 255 20.02.2025 18:48 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187454 ФПД: 150582660258811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184811&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187454&fm=150582660258811&tin=02508201610067®Number=0000000000091857&sum=270508 [18:48:10]StoreToDocumentArchive [18:48:10]shift 648 fd 187454 [18:48:10]save to /storage/0648/doc_00187454 [18:48:10]save last doc name /storage/0648/doc_00187454 to /storage/kkm_last_doc_name [18:48:10]save OK [18:48:10]Clear old archive folders... [18:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:48:10]tlvbuf is 00E68F30 [18:48:10]SAM_PROTO_ClearQueue [18:48:10]wFMCommunicate request_size=4 [18:48:10]MH_SAM_APDU [18:48:10]CAPDU: 80 09 00 00 [18:48:10]Write to MH i2c: E2 08 00 EE 24 80 09 00 00 00 00 00 00 84 [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 03 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 03 00 EE 24 00 90 00 86 [18:48:10]RAPDU: 90 00 [18:48:10]wFMCommunicate OK [18:48:10]SAM_PROTO_ClearQueue done [18:48:10]KKMCreateOFDPacket [18:48:10]OFDProtocolAddRootSTLVToBuf [18:48:10]FM_MakeSignedData [18:48:10]FM_MakeSignedData [18:48:10]SAM_PROTO_SignData [18:48:10]wFMCommunicate request_size=4 [18:48:10]MH_SAM_APDU [18:48:10]CAPDU: 80 0D 01 02 [18:48:10]Write to MH i2c: E2 08 00 EF 24 80 0D 01 02 00 00 00 00 8C [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 03 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 03 00 EF 24 00 90 00 87 [18:48:10]RAPDU: 90 00 [18:48:10]wFMCommunicate OK [18:48:10]wFMCommunicate request_size=255 [18:48:10]MH_SAM_APDU [18:48: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 8C 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AC 20 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 EB 78 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DC 02 00 35 04 06 00 88 F4 41 F9 [18:48:10]Write to MH i2c: E2 02 01 F0 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AC 20 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 EB 78 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DC 02 00 35 04 06 00 88 F4 41 F9 00 00 D8 [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 03 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 03 00 F0 24 00 90 00 88 [18:48:10]RAPDU: 90 00 [18:48:10]wFMCommunicate OK [18:48:10]wFMCommunicate request_size=7 [18:48:10]MH_SAM_APDU [18:48:10]CAPDU: 80 0D 02 02 02 5B FB [18:48:10]Write to MH i2c: E2 0A 00 F1 24 80 0D 02 02 02 00 5B FB 00 00 E9 [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 03 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 03 00 F1 24 00 90 00 89 [18:48:10]RAPDU: 90 00 [18:48:10]wFMCommunicate OK [18:48:10]wFMCommunicate request_size=4 [18:48:10]MH_SAM_APDU [18:48:10]CAPDU: 80 0D 03 02 [18:48:10]Write to MH i2c: E2 08 00 F2 24 80 0D 03 02 00 00 00 00 91 [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 0B 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 0B 00 F2 24 00 37 A5 8C 84 E2 9E CC 47 90 00 11 [18:48:10]RAPDU: 37 A5 8C 84 E2 9E CC 47 90 00 [18:48:10]wFMCommunicate OK [18:48:10]SAM_PROTO_SignData done [18:48:10]FM_MakeSignedData done [18:48:10]CreateOFDProtocolMessage [18:48:10]wFMCommunicate request_size=4 [18:48:10]MH_SAM_APDU [18:48:10]CAPDU: 80 11 00 00 [18:48:10]Write to MH i2c: E2 08 00 F3 24 80 11 00 00 00 00 00 00 91 [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 17 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 17 00 F3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E4 [18:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:48:10]wFMCommunicate OK [18:48:10]CreateOFDProtocolMessage done [18:48:10]OFDSenderStorePacket 187454 [18:48:10]StoreOFDPacket docnum=187454 [18:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 40 B1 04 01 CB BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AC 20 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 EB 78 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DC 02 00 35 04 06 00 88 F4 41 F9 5B FB 37 A5 8C 84 E2 9E CC 47 [18:48:10]CheckFolder [18:48:10]dirname=/storage/ofd_packets [18:48:10]CheckFolder done [18:48:10]ProducePacketName [18:48:10]name=ofd_packets/00187454 [18:48:10]NVStorageSaveData ofd_packets/00187454 [18:48:10]File name is /storage/ofd_packets/00187454 [18:48:10]Write 298 bytes [18:48:10]NVStorageSaveData done [18:48:10]OFDSenderStorePacket done [18:48:10]KKMCreateOFDPacket done [18:48:10]NVStorageSaveData kkm_last_timestamp [18:48:10]File name is /storage/kkm_last_timestamp [18:48:10]Write 4 bytes [18:48:10]NVStorageSaveData done [18:48:10]ExternCall_PrintAddStr [18:48:10]wPrintStart [18:48:10]Write to MH i2c: 01 00 00 F4 24 18 [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: 01 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: 01 07 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: 01 07 00 F4 24 00 00 00 00 00 FF 0F 2D [18:48:10]RasterBufferAndPrint [18:48:10]line Счет N : (1)412612 [18:48:10]line ИНН: 02508201610067 [18:48:10]line Контрольно-Кассовый Чек [18:48:10]line ПРОДАЖА [18:48:10]line ТРК (МРК, ГНК) : 5 [18:48:10]line Товар: 2710194210 [18:48:10]line ДТ-К-5 [18:48:10]line 37.260 * 72.60 [18:48:10]line = 2705.08 [18:48:10]line НДС 12% НСП 1% [18:48:10]line > о реализуемом товаре [18:48:10]line ИТОГО: 2705.08 [18:48:10]line НСП 1% : 23.94 [18:48:10]line НДС 12% : 287.26 [18:48:10]line Наличными: 0.00 [18:48:10]line Безнал.: 2705.08 [18:48:10]line Место: АЗС № 92 "Партнер Нефть" [18:48:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:48:10]line СНО: Общий режим [18:48:10]line Чек 255 20.02.2025 18:48 [18:48:10]line Смена: 648 ФФД: 1.0 [18:48:10]line ЗНМ: 0300000118 [18:48:10]line РНМ: 0000000000091857 [18:48:10]line Версия ККМ: 001 [18:48:10]line Платежная система: O! деньги [18:48:10]line ФМ: 0000000000871826 [18:48:10]line ФД: 187454 [18:48:10]line ФПД: 150582660258811 [18:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184811&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187454&fm=150582660258811&tin=02508201610067®Number=0000000000091857&sum=270508 [18:48:11]OFD Sender: Processing packet 187454 [packets to send 49, broken 48] [18:48:11]ProducePacketName [18:48:11]name=ofd_packets/00187454 [18:48:11]OFD Sender: To server: pG, [18:48:11]CommunicateWithHost lk.salyk.kg:30040 [18:48:11]ConnectInit lk.salyk.kg [18:48:11]written 0, free lines is 4095 [18:48:11]Connected sock=10 [18:48:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 40 B1 04 01 CB BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AC 20 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 EB 78 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DC 02 00 35 04 06 00 88 F4 41 F9 5B FB 37 A5 8C 84 E2 9E CC 47 [18:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D6 D8 47 00 92 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 31 38 32 36 10 04 04 00 3E DC 02 00 F4 03 04 00 3B 1F B7 67 B6 04 01 00 00 26 17 95 DD 4F DD B6 6F [18:48:11]CommunicateWithHost err = 0 [18:48:11]CheckOFDResponse [18:48:11]1017 (14) - 77093643461234 [18:48:11]1041 (16) - 0000000000871826 [18:48:11]1040 (4) - 187454 [18:48:11]1012 (4) - 20.02.2025 12:25 [18:48:11]1206 (1) - 0 [18:48:11]OFD Sender: Remove packet 187454 [18:48:11]ProducePacketName [18:48:11]name=ofd_packets/00187454 [18:48:11]NVStorageDeleteData [18:48:11]Write to MH i2c: 01 00 00 1E 25 43 [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: 01 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: 01 07 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: 01 07 00 1E 25 00 00 00 00 00 39 0D 90 [18:48:11]RasterBufferAndPrint [18:48:11]line [18:48:11]line [18:48:11]line [18:48:11]line [18:48:11]line [18:48:11]written 0, free lines is 3394 [18:48:11]MH_Cut [18:48:11]Write to MH i2c: D1 01 00 25 25 01 1C [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: D1 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: D1 01 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: D1 01 00 25 25 00 1B [18:48:11]Write to MH i2c: 01 00 00 26 25 4B [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:12]OFD Sender: No OFD packet to send [18:48:12]*** Cut start [18:48:12]*** Partial cut [18:48:12]*** CUTSNS_PIN = 1 [18:48:12]*** CUTSNS_PIN = 0 [18:48:12]*** Brake cut motor [18:48:12]Read from MH i2c: 01 [18:48:12]MH_I2C_Read... [18:48:12]*** Stop cut motor [18:48:12]*** Cut end [18:48:12]Read from MH i2c: 01 07 00 [18:48:12]MH_I2C_Read... [18:48:12]Read from MH i2c: 01 07 00 26 25 00 00 00 00 00 FF 0F 60 [18:48:12]process_action close_receipt done [18:48:12]requested_data is exist [18:48:12]produce_requested_data [18:48:12]requested_item fm.sn is exist - process it [18:48:12]wFMCommunicate request_size=4 [18:48:12]MH_SAM_APDU [18:48:12]CAPDU: 80 11 00 00 [18:48:12]Write to MH i2c: E2 08 00 27 25 80 11 00 00 00 00 00 00 C6 [18:48:12]Write i2c OK [18:48:12]MH_I2C_Read... [18:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:13]Read from MH i2c: E2 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 17 00 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 17 00 27 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [18:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:48:13]wFMCommunicate OK [18:48:13]requested_item fd.num is exist - process it [18:48:13]SAM_PROTO_GetFieldsCounters [18:48:13]wFMCommunicate request_size=4 [18:48:13]MH_SAM_APDU [18:48:13]CAPDU: 80 13 00 00 [18:48:13]Write to MH i2c: E2 08 00 28 25 80 13 00 00 00 00 00 00 C9 [18:48:13]Write i2c OK [18:48:13]MH_I2C_Read... [18:48:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:13]Read from MH i2c: E2 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 62 00 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 62 00 28 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E DC 02 00 0E 04 04 00 88 02 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 93 [18:48:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E DC 02 00 0E 04 04 00 88 02 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:48:13]wFMCommunicate OK [18:48:13]SAM_PROTO_GetFieldsCounters done [18:48:13]requested_item shift.num is exist - process it [18:48:13]requested_item shift.opened is exist - process it [18:48:13]req_shift_opened [18:48:13]FM_GetShiftState [18:48:13]SAM_PROTO_GetShiftState [18:48:13]wFMCommunicate request_size=4 [18:48:13]MH_SAM_APDU [18:48:13]CAPDU: 80 13 01 00 [18:48:13]Write to MH i2c: E2 08 00 29 25 80 13 01 00 00 00 00 00 CB [18:48:13]Write i2c OK [18:48:13]MH_I2C_Read... [18:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:13]Read from MH i2c: E2 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 0E 00 [18:48:13]MH_I2C_Read... [18:48:13]Read from MH i2c: E2 0E 00 29 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1D [18:48:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:48:13]wFMCommunicate OK [18:48:13]SAM_PROTO_GetShiftState done [18:48:13]FM_GetShiftState done [18:48:13]req_shift_opened done [18:48:13]requested_item shift.open_date is exist - process it [18:48:13]req_shift_open_date [18:48:13]req_shift_open_date done [18:48:13]produce_requested_data done [18:48:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187454,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:48:13]process_action_free close_receipt [18:48:13]json_value_free [18:48:13]json_value_free done [18:48:13]process_json_proto returns [18:48:13]Send response to host [18:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187454,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:48:13]free response buf [18:48:13]execute_script done [18:48:13]execute_script returns [18:48:13]free content buf [18:48:13]Sock 7.Close socket [18:48:13]Sock 7.Thread stoped [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:44]accept exits with 9 [18:49:44]New connection [18:49:44]New thread 3067276644 created [18:49:44]Thread 3067420004 joined [18:49:44]Waiting for new connection... [18:49:44] Sock 9.Parse request [18:49:44]Sock 9.Check first char [18:49:44]Sock 9.First char is OK [18:49:44]request: POST /json_proto HTTP/1.0 [18:49:44]Method: POST [18:49:44]URL: /json_proto [18:49:44]Method is POST - this is cgi request [18:49:44]url: /json_proto [18:49:44]query_string will be loaded in cgi processing [18:49:44]execute_cgi json_proto POST (null) [18:49:44]execute_cgi path=json_proto method=POST [18:49:44]POST find Content-Length [18:49:44]Host: 172.17.46.131:8080 [18:49:44]Content-Length: 677 [18:49:44]Content-Type: application/json [18:49:44] [18:49:44]POST finish read [18:49:44]Found Content-Length = 677 [18:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:44]execute_script... [18:49:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:44]POST & json_proto [18:49:44]process_json_proto [18:49:44]json parsed OK: [18:49:44]protocol is kg_v1.0 [18:49:44]action value=close_receipt [18:49:44]process_action close_receipt [18:49:44]cmd_close_receipt [18:49:44]MH_GetDate [18:49:44]Write to MH i2c: F0 00 00 2A 25 3E [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: F0 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: F0 09 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: F0 09 00 2A 25 00 4A 79 B7 67 7E 41 4F 65 9B [18:49:44]GetLastDocTimeStamp 1740077291 [18:49:44]current date 1740077386 [18:49:44]FM_GetShiftState [18:49:44]SAM_PROTO_GetShiftState [18:49:44]wFMCommunicate request_size=4 [18:49:44]MH_SAM_APDU [18:49:44]CAPDU: 80 13 01 00 [18:49:44]Write to MH i2c: E2 08 00 2B 25 80 13 01 00 00 00 00 00 CD [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:44]Read from MH i2c: E2 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 0E 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 0E 00 2B 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 1F [18:49:44]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:49:44]wFMCommunicate OK [18:49:44]SAM_PROTO_GetShiftState done [18:49:44]FM_GetShiftState done [18:49:44]opened in 1740011697 [18:49:44]opened+sec_in_day 1740098097 [18:49:44]quantity*price = 40060 [18:49:44]sum+1 = 40062 [18:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 256 20.02.2025 18:49 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187455 ФПД: 246777279379091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184946&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187455&fm=246777279379091&tin=02508201610067®Number=0000000000091857&sum=40000 [18:49:45]StoreToDocumentArchive [18:49:45]shift 648 fd 187455 [18:49:45]save to /storage/0648/doc_00187455 [18:49:45]save last doc name /storage/0648/doc_00187455 to /storage/kkm_last_doc_name [18:49:45]save OK [18:49:45]Clear old archive folders... [18:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:45]tlvbuf is 00EAD5D0 [18:49:45]SAM_PROTO_ClearQueue [18:49:45]wFMCommunicate request_size=4 [18:49:45]MH_SAM_APDU [18:49:45]CAPDU: 80 09 00 00 [18:49:45]Write to MH i2c: E2 08 00 38 25 80 09 00 00 00 00 00 00 CF [18:49:45]Write i2c OK [18:49:45]MH_I2C_Read... [18:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:45]Read from MH i2c: E2 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: E2 03 00 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: E2 03 00 38 25 00 90 00 D1 [18:49:45]RAPDU: 90 00 [18:49:45]wFMCommunicate OK [18:49:45]SAM_PROTO_ClearQueue done [18:49:45]KKMCreateOFDPacket [18:49:45]OFDProtocolAddRootSTLVToBuf [18:49:45]FM_MakeSignedData [18:49:45]FM_MakeSignedData [18:49:45]SAM_PROTO_SignData [18:49:45]wFMCommunicate request_size=4 [18:49:45]MH_SAM_APDU [18:49:45]CAPDU: 80 0D 01 02 [18:49:45]Write to MH i2c: E2 08 00 39 25 80 0D 01 02 00 00 00 00 D7 [18:49:45]Write i2c OK [18:49:45]MH_I2C_Read... [18:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:45]Read from MH i2c: E2 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: E2 03 00 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: E2 03 00 39 25 00 90 00 D2 [18:49:45]RAPDU: 90 00 [18:49:45]wFMCommunicate OK [18:49:45]wFMCommunicate request_size=255 [18:49:45]MH_SAM_APDU [18:49: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 00 01 00 00 F4 03 04 00 4A 79 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DC 02 00 35 04 06 00 E0 [18:49:45]Write to MH i2c: E2 02 01 3A 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 00 01 00 00 F4 03 04 00 4A 79 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DC 02 00 35 04 06 00 E0 00 00 D3 [18:49:45]Write i2c OK [18:49:45]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 3A 25 00 90 00 D3 [18:49:46]RAPDU: 90 00 [18:49:46]wFMCommunicate OK [18:49:46]wFMCommunicate request_size=10 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 0D 02 02 05 71 50 13 76 93 [18:49:46]Write to MH i2c: E2 0D 00 3B 25 80 0D 02 02 05 00 71 50 13 76 93 00 00 C1 [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 03 00 3B 25 00 90 00 D4 [18:49:46]RAPDU: 90 00 [18:49:46]wFMCommunicate OK [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 0D 03 02 [18:49:46]Write to MH i2c: E2 08 00 3C 25 80 0D 03 02 00 00 00 00 DC [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 0B 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 0B 00 3C 25 00 ED 4F 9C 87 F6 DD 9E 1F 90 00 CC [18:49:46]RAPDU: ED 4F 9C 87 F6 DD 9E 1F 90 00 [18:49:46]wFMCommunicate OK [18:49:46]SAM_PROTO_SignData done [18:49:46]FM_MakeSignedData done [18:49:46]CreateOFDProtocolMessage [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 11 00 00 [18:49:46]Write to MH i2c: E2 08 00 3D 25 80 11 00 00 00 00 00 00 DC [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 17 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 17 00 3D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [18:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:49:46]wFMCommunicate OK [18:49:46]CreateOFDProtocolMessage done [18:49:46]OFDSenderStorePacket 187455 [18:49:46]StoreOFDPacket docnum=187455 [18:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 03 BA 07 01 C1 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 00 01 00 00 F4 03 04 00 4A 79 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DC 02 00 35 04 06 00 E0 71 50 13 76 93 ED 4F 9C 87 F6 DD 9E 1F [18:49:46]CheckFolder [18:49:46]dirname=/storage/ofd_packets [18:49:46]CheckFolder done [18:49:46]ProducePacketName [18:49:46]name=ofd_packets/00187455 [18:49:46]NVStorageSaveData ofd_packets/00187455 [18:49:46]File name is /storage/ofd_packets/00187455 [18:49:46]Write 301 bytes [18:49:46]NVStorageSaveData done [18:49:46]OFDSenderStorePacket done [18:49:46]KKMCreateOFDPacket done [18:49:46]NVStorageSaveData kkm_last_timestamp [18:49:46]File name is /storage/kkm_last_timestamp [18:49:46]Write 4 bytes [18:49:46]NVStorageSaveData done [18:49:46]ExternCall_PrintAddStr [18:49:46]wPrintStart [18:49:46]Write to MH i2c: 01 00 00 3E 25 63 [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: 01 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: 01 07 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: 01 07 00 3E 25 00 00 00 00 00 FF 0F 78 [18:49:46]RasterBufferAndPrint [18:49:46]line Счет N : (1)412614 [18:49:46]line ИНН: 02508201610067 [18:49:46]line Контрольно-Кассовый Чек [18:49:46]line ПРОДАЖА [18:49:46]line ТРК (МРК, ГНК) : 12 [18:49:46]line Товар: 2710124130 [18:49:46]line Аи-92-К-2 [18:49:46]line 6.240 * 64.20 [18:49:46]line = 400.61 [18:49:46]line НДС 12% НСП 1% [18:49:46]line > о реализуемом товаре [18:49:46]line ОКРУГЛЕНИЕ: -0.61 [18:49:46]line ИТОГО: 400.00 [18:49:46]line Внесено: 400.00 [18:49:46]line СДАЧА: 0.00 [18:49:46]line НСП 1% : 3.54 [18:49:46]line НДС 12% : 42.54 [18:49:46]line Наличными: 400.00 [18:49:46]line Безнал.: 0.00 [18:49:46]line Место: АЗС № 92 "Партнер Нефть" [18:49:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:49:46]line СНО: Общий режим [18:49:46]line Чек 256 20.02.2025 18:49 [18:49:46]line Смена: 648 ФФД: 1.0 [18:49:46]line ЗНМ: 0300000118 [18:49:46]line РНМ: 0000000000091857 [18:49:46]line Версия ККМ: 001 [18:49:46]line ФМ: 0000000000871826 [18:49:46]line ФД: 187455 [18:49:46]line ФПД: 246777279379091 [18:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T184946&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187455&fm=246777279379091&tin=02508201610067®Number=0000000000091857&sum=40000 [18:49:46]written 0, free lines is 4095 [18:49:46]OFD Sender: Processing packet 187455 [packets to send 49, broken 48] [18:49:46]ProducePacketName [18:49:46]name=ofd_packets/00187455 [18:49:46]OFD Sender: To server: pG, [18:49:46]CommunicateWithHost lk.salyk.kg:30040 [18:49:46]ConnectInit lk.salyk.kg [18:49:47]Write to MH i2c: 01 00 00 69 25 8E [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 07 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 EB 0C 8C [18:49:47]RasterBufferAndPrint [18:49:47]line [18:49:47]line [18:49:47]line [18:49:47]line [18:49:47]line [18:49:47]written 0, free lines is 3313 [18:49:47]MH_Cut [18:49:47]Write to MH i2c: D1 01 00 70 25 01 67 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: D1 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: D1 01 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: D1 01 00 70 25 00 66 [18:49:47]Write to MH i2c: 01 00 00 71 25 96 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]*** Cut start [18:49:47]*** Partial cut [18:49:47]*** CUTSNS_PIN = 1 [18:49:47]*** CUTSNS_PIN = 0 [18:49:48]*** Brake cut motor [18:49:48]Read from MH i2c: 01 [18:49:48]MH_I2C_Read... [18:49:48]*** Stop cut motor [18:49:48]*** Cut end [18:49:48]Read from MH i2c: 01 07 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: 01 07 00 71 25 00 00 00 00 00 FF 0F AB [18:49:48]process_action close_receipt done [18:49:48]requested_data is exist [18:49:48]produce_requested_data [18:49:48]requested_item fm.sn is exist - process it [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 11 00 00 [18:49:48]Write to MH i2c: E2 08 00 72 25 80 11 00 00 00 00 00 00 11 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 17 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 17 00 72 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [18:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:49:48]wFMCommunicate OK [18:49:48]requested_item fd.num is exist - process it [18:49:48]SAM_PROTO_GetFieldsCounters [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 13 00 00 [18:49:48]Write to MH i2c: E2 08 00 73 25 80 13 00 00 00 00 00 00 14 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 62 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 62 00 73 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3F DC 02 00 0E 04 04 00 88 02 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 E4 [18:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3F DC 02 00 0E 04 04 00 88 02 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:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_GetFieldsCounters done [18:49:48]requested_item shift.num is exist - process it [18:49:48]requested_item shift.opened is exist - process it [18:49:48]req_shift_opened [18:49:48]FM_GetShiftState [18:49:48]SAM_PROTO_GetShiftState [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 13 01 00 [18:49:48]Write to MH i2c: E2 08 00 74 25 80 13 01 00 00 00 00 00 16 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0E 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0E 00 74 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 68 [18:49:48]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_GetShiftState done [18:49:48]FM_GetShiftState done [18:49:48]req_shift_opened done [18:49:48]requested_item shift.open_date is exist - process it [18:49:48]req_shift_open_date [18:49:48]req_shift_open_date done [18:49:48]produce_requested_data done [18:49:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187455,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:49:48]process_action_free close_receipt [18:49:48]json_value_free [18:49:48]json_value_free done [18:49:48]process_json_proto returns [18:49:48]Send response to host [18:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187455,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:49:48]free response buf [18:49:48]execute_script done [18:49:48]execute_script returns [18:49:48]free content buf [18:49:48]Sock 9.Close socket [18:49:48]Sock 9.Thread stoped [18:50:34]accept exits with 7 [18:50:34]New connection [18:50:34]New thread 3067420004 created [18:50:34]Thread 3067276644 joined [18:50:34]Waiting for new connection... [18:50:34] Sock 7.Parse request [18:50:34]Sock 7.Check first char [18:50:34]Sock 7.First char is OK [18:50:34]request: POST /json_proto HTTP/1.0 [18:50:34]Method: POST [18:50:34]URL: /json_proto [18:50:34]Method is POST - this is cgi request [18:50:34]url: /json_proto [18:50:34]query_string will be loaded in cgi processing [18:50:34]execute_cgi json_proto POST (null) [18:50:34]execute_cgi path=json_proto method=POST [18:50:34]POST find Content-Length [18:50:34]Host: 172.17.46.131:8080 [18:50:34]Content-Length: 682 [18:50:34]Content-Type: application/json [18:50:34] [18:50:34]POST finish read [18:50:34]Found Content-Length = 682 [18:50:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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:50:34]execute_script... [18:50: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)412615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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:50:34]POST & json_proto [18:50:34]process_json_proto [18:50:34]json parsed OK: [18:50:34]protocol is kg_v1.0 [18:50:34]action value=close_receipt [18:50:34]process_action close_receipt [18:50:34]cmd_close_receipt [18:50:34]MH_GetDate [18:50:34]Write to MH i2c: F0 00 00 75 25 89 [18:50:34]Write i2c OK [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: F0 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: F0 09 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: F0 09 00 75 25 00 7C 79 B7 67 7E 41 4F 65 18 [18:50:34]GetLastDocTimeStamp 1740077386 [18:50:34]current date 1740077436 [18:50:34]FM_GetShiftState [18:50:34]SAM_PROTO_GetShiftState [18:50:34]wFMCommunicate request_size=4 [18:50:34]MH_SAM_APDU [18:50:34]CAPDU: 80 13 01 00 [18:50:34]Write to MH i2c: E2 08 00 76 25 80 13 01 00 00 00 00 00 18 [18:50:34]Write i2c OK [18:50:34]MH_I2C_Read... [18:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:34]Read from MH i2c: E2 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 0E 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 0E 00 76 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 6A [18:50:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:50:34]wFMCommunicate OK [18:50:34]SAM_PROTO_GetShiftState done [18:50:34]FM_GetShiftState done [18:50:34]opened in 1740011697 [18:50:34]opened+sec_in_day 1740098097 [18:50:34]quantity*price = 100012 [18:50:34]sum+1 = 100014 [18:50:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 257 20.02.2025 18:50 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187456 ФПД: 276613038513921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T185036&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187456&fm=276613038513921&tin=02508201610067®Number=0000000000091857&sum=100000 [18:50:35]StoreToDocumentArchive [18:50:35]shift 648 fd 187456 [18:50:35]save to /storage/0648/doc_00187456 [18:50:35]save last doc name /storage/0648/doc_00187456 to /storage/kkm_last_doc_name [18:50:35]save OK [18:50:35]Clear old archive folders... [18:50:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:35]tlvbuf is 00E68F90 [18:50:35]SAM_PROTO_ClearQueue [18:50:35]wFMCommunicate request_size=4 [18:50:35]MH_SAM_APDU [18:50:35]CAPDU: 80 09 00 00 [18:50:35]Write to MH i2c: E2 08 00 83 25 80 09 00 00 00 00 00 00 1A [18:50:35]Write i2c OK [18:50:35]MH_I2C_Read... [18:50:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:35]Read from MH i2c: E2 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 03 00 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 03 00 83 25 00 90 00 1C [18:50:35]RAPDU: 90 00 [18:50:35]wFMCommunicate OK [18:50:35]SAM_PROTO_ClearQueue done [18:50:35]KKMCreateOFDPacket [18:50:35]OFDProtocolAddRootSTLVToBuf [18:50:35]FM_MakeSignedData [18:50:35]FM_MakeSignedData [18:50:35]SAM_PROTO_SignData [18:50:35]wFMCommunicate request_size=4 [18:50:35]MH_SAM_APDU [18:50:35]CAPDU: 80 0D 01 02 [18:50:35]Write to MH i2c: E2 08 00 84 25 80 0D 01 02 00 00 00 00 22 [18:50:35]Write i2c OK [18:50:35]MH_I2C_Read... [18:50:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:35]Read from MH i2c: E2 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 03 00 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 03 00 84 25 00 90 00 1D [18:50:35]RAPDU: 90 00 [18:50:35]wFMCommunicate OK [18:50:35]wFMCommunicate request_size=255 [18:50:35]MH_SAM_APDU [18:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 01 01 00 00 F4 03 04 00 7C 79 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DC 02 00 35 04 06 00 FB [18:50:35]Write to MH i2c: E2 02 01 85 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 01 01 00 00 F4 03 04 00 7C 79 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DC 02 00 35 04 06 00 FB 00 00 4B [18:50:35]Write i2c OK [18:50:35]MH_I2C_Read... [18:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:36]Read from MH i2c: E2 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 03 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 03 00 85 25 00 90 00 1E [18:50:36]RAPDU: 90 00 [18:50:36]wFMCommunicate OK [18:50:36]wFMCommunicate request_size=10 [18:50:36]MH_SAM_APDU [18:50:36]CAPDU: 80 0D 02 02 05 93 FD E6 9F 01 [18:50:36]Write to MH i2c: E2 0D 00 86 25 80 0D 02 02 05 00 93 FD E6 9F 01 00 00 45 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:36]Read from MH i2c: E2 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 03 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 03 00 86 25 00 90 00 1F [18:50:36]RAPDU: 90 00 [18:50:36]wFMCommunicate OK [18:50:36]wFMCommunicate request_size=4 [18:50:36]MH_SAM_APDU [18:50:36]CAPDU: 80 0D 03 02 [18:50:36]Write to MH i2c: E2 08 00 87 25 80 0D 03 02 00 00 00 00 27 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:36]Read from MH i2c: E2 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 0B 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 0B 00 87 25 00 F1 59 DF AB BB 88 55 8D 90 00 21 [18:50:36]RAPDU: F1 59 DF AB BB 88 55 8D 90 00 [18:50:36]wFMCommunicate OK [18:50:36]SAM_PROTO_SignData done [18:50:36]FM_MakeSignedData done [18:50:36]CreateOFDProtocolMessage [18:50:36]wFMCommunicate request_size=4 [18:50:36]MH_SAM_APDU [18:50:36]CAPDU: 80 11 00 00 [18:50:36]Write to MH i2c: E2 08 00 88 25 80 11 00 00 00 00 00 00 27 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:36]Read from MH i2c: E2 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 17 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: E2 17 00 88 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [18:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:50:36]wFMCommunicate OK [18:50:36]CreateOFDProtocolMessage done [18:50:36]OFDSenderStorePacket 187456 [18:50:36]StoreOFDPacket docnum=187456 [18:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B1 58 07 01 4E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 01 01 00 00 F4 03 04 00 7C 79 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DC 02 00 35 04 06 00 FB 93 FD E6 9F 01 F1 59 DF AB BB 88 55 8D [18:50:36]CheckFolder [18:50:36]dirname=/storage/ofd_packets [18:50:36]CheckFolder done [18:50:36]ProducePacketName [18:50:36]name=ofd_packets/00187456 [18:50:36]NVStorageSaveData ofd_packets/00187456 [18:50:36]File name is /storage/ofd_packets/00187456 [18:50:36]Write 301 bytes [18:50:36]NVStorageSaveData done [18:50:36]OFDSenderStorePacket done [18:50:36]KKMCreateOFDPacket done [18:50:36]NVStorageSaveData kkm_last_timestamp [18:50:36]File name is /storage/kkm_last_timestamp [18:50:36]Write 4 bytes [18:50:36]NVStorageSaveData done [18:50:36]ExternCall_PrintAddStr [18:50:36]wPrintStart [18:50:36]Write to MH i2c: 01 00 00 89 25 AE [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 89 25 00 00 00 00 00 FF 0F C3 [18:50:36]RasterBufferAndPrint [18:50:36]line Счет N : (1)412615 [18:50:36]line ИНН: 02508201610067 [18:50:36]line Контрольно-Кассовый Чек [18:50:36]line ПРОДАЖА [18:50:36]line ТРК (МРК, ГНК) : 23 [18:50:36]line Товар: 2710124500 [18:50:36]line Аи-95-К-5 [18:50:36]line 13.910 * 71.90 [18:50:36]line = 1000.13 [18:50:36]line НДС 12% НСП 1% [18:50:36]line > о реализуемом товаре [18:50:36]line ОКРУГЛЕНИЕ: -0.13 [18:50:36]line ИТОГО: 1000.00 [18:50:36]line Внесено: 1000.00 [18:50:36]line СДАЧА: 0.00 [18:50:36]line НСП 1% : 8.85 [18:50:36]line НДС 12% : 106.21 [18:50:36]line Наличными: 1000.00 [18:50:36]line Безнал.: 0.00 [18:50:36]line Место: АЗС № 92 "Партнер Нефть" [18:50:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:50:36]line СНО: Общий режим [18:50:36]line Чек 257 20.02.2025 18:50 [18:50:36]line Смена: 648 ФФД: 1.0 [18:50:36]line ЗНМ: 0300000118 [18:50:36]line РНМ: 0000000000091857 [18:50:36]line Версия ККМ: 001 [18:50:36]line ФМ: 0000000000871826 [18:50:36]line ФД: 187456 [18:50:36]line ФПД: 276613038513921 [18:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T185036&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187456&fm=276613038513921&tin=02508201610067®Number=0000000000091857&sum=100000 [18:50:36]written 0, free lines is 4095 [18:50:36]Write to MH i2c: 01 00 00 B4 25 D9 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 B4 25 00 00 00 00 00 ED 0C D9 [18:50:36]RasterBufferAndPrint [18:50:36]line [18:50:36]line [18:50:36]line [18:50:36]line [18:50:36]line [18:50:36]written 0, free lines is 3315 [18:50:36]MH_Cut [18:50:36]Write to MH i2c: D1 01 00 BB 25 01 B2 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: D1 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: D1 01 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: D1 01 00 BB 25 00 B1 [18:50:36]Write to MH i2c: 01 00 00 BC 25 E1 [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:37]*** Cut start [18:50:37]*** Partial cut [18:50:37]*** CUTSNS_PIN = 1 [18:50:37]*** CUTSNS_PIN = 0 [18:50:37]*** Brake cut motor [18:50:38]Read from MH i2c: 01 [18:50:38]MH_I2C_Read... [18:50:38]*** Stop cut motor [18:50:38]*** Cut end [18:50:38]Read from MH i2c: 01 07 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 07 00 BC 25 00 00 00 00 00 FF 0F F6 [18:50:38]process_action close_receipt done [18:50:38]requested_data is exist [18:50:38]produce_requested_data [18:50:38]requested_item fm.sn is exist - process it [18:50:38]wFMCommunicate request_size=4 [18:50:38]MH_SAM_APDU [18:50:38]CAPDU: 80 11 00 00 [18:50:38]Write to MH i2c: E2 08 00 BD 25 80 11 00 00 00 00 00 00 5C [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:38]Read from MH i2c: E2 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 17 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 17 00 BD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [18:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:50:38]wFMCommunicate OK [18:50:38]requested_item fd.num is exist - process it [18:50:38]SAM_PROTO_GetFieldsCounters [18:50:38]wFMCommunicate request_size=4 [18:50:38]MH_SAM_APDU [18:50:38]CAPDU: 80 13 00 00 [18:50:38]Write to MH i2c: E2 08 00 BE 25 80 13 00 00 00 00 00 00 5F [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:38]Read from MH i2c: E2 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 62 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 62 00 BE 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 40 DC 02 00 0E 04 04 00 88 02 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 33 [18:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 40 DC 02 00 0E 04 04 00 88 02 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:50:38]wFMCommunicate OK [18:50:38]SAM_PROTO_GetFieldsCounters done [18:50:38]requested_item shift.num is exist - process it [18:50:38]requested_item shift.opened is exist - process it [18:50:38]req_shift_opened [18:50:38]FM_GetShiftState [18:50:38]SAM_PROTO_GetShiftState [18:50:38]wFMCommunicate request_size=4 [18:50:38]MH_SAM_APDU [18:50:38]CAPDU: 80 13 01 00 [18:50:38]Write to MH i2c: E2 08 00 BF 25 80 13 01 00 00 00 00 00 61 [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:38]Read from MH i2c: E2 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 0E 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: E2 0E 00 BF 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B3 [18:50:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:50:38]wFMCommunicate OK [18:50:38]SAM_PROTO_GetShiftState done [18:50:38]FM_GetShiftState done [18:50:38]req_shift_opened done [18:50:38]requested_item shift.open_date is exist - process it [18:50:38]req_shift_open_date [18:50:38]req_shift_open_date done [18:50:38]produce_requested_data done [18:50:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187456,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:50:38]process_action_free close_receipt [18:50:38]json_value_free [18:50:38]json_value_free done [18:50:38]process_json_proto returns [18:50:38]Send response to host [18:50:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187456,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:50:38]free response buf [18:50:38]execute_script done [18:50:38]execute_script returns [18:50:38]free content buf [18:50:38]Sock 7.Close socket [18:50:38]Sock 7.Thread stoped [18:51:57]ConnectInit Can't connect to host [18:51:57]CommunicateWithHost connect error [18:51:57]CommunicateWithHost err = -1 [18:51:57]OFD Sender: Server communicate error [18:51:57]OFD Sender: Processing packet 187455 [packets to send 50, broken 48] [18:51:57]ProducePacketName [18:51:57]name=ofd_packets/00187455 [18:51:57]OFD Sender: To server: pG, [18:51:57]CommunicateWithHost lk.salyk.kg:30040 [18:51:57]ConnectInit lk.salyk.kg [18:51:57]Connected sock=7 [18:51:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 03 BA 07 01 C1 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 00 01 00 00 F4 03 04 00 4A 79 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DC 02 00 35 04 06 00 E0 71 50 13 76 93 ED 4F 9C 87 F6 DD 9E 1F [18:51:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 10 47 00 3B 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DC 02 00 F4 03 04 00 1D 20 B7 67 B6 04 01 00 00 11 4F 35 D2 C9 04 77 FF [18:51:57]CommunicateWithHost err = 0 [18:51:57]CheckOFDResponse [18:51:57]1017 (14) - 77093643461234 [18:51:57]1041 (16) - 0000000000871826 [18:51:57]1040 (4) - 187455 [18:51:57]1012 (4) - 20.02.2025 12:29 [18:51:57]1206 (1) - 0 [18:51:57]OFD Sender: Remove packet 187455 [18:51:57]ProducePacketName [18:51:57]name=ofd_packets/00187455 [18:51:57]NVStorageDeleteData [18:51:58]OFD Sender: Processing packet 187456 [packets to send 49, broken 48] [18:51:58]ProducePacketName [18:51:58]name=ofd_packets/00187456 [18:51:58]OFD Sender: To server: pG, [18:51:58]CommunicateWithHost lk.salyk.kg:30040 [18:51:58]ConnectInit lk.salyk.kg [18:51:58]Connected sock=7 [18:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B1 58 07 01 4E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 01 01 00 00 F4 03 04 00 7C 79 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DC 02 00 35 04 06 00 FB 93 FD E6 9F 01 F1 59 DF AB BB 88 55 8D [18:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 90 2A 47 00 F3 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 31 38 32 36 10 04 04 00 40 DC 02 00 F4 03 04 00 1E 20 B7 67 B6 04 01 00 00 A8 77 7B A6 E7 23 44 86 [18:51:58]CommunicateWithHost err = 0 [18:51:58]CheckOFDResponse [18:51:58]1017 (14) - 77093643461234 [18:51:58]1041 (16) - 0000000000871826 [18:51:58]1040 (4) - 187456 [18:51:58]1012 (4) - 20.02.2025 12:29 [18:51:58]1206 (1) - 0 [18:51:58]OFD Sender: Remove packet 187456 [18:51:58]ProducePacketName [18:51:58]name=ofd_packets/00187456 [18:51:58]NVStorageDeleteData [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:35]accept exits with 9 [18:56:35]New connection [18:56:35]New thread 3067276644 created [18:56:35]Thread 3067420004 joined [18:56:35]Waiting for new connection... [18:56:35] Sock 9.Parse request [18:56:35]Sock 9.Check first char [18:56:35]Sock 9.First char is OK [18:56:35]request: POST /json_proto HTTP/1.0 [18:56:35]Method: POST [18:56:35]URL: /json_proto [18:56:35]Method is POST - this is cgi request [18:56:35]url: /json_proto [18:56:35]query_string will be loaded in cgi processing [18:56:35]execute_cgi json_proto POST (null) [18:56:35]execute_cgi path=json_proto method=POST [18:56:35]POST find Content-Length [18:56:35]Host: 172.17.46.131:8080 [18:56:35]Content-Length: 803 [18:56:35]Content-Type: application/json [18:56:35] [18:56:35]POST finish read [18:56:35]Found Content-Length = 803 [18:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:35]execute_script... [18:56: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)412616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:35]POST & json_proto [18:56:35]process_json_proto [18:56:35]json parsed OK: [18:56:35]protocol is kg_v1.0 [18:56:35]action value=close_receipt [18:56:35]process_action close_receipt [18:56:35]cmd_close_receipt [18:56:35]MH_GetDate [18:56:35]Write to MH i2c: F0 00 00 C0 25 D4 [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: F0 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: F0 09 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: F0 09 00 C0 25 00 E5 7A B7 67 7E 41 4F 65 CD [18:56:35]GetLastDocTimeStamp 1740077436 [18:56:35]current date 1740077797 [18:56:35]FM_GetShiftState [18:56:35]SAM_PROTO_GetShiftState [18:56:35]wFMCommunicate request_size=4 [18:56:35]MH_SAM_APDU [18:56:35]CAPDU: 80 13 01 00 [18:56:35]Write to MH i2c: E2 08 00 C1 25 80 13 01 00 00 00 00 00 63 [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:35]Read from MH i2c: E2 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 0E 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 0E 00 C1 25 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 B5 [18:56:35]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:56:35]wFMCommunicate OK [18:56:35]SAM_PROTO_GetShiftState done [18:56:35]FM_GetShiftState done [18:56:35]opened in 1740011697 [18:56:35]opened+sec_in_day 1740098097 [18:56:35]quantity*price = 400051 [18:56:35]sum+1 = 400053 [18:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.52 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.52 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 258 20.02.2025 18:56 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187457 ФПД: 62220496591712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T185637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187457&fm=62220496591712&tin=02508201610067®Number=0000000000091857&sum=400052 [18:56:36]StoreToDocumentArchive [18:56:36]shift 648 fd 187457 [18:56:36]save to /storage/0648/doc_00187457 [18:56:36]save last doc name /storage/0648/doc_00187457 to /storage/kkm_last_doc_name [18:56:36]save OK [18:56:36]Clear old archive folders... [18:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:36]tlvbuf is 00E18DD0 [18:56:36]SAM_PROTO_ClearQueue [18:56:36]wFMCommunicate request_size=4 [18:56:36]MH_SAM_APDU [18:56:36]CAPDU: 80 09 00 00 [18:56:36]Write to MH i2c: E2 08 00 CE 25 80 09 00 00 00 00 00 00 65 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:36]Read from MH i2c: E2 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 03 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 03 00 CE 25 00 90 00 67 [18:56:36]RAPDU: 90 00 [18:56:36]wFMCommunicate OK [18:56:36]SAM_PROTO_ClearQueue done [18:56:36]KKMCreateOFDPacket [18:56:36]OFDProtocolAddRootSTLVToBuf [18:56:36]FM_MakeSignedData [18:56:36]FM_MakeSignedData [18:56:36]SAM_PROTO_SignData [18:56:36]wFMCommunicate request_size=4 [18:56:36]MH_SAM_APDU [18:56:36]CAPDU: 80 0D 01 02 [18:56:36]Write to MH i2c: E2 08 00 CF 25 80 0D 01 02 00 00 00 00 6D [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:36]Read from MH i2c: E2 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 03 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 03 00 CF 25 00 90 00 68 [18:56:36]RAPDU: 90 00 [18:56:36]wFMCommunicate OK [18:56:36]wFMCommunicate request_size=255 [18:56:36]MH_SAM_APDU [18:56: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 E5 7A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DC 02 00 35 04 06 00 38 [18:56:36]Write to MH i2c: E2 02 01 D0 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 E5 7A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DC 02 00 35 04 06 00 38 00 00 39 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:36]Read from MH i2c: E2 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 03 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 03 00 D0 25 00 90 00 69 [18:56:36]RAPDU: 90 00 [18:56:36]wFMCommunicate OK [18:56:36]wFMCommunicate request_size=10 [18:56:36]MH_SAM_APDU [18:56:36]CAPDU: 80 0D 02 02 05 96 D6 98 DB 60 [18:56:36]Write to MH i2c: E2 0D 00 D1 25 80 0D 02 02 05 00 96 D6 98 DB 60 00 00 B9 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:36]Read from MH i2c: E2 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 03 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 03 00 D1 25 00 90 00 6A [18:56:36]RAPDU: 90 00 [18:56:36]wFMCommunicate OK [18:56:36]wFMCommunicate request_size=4 [18:56:36]MH_SAM_APDU [18:56:36]CAPDU: 80 0D 03 02 [18:56:36]Write to MH i2c: E2 08 00 D2 25 80 0D 03 02 00 00 00 00 72 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:36]Read from MH i2c: E2 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 0B 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 0B 00 D2 25 00 C0 85 26 66 F3 1F 89 83 90 00 62 [18:56:36]RAPDU: C0 85 26 66 F3 1F 89 83 90 00 [18:56:36]wFMCommunicate OK [18:56:36]SAM_PROTO_SignData done [18:56:36]FM_MakeSignedData done [18:56:36]CreateOFDProtocolMessage [18:56:36]wFMCommunicate request_size=4 [18:56:36]MH_SAM_APDU [18:56:36]CAPDU: 80 11 00 00 [18:56:36]Write to MH i2c: E2 08 00 D3 25 80 11 00 00 00 00 00 00 72 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:36]Read from MH i2c: E2 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 17 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: E2 17 00 D3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C5 [18:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:56:36]wFMCommunicate OK [18:56:36]CreateOFDProtocolMessage done [18:56:36]OFDSenderStorePacket 187457 [18:56:36]StoreOFDPacket docnum=187457 [18:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F0 C8 07 01 A6 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 E5 7A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DC 02 00 35 04 06 00 38 96 D6 98 DB 60 C0 85 26 66 F3 1F 89 83 [18:56:36]CheckFolder [18:56:36]dirname=/storage/ofd_packets [18:56:36]CheckFolder done [18:56:36]ProducePacketName [18:56:36]name=ofd_packets/00187457 [18:56:36]NVStorageSaveData ofd_packets/00187457 [18:56:36]File name is /storage/ofd_packets/00187457 [18:56:36]Write 301 bytes [18:56:36]NVStorageSaveData done [18:56:36]OFDSenderStorePacket done [18:56:36]KKMCreateOFDPacket done [18:56:36]NVStorageSaveData kkm_last_timestamp [18:56:36]File name is /storage/kkm_last_timestamp [18:56:36]Write 4 bytes [18:56:36]NVStorageSaveData done [18:56:36]ExternCall_PrintAddStr [18:56:36]wPrintStart [18:56:36]Write to MH i2c: 01 00 00 D4 25 F9 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: 01 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: 01 07 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: 01 07 00 D4 25 00 00 00 00 00 FF 0F 0E [18:56:36]RasterBufferAndPrint [18:56:36]line Счет N : (1)412616 [18:56:36]line ИНН: 02508201610067 [18:56:36]line Контрольно-Кассовый Чек [18:56:36]line ПРОДАЖА [18:56:36]line ТРК (МРК, ГНК) : 13 [18:56:36]line Товар: 2710124500 [18:56:36]line Аи-95-К-5 [18:56:36]line 55.640 * 71.90 [18:56:36]line = 4000.52 [18:56:36]line НДС 12% НСП 1% [18:56:36]line > о реализуемом товаре [18:56:36]line ИТОГО: 4000.52 [18:56:36]line НСП 1% : 35.40 [18:56:36]line НДС 12% : 424.83 [18:56:36]line Наличными: 0.00 [18:56:36]line Безнал.: 4000.52 [18:56:36]line Место: АЗС № 92 "Партнер Нефть" [18:56:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:56:36]line СНО: Общий режим [18:56:36]line Чек 258 20.02.2025 18:56 [18:56:36]line Смена: 648 ФФД: 1.0 [18:56:36]line ЗНМ: 0300000118 [18:56:36]line РНМ: 0000000000091857 [18:56:36]line Версия ККМ: 001 [18:56:36]line Платежная система: O! деньги [18:56:36]line ФМ: 0000000000871826 [18:56:36]line ФД: 187457 [18:56:36]line ФПД: 62220496591712 [18:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T185637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187457&fm=62220496591712&tin=02508201610067®Number=0000000000091857&sum=400052 [18:56:37]written 0, free lines is 4095 [18:56:37]OFD Sender: Processing packet 187457 [packets to send 49, broken 48] [18:56:37]ProducePacketName [18:56:37]name=ofd_packets/00187457 [18:56:37]OFD Sender: To server: pG, [18:56:37]CommunicateWithHost lk.salyk.kg:30040 [18:56:37]ConnectInit lk.salyk.kg [18:56:37]Connected sock=10 [18:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F0 C8 07 01 A6 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 E5 7A B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DC 02 00 35 04 06 00 38 96 D6 98 DB 60 C0 85 26 66 F3 1F 89 83 [18:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 89 D1 47 00 26 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 31 38 32 36 10 04 04 00 41 DC 02 00 F4 03 04 00 35 21 B7 67 B6 04 01 00 00 F3 74 E5 B6 B6 30 E0 85 [18:56:37]CommunicateWithHost err = 0 [18:56:37]CheckOFDResponse [18:56:37]1017 (14) - 77093643461234 [18:56:37]1041 (16) - 0000000000871826 [18:56:37]1040 (4) - 187457 [18:56:37]1012 (4) - 20.02.2025 12:33 [18:56:37]1206 (1) - 0 [18:56:37]OFD Sender: Remove packet 187457 [18:56:37]ProducePacketName [18:56:37]name=ofd_packets/00187457 [18:56:37]NVStorageDeleteData [18:56:37]Write to MH i2c: 01 00 00 FE 25 23 [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: 01 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: 01 07 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: 01 07 00 FE 25 00 00 00 00 00 0C 0D 43 [18:56:37]RasterBufferAndPrint [18:56:37]line [18:56:37]line [18:56:37]line [18:56:37]line [18:56:37]line [18:56:37]written 0, free lines is 3347 [18:56:37]MH_Cut [18:56:37]Write to MH i2c: D1 01 00 05 26 01 FD [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: D1 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: D1 01 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: D1 01 00 05 26 00 FC [18:56:37]Write to MH i2c: 01 00 00 06 26 2C [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:38]OFD Sender: No OFD packet to send [18:56:38]*** Cut start [18:56:38]*** Partial cut [18:56:38]*** CUTSNS_PIN = 1 [18:56:38]*** CUTSNS_PIN = 0 [18:56:38]*** Brake cut motor [18:56:39]Read from MH i2c: 01 [18:56:39]MH_I2C_Read... [18:56:39]*** Stop cut motor [18:56:39]*** Cut end [18:56:39]Read from MH i2c: 01 07 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: 01 07 00 06 26 00 00 00 00 00 FF 0F 41 [18:56:39]process_action close_receipt done [18:56:39]requested_data is exist [18:56:39]produce_requested_data [18:56:39]requested_item fm.sn is exist - process it [18:56:39]wFMCommunicate request_size=4 [18:56:39]MH_SAM_APDU [18:56:39]CAPDU: 80 11 00 00 [18:56:39]Write to MH i2c: E2 08 00 07 26 80 11 00 00 00 00 00 00 A7 [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 17 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 17 00 07 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [18:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:56:39]wFMCommunicate OK [18:56:39]requested_item fd.num is exist - process it [18:56:39]SAM_PROTO_GetFieldsCounters [18:56:39]wFMCommunicate request_size=4 [18:56:39]MH_SAM_APDU [18:56:39]CAPDU: 80 13 00 00 [18:56:39]Write to MH i2c: E2 08 00 08 26 80 13 00 00 00 00 00 00 AA [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 62 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 62 00 08 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 DC 02 00 0E 04 04 00 88 02 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 82 [18:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 DC 02 00 0E 04 04 00 88 02 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:56:39]wFMCommunicate OK [18:56:39]SAM_PROTO_GetFieldsCounters done [18:56:39]requested_item shift.num is exist - process it [18:56:39]requested_item shift.opened is exist - process it [18:56:39]req_shift_opened [18:56:39]FM_GetShiftState [18:56:39]SAM_PROTO_GetShiftState [18:56:39]wFMCommunicate request_size=4 [18:56:39]MH_SAM_APDU [18:56:39]CAPDU: 80 13 01 00 [18:56:39]Write to MH i2c: E2 08 00 09 26 80 13 01 00 00 00 00 00 AC [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 0E 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 0E 00 09 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FE [18:56:39]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:56:39]wFMCommunicate OK [18:56:39]SAM_PROTO_GetShiftState done [18:56:39]FM_GetShiftState done [18:56:39]req_shift_opened done [18:56:39]requested_item shift.open_date is exist - process it [18:56:39]req_shift_open_date [18:56:39]req_shift_open_date done [18:56:39]produce_requested_data done [18:56:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187457,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:56:39]process_action_free close_receipt [18:56:39]json_value_free [18:56:39]json_value_free done [18:56:39]process_json_proto returns [18:56:39]Send response to host [18:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187457,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:56:39]free response buf [18:56:39]execute_script done [18:56:39]execute_script returns [18:56:39]free content buf [18:56:39]Sock 9.Close socket [18:56:39]Sock 9.Thread stoped [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:16]accept exits with 7 [18:57:16]New connection [18:57:16]New thread 3067420004 created [18:57:16]Thread 3067276644 joined [18:57:16]Waiting for new connection... [18:57:16] Sock 7.Parse request [18:57:16]Sock 7.Check first char [18:57:16]Sock 7.First char is OK [18:57:16]request: POST /json_proto HTTP/1.0 [18:57:16]Method: POST [18:57:16]URL: /json_proto [18:57:16]Method is POST - this is cgi request [18:57:16]url: /json_proto [18:57:16]query_string will be loaded in cgi processing [18:57:16]execute_cgi json_proto POST (null) [18:57:16]execute_cgi path=json_proto method=POST [18:57:16]POST find Content-Length [18:57:16]Host: 172.17.46.131:8080 [18:57:16]Content-Length: 754 [18:57:16]Content-Type: application/json [18:57:16] [18:57:16]POST finish read [18:57:16]Found Content-Length = 754 [18:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086138", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:16]execute_script... [18:57: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)412617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086138", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:16]POST & json_proto [18:57:16]process_json_proto [18:57:16]json parsed OK: [18:57:16]protocol is kg_v1.0 [18:57:16]action value=close_receipt [18:57:16]process_action close_receipt [18:57:16]cmd_close_receipt [18:57:16]MH_GetDate [18:57:16]Write to MH i2c: F0 00 00 0A 26 1F [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: F0 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: F0 09 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: F0 09 00 0A 26 00 0E 7B B7 67 7E 41 4F 65 42 [18:57:16]GetLastDocTimeStamp 1740077797 [18:57:16]current date 1740077838 [18:57:16]FM_GetShiftState [18:57:16]SAM_PROTO_GetShiftState [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 13 01 00 [18:57:16]Write to MH i2c: E2 08 00 0B 26 80 13 01 00 00 00 00 00 AE [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 0E 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 0E 00 0B 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 00 [18:57:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:57:16]wFMCommunicate OK [18:57:16]SAM_PROTO_GetShiftState done [18:57:16]FM_GetShiftState done [18:57:16]opened in 1740011697 [18:57:16]opened+sec_in_day 1740098097 [18:57:16]quantity*price = 0 [18:57:16]sum+1 = 1 [18:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 259 20.02.2025 18:57 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086138 ФМ: 0000000000871826 ФД: 187458 ФПД: 171961994556311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T185718&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187458&fm=171961994556311&tin=02508201610067®Number=0000000000091857&sum=0 [18:57:17]StoreToDocumentArchive [18:57:17]shift 648 fd 187458 [18:57:17]save to /storage/0648/doc_00187458 [18:57:17]save last doc name /storage/0648/doc_00187458 to /storage/kkm_last_doc_name [18:57:17]save OK [18:57:17]Clear old archive folders... [18:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:17]tlvbuf is B6FCA4D0 [18:57:17]SAM_PROTO_ClearQueue [18:57:17]wFMCommunicate request_size=4 [18:57:17]MH_SAM_APDU [18:57:17]CAPDU: 80 09 00 00 [18:57:17]Write to MH i2c: E2 08 00 18 26 80 09 00 00 00 00 00 00 B0 [18:57:17]Write i2c OK [18:57:17]MH_I2C_Read... [18:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:17]Read from MH i2c: E2 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: E2 03 00 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: E2 03 00 18 26 00 90 00 B2 [18:57:17]RAPDU: 90 00 [18:57:17]wFMCommunicate OK [18:57:17]SAM_PROTO_ClearQueue done [18:57:17]KKMCreateOFDPacket [18:57:17]OFDProtocolAddRootSTLVToBuf [18:57:17]FM_MakeSignedData [18:57:17]FM_MakeSignedData [18:57:17]SAM_PROTO_SignData [18:57:17]wFMCommunicate request_size=4 [18:57:17]MH_SAM_APDU [18:57:17]CAPDU: 80 0D 01 02 [18:57:17]Write to MH i2c: E2 08 00 19 26 80 0D 01 02 00 00 00 00 B8 [18:57:17]Write i2c OK [18:57:17]MH_I2C_Read... [18:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:17]Read from MH i2c: E2 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: E2 03 00 [18:57:17]MH_I2C_Read... [18:57:17]Read from MH i2c: E2 03 00 19 26 00 90 00 B3 [18:57:17]RAPDU: 90 00 [18:57:17]wFMCommunicate OK [18:57:17]wFMCommunicate request_size=255 [18:57:17]MH_SAM_APDU [18:57: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 0E 7B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DC 02 00 35 04 06 00 9C [18:57:17]Write to MH i2c: E2 02 01 1A 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 0E 7B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DC 02 00 35 04 06 00 9C 00 00 23 [18:57:17]Write i2c OK [18:57:17]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 1A 26 00 90 00 B4 [18:57:18]RAPDU: 90 00 [18:57:18]wFMCommunicate OK [18:57:18]wFMCommunicate request_size=10 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 0D 02 02 05 66 05 99 B3 97 [18:57:18]Write to MH i2c: E2 0D 00 1B 26 80 0D 02 02 05 00 66 05 99 B3 97 00 00 13 [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 1B 26 00 90 00 B5 [18:57:18]RAPDU: 90 00 [18:57:18]wFMCommunicate OK [18:57:18]wFMCommunicate request_size=4 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 0D 03 02 [18:57:18]Write to MH i2c: E2 08 00 1C 26 80 0D 03 02 00 00 00 00 BD [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 0B 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 0B 00 1C 26 00 B1 2D B3 0E AD 4E D3 D2 90 00 FD [18:57:18]RAPDU: B1 2D B3 0E AD 4E D3 D2 90 00 [18:57:18]wFMCommunicate OK [18:57:18]SAM_PROTO_SignData done [18:57:18]FM_MakeSignedData done [18:57:18]CreateOFDProtocolMessage [18:57:18]wFMCommunicate request_size=4 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 11 00 00 [18:57:18]Write to MH i2c: E2 08 00 1D 26 80 11 00 00 00 00 00 00 BD [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]OFD Sender: No OFD packet to send [18:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 17 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 17 00 1D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [18:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:57:18]wFMCommunicate OK [18:57:18]CreateOFDProtocolMessage done [18:57:18]OFDSenderStorePacket 187458 [18:57:18]StoreOFDPacket docnum=187458 [18:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A 88 07 01 E2 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 0E 7B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DC 02 00 35 04 06 00 9C 66 05 99 B3 97 B1 2D B3 0E AD 4E D3 D2 [18:57:18]CheckFolder [18:57:18]dirname=/storage/ofd_packets [18:57:18]CheckFolder done [18:57:18]ProducePacketName [18:57:18]name=ofd_packets/00187458 [18:57:18]NVStorageSaveData ofd_packets/00187458 [18:57:18]File name is /storage/ofd_packets/00187458 [18:57:18]Write 301 bytes [18:57:18]NVStorageSaveData done [18:57:18]OFDSenderStorePacket done [18:57:18]KKMCreateOFDPacket done [18:57:18]NVStorageSaveData kkm_last_timestamp [18:57:18]File name is /storage/kkm_last_timestamp [18:57:18]Write 4 bytes [18:57:18]NVStorageSaveData done [18:57:18]ExternCall_PrintAddStr [18:57:18]wPrintStart [18:57:18]Write to MH i2c: 01 00 00 1E 26 44 [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 07 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 07 00 1E 26 00 00 00 00 00 FF 0F 59 [18:57:18]RasterBufferAndPrint [18:57:18]line Счет N : (1)412617 [18:57:18]line ИНН: 02508201610067 [18:57:18]line Контрольно-Кассовый Чек [18:57:18]line ПРОДАЖА [18:57:18]line ТРК (МРК, ГНК) : 32 [18:57:18]line Товар: 2710124130 [18:57:18]line Аи-92-К-2 [18:57:18]line 20.000 * 0.00 [18:57:18]line = 0.00 [18:57:18]line НДС 12% НСП 1% [18:57:18]line > о реализуемом товаре [18:57:18]line ИТОГО: 0.00 [18:57:18]line НСП 1% : 0.00 [18:57:18]line НДС 12% : 0.00 [18:57:18]line Наличными: 0.00 [18:57:18]line Безнал.: 0.00 [18:57:18]line Место: АЗС № 92 "Партнер Нефть" [18:57:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:57:18]line СНО: Общий режим [18:57:18]line Чек 259 20.02.2025 18:57 [18:57:18]line Смена: 648 ФФД: 1.0 [18:57:18]line ЗНМ: 0300000118 [18:57:18]line РНМ: 0000000000091857 [18:57:18]line Версия ККМ: 001 [18:57:18]line Талоны: ТК ГПНА Online [18:57:18]line 30086138 [18:57:18]line ФМ: 0000000000871826 [18:57:18]line ФД: 187458 [18:57:18]line ФПД: 171961994556311 [18:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T185718&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187458&fm=171961994556311&tin=02508201610067®Number=0000000000091857&sum=0 [18:57:18]written 0, free lines is 4095 [18:57:18]OFD Sender: Processing packet 187458 [packets to send 49, broken 48] [18:57:18]ProducePacketName [18:57:18]name=ofd_packets/00187458 [18:57:18]OFD Sender: To server: pG, [18:57:18]CommunicateWithHost lk.salyk.kg:30040 [18:57:18]ConnectInit lk.salyk.kg [18:57:18]Connected sock=10 [18:57:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A 88 07 01 E2 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 0E 7B B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DC 02 00 35 04 06 00 9C 66 05 99 B3 97 B1 2D B3 0E AD 4E D3 D2 [18:57:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 01 BE 47 00 60 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DC 02 00 F4 03 04 00 5E 21 B7 67 B6 04 01 00 00 4D 64 BC 92 70 BB D2 BE [18:57:18]CommunicateWithHost err = 0 [18:57:18]CheckOFDResponse [18:57:18]1017 (14) - 77093643461234 [18:57:18]1041 (16) - 0000000000871826 [18:57:18]1040 (4) - 187458 [18:57:18]1012 (4) - 20.02.2025 12:34 [18:57:18]1206 (1) - 0 [18:57:18]OFD Sender: Remove packet 187458 [18:57:18]ProducePacketName [18:57:18]name=ofd_packets/00187458 [18:57:18]NVStorageDeleteData [18:57:18]Write to MH i2c: 01 00 00 48 26 6E [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 07 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 07 00 48 26 00 00 00 00 00 F9 0C 7A [18:57:18]RasterBufferAndPrint [18:57:18]line [18:57:18]line [18:57:18]line [18:57:18]line [18:57:18]line [18:57:18]written 0, free lines is 3327 [18:57:19]MH_Cut [18:57:19]Write to MH i2c: D1 01 00 4F 26 01 47 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: D1 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: D1 01 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: D1 01 00 4F 26 00 46 [18:57:19]Write to MH i2c: 01 00 00 50 26 76 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]OFD Sender: No OFD packet to send [18:57:19]*** Cut start [18:57:19]*** Partial cut [18:57:19]*** CUTSNS_PIN = 1 [18:57:19]*** CUTSNS_PIN = 0 [18:57:20]*** Brake cut motor [18:57:20]Read from MH i2c: 01 [18:57:20]MH_I2C_Read... [18:57:20]*** Stop cut motor [18:57:20]*** Cut end [18:57:20]Read from MH i2c: 01 07 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: 01 07 00 50 26 00 00 00 00 00 FF 0F 8B [18:57:20]process_action close_receipt done [18:57:20]requested_data is exist [18:57:20]produce_requested_data [18:57:20]requested_item fm.sn is exist - process it [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 11 00 00 [18:57:20]Write to MH i2c: E2 08 00 51 26 80 11 00 00 00 00 00 00 F1 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 17 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 17 00 51 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [18:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:57:20]wFMCommunicate OK [18:57:20]requested_item fd.num is exist - process it [18:57:20]SAM_PROTO_GetFieldsCounters [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 13 00 00 [18:57:20]Write to MH i2c: E2 08 00 52 26 80 13 00 00 00 00 00 00 F4 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 62 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 62 00 52 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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 42 DC 02 00 0E 04 04 00 88 02 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 D0 [18:57:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 42 DC 02 00 0E 04 04 00 88 02 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:57:20]wFMCommunicate OK [18:57:20]SAM_PROTO_GetFieldsCounters done [18:57:20]requested_item shift.num is exist - process it [18:57:20]requested_item shift.opened is exist - process it [18:57:20]req_shift_opened [18:57:20]FM_GetShiftState [18:57:20]SAM_PROTO_GetShiftState [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 13 01 00 [18:57:20]Write to MH i2c: E2 08 00 53 26 80 13 01 00 00 00 00 00 F6 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 0E 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 0E 00 53 26 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 48 [18:57:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [18:57:20]wFMCommunicate OK [18:57:20]SAM_PROTO_GetShiftState done [18:57:20]FM_GetShiftState done [18:57:20]req_shift_opened done [18:57:20]requested_item shift.open_date is exist - process it [18:57:20]req_shift_open_date [18:57:20]req_shift_open_date done [18:57:20]produce_requested_data done [18:57:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187458,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [18:57:20]process_action_free close_receipt [18:57:20]json_value_free [18:57:20]json_value_free done [18:57:20]process_json_proto returns [18:57:20]Send response to host [18:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187458,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [18:57:20]free response buf [18:57:20]execute_script done [18:57:20]execute_script returns [18:57:20]free content buf [18:57:20]Sock 7.Close socket [18:57:20]Sock 7.Thread stoped [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [19:01:47]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:01:47]wFMCommunicate OK [19:01:47]wFMCommunicate request_size=4 [19:01:47]MH_SAM_APDU [19:01:47]CAPDU: 80 17 00 00 [19:01:47]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [19:01:47]Write i2c OK [19:01:47]MH_I2C_Read... [19:01:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:01:48]Read from MH i2c: E2 [19:01:48]MH_I2C_Read... [19:01:48]Read from MH i2c: E2 FD 00 [19:01:48]MH_I2C_Read... [19:01:48]Read from MH i2c: E2 FD 00 22 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 42 [19:01:48]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:01:48]wFMCommunicate OK [19:01:48]wFMCommunicate request_size=4 [19:01:48]MH_SAM_APDU [19:01:48]CAPDU: 80 17 00 00 [19:01:48]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [19:01:48]Write i2c OK [19:01:48]MH_I2C_Read... [19:01:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:01:48]Read from MH i2c: E2 [19:01:48]MH_I2C_Read... [19:01:48]Read from MH i2c: E2 FD 00 [19:01:48]MH_I2C_Read... [19:01:48]Read from MH i2c: E2 FD 00 23 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [19:01:48]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:01:48]wFMCommunicate OK [19:01:48]wFMCommunicate request_size=4 [19:01:48]MH_SAM_APDU [19:01:48]CAPDU: 80 17 00 00 [19:01:48]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [19:01:48]Write i2c OK [19:01:48]MH_I2C_Read... [19:01:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [19:01:48]OFD Sender: No OFD packet to send [19:01:48]Read from MH i2c: E2 [19:01:48]MH_I2C_Read... [19:01:48]Read from MH i2c: E2 DE 00 [19:01:48]MH_I2C_Read... [19:01:48]Read from MH i2c: E2 DE 00 24 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 83 [19:01:48]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:01:48]wFMCommunicate OK [19:01:48]SAM_PROTO_GetFMData done [19:01:48]requested_item fm.sale_refund.total is exist - process it [19:01:48]requested_item fm.buy.total is exist - process it [19:01:48]requested_item shift.sale.total is exist - process it [19:01:48]SAM_PROTO_GetShiftData [19:01:48]wFMCommunicate request_size=4 [19:01:48]MH_SAM_APDU [19:01:48]CAPDU: 80 13 02 00 [19:01:48]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [19:01:48]Write i2c OK [19:01:48]MH_I2C_Read... [19:01:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:01:49]Read from MH i2c: E2 [19:01:49]MH_I2C_Read... [19:01:49]Read from MH i2c: E2 FD 00 [19:01:49]MH_I2C_Read... [19:01:49]ConnectInit Can't connect to host [19:01:49]Read from MH i2c: E2 FD 00 25 00 00 B1 04 AA 04 AD 04 6E 04 04 00 03 01 00 00 69 04 9E 00 6F 04 04 00 03 01 00 00 B1 04 04 00 9D E6 61 01 70 04 04 00 04 AD 16 01 72 04 03 00 99 39 4B 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 5F 97 25 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 EB 21 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 76 [19:01:49]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 03 01 00 00 69 04 9E 00 6F 04 04 00 03 01 00 00 B1 04 04 00 9D E6 61 01 70 04 04 00 04 AD 16 01 72 04 03 00 99 39 4B 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 5F 97 25 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 EB 21 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:01:49]wFMCommunicate OK [19:01:49]wFMCommunicate request_size=4 [19:01:49]MH_SAM_APDU [19:01:49]CAPDU: 80 17 00 00 [19:01:49]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [19:01:49]Write i2c OK [19:01:49]MH_I2C_Read... [19:01:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:01:49]Read from MH i2c: E2 [19:01:49]MH_I2C_Read... [19:01:49]Read from MH i2c: E2 FD 00 [19:01:49]MH_I2C_Read... [19:01:49]Read from MH i2c: E2 FD 00 26 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 BF [19:01:49]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [19:01:49]wFMCommunicate OK [19:01:49]wFMCommunicate request_size=4 [19:01:49]MH_SAM_APDU [19:01:49]CAPDU: 80 17 00 00 [19:01:49]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [19:01:49]Write i2c OK [19:01:49]MH_I2C_Read... [19:01:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:01:49]Read from MH i2c: E2 [19:01:49]MH_I2C_Read... [19:01:49]Read from MH i2c: E2 FD 00 [19:01:49]MH_I2C_Read... [19:01:49]Read from MH i2c: E2 FD 00 27 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 60 [19:01:49]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:01:49]wFMCommunicate OK [19:01:49]wFMCommunicate request_size=4 [19:01:49]MH_SAM_APDU [19:01:49]CAPDU: 80 17 00 00 [19:01:49]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [19:01:49]Write i2c OK [19:01:49]MH_I2C_Read... [19:01:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:01:49]Read from MH i2c: E2 [19:01:49]MH_I2C_Read... [19:01:49]Read from MH i2c: E2 FD 00 [19:01:49]MH_I2C_Read... [19:01:49]Read from MH i2c: E2 FD 00 28 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 20 [19:01:49]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:01:49]wFMCommunicate OK [19:01:49]wFMCommunicate request_size=4 [19:01:49]MH_SAM_APDU [19:01:49]CAPDU: 80 17 00 00 [19:01:49]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [19:01:49]Write i2c OK [19:01:49]MH_I2C_Read... [19:01:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [19:01:50]Read from MH i2c: E2 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: E2 CE 00 [19:01:50]MH_I2C_Read... [19:01:50]Read from MH i2c: E2 CE 00 29 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [19:01:50]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:01:50]wFMCommunicate OK [19:01:50]SAM_PROTO_GetShiftData done [19:01:50]requested_item shift.sale.total_cash is exist - process it [19:01:50]requested_item shift.sale_refund.total is exist - process it [19:01:50]requested_item shift.sale_refund.total_cash is exist - process it [19:01:50]requested_item shift.buy.total is exist - process it [19:01:50]requested_item shift.buy.total_cash is exist - process it [19:01:50]produce_requested_data done [19:01:50]produce_requested_data return {"fm.sale.total":176687258.04,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":231932.45,"shift.sale.total_cash":182633.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} [19:01:50]process_action_free get_value [19:01:50]json_value_free [19:01:50]json_value_free done [19:01:50]process_json_proto returns [19:01:50]Send response to host [19:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176687258.04,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":231932.45,"shift.sale.total_cash":182633.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}}} [19:01:50]free response buf [19:01:50]execute_script done [19:01:50]execute_script returns [19:01:50]free content buf [19:01:50]Sock 7.Close socket [19:01:50]Sock 7.Thread stoped [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:04]accept exits with 9 [19:02:04]New connection [19:02:04]New thread 3067223396 created [19:02:04]Thread 3067080036 joined [19:02:04]Waiting for new connection... [19:02:04] Sock 9.Parse request [19:02:04]Sock 9.Check first char [19:02:04]Sock 9.First char is OK [19:02:04]request: POST /json_proto HTTP/1.0 [19:02:04]Method: POST [19:02:04]URL: /json_proto [19:02:04]Method is POST - this is cgi request [19:02:04]url: /json_proto [19:02:04]query_string will be loaded in cgi processing [19:02:04]execute_cgi json_proto POST (null) [19:02:04]execute_cgi path=json_proto method=POST [19:02:04]POST find Content-Length [19:02:04]Host: 172.17.46.131:8080 [19:02:04]Content-Length: 673 [19:02:04]Content-Type: application/json [19:02:04] [19:02:04]POST finish read [19:02:04]Found Content-Length = 673 [19:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 72.60, "quantity" : 7.830, "sum" : 568.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 568.00, "total" : 568.00, "payments": [ { "type": 0, "sum" : 568.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:04]execute_script... [19:02: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)412618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 72.60, "quantity" : 7.830, "sum" : 568.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 568.00, "total" : 568.00, "payments": [ { "type": 0, "sum" : 568.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:04]POST & json_proto [19:02:04]process_json_proto [19:02:04]json parsed OK: [19:02:04]protocol is kg_v1.0 [19:02:04]action value=close_receipt [19:02:04]process_action close_receipt [19:02:04]cmd_close_receipt [19:02:04]MH_GetDate [19:02:04]Write to MH i2c: F0 00 00 2A 00 19 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 09 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 09 00 2A 00 00 2C 7C B7 67 7E 41 4F 65 5B [19:02:04]GetLastDocTimeStamp 97 [19:02:04]current date 1740078124 [19:02:04]FM_GetShiftState [19:02:04]SAM_PROTO_GetShiftState [19:02:04]wFMCommunicate request_size=4 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 13 01 00 [19:02:04]Write to MH i2c: E2 08 00 2B 00 80 13 01 00 00 00 00 00 A8 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 0E 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 0E 00 2B 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FA [19:02:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:02:04]wFMCommunicate OK [19:02:04]SAM_PROTO_GetShiftState done [19:02:04]FM_GetShiftState done [19:02:04]opened in 1740011697 [19:02:04]opened+sec_in_day 1740098097 [19:02:04]quantity*price = 56845 [19:02:04]sum+1 = 56847 [19:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 568.00 Внесено: 568.00 СДАЧА: 0.00 НСП 1% : 5.03 НДС 12% : 60.37 Наличными: 568.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 260 20.02.2025 19:02 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187459 ФПД: 277339773527807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T190204&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187459&fm=277339773527807&tin=02508201610067®Number=0000000000091857&sum=56800 [19:02:05]StoreToDocumentArchive [19:02:05]shift 648 fd 187459 [19:02:05]save to /storage/0648/doc_00187459 [19:02:05]save last doc name /storage/0648/doc_00187459 to /storage/kkm_last_doc_name [19:02:05]save OK [19:02:05]Clear old archive folders... [19:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:02:05]tlvbuf is 02037A90 [19:02:05]SAM_PROTO_ClearQueue [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 09 00 00 [19:02:05]Write to MH i2c: E2 08 00 38 00 80 09 00 00 00 00 00 00 AA [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]SAM_PROTO_ClearQueue done [19:02:05]KKMCreateOFDPacket [19:02:05]OFDProtocolAddRootSTLVToBuf [19:02:05]FM_MakeSignedData [19:02:05]FM_MakeSignedData [19:02:05]SAM_PROTO_SignData [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 01 02 [19:02:05]Write to MH i2c: E2 08 00 39 00 80 0D 01 02 00 00 00 00 B2 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]wFMCommunicate request_size=255 [19:02:05]MH_SAM_APDU [19:02: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 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0E DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 17 00 00 00 00 07 04 06 00 E0 DD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 2C 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DC 02 00 35 04 06 00 FC 3D 32 AE [19:02:05]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0E DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 17 00 00 00 00 07 04 06 00 E0 DD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 2C 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DC 02 00 35 04 06 00 FC 3D 32 AE 00 00 CC [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]wFMCommunicate request_size=7 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 02 02 02 E6 FF [19:02:05]Write to MH i2c: E2 0A 00 3B 00 80 0D 02 02 02 00 E6 FF 00 00 9E [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 03 02 [19:02:05]Write to MH i2c: E2 08 00 3C 00 80 0D 03 02 00 00 00 00 B7 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 0B 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 0B 00 3C 00 00 CA 44 50 02 DB 6E 12 3D 90 00 B0 [19:02:05]RAPDU: CA 44 50 02 DB 6E 12 3D 90 00 [19:02:05]wFMCommunicate OK [19:02:05]SAM_PROTO_SignData done [19:02:05]FM_MakeSignedData done [19:02:05]CreateOFDProtocolMessage [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 11 00 00 [19:02:05]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 17 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0A [19:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:02:05]wFMCommunicate OK [19:02:05]CreateOFDProtocolMessage done [19:02:05]OFDSenderStorePacket 187459 [19:02:05]StoreOFDPacket docnum=187459 [19:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7A FC 04 01 5A DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0E DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 17 00 00 00 00 07 04 06 00 E0 DD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 2C 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DC 02 00 35 04 06 00 FC 3D 32 AE E6 FF CA 44 50 02 DB 6E 12 3D [19:02:05]CheckFolder [19:02:05]dirname=/storage/ofd_packets [19:02:05]CheckFolder done [19:02:05]ProducePacketName [19:02:05]name=ofd_packets/00187459 [19:02:05]NVStorageSaveData ofd_packets/00187459 [19:02:05]File name is /storage/ofd_packets/00187459 [19:02:05]Write 298 bytes [19:02:05]NVStorageSaveData done [19:02:05]OFDSenderStorePacket done [19:02:05]KKMCreateOFDPacket done [19:02:05]NVStorageSaveData kkm_last_timestamp [19:02:05]File name is /storage/kkm_last_timestamp [19:02:05]Write 4 bytes [19:02:05]NVStorageSaveData done [19:02:05]ExternCall_PrintAddStr [19:02:05]wPrintStart [19:02:05]Write to MH i2c: 01 00 00 3E 00 3E [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 07 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 FF 0F 53 [19:02:05]RasterBufferAndPrint [19:02:05]line Счет N : (1)412618 [19:02:05]line ИНН: 02508201610067 [19:02:05]line Контрольно-Кассовый Чек [19:02:05]line ПРОДАЖА [19:02:05]line ТРК (МРК, ГНК) : 5 [19:02:05]line Товар: 2710124100 [19:02:05]line ДТ-К-1 [19:02:05]line 7.830 * 72.60 [19:02:05]line = 568.46 [19:02:05]line НДС 12% НСП 1% [19:02:05]line > о реализуемом товаре [19:02:05]line ОКРУГЛЕНИЕ: -0.46 [19:02:05]line ИТОГО: 568.00 [19:02:05]line Внесено: 568.00 [19:02:05]line СДАЧА: 0.00 [19:02:05]line НСП 1% : 5.03 [19:02:05]line НДС 12% : 60.37 [19:02:05]line Наличными: 568.00 [19:02:05]line Безнал.: 0.00 [19:02:05]line Место: АЗС № 92 "Партнер Нефть" [19:02:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:02:05]line СНО: Общий режим [19:02:05]line Чек 260 20.02.2025 19:02 [19:02:05]line Смена: 648 ФФД: 1.0 [19:02:05]line ЗНМ: 0300000118 [19:02:05]line РНМ: 0000000000091857 [19:02:05]line Версия ККМ: 001 [19:02:05]line ФМ: 0000000000871826 [19:02:05]line ФД: 187459 [19:02:05]line ФПД: 277339773527807 [19:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T190204&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187459&fm=277339773527807&tin=02508201610067®Number=0000000000091857&sum=56800 [19:02:05]written 0, free lines is 4095 [19:02:05]OFD Sender: Processing packet 187459 [packets to send 49, broken 48] [19:02:05]ProducePacketName [19:02:05]name=ofd_packets/00187459 [19:02:05]OFD Sender: To server: pG, [19:02:05]CommunicateWithHost lk.salyk.kg:30040 [19:02:05]ConnectInit lk.salyk.kg [19:02:05]Connected sock=10 [19:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7A FC 04 01 5A DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0E DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 17 00 00 00 00 07 04 06 00 E0 DD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 2C 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DC 02 00 35 04 06 00 FC 3D 32 AE E6 FF CA 44 50 02 DB 6E 12 3D [19:02:06]Write to MH i2c: 01 00 00 69 00 69 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 07 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 FE 0C 7A [19:02:06]RasterBufferAndPrint [19:02:06]line [19:02:06]line [19:02:06]line [19:02:06]line [19:02:06]line [19:02:06]written 0, free lines is 3332 [19:02:06]MH_Cut [19:02:06]Write to MH i2c: D1 01 00 70 00 01 42 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: D1 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: D1 01 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: D1 01 00 70 00 00 41 [19:02:06]Write to MH i2c: 01 00 00 71 00 71 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FB 35 47 00 3F 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DC 02 00 F4 03 04 00 7C 22 B7 67 B6 04 01 00 00 23 F2 18 A9 51 5D C3 82 [19:02:06]CommunicateWithHost err = 0 [19:02:06]CheckOFDResponse [19:02:06]1017 (14) - 77093643461234 [19:02:06]1041 (16) - 0000000000871826 [19:02:06]1040 (4) - 187459 [19:02:06]1012 (4) - 20.02.2025 12:39 [19:02:06]1206 (1) - 0 [19:02:06]OFD Sender: Remove packet 187459 [19:02:06]ProducePacketName [19:02:06]name=ofd_packets/00187459 [19:02:06]NVStorageDeleteData [19:02:06]OFD Sender: No OFD packet to send [19:02:06]*** Cut start [19:02:06]*** Partial cut [19:02:06]*** CUTSNS_PIN = 1 [19:02:06]*** CUTSNS_PIN = 0 [19:02:07]*** Brake cut motor [19:02:07]Read from MH i2c: 01 [19:02:07]MH_I2C_Read... [19:02:07]*** Stop cut motor [19:02:07]*** Cut end [19:02:07]Read from MH i2c: 01 07 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 07 00 71 00 00 00 00 00 00 FF 0F 86 [19:02:07]process_action close_receipt done [19:02:07]requested_data is exist [19:02:07]produce_requested_data [19:02:07]requested_item fm.sn is exist - process it [19:02:07]wFMCommunicate request_size=4 [19:02:07]MH_SAM_APDU [19:02:07]CAPDU: 80 11 00 00 [19:02:07]Write to MH i2c: E2 08 00 72 00 80 11 00 00 00 00 00 00 EC [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:07]Read from MH i2c: E2 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 17 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 17 00 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3F [19:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:02:07]wFMCommunicate OK [19:02:07]requested_item fd.num is exist - process it [19:02:07]SAM_PROTO_GetFieldsCounters [19:02:07]wFMCommunicate request_size=4 [19:02:07]MH_SAM_APDU [19:02:07]CAPDU: 80 13 00 00 [19:02:07]Write to MH i2c: E2 08 00 73 00 80 13 00 00 00 00 00 00 EF [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:07]Read from MH i2c: E2 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 62 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 62 00 73 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 43 DC 02 00 0E 04 04 00 88 02 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 CF [19:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 43 DC 02 00 0E 04 04 00 88 02 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 [19:02:07]wFMCommunicate OK [19:02:07]SAM_PROTO_GetFieldsCounters done [19:02:07]requested_item shift.num is exist - process it [19:02:07]requested_item shift.opened is exist - process it [19:02:07]req_shift_opened [19:02:07]FM_GetShiftState [19:02:07]SAM_PROTO_GetShiftState [19:02:07]wFMCommunicate request_size=4 [19:02:07]MH_SAM_APDU [19:02:07]CAPDU: 80 13 01 00 [19:02:07]Write to MH i2c: E2 08 00 74 00 80 13 01 00 00 00 00 00 F1 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:07]Read from MH i2c: E2 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 0E 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 0E 00 74 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 43 [19:02:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:02:07]wFMCommunicate OK [19:02:07]SAM_PROTO_GetShiftState done [19:02:07]FM_GetShiftState done [19:02:07]req_shift_opened done [19:02:07]requested_item shift.open_date is exist - process it [19:02:07]req_shift_open_date [19:02:07]req_shift_open_date done [19:02:07]produce_requested_data done [19:02:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187459,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:02:07]process_action_free close_receipt [19:02:07]json_value_free [19:02:07]json_value_free done [19:02:07]process_json_proto returns [19:02:07]Send response to host [19:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187459,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:02:07]free response buf [19:02:07]execute_script done [19:02:07]execute_script returns [19:02:07]free content buf [19:02:07]Sock 9.Close socket [19:02:07]Sock 9.Thread stoped [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:17]accept exits with 7 [19:04:17]New connection [19:04:17]New thread 3067080036 created [19:04:17]Thread 3067223396 joined [19:04:17]Waiting for new connection... [19:04:17] Sock 7.Parse request [19:04:17]Sock 7.Check first char [19:04:17]Sock 7.First char is OK [19:04:17]request: POST /json_proto HTTP/1.0 [19:04:17]Method: POST [19:04:17]URL: /json_proto [19:04:17]Method is POST - this is cgi request [19:04:17]url: /json_proto [19:04:17]query_string will be loaded in cgi processing [19:04:17]execute_cgi json_proto POST (null) [19:04:17]execute_cgi path=json_proto method=POST [19:04:17]POST find Content-Length [19:04:17]Host: 172.17.46.131:8080 [19:04:17]Content-Length: 673 [19:04:17]Content-Type: application/json [19:04:17] [19:04:17]POST finish read [19:04:17]Found Content-Length = 673 [19:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 4.140, "sum" : 300.56, "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:04:17]execute_script... [19:04: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)412620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 4.140, "sum" : 300.56, "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:04:17]POST & json_proto [19:04:17]process_json_proto [19:04:17]json parsed OK: [19:04:17]protocol is kg_v1.0 [19:04:17]action value=close_receipt [19:04:17]process_action close_receipt [19:04:17]cmd_close_receipt [19:04:17]MH_GetDate [19:04:17]Write to MH i2c: F0 00 00 75 00 64 [19:04:17]Write i2c OK [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: F0 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: F0 09 00 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: F0 09 00 75 00 00 B2 7C B7 67 7E 41 4F 65 2C [19:04:17]GetLastDocTimeStamp 1740078124 [19:04:17]current date 1740078258 [19:04:17]FM_GetShiftState [19:04:17]SAM_PROTO_GetShiftState [19:04:17]wFMCommunicate request_size=4 [19:04:17]MH_SAM_APDU [19:04:17]CAPDU: 80 13 01 00 [19:04:17]Write to MH i2c: E2 08 00 76 00 80 13 01 00 00 00 00 00 F3 [19:04:17]Write i2c OK [19:04:17]MH_I2C_Read... [19:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:17]Read from MH i2c: E2 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: E2 0E 00 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: E2 0E 00 76 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 45 [19:04:17]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:04:17]wFMCommunicate OK [19:04:17]SAM_PROTO_GetShiftState done [19:04:17]FM_GetShiftState done [19:04:17]opened in 1740011697 [19:04:17]opened+sec_in_day 1740098097 [19:04:17]quantity*price = 30056 [19:04:17]sum+1 = 30057 [19:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 261 20.02.2025 19:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187460 ФПД: 106015651324211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T190418&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187460&fm=106015651324211&tin=02508201610067®Number=0000000000091857&sum=30000 [19:04:18]StoreToDocumentArchive [19:04:18]shift 648 fd 187460 [19:04:18]save to /storage/0648/doc_00187460 [19:04:18]save last doc name /storage/0648/doc_00187460 to /storage/kkm_last_doc_name [19:04:18]save OK [19:04:18]Clear old archive folders... [19:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:04:18]tlvbuf is 0202E610 [19:04:18]SAM_PROTO_ClearQueue [19:04:18]wFMCommunicate request_size=4 [19:04:18]MH_SAM_APDU [19:04:18]CAPDU: 80 09 00 00 [19:04:18]Write to MH i2c: E2 08 00 83 00 80 09 00 00 00 00 00 00 F5 [19:04:18]Write i2c OK [19:04:18]MH_I2C_Read... [19:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:18]Read from MH i2c: E2 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: E2 03 00 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [19:04:18]RAPDU: 90 00 [19:04:18]wFMCommunicate OK [19:04:18]SAM_PROTO_ClearQueue done [19:04:18]KKMCreateOFDPacket [19:04:18]OFDProtocolAddRootSTLVToBuf [19:04:18]FM_MakeSignedData [19:04:18]FM_MakeSignedData [19:04:18]SAM_PROTO_SignData [19:04:18]wFMCommunicate request_size=4 [19:04:18]MH_SAM_APDU [19:04:18]CAPDU: 80 0D 01 02 [19:04:18]Write to MH i2c: E2 08 00 84 00 80 0D 01 02 00 00 00 00 FD [19:04:18]Write i2c OK [19:04:18]MH_I2C_Read... [19:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:18]Read from MH i2c: E2 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: E2 03 00 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: E2 03 00 84 00 00 90 00 F8 [19:04:18]RAPDU: 90 00 [19:04:18]wFMCommunicate OK [19:04:18]wFMCommunicate request_size=255 [19:04:18]MH_SAM_APDU [19:04:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 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 05 01 00 00 F4 03 04 00 B2 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DC 02 00 35 04 06 00 60 6B B1 3C [19:04:18]Write to MH i2c: E2 02 01 85 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 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 05 01 00 00 F4 03 04 00 B2 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DC 02 00 35 04 06 00 60 6B B1 3C 00 00 7F [19:04:18]Write i2c OK [19:04:18]MH_I2C_Read... [19:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:19]Read from MH i2c: E2 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 03 00 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 03 00 85 00 00 90 00 F9 [19:04:19]RAPDU: 90 00 [19:04:19]wFMCommunicate OK [19:04:19]wFMCommunicate request_size=7 [19:04:19]MH_SAM_APDU [19:04:19]CAPDU: 80 0D 02 02 02 E1 33 [19:04:19]Write to MH i2c: E2 0A 00 86 00 80 0D 02 02 02 00 E1 33 00 00 18 [19:04:19]Write i2c OK [19:04:19]MH_I2C_Read... [19:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:19]Read from MH i2c: E2 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 03 00 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 03 00 86 00 00 90 00 FA [19:04:19]RAPDU: 90 00 [19:04:19]wFMCommunicate OK [19:04:19]wFMCommunicate request_size=4 [19:04:19]MH_SAM_APDU [19:04:19]CAPDU: 80 0D 03 02 [19:04:19]Write to MH i2c: E2 08 00 87 00 80 0D 03 02 00 00 00 00 02 [19:04:19]Write i2c OK [19:04:19]MH_I2C_Read... [19:04:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:19]Read from MH i2c: E2 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 0B 00 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 0B 00 87 00 00 7D E9 54 29 D2 86 1D E6 90 00 41 [19:04:19]RAPDU: 7D E9 54 29 D2 86 1D E6 90 00 [19:04:19]wFMCommunicate OK [19:04:19]SAM_PROTO_SignData done [19:04:19]FM_MakeSignedData done [19:04:19]CreateOFDProtocolMessage [19:04:19]wFMCommunicate request_size=4 [19:04:19]MH_SAM_APDU [19:04:19]CAPDU: 80 11 00 00 [19:04:19]Write to MH i2c: E2 08 00 88 00 80 11 00 00 00 00 00 00 02 [19:04:19]Write i2c OK [19:04:19]MH_I2C_Read... [19:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:19]Read from MH i2c: E2 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 17 00 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 17 00 88 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [19:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:04:19]wFMCommunicate OK [19:04:19]CreateOFDProtocolMessage done [19:04:19]OFDSenderStorePacket 187460 [19:04:19]StoreOFDPacket docnum=187460 [19:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 32 D8 04 01 3D 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 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 05 01 00 00 F4 03 04 00 B2 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DC 02 00 35 04 06 00 60 6B B1 3C E1 33 7D E9 54 29 D2 86 1D E6 [19:04:19]CheckFolder [19:04:19]dirname=/storage/ofd_packets [19:04:19]CheckFolder done [19:04:19]ProducePacketName [19:04:19]name=ofd_packets/00187460 [19:04:19]NVStorageSaveData ofd_packets/00187460 [19:04:19]File name is /storage/ofd_packets/00187460 [19:04:19]Write 298 bytes [19:04:19]NVStorageSaveData done [19:04:19]OFDSenderStorePacket done [19:04:19]KKMCreateOFDPacket done [19:04:19]NVStorageSaveData kkm_last_timestamp [19:04:19]File name is /storage/kkm_last_timestamp [19:04:19]Write 4 bytes [19:04:19]NVStorageSaveData done [19:04:19]ExternCall_PrintAddStr [19:04:19]wPrintStart [19:04:19]Write to MH i2c: 01 00 00 89 00 89 [19:04:19]Write i2c OK [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: 01 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: 01 07 00 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: 01 07 00 89 00 00 00 00 00 00 FF 0F 9E [19:04:19]RasterBufferAndPrint [19:04:19]line Счет N : (1)412620 [19:04:19]line ИНН: 02508201610067 [19:04:19]line Контрольно-Кассовый Чек [19:04:19]line ПРОДАЖА [19:04:19]line ТРК (МРК, ГНК) : 6 [19:04:19]line Товар: 2710194210 [19:04:19]line ДТ-К-5 [19:04:19]line 4.140 * 72.60 [19:04:19]line = 300.56 [19:04:19]line НДС 12% НСП 1% [19:04:19]line > о реализуемом товаре [19:04:19]line ОКРУГЛЕНИЕ: -0.56 [19:04:19]line ИТОГО: 300.00 [19:04:19]line Внесено: 300.00 [19:04:19]line СДАЧА: 0.00 [19:04:19]line НСП 1% : 2.66 [19:04:19]line НДС 12% : 31.92 [19:04:19]line Наличными: 300.00 [19:04:19]line Безнал.: 0.00 [19:04:19]line Место: АЗС № 92 "Партнер Нефть" [19:04:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:04:19]line СНО: Общий режим [19:04:19]line Чек 261 20.02.2025 19:04 [19:04:19]line Смена: 648 ФФД: 1.0 [19:04:19]line ЗНМ: 0300000118 [19:04:19]line РНМ: 0000000000091857 [19:04:19]line Версия ККМ: 001 [19:04:19]line ФМ: 0000000000871826 [19:04:19]line ФД: 187460 [19:04:19]line ФПД: 106015651324211 [19:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T190418&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187460&fm=106015651324211&tin=02508201610067®Number=0000000000091857&sum=30000 [19:04:19]OFD Sender: Processing packet 187460 [packets to send 49, broken 48] [19:04:19]ProducePacketName [19:04:19]name=ofd_packets/00187460 [19:04:19]OFD Sender: To server: pG, [19:04:19]CommunicateWithHost lk.salyk.kg:30040 [19:04:19]ConnectInit lk.salyk.kg [19:04:19]written 0, free lines is 4095 [19:04:19]Connected sock=10 [19:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 32 D8 04 01 3D 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 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 05 01 00 00 F4 03 04 00 B2 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DC 02 00 35 04 06 00 60 6B B1 3C E1 33 7D E9 54 29 D2 86 1D E6 [19:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 14 4F 47 00 B2 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DC 02 00 F4 03 04 00 02 23 B7 67 B6 04 01 00 00 CC 31 22 4D 0E 5C FF EE [19:04:20]CommunicateWithHost err = 0 [19:04:20]CheckOFDResponse [19:04:20]1017 (14) - 77093643461234 [19:04:20]1041 (16) - 0000000000871826 [19:04:20]1040 (4) - 187460 [19:04:20]1012 (4) - 20.02.2025 12:41 [19:04:20]1206 (1) - 0 [19:04:20]OFD Sender: Remove packet 187460 [19:04:20]ProducePacketName [19:04:20]name=ofd_packets/00187460 [19:04:20]NVStorageDeleteData [19:04:20]Write to MH i2c: 01 00 00 B4 00 B4 [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 07 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 07 00 B4 00 00 00 00 00 00 F2 0C B9 [19:04:20]RasterBufferAndPrint [19:04:20]line [19:04:20]line [19:04:20]line [19:04:20]line [19:04:20]line [19:04:20]written 0, free lines is 3320 [19:04:20]MH_Cut [19:04:20]Write to MH i2c: D1 01 00 BB 00 01 8D [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: D1 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: D1 01 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: D1 01 00 BB 00 00 8C [19:04:20]Write to MH i2c: 01 00 00 BC 00 BC [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]OFD Sender: No OFD packet to send [19:04:20]*** Cut start [19:04:20]*** Partial cut [19:04:20]*** CUTSNS_PIN = 1 [19:04:20]*** CUTSNS_PIN = 0 [19:04:21]*** Brake cut motor [19:04:21]Read from MH i2c: 01 [19:04:21]MH_I2C_Read... [19:04:21]*** Stop cut motor [19:04:21]*** Cut end [19:04:21]Read from MH i2c: 01 07 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 07 00 BC 00 00 00 00 00 00 FF 0F D1 [19:04:21]process_action close_receipt done [19:04:21]requested_data is exist [19:04:21]produce_requested_data [19:04:21]requested_item fm.sn is exist - process it [19:04:21]wFMCommunicate request_size=4 [19:04:21]MH_SAM_APDU [19:04:21]CAPDU: 80 11 00 00 [19:04:21]Write to MH i2c: E2 08 00 BD 00 80 11 00 00 00 00 00 00 37 [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:21]Read from MH i2c: E2 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: E2 17 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: E2 17 00 BD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [19:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:04:21]wFMCommunicate OK [19:04:21]requested_item fd.num is exist - process it [19:04:21]SAM_PROTO_GetFieldsCounters [19:04:21]wFMCommunicate request_size=4 [19:04:21]MH_SAM_APDU [19:04:21]CAPDU: 80 13 00 00 [19:04:21]Write to MH i2c: E2 08 00 BE 00 80 13 00 00 00 00 00 00 3A [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:21]Read from MH i2c: E2 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: E2 62 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: E2 62 00 BE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 44 DC 02 00 0E 04 04 00 88 02 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 1E [19:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 44 DC 02 00 0E 04 04 00 88 02 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 [19:04:21]wFMCommunicate OK [19:04:21]SAM_PROTO_GetFieldsCounters done [19:04:21]requested_item shift.num is exist - process it [19:04:21]requested_item shift.opened is exist - process it [19:04:21]req_shift_opened [19:04:21]FM_GetShiftState [19:04:21]SAM_PROTO_GetShiftState [19:04:21]wFMCommunicate request_size=4 [19:04:21]MH_SAM_APDU [19:04:21]CAPDU: 80 13 01 00 [19:04:21]Write to MH i2c: E2 08 00 BF 00 80 13 01 00 00 00 00 00 3C [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:21]Read from MH i2c: E2 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: E2 0E 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: E2 0E 00 BF 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8E [19:04:21]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:04:21]wFMCommunicate OK [19:04:21]SAM_PROTO_GetShiftState done [19:04:21]FM_GetShiftState done [19:04:21]req_shift_opened done [19:04:21]requested_item shift.open_date is exist - process it [19:04:21]req_shift_open_date [19:04:21]req_shift_open_date done [19:04:21]produce_requested_data done [19:04:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187460,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:04:21]process_action_free close_receipt [19:04:21]json_value_free [19:04:21]json_value_free done [19:04:21]process_json_proto returns [19:04:21]Send response to host [19:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187460,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:04:21]free response buf [19:04:21]execute_script done [19:04:21]execute_script returns [19:04:21]free content buf [19:04:21]Sock 7.Close socket [19:04:21]Sock 7.Thread stoped [19:04:25]OFD Sender: No OFD packet to send [19:04:27]accept exits with 9 [19:04:27]New connection [19:04:27]New thread 3067223396 created [19:04:27]Thread 3067080036 joined [19:04:27]Waiting for new connection... [19:04:27] Sock 9.Parse request [19:04:27]Sock 9.Check first char [19:04:27]Sock 9.First char is OK [19:04:27]request: POST /json_proto HTTP/1.0 [19:04:27]Method: POST [19:04:27]URL: /json_proto [19:04:27]Method is POST - this is cgi request [19:04:27]url: /json_proto [19:04:27]query_string will be loaded in cgi processing [19:04:27]execute_cgi json_proto POST (null) [19:04:27]execute_cgi path=json_proto method=POST [19:04:27]POST find Content-Length [19:04:27]Host: 172.17.46.131:8080 [19:04:27]Content-Length: 673 [19:04:27]Content-Type: application/json [19:04:27] [19:04:27]POST finish read [19:04:27]Found Content-Length = 673 [19:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.710, "sum" : 632.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 632.00, "total" : 632.00, "payments": [ { "type": 0, "sum" : 632.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:27]execute_script... [19:04: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)412619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.710, "sum" : 632.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 632.00, "total" : 632.00, "payments": [ { "type": 0, "sum" : 632.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:27]POST & json_proto [19:04:27]process_json_proto [19:04:27]json parsed OK: [19:04:27]protocol is kg_v1.0 [19:04:27]action value=close_receipt [19:04:27]process_action close_receipt [19:04:27]cmd_close_receipt [19:04:27]MH_GetDate [19:04:27]Write to MH i2c: F0 00 00 C0 00 AF [19:04:27]Write i2c OK [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: F0 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: F0 09 00 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: F0 09 00 C0 00 00 BC 7C B7 67 7E 41 4F 65 81 [19:04:27]GetLastDocTimeStamp 1740078258 [19:04:27]current date 1740078268 [19:04:27]FM_GetShiftState [19:04:27]SAM_PROTO_GetShiftState [19:04:27]wFMCommunicate request_size=4 [19:04:27]MH_SAM_APDU [19:04:27]CAPDU: 80 13 01 00 [19:04:27]Write to MH i2c: E2 08 00 C1 00 80 13 01 00 00 00 00 00 3E [19:04:27]Write i2c OK [19:04:27]MH_I2C_Read... [19:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:27]Read from MH i2c: E2 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: E2 0E 00 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: E2 0E 00 C1 00 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 90 [19:04:27]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:04:27]wFMCommunicate OK [19:04:27]SAM_PROTO_GetShiftState done [19:04:27]FM_GetShiftState done [19:04:27]opened in 1740011697 [19:04:27]opened+sec_in_day 1740098097 [19:04:27]quantity*price = 63234 [19:04:27]sum+1 = 63236 [19:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 632.00 Внесено: 632.00 СДАЧА: 0.00 НСП 1% : 5.60 НДС 12% : 67.15 Наличными: 632.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 262 20.02.2025 19:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187461 ФПД: 147066049087107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T190428&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187461&fm=147066049087107&tin=02508201610067®Number=0000000000091857&sum=63200 [19:04:28]StoreToDocumentArchive [19:04:28]shift 648 fd 187461 [19:04:28]save to /storage/0648/doc_00187461 [19:04:28]save last doc name /storage/0648/doc_00187461 to /storage/kkm_last_doc_name [19:04:28]save OK [19:04:28]Clear old archive folders... [19:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:04:28]tlvbuf is 02024BC0 [19:04:28]SAM_PROTO_ClearQueue [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 09 00 00 [19:04:28]Write to MH i2c: E2 08 00 CE 00 80 09 00 00 00 00 00 00 40 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [19:04:28]RAPDU: 90 00 [19:04:28]wFMCommunicate OK [19:04:28]SAM_PROTO_ClearQueue done [19:04:28]KKMCreateOFDPacket [19:04:28]OFDProtocolAddRootSTLVToBuf [19:04:28]FM_MakeSignedData [19:04:28]FM_MakeSignedData [19:04:28]SAM_PROTO_SignData [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 0D 01 02 [19:04:28]Write to MH i2c: E2 08 00 CF 00 80 0D 01 02 00 00 00 00 48 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 CF 00 00 90 00 43 [19:04:28]RAPDU: 90 00 [19:04:28]wFMCommunicate OK [19:04:28]wFMCommunicate request_size=255 [19:04:28]MH_SAM_APDU [19:04: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 06 22 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 03 F7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1A 00 00 00 00 07 04 06 00 E0 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 06 01 00 00 F4 03 04 00 BC 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 DC 02 00 35 04 06 00 85 C1 7B 9D [19:04:28]Write to MH i2c: E2 02 01 D0 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 22 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 03 F7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1A 00 00 00 00 07 04 06 00 E0 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 06 01 00 00 F4 03 04 00 BC 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 DC 02 00 35 04 06 00 85 C1 7B 9D 00 00 DF [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]wFMCommunicate request_size=7 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 02 02 02 46 83 [19:04:29]Write to MH i2c: E2 0A 00 D1 00 80 0D 02 02 02 00 46 83 00 00 18 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 03 02 [19:04:29]Write to MH i2c: E2 08 00 D2 00 80 0D 03 02 00 00 00 00 4D [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 0B 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 0B 00 D2 00 00 B4 98 47 D7 4D 54 C7 68 90 00 88 [19:04:29]RAPDU: B4 98 47 D7 4D 54 C7 68 90 00 [19:04:29]wFMCommunicate OK [19:04:29]SAM_PROTO_SignData done [19:04:29]FM_MakeSignedData done [19:04:29]CreateOFDProtocolMessage [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 11 00 00 [19:04:29]Write to MH i2c: E2 08 00 D3 00 80 11 00 00 00 00 00 00 4D [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 17 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 17 00 D3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [19:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:04:29]wFMCommunicate OK [19:04:29]CreateOFDProtocolMessage done [19:04:29]OFDSenderStorePacket 187461 [19:04:29]StoreOFDPacket docnum=187461 [19:04:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F7 C3 04 01 F0 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 22 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 03 F7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1A 00 00 00 00 07 04 06 00 E0 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 06 01 00 00 F4 03 04 00 BC 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 DC 02 00 35 04 06 00 85 C1 7B 9D 46 83 B4 98 47 D7 4D 54 C7 68 [19:04:29]CheckFolder [19:04:29]dirname=/storage/ofd_packets [19:04:29]CheckFolder done [19:04:29]ProducePacketName [19:04:29]name=ofd_packets/00187461 [19:04:29]NVStorageSaveData ofd_packets/00187461 [19:04:29]File name is /storage/ofd_packets/00187461 [19:04:29]Write 298 bytes [19:04:29]NVStorageSaveData done [19:04:29]OFDSenderStorePacket done [19:04:29]KKMCreateOFDPacket done [19:04:29]NVStorageSaveData kkm_last_timestamp [19:04:29]File name is /storage/kkm_last_timestamp [19:04:29]Write 4 bytes [19:04:29]NVStorageSaveData done [19:04:29]ExternCall_PrintAddStr [19:04:29]wPrintStart [19:04:29]Write to MH i2c: 01 00 00 D4 00 D4 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 07 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 07 00 D4 00 00 00 00 00 00 FF 0F E9 [19:04:29]RasterBufferAndPrint [19:04:29]line Счет N : (1)412619 [19:04:29]line ИНН: 02508201610067 [19:04:29]line Контрольно-Кассовый Чек [19:04:29]line ПРОДАЖА [19:04:29]line ТРК (МРК, ГНК) : 5 [19:04:29]line Товар: 2710194210 [19:04:29]line ДТ-К-5 [19:04:29]line 8.710 * 72.60 [19:04:29]line = 632.35 [19:04:29]line НДС 12% НСП 1% [19:04:29]line > о реализуемом товаре [19:04:29]line ОКРУГЛЕНИЕ: -0.35 [19:04:29]line ИТОГО: 632.00 [19:04:29]line Внесено: 632.00 [19:04:29]line СДАЧА: 0.00 [19:04:29]line НСП 1% : 5.60 [19:04:29]line НДС 12% : 67.15 [19:04:29]line Наличными: 632.00 [19:04:29]line Безнал.: 0.00 [19:04:29]line Место: АЗС № 92 "Партнер Нефть" [19:04:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:04:29]line СНО: Общий режим [19:04:29]line Чек 262 20.02.2025 19:04 [19:04:29]line Смена: 648 ФФД: 1.0 [19:04:29]line ЗНМ: 0300000118 [19:04:29]line РНМ: 0000000000091857 [19:04:29]line Версия ККМ: 001 [19:04:29]line ФМ: 0000000000871826 [19:04:29]line ФД: 187461 [19:04:29]line ФПД: 147066049087107 [19:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T190428&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187461&fm=147066049087107&tin=02508201610067®Number=0000000000091857&sum=63200 [19:04:29]OFD Sender: Processing packet 187461 [packets to send 49, broken 48] [19:04:29]ProducePacketName [19:04:29]name=ofd_packets/00187461 [19:04:29]OFD Sender: To server: pG, [19:04:29]CommunicateWithHost lk.salyk.kg:30040 [19:04:29]ConnectInit lk.salyk.kg [19:04:29]written 0, free lines is 4095 [19:04:29]Connected sock=10 [19:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F7 C3 04 01 F0 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 22 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 03 F7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1A 00 00 00 00 07 04 06 00 E0 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 06 01 00 00 F4 03 04 00 BC 7C B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 DC 02 00 35 04 06 00 85 C1 7B 9D 46 83 B4 98 47 D7 4D 54 C7 68 [19:04:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 15 05 47 00 B2 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 DC 02 00 F4 03 04 00 0C 23 B7 67 B6 04 01 00 00 FF E9 97 C3 EB 00 78 B3 [19:04:30]CommunicateWithHost err = 0 [19:04:30]CheckOFDResponse [19:04:30]1017 (14) - 77093643461234 [19:04:30]1041 (16) - 0000000000871826 [19:04:30]1040 (4) - 187461 [19:04:30]1012 (4) - 20.02.2025 12:41 [19:04:30]1206 (1) - 0 [19:04:30]OFD Sender: Remove packet 187461 [19:04:30]ProducePacketName [19:04:30]name=ofd_packets/00187461 [19:04:30]NVStorageDeleteData [19:04:30]Write to MH i2c: 01 00 00 FF 00 FF [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 07 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 F1 0C 03 [19:04:30]RasterBufferAndPrint [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]written 0, free lines is 3322 [19:04:30]MH_Cut [19:04:30]Write to MH i2c: D1 01 00 06 01 01 D9 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 01 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 01 00 06 01 00 D8 [19:04:30]Write to MH i2c: 01 00 00 07 01 08 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]OFD Sender: No OFD packet to send [19:04:30]*** Cut start [19:04:30]*** Partial cut [19:04:30]*** CUTSNS_PIN = 1 [19:04:30]*** CUTSNS_PIN = 0 [19:04:31]*** Brake cut motor [19:04:31]Read from MH i2c: 01 [19:04:31]MH_I2C_Read... [19:04:31]*** Stop cut motor [19:04:31]*** Cut end [19:04:31]Read from MH i2c: 01 07 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: 01 07 00 07 01 00 00 00 00 00 FF 0F 1D [19:04:31]process_action close_receipt done [19:04:31]requested_data is exist [19:04:31]produce_requested_data [19:04:31]requested_item fm.sn is exist - process it [19:04:31]wFMCommunicate request_size=4 [19:04:31]MH_SAM_APDU [19:04:31]CAPDU: 80 11 00 00 [19:04:31]Write to MH i2c: E2 08 00 08 01 80 11 00 00 00 00 00 00 83 [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:31]Read from MH i2c: E2 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 17 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 17 00 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [19:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:04:31]wFMCommunicate OK [19:04:31]requested_item fd.num is exist - process it [19:04:31]SAM_PROTO_GetFieldsCounters [19:04:31]wFMCommunicate request_size=4 [19:04:31]MH_SAM_APDU [19:04:31]CAPDU: 80 13 00 00 [19:04:31]Write to MH i2c: E2 08 00 09 01 80 13 00 00 00 00 00 00 86 [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:31]Read from MH i2c: E2 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 62 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 62 00 09 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 45 DC 02 00 0E 04 04 00 88 02 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 6E [19:04: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 45 DC 02 00 0E 04 04 00 88 02 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 [19:04:31]wFMCommunicate OK [19:04:31]SAM_PROTO_GetFieldsCounters done [19:04:31]requested_item shift.num is exist - process it [19:04:31]requested_item shift.opened is exist - process it [19:04:31]req_shift_opened [19:04:31]FM_GetShiftState [19:04:31]SAM_PROTO_GetShiftState [19:04:31]wFMCommunicate request_size=4 [19:04:31]MH_SAM_APDU [19:04:31]CAPDU: 80 13 01 00 [19:04:31]Write to MH i2c: E2 08 00 0A 01 80 13 01 00 00 00 00 00 88 [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:31]Read from MH i2c: E2 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 0E 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 0E 00 0A 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DA [19:04:31]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:04:31]wFMCommunicate OK [19:04:31]SAM_PROTO_GetShiftState done [19:04:31]FM_GetShiftState done [19:04:31]req_shift_opened done [19:04:31]requested_item shift.open_date is exist - process it [19:04:31]req_shift_open_date [19:04:31]req_shift_open_date done [19:04:31]produce_requested_data done [19:04:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187461,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:04:31]process_action_free close_receipt [19:04:31]json_value_free [19:04:31]json_value_free done [19:04:31]process_json_proto returns [19:04:31]Send response to host [19:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187461,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:04:31]free response buf [19:04:31]execute_script done [19:04:31]execute_script returns [19:04:31]free content buf [19:04:31]Sock 9.Close socket [19:04:31]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:42]accept exits with 7 [19:08:42]New connection [19:08:42]New thread 3067080036 created [19:08:42]Thread 3067223396 joined [19:08:42]Waiting for new connection... [19:08:42] Sock 7.Parse request [19:08:42]Sock 7.Check first char [19:08:42]Sock 7.First char is OK [19:08:42]request: POST /json_proto HTTP/1.0 [19:08:42]Method: POST [19:08:42]URL: /json_proto [19:08:42]Method is POST - this is cgi request [19:08:42]url: /json_proto [19:08:42]query_string will be loaded in cgi processing [19:08:42]execute_cgi json_proto POST (null) [19:08:42]execute_cgi path=json_proto method=POST [19:08:42]POST find Content-Length [19:08:42]Host: 172.17.46.131:8080 [19:08:42]Content-Length: 678 [19:08:42]Content-Type: application/json [19:08:42] [19:08:42]POST finish read [19:08:42]Found Content-Length = 678 [19:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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:08:42]execute_script... [19:08: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)412621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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:08:42]POST & json_proto [19:08:42]process_json_proto [19:08:42]json parsed OK: [19:08:42]protocol is kg_v1.0 [19:08:42]action value=close_receipt [19:08:42]process_action close_receipt [19:08:42]cmd_close_receipt [19:08:42]MH_GetDate [19:08:42]Write to MH i2c: F0 00 00 0B 01 FB [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: F0 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: F0 09 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: F0 09 00 0B 01 00 BA 7D B7 67 7E 41 4F 65 CC [19:08:42]GetLastDocTimeStamp 1740078268 [19:08:42]current date 1740078522 [19:08:42]FM_GetShiftState [19:08:42]SAM_PROTO_GetShiftState [19:08:42]wFMCommunicate request_size=4 [19:08:42]MH_SAM_APDU [19:08:42]CAPDU: 80 13 01 00 [19:08:42]Write to MH i2c: E2 08 00 0C 01 80 13 01 00 00 00 00 00 8A [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:42]Read from MH i2c: E2 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 0E 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 0E 00 0C 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DC [19:08:42]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:08:42]wFMCommunicate OK [19:08:42]SAM_PROTO_GetShiftState done [19:08:42]FM_GetShiftState done [19:08:42]opened in 1740011697 [19:08:42]opened+sec_in_day 1740098097 [19:08:42]quantity*price = 200013 [19:08:42]sum+1 = 200014 [19:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 263 20.02.2025 19:08 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187462 ФПД: 103053410445274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T190842&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187462&fm=103053410445274&tin=02508201610067®Number=0000000000091857&sum=200000 [19:08:43]StoreToDocumentArchive [19:08:43]shift 648 fd 187462 [19:08:43]save to /storage/0648/doc_00187462 [19:08:43]save last doc name /storage/0648/doc_00187462 to /storage/kkm_last_doc_name [19:08:43]save OK [19:08:43]Clear old archive folders... [19:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:08:43]tlvbuf is 0202D410 [19:08:43]SAM_PROTO_ClearQueue [19:08:43]wFMCommunicate request_size=4 [19:08:43]MH_SAM_APDU [19:08:43]CAPDU: 80 09 00 00 [19:08:43]Write to MH i2c: E2 08 00 19 01 80 09 00 00 00 00 00 00 8C [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 03 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [19:08:43]RAPDU: 90 00 [19:08:43]wFMCommunicate OK [19:08:43]SAM_PROTO_ClearQueue done [19:08:43]KKMCreateOFDPacket [19:08:43]OFDProtocolAddRootSTLVToBuf [19:08:43]FM_MakeSignedData [19:08:43]FM_MakeSignedData [19:08:43]SAM_PROTO_SignData [19:08:43]wFMCommunicate request_size=4 [19:08:43]MH_SAM_APDU [19:08:43]CAPDU: 80 0D 01 02 [19:08:43]Write to MH i2c: E2 08 00 1A 01 80 0D 01 02 00 00 00 00 94 [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 03 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [19:08:43]RAPDU: 90 00 [19:08:43]wFMCommunicate OK [19:08:43]wFMCommunicate request_size=255 [19:08:43]MH_SAM_APDU [19:08: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 BA 7D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DC 02 00 35 04 06 00 5D B9 FD EC [19:08:43]Write to MH i2c: E2 02 01 1B 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 BA 7D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DC 02 00 35 04 06 00 5D B9 FD EC 00 00 B8 [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 03 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [19:08:43]RAPDU: 90 00 [19:08:43]wFMCommunicate OK [19:08:43]wFMCommunicate request_size=7 [19:08:43]MH_SAM_APDU [19:08:43]CAPDU: 80 0D 02 02 02 27 DA [19:08:43]Write to MH i2c: E2 0A 00 1C 01 80 0D 02 02 02 00 27 DA 00 00 9C [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 03 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 03 00 1C 01 00 90 00 91 [19:08:43]RAPDU: 90 00 [19:08:43]wFMCommunicate OK [19:08:43]wFMCommunicate request_size=4 [19:08:43]MH_SAM_APDU [19:08:43]CAPDU: 80 0D 03 02 [19:08:43]Write to MH i2c: E2 08 00 1D 01 80 0D 03 02 00 00 00 00 99 [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 0B 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 0B 00 1D 01 00 FC 88 CC 82 7C B9 20 EC 90 00 AD [19:08:43]RAPDU: FC 88 CC 82 7C B9 20 EC 90 00 [19:08:43]wFMCommunicate OK [19:08:43]SAM_PROTO_SignData done [19:08:43]FM_MakeSignedData done [19:08:43]CreateOFDProtocolMessage [19:08:43]wFMCommunicate request_size=4 [19:08:43]MH_SAM_APDU [19:08:43]CAPDU: 80 11 00 00 [19:08:43]Write to MH i2c: E2 08 00 1E 01 80 11 00 00 00 00 00 00 99 [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 17 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 17 00 1E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EC [19:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:08:43]wFMCommunicate OK [19:08:43]CreateOFDProtocolMessage done [19:08:43]OFDSenderStorePacket 187462 [19:08:43]StoreOFDPacket docnum=187462 [19:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9E EB 04 01 72 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 BA 7D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DC 02 00 35 04 06 00 5D B9 FD EC 27 DA FC 88 CC 82 7C B9 20 EC [19:08:43]CheckFolder [19:08:43]dirname=/storage/ofd_packets [19:08:43]CheckFolder done [19:08:43]ProducePacketName [19:08:43]name=ofd_packets/00187462 [19:08:43]NVStorageSaveData ofd_packets/00187462 [19:08:43]File name is /storage/ofd_packets/00187462 [19:08:43]Write 298 bytes [19:08:43]NVStorageSaveData done [19:08:43]OFDSenderStorePacket done [19:08:43]KKMCreateOFDPacket done [19:08:43]NVStorageSaveData kkm_last_timestamp [19:08:43]File name is /storage/kkm_last_timestamp [19:08:43]Write 4 bytes [19:08:43]NVStorageSaveData done [19:08:43]ExternCall_PrintAddStr [19:08:43]wPrintStart [19:08:43]Write to MH i2c: 01 00 00 1F 01 20 [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 07 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 07 00 1F 01 00 00 00 00 00 FF 0F 35 [19:08:43]RasterBufferAndPrint [19:08:43]line Счет N : (1)412621 [19:08:43]line ИНН: 02508201610067 [19:08:43]line Контрольно-Кассовый Чек [19:08:43]line ПРОДАЖА [19:08:43]line ТРК (МРК, ГНК) : 6 [19:08:43]line Товар: 2710194210 [19:08:43]line ДТ-К-5 [19:08:43]line 27.550 * 72.60 [19:08:43]line = 2000.13 [19:08:43]line НДС 12% НСП 1% [19:08:43]line > о реализуемом товаре [19:08:43]line ОКРУГЛЕНИЕ: -0.13 [19:08:43]line ИТОГО: 2000.00 [19:08:43]line Внесено: 2000.00 [19:08:43]line СДАЧА: 0.00 [19:08:43]line НСП 1% : 17.70 [19:08:43]line НДС 12% : 212.40 [19:08:43]line Наличными: 2000.00 [19:08:43]line Безнал.: 0.00 [19:08:43]line Место: АЗС № 92 "Партнер Нефть" [19:08:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:08:43]line СНО: Общий режим [19:08:43]line Чек 263 20.02.2025 19:08 [19:08:43]line Смена: 648 ФФД: 1.0 [19:08:43]line ЗНМ: 0300000118 [19:08:43]line РНМ: 0000000000091857 [19:08:43]line Версия ККМ: 001 [19:08:43]line ФМ: 0000000000871826 [19:08:43]line ФД: 187462 [19:08:43]line ФПД: 103053410445274 [19:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T190842&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187462&fm=103053410445274&tin=02508201610067®Number=0000000000091857&sum=200000 [19:08:44]OFD Sender: Processing packet 187462 [packets to send 49, broken 48] [19:08:44]ProducePacketName [19:08:44]name=ofd_packets/00187462 [19:08:44]OFD Sender: To server: pG, [19:08:44]CommunicateWithHost lk.salyk.kg:30040 [19:08:44]ConnectInit lk.salyk.kg [19:08:44]written 0, free lines is 4095 [19:08:44]Connected sock=10 [19:08:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9E EB 04 01 72 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 BA 7D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DC 02 00 35 04 06 00 5D B9 FD EC 27 DA FC 88 CC 82 7C B9 20 EC [19:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F7 77 47 00 DF 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 DC 02 00 F4 03 04 00 0A 24 B7 67 B6 04 01 00 00 AC CB 96 C5 D7 1F E4 73 [19:08:44]CommunicateWithHost err = 0 [19:08:44]CheckOFDResponse [19:08:44]1017 (14) - 77093643461234 [19:08:44]1041 (16) - 0000000000871826 [19:08:44]1040 (4) - 187462 [19:08:44]1012 (4) - 20.02.2025 12:46 [19:08:44]1206 (1) - 0 [19:08:44]OFD Sender: Remove packet 187462 [19:08:44]ProducePacketName [19:08:44]name=ofd_packets/00187462 [19:08:44]NVStorageDeleteData [19:08:44]Write to MH i2c: 01 00 00 4A 01 4B [19:08:44]Write i2c OK [19:08:44]MH_I2C_Read... [19:08:44]Read from MH i2c: 01 [19:08:44]MH_I2C_Read... [19:08:44]Read from MH i2c: 01 07 00 [19:08:44]MH_I2C_Read... [19:08:44]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 EF 0C 4D [19:08:44]RasterBufferAndPrint [19:08:44]line [19:08:44]line [19:08:44]line [19:08:44]line [19:08:44]line [19:08:44]written 0, free lines is 3317 [19:08:44]MH_Cut [19:08:44]Write to MH i2c: D1 01 00 51 01 01 24 [19:08:44]Write i2c OK [19:08:44]MH_I2C_Read... [19:08:44]Read from MH i2c: D1 [19:08:44]MH_I2C_Read... [19:08:44]Read from MH i2c: D1 01 00 [19:08:44]MH_I2C_Read... [19:08:44]Read from MH i2c: D1 01 00 51 01 00 23 [19:08:44]Write to MH i2c: 01 00 00 52 01 53 [19:08:44]Write i2c OK [19:08:44]MH_I2C_Read... [19:08:45]OFD Sender: No OFD packet to send [19:08:45]*** Cut start [19:08:45]*** Partial cut [19:08:45]*** CUTSNS_PIN = 1 [19:08:45]*** CUTSNS_PIN = 0 [19:08:45]*** Brake cut motor [19:08:46]Read from MH i2c: 01 [19:08:46]MH_I2C_Read... [19:08:46]*** Stop cut motor [19:08:46]*** Cut end [19:08:46]Read from MH i2c: 01 07 00 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: 01 07 00 52 01 00 00 00 00 00 FF 0F 68 [19:08:46]process_action close_receipt done [19:08:46]requested_data is exist [19:08:46]produce_requested_data [19:08:46]requested_item fm.sn is exist - process it [19:08:46]wFMCommunicate request_size=4 [19:08:46]MH_SAM_APDU [19:08:46]CAPDU: 80 11 00 00 [19:08:46]Write to MH i2c: E2 08 00 53 01 80 11 00 00 00 00 00 00 CE [19:08:46]Write i2c OK [19:08:46]MH_I2C_Read... [19:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:46]Read from MH i2c: E2 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 17 00 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 17 00 53 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [19:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:08:46]wFMCommunicate OK [19:08:46]requested_item fd.num is exist - process it [19:08:46]SAM_PROTO_GetFieldsCounters [19:08:46]wFMCommunicate request_size=4 [19:08:46]MH_SAM_APDU [19:08:46]CAPDU: 80 13 00 00 [19:08:46]Write to MH i2c: E2 08 00 54 01 80 13 00 00 00 00 00 00 D1 [19:08:46]Write i2c OK [19:08:46]MH_I2C_Read... [19:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:46]Read from MH i2c: E2 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 62 00 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 62 00 54 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 46 DC 02 00 0E 04 04 00 88 02 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 BD [19:08:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 46 DC 02 00 0E 04 04 00 88 02 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 [19:08:46]wFMCommunicate OK [19:08:46]SAM_PROTO_GetFieldsCounters done [19:08:46]requested_item shift.num is exist - process it [19:08:46]requested_item shift.opened is exist - process it [19:08:46]req_shift_opened [19:08:46]FM_GetShiftState [19:08:46]SAM_PROTO_GetShiftState [19:08:46]wFMCommunicate request_size=4 [19:08:46]MH_SAM_APDU [19:08:46]CAPDU: 80 13 01 00 [19:08:46]Write to MH i2c: E2 08 00 55 01 80 13 01 00 00 00 00 00 D3 [19:08:46]Write i2c OK [19:08:46]MH_I2C_Read... [19:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:46]Read from MH i2c: E2 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 0E 00 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 0E 00 55 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 25 [19:08:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:08:46]wFMCommunicate OK [19:08:46]SAM_PROTO_GetShiftState done [19:08:46]FM_GetShiftState done [19:08:46]req_shift_opened done [19:08:46]requested_item shift.open_date is exist - process it [19:08:46]req_shift_open_date [19:08:46]req_shift_open_date done [19:08:46]produce_requested_data done [19:08:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187462,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:08:46]process_action_free close_receipt [19:08:46]json_value_free [19:08:46]json_value_free done [19:08:46]process_json_proto returns [19:08:46]Send response to host [19:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187462,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:08:46]free response buf [19:08:46]execute_script done [19:08:46]execute_script returns [19:08:46]free content buf [19:08:46]Sock 7.Close socket [19:08:46]Sock 7.Thread stoped [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:01]accept exits with 9 [19:10:01]New connection [19:10:01]New thread 3067223396 created [19:10:01]Thread 3067080036 joined [19:10:01]Waiting for new connection... [19:10:01] Sock 9.Parse request [19:10:01]Sock 9.Check first char [19:10:01]Sock 9.First char is OK [19:10:01]request: POST /json_proto HTTP/1.0 [19:10:01]Method: POST [19:10:01]URL: /json_proto [19:10:01]Method is POST - this is cgi request [19:10:01]url: /json_proto [19:10:01]query_string will be loaded in cgi processing [19:10:01]execute_cgi json_proto POST (null) [19:10:01]execute_cgi path=json_proto method=POST [19:10:01]POST find Content-Length [19:10:01]Host: 172.17.46.131:8080 [19:10:01]Content-Length: 677 [19:10:01]Content-Type: application/json [19:10:01] [19:10:01]POST finish read [19:10:01]Found Content-Length = 677 [19:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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:10:01]execute_script... [19:10: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)412622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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:10:01]POST & json_proto [19:10:01]process_json_proto [19:10:01]json parsed OK: [19:10:01]protocol is kg_v1.0 [19:10:01]action value=close_receipt [19:10:01]process_action close_receipt [19:10:01]cmd_close_receipt [19:10:01]MH_GetDate [19:10:01]Write to MH i2c: F0 00 00 56 01 46 [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: F0 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: F0 09 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: F0 09 00 56 01 00 0A 7E B7 67 7E 41 4F 65 68 [19:10:01]GetLastDocTimeStamp 1740078522 [19:10:01]current date 1740078602 [19:10:01]FM_GetShiftState [19:10:01]SAM_PROTO_GetShiftState [19:10:01]wFMCommunicate request_size=4 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 13 01 00 [19:10:01]Write to MH i2c: E2 08 00 57 01 80 13 01 00 00 00 00 00 D5 [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:01]Read from MH i2c: E2 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 0E 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 0E 00 57 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 27 [19:10:01]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:10:01]wFMCommunicate OK [19:10:01]SAM_PROTO_GetShiftState done [19:10:01]FM_GetShiftState done [19:10:01]opened in 1740011697 [19:10:01]opened+sec_in_day 1740098097 [19:10:01]quantity*price = 30045 [19:10:01]sum+1 = 30047 [19:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 264 20.02.2025 19:10 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187463 ФПД: 238108359632432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T191002&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187463&fm=238108359632432&tin=02508201610067®Number=0000000000091857&sum=30000 [19:10:02]StoreToDocumentArchive [19:10:02]shift 648 fd 187463 [19:10:02]save to /storage/0648/doc_00187463 [19:10:02]save last doc name /storage/0648/doc_00187463 to /storage/kkm_last_doc_name [19:10:02]save OK [19:10:02]Clear old archive folders... [19:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:02]tlvbuf is 02037AA0 [19:10:02]SAM_PROTO_ClearQueue [19:10:02]wFMCommunicate request_size=4 [19:10:02]MH_SAM_APDU [19:10:02]CAPDU: 80 09 00 00 [19:10:02]Write to MH i2c: E2 08 00 64 01 80 09 00 00 00 00 00 00 D7 [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:02]Read from MH i2c: E2 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: E2 03 00 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [19:10:02]RAPDU: 90 00 [19:10:02]wFMCommunicate OK [19:10:02]SAM_PROTO_ClearQueue done [19:10:02]KKMCreateOFDPacket [19:10:02]OFDProtocolAddRootSTLVToBuf [19:10:02]FM_MakeSignedData [19:10:02]FM_MakeSignedData [19:10:02]SAM_PROTO_SignData [19:10:02]wFMCommunicate request_size=4 [19:10:02]MH_SAM_APDU [19:10:02]CAPDU: 80 0D 01 02 [19:10:02]Write to MH i2c: E2 08 00 65 01 80 0D 01 02 00 00 00 00 DF [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 03 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [19:10:03]RAPDU: 90 00 [19:10:03]wFMCommunicate OK [19:10:03]wFMCommunicate request_size=255 [19:10:03]MH_SAM_APDU [19:10: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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 0A 7E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DC 02 00 35 04 06 00 D8 [19:10:03]Write to MH i2c: E2 02 01 66 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 0A 7E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DC 02 00 35 04 06 00 D8 00 00 53 [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 03 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 03 00 66 01 00 90 00 DB [19:10:03]RAPDU: 90 00 [19:10:03]wFMCommunicate OK [19:10:03]wFMCommunicate request_size=10 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 0D 02 02 05 8E EC 31 A6 30 [19:10:03]Write to MH i2c: E2 0D 00 67 01 80 0D 02 02 05 00 8E EC 31 A6 30 00 00 6D [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 03 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 03 00 67 01 00 90 00 DC [19:10:03]RAPDU: 90 00 [19:10:03]wFMCommunicate OK [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 0D 03 02 [19:10:03]Write to MH i2c: E2 08 00 68 01 80 0D 03 02 00 00 00 00 E4 [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 0B 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 0B 00 68 01 00 C3 AE 20 69 E9 BA BD DD 90 00 1C [19:10:03]RAPDU: C3 AE 20 69 E9 BA BD DD 90 00 [19:10:03]wFMCommunicate OK [19:10:03]SAM_PROTO_SignData done [19:10:03]FM_MakeSignedData done [19:10:03]CreateOFDProtocolMessage [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 11 00 00 [19:10:03]Write to MH i2c: E2 08 00 69 01 80 11 00 00 00 00 00 00 E4 [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 17 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 17 00 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [19:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:10:03]wFMCommunicate OK [19:10:03]CreateOFDProtocolMessage done [19:10:03]OFDSenderStorePacket 187463 [19:10:03]StoreOFDPacket docnum=187463 [19:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 F8 07 01 D3 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 0A 7E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DC 02 00 35 04 06 00 D8 8E EC 31 A6 30 C3 AE 20 69 E9 BA BD DD [19:10:03]CheckFolder [19:10:03]dirname=/storage/ofd_packets [19:10:03]CheckFolder done [19:10:03]ProducePacketName [19:10:03]name=ofd_packets/00187463 [19:10:03]NVStorageSaveData ofd_packets/00187463 [19:10:03]File name is /storage/ofd_packets/00187463 [19:10:03]Write 301 bytes [19:10:03]NVStorageSaveData done [19:10:03]OFDSenderStorePacket done [19:10:03]KKMCreateOFDPacket done [19:10:03]NVStorageSaveData kkm_last_timestamp [19:10:03]File name is /storage/kkm_last_timestamp [19:10:03]Write 4 bytes [19:10:03]NVStorageSaveData done [19:10:03]ExternCall_PrintAddStr [19:10:03]wPrintStart [19:10:03]Write to MH i2c: 01 00 00 6A 01 6B [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: 01 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: 01 07 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: 01 07 00 6A 01 00 00 00 00 00 FF 0F 80 [19:10:03]RasterBufferAndPrint [19:10:03]line Счет N : (1)412622 [19:10:03]line ИНН: 02508201610067 [19:10:03]line Контрольно-Кассовый Чек [19:10:03]line ПРОДАЖА [19:10:03]line ТРК (МРК, ГНК) : 22 [19:10:03]line Товар: 2710124130 [19:10:03]line Аи-92-К-2 [19:10:03]line 4.680 * 64.20 [19:10:03]line = 300.46 [19:10:03]line НДС 12% НСП 1% [19:10:03]line > о реализуемом товаре [19:10:03]line ОКРУГЛЕНИЕ: -0.46 [19:10:03]line ИТОГО: 300.00 [19:10:03]line Внесено: 300.00 [19:10:03]line СДАЧА: 0.00 [19:10:03]line НСП 1% : 2.66 [19:10:03]line НДС 12% : 31.91 [19:10:03]line Наличными: 300.00 [19:10:03]line Безнал.: 0.00 [19:10:03]line Место: АЗС № 92 "Партнер Нефть" [19:10:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:10:03]line СНО: Общий режим [19:10:03]line Чек 264 20.02.2025 19:10 [19:10:03]line Смена: 648 ФФД: 1.0 [19:10:03]line ЗНМ: 0300000118 [19:10:03]line РНМ: 0000000000091857 [19:10:03]line Версия ККМ: 001 [19:10:03]line ФМ: 0000000000871826 [19:10:03]line ФД: 187463 [19:10:03]line ФПД: 238108359632432 [19:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T191002&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187463&fm=238108359632432&tin=02508201610067®Number=0000000000091857&sum=30000 [19:10:03]written 0, free lines is 4095 [19:10:03]OFD Sender: Processing packet 187463 [packets to send 49, broken 48] [19:10:03]ProducePacketName [19:10:03]name=ofd_packets/00187463 [19:10:03]OFD Sender: To server: pG, [19:10:03]CommunicateWithHost lk.salyk.kg:30040 [19:10:03]ConnectInit lk.salyk.kg [19:10:03]Connected sock=10 [19:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 F8 07 01 D3 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 0A 7E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DC 02 00 35 04 06 00 D8 8E EC 31 A6 30 C3 AE 20 69 E9 BA BD DD [19:10:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AC 75 47 00 02 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 31 38 32 36 10 04 04 00 47 DC 02 00 F4 03 04 00 5A 24 B7 67 B6 04 01 00 00 2E D2 1D DB A9 59 9A 84 [19:10:04]CommunicateWithHost err = 0 [19:10:04]CheckOFDResponse [19:10:04]1017 (14) - 77093643461234 [19:10:04]1041 (16) - 0000000000871826 [19:10:04]1040 (4) - 187463 [19:10:04]1012 (4) - 20.02.2025 12:47 [19:10:04]1206 (1) - 0 [19:10:04]OFD Sender: Remove packet 187463 [19:10:04]ProducePacketName [19:10:04]name=ofd_packets/00187463 [19:10:04]NVStorageDeleteData [19:10:04]Write to MH i2c: 01 00 00 95 01 96 [19:10:04]Write i2c OK [19:10:04]MH_I2C_Read... [19:10:04]Read from MH i2c: 01 [19:10:04]MH_I2C_Read... [19:10:04]Read from MH i2c: 01 07 00 [19:10:04]MH_I2C_Read... [19:10:04]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 EA 0C 93 [19:10:04]RasterBufferAndPrint [19:10:04]line [19:10:04]line [19:10:04]line [19:10:04]line [19:10:04]line [19:10:04]written 0, free lines is 3312 [19:10:04]MH_Cut [19:10:04]Write to MH i2c: D1 01 00 9C 01 01 6F [19:10:04]Write i2c OK [19:10:04]MH_I2C_Read... [19:10:04]Read from MH i2c: D1 [19:10:04]MH_I2C_Read... [19:10:04]Read from MH i2c: D1 01 00 [19:10:04]MH_I2C_Read... [19:10:04]Read from MH i2c: D1 01 00 9C 01 00 6E [19:10:04]Write to MH i2c: 01 00 00 9D 01 9E [19:10:04]Write i2c OK [19:10:04]MH_I2C_Read... [19:10:04]OFD Sender: No OFD packet to send [19:10:04]*** Cut start [19:10:04]*** Partial cut [19:10:04]*** CUTSNS_PIN = 1 [19:10:05]*** CUTSNS_PIN = 0 [19:10:05]*** Brake cut motor [19:10:05]Read from MH i2c: 01 [19:10:05]MH_I2C_Read... [19:10:05]*** Stop cut motor [19:10:05]*** Cut end [19:10:05]Read from MH i2c: 01 07 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 FF 0F B3 [19:10:05]process_action close_receipt done [19:10:05]requested_data is exist [19:10:05]produce_requested_data [19:10:05]requested_item fm.sn is exist - process it [19:10:05]wFMCommunicate request_size=4 [19:10:05]MH_SAM_APDU [19:10:05]CAPDU: 80 11 00 00 [19:10:05]Write to MH i2c: E2 08 00 9E 01 80 11 00 00 00 00 00 00 19 [19:10:05]Write i2c OK [19:10:05]MH_I2C_Read... [19:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:05]Read from MH i2c: E2 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 17 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 17 00 9E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6C [19:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:10:05]wFMCommunicate OK [19:10:05]requested_item fd.num is exist - process it [19:10:05]SAM_PROTO_GetFieldsCounters [19:10:05]wFMCommunicate request_size=4 [19:10:05]MH_SAM_APDU [19:10:05]CAPDU: 80 13 00 00 [19:10:05]Write to MH i2c: E2 08 00 9F 01 80 13 00 00 00 00 00 00 1C [19:10:05]Write i2c OK [19:10:05]MH_I2C_Read... [19:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:05]Read from MH i2c: E2 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 62 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 62 00 9F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 47 DC 02 00 0E 04 04 00 88 02 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 0C [19:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 47 DC 02 00 0E 04 04 00 88 02 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 [19:10:05]wFMCommunicate OK [19:10:05]SAM_PROTO_GetFieldsCounters done [19:10:05]requested_item shift.num is exist - process it [19:10:05]requested_item shift.opened is exist - process it [19:10:05]req_shift_opened [19:10:05]FM_GetShiftState [19:10:05]SAM_PROTO_GetShiftState [19:10:05]wFMCommunicate request_size=4 [19:10:05]MH_SAM_APDU [19:10:05]CAPDU: 80 13 01 00 [19:10:05]Write to MH i2c: E2 08 00 A0 01 80 13 01 00 00 00 00 00 1E [19:10:05]Write i2c OK [19:10:05]MH_I2C_Read... [19:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:05]Read from MH i2c: E2 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 0E 00 [19:10:05]MH_I2C_Read... [19:10:05]Read from MH i2c: E2 0E 00 A0 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 70 [19:10:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:10:05]wFMCommunicate OK [19:10:05]SAM_PROTO_GetShiftState done [19:10:05]FM_GetShiftState done [19:10:05]req_shift_opened done [19:10:05]requested_item shift.open_date is exist - process it [19:10:05]req_shift_open_date [19:10:05]req_shift_open_date done [19:10:05]produce_requested_data done [19:10:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187463,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:10:05]process_action_free close_receipt [19:10:05]json_value_free [19:10:05]json_value_free done [19:10:05]process_json_proto returns [19:10:05]Send response to host [19:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187463,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:10:05]free response buf [19:10:05]execute_script done [19:10:05]execute_script returns [19:10:05]free content buf [19:10:05]Sock 9.Close socket [19:10:05]Sock 9.Thread stoped [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13: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:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:14:56]accept exits with 7 [19:14:56]New connection [19:14:56]New thread 3067080036 created [19:14:56]Thread 3067223396 joined [19:14:56]Waiting for new connection... [19:14:56] Sock 7.Parse request [19:14:56]Sock 7.Check first char [19:14:56]Sock 7.First char is OK [19:14:56]request: POST /json_proto HTTP/1.0 [19:14:56]Method: POST [19:14:56]URL: /json_proto [19:14:56]Method is POST - this is cgi request [19:14:56]url: /json_proto [19:14:56]query_string will be loaded in cgi processing [19:14:56]execute_cgi json_proto POST (null) [19:14:56]execute_cgi path=json_proto method=POST [19:14:56]POST find Content-Length [19:14:56]Host: 172.17.46.131:8080 [19:14:56]Content-Length: 678 [19:14:56]Content-Type: application/json [19:14:56] [19:14:56]POST finish read [19:14:56]Found Content-Length = 678 [19:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:56]execute_script... [19:14: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)412623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:56]POST & json_proto [19:14:56]process_json_proto [19:14:56]json parsed OK: [19:14:56]protocol is kg_v1.0 [19:14:56]action value=close_receipt [19:14:56]process_action close_receipt [19:14:56]cmd_close_receipt [19:14:56]MH_GetDate [19:14:56]Write to MH i2c: F0 00 00 A1 01 91 [19:14:56]Write i2c OK [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: F0 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: F0 09 00 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: F0 09 00 A1 01 00 31 7F B7 67 7E 41 4F 65 DB [19:14:56]GetLastDocTimeStamp 1740078602 [19:14:56]current date 1740078897 [19:14:56]FM_GetShiftState [19:14:56]SAM_PROTO_GetShiftState [19:14:56]wFMCommunicate request_size=4 [19:14:56]MH_SAM_APDU [19:14:56]CAPDU: 80 13 01 00 [19:14:56]Write to MH i2c: E2 08 00 A2 01 80 13 01 00 00 00 00 00 20 [19:14:56]Write i2c OK [19:14:56]MH_I2C_Read... [19:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:56]Read from MH i2c: E2 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 0E 00 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 0E 00 A2 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 72 [19:14:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:14:56]wFMCommunicate OK [19:14:56]SAM_PROTO_GetShiftState done [19:14:56]FM_GetShiftState done [19:14:56]opened in 1740011697 [19:14:56]opened+sec_in_day 1740098097 [19:14:56]quantity*price = 150064 [19:14:56]sum+1 = 150065 [19:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 265 20.02.2025 19:14 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187464 ФПД: 254150286236958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T191457&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187464&fm=254150286236958&tin=02508201610067®Number=0000000000091857&sum=150000 [19:14:57]StoreToDocumentArchive [19:14:57]shift 648 fd 187464 [19:14:57]save to /storage/0648/doc_00187464 [19:14:57]save last doc name /storage/0648/doc_00187464 to /storage/kkm_last_doc_name [19:14:57]save OK [19:14:57]Clear old archive folders... [19:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:14:57]tlvbuf is 0202C850 [19:14:57]SAM_PROTO_ClearQueue [19:14:57]wFMCommunicate request_size=4 [19:14:57]MH_SAM_APDU [19:14:57]CAPDU: 80 09 00 00 [19:14:57]Write to MH i2c: E2 08 00 AF 01 80 09 00 00 00 00 00 00 22 [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:57]Read from MH i2c: E2 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [19:14:57]RAPDU: 90 00 [19:14:57]wFMCommunicate OK [19:14:57]SAM_PROTO_ClearQueue done [19:14:57]KKMCreateOFDPacket [19:14:57]OFDProtocolAddRootSTLVToBuf [19:14:57]FM_MakeSignedData [19:14:57]FM_MakeSignedData [19:14:57]SAM_PROTO_SignData [19:14:57]wFMCommunicate request_size=4 [19:14:57]MH_SAM_APDU [19:14:57]CAPDU: 80 0D 01 02 [19:14:57]Write to MH i2c: E2 08 00 B0 01 80 0D 01 02 00 00 00 00 2A [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:57]Read from MH i2c: E2 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [19:14:57]RAPDU: 90 00 [19:14:57]wFMCommunicate OK [19:14:57]wFMCommunicate request_size=255 [19:14:57]MH_SAM_APDU [19:14: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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 31 7F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DC 02 00 35 04 06 00 E7 25 F9 87 [19:14:57]Write to MH i2c: E2 02 01 B1 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 31 7F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DC 02 00 35 04 06 00 E7 25 F9 87 00 00 CB [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 B1 01 00 90 00 26 [19:14:58]RAPDU: 90 00 [19:14:58]wFMCommunicate OK [19:14:58]wFMCommunicate request_size=7 [19:14:58]MH_SAM_APDU [19:14:58]CAPDU: 80 0D 02 02 02 DD 1E [19:14:58]Write to MH i2c: E2 0A 00 B2 01 80 0D 02 02 02 00 DD 1E 00 00 2C [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:58]Read from MH i2c: E2 03 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [19:14:58]RAPDU: 90 00 [19:14:58]wFMCommunicate OK [19:14:58]wFMCommunicate request_size=4 [19:14:58]MH_SAM_APDU [19:14:58]CAPDU: 80 0D 03 02 [19:14:58]Write to MH i2c: E2 08 00 B3 01 80 0D 03 02 00 00 00 00 2F [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 0B 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 0B 00 B3 01 00 51 0E 0F A7 8E 91 64 15 90 00 DD [19:14:58]RAPDU: 51 0E 0F A7 8E 91 64 15 90 00 [19:14:58]wFMCommunicate OK [19:14:58]SAM_PROTO_SignData done [19:14:58]FM_MakeSignedData done [19:14:58]CreateOFDProtocolMessage [19:14:58]wFMCommunicate request_size=4 [19:14:58]MH_SAM_APDU [19:14:58]CAPDU: 80 11 00 00 [19:14:58]Write to MH i2c: E2 08 00 B4 01 80 11 00 00 00 00 00 00 2F [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 17 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 17 00 B4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [19:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:14:58]wFMCommunicate OK [19:14:58]CreateOFDProtocolMessage done [19:14:58]OFDSenderStorePacket 187464 [19:14:58]StoreOFDPacket docnum=187464 [19:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FB BB 04 01 05 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 31 7F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DC 02 00 35 04 06 00 E7 25 F9 87 DD 1E 51 0E 0F A7 8E 91 64 15 [19:14:58]CheckFolder [19:14:58]dirname=/storage/ofd_packets [19:14:58]CheckFolder done [19:14:58]ProducePacketName [19:14:58]name=ofd_packets/00187464 [19:14:58]NVStorageSaveData ofd_packets/00187464 [19:14:58]File name is /storage/ofd_packets/00187464 [19:14:58]Write 298 bytes [19:14:58]NVStorageSaveData done [19:14:58]OFDSenderStorePacket done [19:14:58]KKMCreateOFDPacket done [19:14:58]NVStorageSaveData kkm_last_timestamp [19:14:58]File name is /storage/kkm_last_timestamp [19:14:58]Write 4 bytes [19:14:58]NVStorageSaveData done [19:14:58]ExternCall_PrintAddStr [19:14:58]wPrintStart [19:14:58]Write to MH i2c: 01 00 00 B5 01 B6 [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 07 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 07 00 B5 01 00 00 00 00 00 FF 0F CB [19:14:58]RasterBufferAndPrint [19:14:58]line Счет N : (1)412623 [19:14:58]line ИНН: 02508201610067 [19:14:58]line Контрольно-Кассовый Чек [19:14:58]line ПРОДАЖА [19:14:58]line ТРК (МРК, ГНК) : 5 [19:14:58]line Товар: 2710194210 [19:14:58]line ДТ-К-5 [19:14:58]line 20.670 * 72.60 [19:14:58]line = 1500.64 [19:14:58]line НДС 12% НСП 1% [19:14:58]line > о реализуемом товаре [19:14:58]line ОКРУГЛЕНИЕ: -0.64 [19:14:58]line ИТОГО: 1500.00 [19:14:58]line Внесено: 1500.00 [19:14:58]line СДАЧА: 0.00 [19:14:58]line НСП 1% : 13.28 [19:14:58]line НДС 12% : 159.36 [19:14:58]line Наличными: 1500.00 [19:14:58]line Безнал.: 0.00 [19:14:58]line Место: АЗС № 92 "Партнер Нефть" [19:14:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:14:58]line СНО: Общий режим [19:14:58]line Чек 265 20.02.2025 19:14 [19:14:58]line Смена: 648 ФФД: 1.0 [19:14:58]line ЗНМ: 0300000118 [19:14:58]line РНМ: 0000000000091857 [19:14:58]line Версия ККМ: 001 [19:14:58]line ФМ: 0000000000871826 [19:14:58]line ФД: 187464 [19:14:58]line ФПД: 254150286236958 [19:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T191457&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187464&fm=254150286236958&tin=02508201610067®Number=0000000000091857&sum=150000 [19:14:58]OFD Sender: Processing packet 187464 [packets to send 49, broken 48] [19:14:58]ProducePacketName [19:14:58]name=ofd_packets/00187464 [19:14:58]OFD Sender: To server: pG, [19:14:58]CommunicateWithHost lk.salyk.kg:30040 [19:14:58]ConnectInit lk.salyk.kg [19:14:58]written 0, free lines is 4095 [19:14:58]Connected sock=10 [19:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FB BB 04 01 05 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 31 7F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DC 02 00 35 04 06 00 E7 25 F9 87 DD 1E 51 0E 0F A7 8E 91 64 15 [19:14:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 61 66 47 00 5B 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 DC 02 00 F4 03 04 00 81 25 B7 67 B6 04 01 00 00 25 6A BC 7B B2 37 85 88 [19:14:59]CommunicateWithHost err = 0 [19:14:59]CheckOFDResponse [19:14:59]1017 (14) - 77093643461234 [19:14:59]1041 (16) - 0000000000871826 [19:14:59]1040 (4) - 187464 [19:14:59]1012 (4) - 20.02.2025 12:52 [19:14:59]1206 (1) - 0 [19:14:59]OFD Sender: Remove packet 187464 [19:14:59]ProducePacketName [19:14:59]name=ofd_packets/00187464 [19:14:59]NVStorageDeleteData [19:14:59]Write to MH i2c: 01 00 00 E0 01 E1 [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 07 00 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 ED 0C E1 [19:14:59]RasterBufferAndPrint [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]written 0, free lines is 3315 [19:14:59]MH_Cut [19:14:59]Write to MH i2c: D1 01 00 E7 01 01 BA [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 01 00 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 01 00 E7 01 00 B9 [19:14:59]Write to MH i2c: 01 00 00 E8 01 E9 [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]OFD Sender: No OFD packet to send [19:14:59]*** Cut start [19:14:59]*** Partial cut [19:14:59]*** CUTSNS_PIN = 1 [19:14:59]*** CUTSNS_PIN = 0 [19:15:00]*** Brake cut motor [19:15:00]Read from MH i2c: 01 [19:15:00]MH_I2C_Read... [19:15:00]*** Stop cut motor [19:15:00]*** Cut end [19:15:00]Read from MH i2c: 01 07 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: 01 07 00 E8 01 00 00 00 00 00 FF 0F FE [19:15:00]process_action close_receipt done [19:15:00]requested_data is exist [19:15:00]produce_requested_data [19:15:00]requested_item fm.sn is exist - process it [19:15:00]wFMCommunicate request_size=4 [19:15:00]MH_SAM_APDU [19:15:00]CAPDU: 80 11 00 00 [19:15:00]Write to MH i2c: E2 08 00 E9 01 80 11 00 00 00 00 00 00 64 [19:15:00]Write i2c OK [19:15:00]MH_I2C_Read... [19:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:00]Read from MH i2c: E2 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 17 00 [19:15:00]MH_I2C_Read... [19:15:00]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 31 38 32 36 90 00 B7 [19:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:15:00]wFMCommunicate OK [19:15:00]requested_item fd.num is exist - process it [19:15:00]SAM_PROTO_GetFieldsCounters [19:15:00]wFMCommunicate request_size=4 [19:15:00]MH_SAM_APDU [19:15:00]CAPDU: 80 13 00 00 [19:15:00]Write to MH i2c: E2 08 00 EA 01 80 13 00 00 00 00 00 00 67 [19:15:00]Write i2c OK [19:15:00]MH_I2C_Read... [19:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:00]Read from MH i2c: E2 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 62 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 62 00 EA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 48 DC 02 00 0E 04 04 00 88 02 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 5B [19:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 48 DC 02 00 0E 04 04 00 88 02 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:15:00]wFMCommunicate OK [19:15:00]SAM_PROTO_GetFieldsCounters done [19:15:00]requested_item shift.num is exist - process it [19:15:00]requested_item shift.opened is exist - process it [19:15:00]req_shift_opened [19:15:00]FM_GetShiftState [19:15:00]SAM_PROTO_GetShiftState [19:15:00]wFMCommunicate request_size=4 [19:15:00]MH_SAM_APDU [19:15:00]CAPDU: 80 13 01 00 [19:15:00]Write to MH i2c: E2 08 00 EB 01 80 13 01 00 00 00 00 00 69 [19:15:00]Write i2c OK [19:15:00]MH_I2C_Read... [19:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:00]Read from MH i2c: E2 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 0E 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 0E 00 EB 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BB [19:15:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:15:00]wFMCommunicate OK [19:15:00]SAM_PROTO_GetShiftState done [19:15:00]FM_GetShiftState done [19:15:00]req_shift_opened done [19:15:00]requested_item shift.open_date is exist - process it [19:15:00]req_shift_open_date [19:15:00]req_shift_open_date done [19:15:00]produce_requested_data done [19:15:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187464,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:15:00]process_action_free close_receipt [19:15:00]json_value_free [19:15:00]json_value_free done [19:15:00]process_json_proto returns [19:15:00]Send response to host [19:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187464,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:15:00]free response buf [19:15:00]execute_script done [19:15:00]execute_script returns [19:15:00]free content buf [19:15:00]Sock 7.Close socket [19:15:00]Sock 7.Thread stoped [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:00]accept exits with 9 [19:18:00]New connection [19:18:00]New thread 3067223396 created [19:18:00]Thread 3067080036 joined [19:18:00]Waiting for new connection... [19:18:00] Sock 9.Parse request [19:18:00]Sock 9.Check first char [19:18:00]Sock 9.First char is OK [19:18:00]request: POST /json_proto HTTP/1.0 [19:18:00]Method: POST [19:18:00]URL: /json_proto [19:18:00]Method is POST - this is cgi request [19:18:00]url: /json_proto [19:18:00]query_string will be loaded in cgi processing [19:18:00]execute_cgi json_proto POST (null) [19:18:00]execute_cgi path=json_proto method=POST [19:18:00]POST find Content-Length [19:18:00]Host: 172.17.46.131:8080 [19:18:00]Content-Length: 677 [19:18:00]Content-Type: application/json [19:18:00] [19:18:00]POST finish read [19:18:00]Found Content-Length = 677 [19:18:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "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:00]execute_script... [19:18: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)412624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "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:00]POST & json_proto [19:18:00]process_json_proto [19:18:00]json parsed OK: [19:18:00]protocol is kg_v1.0 [19:18:00]action value=close_receipt [19:18:00]process_action close_receipt [19:18:00]cmd_close_receipt [19:18:00]MH_GetDate [19:18:00]Write to MH i2c: F0 00 00 EC 01 DC [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: F0 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: F0 09 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: F0 09 00 EC 01 00 E8 7F B7 67 7E 41 4F 65 DD [19:18:00]GetLastDocTimeStamp 1740078897 [19:18:00]current date 1740079080 [19:18:00]FM_GetShiftState [19:18:00]SAM_PROTO_GetShiftState [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 13 01 00 [19:18:00]Write to MH i2c: E2 08 00 ED 01 80 13 01 00 00 00 00 00 6B [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0E 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0E 00 ED 01 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BD [19:18:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:18:00]wFMCommunicate OK [19:18:00]SAM_PROTO_GetShiftState done [19:18:00]FM_GetShiftState done [19:18:00]opened in 1740011697 [19:18:00]opened+sec_in_day 1740098097 [19:18:00]quantity*price = 20030 [19:18:00]sum+1 = 20031 [19:18:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 266 20.02.2025 19:18 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187465 ФПД: 106219764802790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T191800&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187465&fm=106219764802790&tin=02508201610067®Number=0000000000091857&sum=20000 [19:18:01]StoreToDocumentArchive [19:18:01]shift 648 fd 187465 [19:18:01]save to /storage/0648/doc_00187465 [19:18:01]save last doc name /storage/0648/doc_00187465 to /storage/kkm_last_doc_name [19:18:01]save OK [19:18:01]Clear old archive folders... [19:18:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:01]tlvbuf is 0203A420 [19:18:01]SAM_PROTO_ClearQueue [19:18:01]wFMCommunicate request_size=4 [19:18:01]MH_SAM_APDU [19:18:01]CAPDU: 80 09 00 00 [19:18:01]Write to MH i2c: E2 08 00 FA 01 80 09 00 00 00 00 00 00 6D [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:01]Read from MH i2c: E2 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 03 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 03 00 FA 01 00 90 00 6F [19:18:01]RAPDU: 90 00 [19:18:01]wFMCommunicate OK [19:18:01]SAM_PROTO_ClearQueue done [19:18:01]KKMCreateOFDPacket [19:18:01]OFDProtocolAddRootSTLVToBuf [19:18:01]FM_MakeSignedData [19:18:01]FM_MakeSignedData [19:18:01]SAM_PROTO_SignData [19:18:01]wFMCommunicate request_size=4 [19:18:01]MH_SAM_APDU [19:18:01]CAPDU: 80 0D 01 02 [19:18:01]Write to MH i2c: E2 08 00 FB 01 80 0D 01 02 00 00 00 00 75 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:01]Read from MH i2c: E2 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 03 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 03 00 FB 01 00 90 00 70 [19:18:01]RAPDU: 90 00 [19:18:01]wFMCommunicate OK [19:18:01]wFMCommunicate request_size=255 [19:18:01]MH_SAM_APDU [19:18: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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 0A 01 00 00 F4 03 04 00 E8 7F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DC 02 00 35 04 06 00 60 [19:18:01]Write to MH i2c: E2 02 01 FC 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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 0A 01 00 00 F4 03 04 00 E8 7F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DC 02 00 35 04 06 00 60 00 00 FB [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:01]Read from MH i2c: E2 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 03 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 03 00 FC 01 00 90 00 71 [19:18:01]RAPDU: 90 00 [19:18:01]wFMCommunicate OK [19:18:01]wFMCommunicate request_size=10 [19:18:01]MH_SAM_APDU [19:18:01]CAPDU: 80 0D 02 02 05 9B 37 59 64 E6 [19:18:01]Write to MH i2c: E2 0D 00 FD 01 80 0D 02 02 05 00 9B 37 59 64 E6 00 00 F7 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:01]Read from MH i2c: E2 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 03 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [19:18:01]RAPDU: 90 00 [19:18:01]wFMCommunicate OK [19:18:01]wFMCommunicate request_size=4 [19:18:01]MH_SAM_APDU [19:18:01]CAPDU: 80 0D 03 02 [19:18:01]Write to MH i2c: E2 08 00 FE 01 80 0D 03 02 00 00 00 00 7A [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:01]Read from MH i2c: E2 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 0B 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 0B 00 FE 01 00 61 97 B0 42 DE E7 74 CC 90 00 6A [19:18:01]RAPDU: 61 97 B0 42 DE E7 74 CC 90 00 [19:18:01]wFMCommunicate OK [19:18:01]SAM_PROTO_SignData done [19:18:01]FM_MakeSignedData done [19:18:01]CreateOFDProtocolMessage [19:18:01]wFMCommunicate request_size=4 [19:18:01]MH_SAM_APDU [19:18:01]CAPDU: 80 11 00 00 [19:18:01]Write to MH i2c: E2 08 00 FF 01 80 11 00 00 00 00 00 00 7A [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 FF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [19:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:18:02]wFMCommunicate OK [19:18:02]CreateOFDProtocolMessage done [19:18:02]OFDSenderStorePacket 187465 [19:18:02]StoreOFDPacket docnum=187465 [19:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 84 38 07 01 C4 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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 0A 01 00 00 F4 03 04 00 E8 7F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DC 02 00 35 04 06 00 60 9B 37 59 64 E6 61 97 B0 42 DE E7 74 CC [19:18:02]CheckFolder [19:18:02]dirname=/storage/ofd_packets [19:18:02]CheckFolder done [19:18:02]ProducePacketName [19:18:02]name=ofd_packets/00187465 [19:18:02]NVStorageSaveData ofd_packets/00187465 [19:18:02]File name is /storage/ofd_packets/00187465 [19:18:02]Write 301 bytes [19:18:02]NVStorageSaveData done [19:18:02]OFDSenderStorePacket done [19:18:02]KKMCreateOFDPacket done [19:18:02]NVStorageSaveData kkm_last_timestamp [19:18:02]File name is /storage/kkm_last_timestamp [19:18:02]Write 4 bytes [19:18:02]NVStorageSaveData done [19:18:02]ExternCall_PrintAddStr [19:18:02]wPrintStart [19:18:02]Write to MH i2c: 01 00 00 00 02 02 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 FF 0F 17 [19:18:02]RasterBufferAndPrint [19:18:02]line Счет N : (1)412624 [19:18:02]line ИНН: 02508201610067 [19:18:02]line Контрольно-Кассовый Чек [19:18:02]line ПРОДАЖА [19:18:02]line ТРК (МРК, ГНК) : 32 [19:18:02]line Товар: 2710124130 [19:18:02]line Аи-92-К-2 [19:18:02]line 3.120 * 64.20 [19:18:02]line = 200.30 [19:18:02]line НДС 12% НСП 1% [19:18:02]line > о реализуемом товаре [19:18:02]line ОКРУГЛЕНИЕ: -0.30 [19:18:02]line ИТОГО: 200.00 [19:18:02]line Внесено: 200.00 [19:18:02]line СДАЧА: 0.00 [19:18:02]line НСП 1% : 1.77 [19:18:02]line НДС 12% : 21.27 [19:18:02]line Наличными: 200.00 [19:18:02]line Безнал.: 0.00 [19:18:02]line Место: АЗС № 92 "Партнер Нефть" [19:18:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:18:02]line СНО: Общий режим [19:18:02]line Чек 266 20.02.2025 19:18 [19:18:02]line Смена: 648 ФФД: 1.0 [19:18:02]line ЗНМ: 0300000118 [19:18:02]line РНМ: 0000000000091857 [19:18:02]line Версия ККМ: 001 [19:18:02]line ФМ: 0000000000871826 [19:18:02]line ФД: 187465 [19:18:02]line ФПД: 106219764802790 [19:18:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T191800&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187465&fm=106219764802790&tin=02508201610067®Number=0000000000091857&sum=20000 [19:18:02]written 0, free lines is 4095 [19:18:02]OFD Sender: Processing packet 187465 [packets to send 49, broken 48] [19:18:02]ProducePacketName [19:18:02]name=ofd_packets/00187465 [19:18:02]OFD Sender: To server: pG, [19:18:02]CommunicateWithHost lk.salyk.kg:30040 [19:18:02]ConnectInit lk.salyk.kg [19:18:02]Connected sock=11 [19:18:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 84 38 07 01 C4 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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 0A 01 00 00 F4 03 04 00 E8 7F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DC 02 00 35 04 06 00 60 9B 37 59 64 E6 61 97 B0 42 DE E7 74 CC [19:18:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 94 FC 47 00 00 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DC 02 00 F4 03 04 00 38 26 B7 67 B6 04 01 00 00 BE 47 30 26 67 9C E8 0B [19:18:02]CommunicateWithHost err = 0 [19:18:02]CheckOFDResponse [19:18:02]1017 (14) - 77093643461234 [19:18:02]1041 (16) - 0000000000871826 [19:18:02]1040 (4) - 187465 [19:18:02]1012 (4) - 20.02.2025 12:55 [19:18:02]1206 (1) - 0 [19:18:02]OFD Sender: Remove packet 187465 [19:18:02]ProducePacketName [19:18:02]name=ofd_packets/00187465 [19:18:02]NVStorageDeleteData [19:18:02]Write to MH i2c: 01 00 00 2B 02 2D [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 F2 0C 32 [19:18:02]RasterBufferAndPrint [19:18:02]line [19:18:02]line [19:18:02]line [19:18:02]line [19:18:02]line [19:18:02]written 0, free lines is 3320 [19:18:02]MH_Cut [19:18:02]Write to MH i2c: D1 01 00 32 02 01 06 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: D1 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: D1 01 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: D1 01 00 32 02 00 05 [19:18:02]Write to MH i2c: 01 00 00 33 02 35 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]OFD Sender: No OFD packet to send [19:18:03]*** Cut start [19:18:03]*** Partial cut [19:18:03]*** CUTSNS_PIN = 1 [19:18:03]*** CUTSNS_PIN = 0 [19:18:03]*** Brake cut motor [19:18:03]Read from MH i2c: 01 [19:18:03]MH_I2C_Read... [19:18:03]*** Stop cut motor [19:18:03]*** Cut end [19:18:03]Read from MH i2c: 01 07 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [19:18:03]process_action close_receipt done [19:18:03]requested_data is exist [19:18:03]produce_requested_data [19:18:03]requested_item fm.sn is exist - process it [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 11 00 00 [19:18:03]Write to MH i2c: E2 08 00 34 02 80 11 00 00 00 00 00 00 B0 [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 17 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 17 00 34 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [19:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:18:03]wFMCommunicate OK [19:18:03]requested_item fd.num is exist - process it [19:18:03]SAM_PROTO_GetFieldsCounters [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 13 00 00 [19:18:03]Write to MH i2c: E2 08 00 35 02 80 13 00 00 00 00 00 00 B3 [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 62 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 62 00 35 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 49 DC 02 00 0E 04 04 00 88 02 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 AB [19:18:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 49 DC 02 00 0E 04 04 00 88 02 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:18:04]wFMCommunicate OK [19:18:04]SAM_PROTO_GetFieldsCounters done [19:18:04]requested_item shift.num is exist - process it [19:18:04]requested_item shift.opened is exist - process it [19:18:04]req_shift_opened [19:18:04]FM_GetShiftState [19:18:04]SAM_PROTO_GetShiftState [19:18:04]wFMCommunicate request_size=4 [19:18:04]MH_SAM_APDU [19:18:04]CAPDU: 80 13 01 00 [19:18:04]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 0E 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 07 [19:18:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:18:04]wFMCommunicate OK [19:18:04]SAM_PROTO_GetShiftState done [19:18:04]FM_GetShiftState done [19:18:04]req_shift_opened done [19:18:04]requested_item shift.open_date is exist - process it [19:18:04]req_shift_open_date [19:18:04]req_shift_open_date done [19:18:04]produce_requested_data done [19:18:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187465,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:18:04]process_action_free close_receipt [19:18:04]json_value_free [19:18:04]json_value_free done [19:18:04]process_json_proto returns [19:18:04]Send response to host [19:18:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187465,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:18:04]free response buf [19:18:04]execute_script done [19:18:04]execute_script returns [19:18:04]free content buf [19:18:04]Sock 9.Close socket [19:18:04]Sock 9.Thread stoped [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:52]accept exits with 7 [19:20:52]New connection [19:20:52]New thread 3067080036 created [19:20:52]Thread 3067223396 joined [19:20:52]Waiting for new connection... [19:20:52] Sock 7.Parse request [19:20:52]Sock 7.Check first char [19:20:52]Sock 7.First char is OK [19:20:52]request: POST /json_proto HTTP/1.0 [19:20:52]Method: POST [19:20:52]URL: /json_proto [19:20:52]Method is POST - this is cgi request [19:20:52]url: /json_proto [19:20:52]query_string will be loaded in cgi processing [19:20:52]execute_cgi json_proto POST (null) [19:20:52]execute_cgi path=json_proto method=POST [19:20:52]POST find Content-Length [19:20:52]Host: 172.17.46.131:8080 [19:20:52]Content-Length: 678 [19:20:52]Content-Type: application/json [19:20:52] [19:20:52]POST finish read [19:20:52]Found Content-Length = 678 [19:20:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:52]execute_script... [19:20: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)412625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:52]POST & json_proto [19:20:52]process_json_proto [19:20:52]json parsed OK: [19:20:52]protocol is kg_v1.0 [19:20:52]action value=close_receipt [19:20:52]process_action close_receipt [19:20:52]cmd_close_receipt [19:20:52]MH_GetDate [19:20:52]Write to MH i2c: F0 00 00 37 02 28 [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: F0 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: F0 09 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: F0 09 00 37 02 00 95 80 B7 67 7E 41 4F 65 D7 [19:20:52]GetLastDocTimeStamp 1740079080 [19:20:52]current date 1740079253 [19:20:52]FM_GetShiftState [19:20:52]SAM_PROTO_GetShiftState [19:20:52]wFMCommunicate request_size=4 [19:20:52]MH_SAM_APDU [19:20:52]CAPDU: 80 13 01 00 [19:20:52]Write to MH i2c: E2 08 00 38 02 80 13 01 00 00 00 00 00 B7 [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:52]Read from MH i2c: E2 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 0E 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 0E 00 38 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 09 [19:20:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:20:52]wFMCommunicate OK [19:20:52]SAM_PROTO_GetShiftState done [19:20:52]FM_GetShiftState done [19:20:52]opened in 1740011697 [19:20:52]opened+sec_in_day 1740098097 [19:20:52]quantity*price = 300055 [19:20:52]sum+1 = 300057 [19:20:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 267 20.02.2025 19:20 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187466 ФПД: 22868201312268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T192053&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187466&fm=22868201312268&tin=02508201610067®Number=0000000000091857&sum=300000 [19:20:53]StoreToDocumentArchive [19:20:53]shift 648 fd 187466 [19:20:53]save to /storage/0648/doc_00187466 [19:20:53]save last doc name /storage/0648/doc_00187466 to /storage/kkm_last_doc_name [19:20:53]save OK [19:20:53]Clear old archive folders... [19:20:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:20:53]tlvbuf is 0202A8B0 [19:20:53]SAM_PROTO_ClearQueue [19:20:53]wFMCommunicate request_size=4 [19:20:53]MH_SAM_APDU [19:20:53]CAPDU: 80 09 00 00 [19:20:53]Write to MH i2c: E2 08 00 45 02 80 09 00 00 00 00 00 00 B9 [19:20:53]Write i2c OK [19:20:53]MH_I2C_Read... [19:20:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:53]Read from MH i2c: E2 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: E2 03 00 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [19:20:53]RAPDU: 90 00 [19:20:53]wFMCommunicate OK [19:20:53]SAM_PROTO_ClearQueue done [19:20:53]KKMCreateOFDPacket [19:20:53]OFDProtocolAddRootSTLVToBuf [19:20:53]FM_MakeSignedData [19:20:53]FM_MakeSignedData [19:20:53]SAM_PROTO_SignData [19:20:53]wFMCommunicate request_size=4 [19:20:53]MH_SAM_APDU [19:20:53]CAPDU: 80 0D 01 02 [19:20:53]Write to MH i2c: E2 08 00 46 02 80 0D 01 02 00 00 00 00 C1 [19:20:53]Write i2c OK [19:20:53]MH_I2C_Read... [19:20:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:53]Read from MH i2c: E2 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: E2 03 00 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [19:20:53]RAPDU: 90 00 [19:20:53]wFMCommunicate OK [19:20:53]wFMCommunicate request_size=255 [19:20:53]MH_SAM_APDU [19:20: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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 95 80 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DC 02 00 35 04 06 00 14 CC 6B 04 [19:20:53]Write to MH i2c: E2 02 01 47 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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 95 80 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DC 02 00 35 04 06 00 14 CC 6B 04 00 00 E9 [19:20:53]Write i2c OK [19:20:53]MH_I2C_Read... [19:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:54]Read from MH i2c: E2 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 03 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 03 00 47 02 00 90 00 BD [19:20:54]RAPDU: 90 00 [19:20:54]wFMCommunicate OK [19:20:54]wFMCommunicate request_size=7 [19:20:54]MH_SAM_APDU [19:20:54]CAPDU: 80 0D 02 02 02 10 0C [19:20:54]Write to MH i2c: E2 0A 00 48 02 80 0D 02 02 02 00 10 0C 00 00 E4 [19:20:54]Write i2c OK [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 [19:20:54]MH_I2C_Read... [19:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:54]Read from MH i2c: E2 03 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [19:20:54]RAPDU: 90 00 [19:20:54]wFMCommunicate OK [19:20:54]wFMCommunicate request_size=4 [19:20:54]MH_SAM_APDU [19:20:54]CAPDU: 80 0D 03 02 [19:20:54]Write to MH i2c: E2 08 00 49 02 80 0D 03 02 00 00 00 00 C6 [19:20:54]Write i2c OK [19:20:54]MH_I2C_Read... [19:20:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:54]Read from MH i2c: E2 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 0B 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 0B 00 49 02 00 1A 62 F6 D1 41 5E DB 60 90 00 E4 [19:20:54]RAPDU: 1A 62 F6 D1 41 5E DB 60 90 00 [19:20:54]wFMCommunicate OK [19:20:54]SAM_PROTO_SignData done [19:20:54]FM_MakeSignedData done [19:20:54]CreateOFDProtocolMessage [19:20:54]wFMCommunicate request_size=4 [19:20:54]MH_SAM_APDU [19:20:54]CAPDU: 80 11 00 00 [19:20:54]Write to MH i2c: E2 08 00 4A 02 80 11 00 00 00 00 00 00 C6 [19:20:54]Write i2c OK [19:20:54]MH_I2C_Read... [19:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:54]Read from MH i2c: E2 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 17 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 17 00 4A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [19:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:20:54]wFMCommunicate OK [19:20:54]CreateOFDProtocolMessage done [19:20:54]OFDSenderStorePacket 187466 [19:20:54]StoreOFDPacket docnum=187466 [19:20:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 5A 1C 04 01 C3 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 95 80 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DC 02 00 35 04 06 00 14 CC 6B 04 10 0C 1A 62 F6 D1 41 5E DB 60 [19:20:54]CheckFolder [19:20:54]dirname=/storage/ofd_packets [19:20:54]CheckFolder done [19:20:54]ProducePacketName [19:20:54]name=ofd_packets/00187466 [19:20:54]NVStorageSaveData ofd_packets/00187466 [19:20:54]File name is /storage/ofd_packets/00187466 [19:20:54]Write 298 bytes [19:20:54]NVStorageSaveData done [19:20:54]OFDSenderStorePacket done [19:20:54]KKMCreateOFDPacket done [19:20:54]NVStorageSaveData kkm_last_timestamp [19:20:54]File name is /storage/kkm_last_timestamp [19:20:54]Write 4 bytes [19:20:54]NVStorageSaveData done [19:20:54]ExternCall_PrintAddStr [19:20:54]wPrintStart [19:20:54]Write to MH i2c: 01 00 00 4B 02 4D [19:20:54]Write i2c OK [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: 01 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: 01 07 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: 01 07 00 4B 02 00 00 00 00 00 FF 0F 62 [19:20:54]RasterBufferAndPrint [19:20:54]line Счет N : (1)412625 [19:20:54]line ИНН: 02508201610067 [19:20:54]line Контрольно-Кассовый Чек [19:20:54]line ПРОДАЖА [19:20:54]line ТРК (МРК, ГНК) : 6 [19:20:54]line Товар: 2710194210 [19:20:54]line ДТ-К-5 [19:20:54]line 41.330 * 72.60 [19:20:54]line = 3000.56 [19:20:54]line НДС 12% НСП 1% [19:20:54]line > о реализуемом товаре [19:20:54]line ОКРУГЛЕНИЕ: -0.56 [19:20:54]line ИТОГО: 3000.00 [19:20:54]line Внесено: 3000.00 [19:20:54]line СДАЧА: 0.00 [19:20:54]line НСП 1% : 26.55 [19:20:54]line НДС 12% : 318.64 [19:20:54]line Наличными: 3000.00 [19:20:54]line Безнал.: 0.00 [19:20:54]line Место: АЗС № 92 "Партнер Нефть" [19:20:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:20:54]line СНО: Общий режим [19:20:54]line Чек 267 20.02.2025 19:20 [19:20:54]line Смена: 648 ФФД: 1.0 [19:20:54]line ЗНМ: 0300000118 [19:20:54]line РНМ: 0000000000091857 [19:20:54]line Версия ККМ: 001 [19:20:54]line ФМ: 0000000000871826 [19:20:54]line ФД: 187466 [19:20:54]line ФПД: 22868201312268 [19:20:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T192053&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187466&fm=22868201312268&tin=02508201610067®Number=0000000000091857&sum=300000 [19:20:54]OFD Sender: Processing packet 187466 [packets to send 49, broken 48] [19:20:54]ProducePacketName [19:20:54]name=ofd_packets/00187466 [19:20:54]OFD Sender: To server: pG, [19:20:54]CommunicateWithHost lk.salyk.kg:30040 [19:20:54]ConnectInit lk.salyk.kg [19:20:54]written 0, free lines is 4095 [19:20:54]Connected sock=10 [19:20:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 5A 1C 04 01 C3 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 95 80 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DC 02 00 35 04 06 00 14 CC 6B 04 10 0C 1A 62 F6 D1 41 5E DB 60 [19:20:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E9 A0 47 00 72 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 31 38 32 36 10 04 04 00 4A DC 02 00 F4 03 04 00 E5 26 B7 67 B6 04 01 00 00 1E 02 23 A3 66 7D 9C B0 [19:20:55]CommunicateWithHost err = 0 [19:20:55]CheckOFDResponse [19:20:55]1017 (14) - 77093643461234 [19:20:55]1041 (16) - 0000000000871826 [19:20:55]1040 (4) - 187466 [19:20:55]1012 (4) - 20.02.2025 12:58 [19:20:55]1206 (1) - 0 [19:20:55]OFD Sender: Remove packet 187466 [19:20:55]ProducePacketName [19:20:55]name=ofd_packets/00187466 [19:20:55]NVStorageDeleteData [19:20:55]Write to MH i2c: 01 00 00 76 02 78 [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: 01 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: 01 07 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: 01 07 00 76 02 00 00 00 00 00 EE 0C 79 [19:20:55]RasterBufferAndPrint [19:20:55]line [19:20:55]line [19:20:55]line [19:20:55]line [19:20:55]line [19:20:55]written 0, free lines is 3316 [19:20:55]MH_Cut [19:20:55]Write to MH i2c: D1 01 00 7D 02 01 51 [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: D1 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: D1 01 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: D1 01 00 7D 02 00 50 [19:20:55]Write to MH i2c: 01 00 00 7E 02 80 [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]OFD Sender: No OFD packet to send [19:20:55]*** Cut start [19:20:55]*** Partial cut [19:20:55]*** CUTSNS_PIN = 1 [19:20:55]*** CUTSNS_PIN = 0 [19:20:56]*** Brake cut motor [19:20:56]Read from MH i2c: 01 [19:20:56]MH_I2C_Read... [19:20:56]*** Stop cut motor [19:20:56]*** Cut end [19:20:56]Read from MH i2c: 01 07 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 FF 0F 95 [19:20:56]process_action close_receipt done [19:20:56]requested_data is exist [19:20:56]produce_requested_data [19:20:56]requested_item fm.sn is exist - process it [19:20:56]wFMCommunicate request_size=4 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 11 00 00 [19:20:56]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 17 00 [19:20:56]MH_I2C_Read... [19:20:56]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 31 38 32 36 90 00 4E [19:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:20:56]wFMCommunicate OK [19:20:56]requested_item fd.num is exist - process it [19:20:56]SAM_PROTO_GetFieldsCounters [19:20:56]wFMCommunicate request_size=4 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 13 00 00 [19:20:56]Write to MH i2c: E2 08 00 80 02 80 13 00 00 00 00 00 00 FE [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 62 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 62 00 80 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4A DC 02 00 0E 04 04 00 88 02 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 FA [19:20:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4A DC 02 00 0E 04 04 00 88 02 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:20:56]wFMCommunicate OK [19:20:56]SAM_PROTO_GetFieldsCounters done [19:20:56]requested_item shift.num is exist - process it [19:20:56]requested_item shift.opened is exist - process it [19:20:56]req_shift_opened [19:20:56]FM_GetShiftState [19:20:56]SAM_PROTO_GetShiftState [19:20:56]wFMCommunicate request_size=4 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 13 01 00 [19:20:56]Write to MH i2c: E2 08 00 81 02 80 13 01 00 00 00 00 00 00 [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 0E 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 0E 00 81 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 52 [19:20:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:20:56]wFMCommunicate OK [19:20:56]SAM_PROTO_GetShiftState done [19:20:56]FM_GetShiftState done [19:20:56]req_shift_opened done [19:20:56]requested_item shift.open_date is exist - process it [19:20:56]req_shift_open_date [19:20:56]req_shift_open_date done [19:20:56]produce_requested_data done [19:20:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187466,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:20:56]process_action_free close_receipt [19:20:56]json_value_free [19:20:56]json_value_free done [19:20:56]process_json_proto returns [19:20:56]Send response to host [19:20:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187466,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:20:56]free response buf [19:20:56]execute_script done [19:20:56]execute_script returns [19:20:56]free content buf [19:20:56]Sock 7.Close socket [19:20:56]Sock 7.Thread stoped [19:20:57]accept exits with 9 [19:20:57]New connection [19:20:57]New thread 3067223396 created [19:20:57]Thread 3067080036 joined [19:20:57]Waiting for new connection... [19:20:57] Sock 9.Parse request [19:20:57]Sock 9.Check first char [19:20:57]Sock 9.First char is OK [19:20:57]request: POST /json_proto HTTP/1.0 [19:20:57]Method: POST [19:20:57]URL: /json_proto [19:20:57]Method is POST - this is cgi request [19:20:57]url: /json_proto [19:20:57]query_string will be loaded in cgi processing [19:20:57]execute_cgi json_proto POST (null) [19:20:57]execute_cgi path=json_proto method=POST [19:20:57]POST find Content-Length [19:20:57]Host: 172.17.46.131:8080 [19:20:57]Content-Length: 682 [19:20:57]Content-Type: application/json [19:20:57] [19:20:57]POST finish read [19:20:57]Found Content-Length = 682 [19:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:20:57]execute_script... [19:20: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)412626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:20:57]POST & json_proto [19:20:57]process_json_proto [19:20:57]json parsed OK: [19:20:57]protocol is kg_v1.0 [19:20:57]action value=close_receipt [19:20:57]process_action close_receipt [19:20:57]cmd_close_receipt [19:20:57]MH_GetDate [19:20:57]Write to MH i2c: F0 00 00 82 02 73 [19:20:57]Write i2c OK [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: F0 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: F0 09 00 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: F0 09 00 82 02 00 99 80 B7 67 7E 41 4F 65 26 [19:20:57]GetLastDocTimeStamp 1740079253 [19:20:57]current date 1740079257 [19:20:57]FM_GetShiftState [19:20:57]SAM_PROTO_GetShiftState [19:20:57]wFMCommunicate request_size=4 [19:20:57]MH_SAM_APDU [19:20:57]CAPDU: 80 13 01 00 [19:20:57]Write to MH i2c: E2 08 00 83 02 80 13 01 00 00 00 00 00 02 [19:20:57]Write i2c OK [19:20:57]MH_I2C_Read... [19:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:57]Read from MH i2c: E2 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: E2 0E 00 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: E2 0E 00 83 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 54 [19:20:57]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:20:57]wFMCommunicate OK [19:20:57]SAM_PROTO_GetShiftState done [19:20:57]FM_GetShiftState done [19:20:57]opened in 1740011697 [19:20:57]opened+sec_in_day 1740098097 [19:20:57]quantity*price = 100023 [19:20:57]sum+1 = 100025 [19:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 268 20.02.2025 19:20 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187467 ФПД: 31732320224313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T192057&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187467&fm=31732320224313&tin=02508201610067®Number=0000000000091857&sum=100000 [19:20:58]StoreToDocumentArchive [19:20:58]shift 648 fd 187467 [19:20:58]save to /storage/0648/doc_00187467 [19:20:58]save last doc name /storage/0648/doc_00187467 to /storage/kkm_last_doc_name [19:20:58]save OK [19:20:58]Clear old archive folders... [19:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:58]tlvbuf is 0205BB10 [19:20:58]SAM_PROTO_ClearQueue [19:20:58]wFMCommunicate request_size=4 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 09 00 00 [19:20:58]Write to MH i2c: E2 08 00 90 02 80 09 00 00 00 00 00 00 04 [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 03 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [19:20:58]RAPDU: 90 00 [19:20:58]wFMCommunicate OK [19:20:58]SAM_PROTO_ClearQueue done [19:20:58]KKMCreateOFDPacket [19:20:58]OFDProtocolAddRootSTLVToBuf [19:20:58]FM_MakeSignedData [19:20:58]FM_MakeSignedData [19:20:58]SAM_PROTO_SignData [19:20:58]wFMCommunicate request_size=4 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 0D 01 02 [19:20:58]Write to MH i2c: E2 08 00 91 02 80 0D 01 02 00 00 00 00 0C [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 03 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 03 00 91 02 00 90 00 07 [19:20:58]RAPDU: 90 00 [19:20:58]wFMCommunicate OK [19:20:58]wFMCommunicate request_size=255 [19:20:58]MH_SAM_APDU [19:20: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 99 80 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DC 02 00 35 04 06 00 1C [19:20:58]Write to MH i2c: E2 02 01 92 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 99 80 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DC 02 00 35 04 06 00 1C 00 00 1C [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 03 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 03 00 92 02 00 90 00 08 [19:20:58]RAPDU: 90 00 [19:20:58]wFMCommunicate OK [19:20:58]wFMCommunicate request_size=10 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 0D 02 02 05 DC 41 AC C4 39 [19:20:58]Write to MH i2c: E2 0D 00 93 02 80 0D 02 02 05 00 DC 41 AC C4 39 00 00 DF [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 03 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [19:20:58]RAPDU: 90 00 [19:20:58]wFMCommunicate OK [19:20:58]wFMCommunicate request_size=4 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 0D 03 02 [19:20:58]Write to MH i2c: E2 08 00 94 02 80 0D 03 02 00 00 00 00 11 [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:59]Read from MH i2c: E2 0B 00 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: E2 0B 00 94 02 00 2A 51 09 2E E9 43 9B E2 90 00 6D [19:20:59]RAPDU: 2A 51 09 2E E9 43 9B E2 90 00 [19:20:59]wFMCommunicate OK [19:20:59]SAM_PROTO_SignData done [19:20:59]FM_MakeSignedData done [19:20:59]CreateOFDProtocolMessage [19:20:59]wFMCommunicate request_size=4 [19:20:59]MH_SAM_APDU [19:20:59]CAPDU: 80 11 00 00 [19:20:59]Write to MH i2c: E2 08 00 95 02 80 11 00 00 00 00 00 00 11 [19:20:59]Write i2c OK [19:20:59]MH_I2C_Read... [19:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:59]Read from MH i2c: E2 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: E2 17 00 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: E2 17 00 95 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [19:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:20:59]wFMCommunicate OK [19:20:59]CreateOFDProtocolMessage done [19:20:59]OFDSenderStorePacket 187467 [19:20:59]StoreOFDPacket docnum=187467 [19:20:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 09 C2 07 01 A7 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 99 80 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DC 02 00 35 04 06 00 1C DC 41 AC C4 39 2A 51 09 2E E9 43 9B E2 [19:20:59]CheckFolder [19:20:59]dirname=/storage/ofd_packets [19:20:59]CheckFolder done [19:20:59]ProducePacketName [19:20:59]name=ofd_packets/00187467 [19:20:59]NVStorageSaveData ofd_packets/00187467 [19:20:59]File name is /storage/ofd_packets/00187467 [19:20:59]Write 301 bytes [19:20:59]NVStorageSaveData done [19:20:59]OFDSenderStorePacket done [19:20:59]KKMCreateOFDPacket done [19:20:59]NVStorageSaveData kkm_last_timestamp [19:20:59]File name is /storage/kkm_last_timestamp [19:20:59]Write 4 bytes [19:20:59]NVStorageSaveData done [19:20:59]ExternCall_PrintAddStr [19:20:59]wPrintStart [19:20:59]Write to MH i2c: 01 00 00 96 02 98 [19:20:59]Write i2c OK [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: 01 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: 01 07 00 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: 01 07 00 96 02 00 00 00 00 00 FF 0F AD [19:20:59]RasterBufferAndPrint [19:20:59]line Счет N : (1)412626 [19:20:59]line ИНН: 02508201610067 [19:20:59]line Контрольно-Кассовый Чек [19:20:59]line ПРОДАЖА [19:20:59]line ТРК (МРК, ГНК) : 12 [19:20:59]line Товар: 2710124130 [19:20:59]line Аи-92-К-2 [19:20:59]line 15.580 * 64.20 [19:20:59]line = 1000.24 [19:20:59]line НДС 12% НСП 1% [19:20:59]line > о реализуемом товаре [19:20:59]line ОКРУГЛЕНИЕ: -0.24 [19:20:59]line ИТОГО: 1000.00 [19:20:59]line Внесено: 1000.00 [19:20:59]line СДАЧА: 0.00 [19:20:59]line НСП 1% : 8.85 [19:20:59]line НДС 12% : 106.22 [19:20:59]line Наличными: 1000.00 [19:20:59]line Безнал.: 0.00 [19:20:59]line Место: АЗС № 92 "Партнер Нефть" [19:20:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:20:59]line СНО: Общий режим [19:20:59]line Чек 268 20.02.2025 19:20 [19:20:59]line Смена: 648 ФФД: 1.0 [19:20:59]line ЗНМ: 0300000118 [19:20:59]line РНМ: 0000000000091857 [19:20:59]line Версия ККМ: 001 [19:20:59]line ФМ: 0000000000871826 [19:20:59]line ФД: 187467 [19:20:59]line ФПД: 31732320224313 [19:20:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T192057&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187467&fm=31732320224313&tin=02508201610067®Number=0000000000091857&sum=100000 [19:20:59]written 0, free lines is 4095 [19:20:59]OFD Sender: Processing packet 187467 [packets to send 49, broken 48] [19:20:59]ProducePacketName [19:20:59]name=ofd_packets/00187467 [19:20:59]OFD Sender: To server: pG, [19:20:59]CommunicateWithHost lk.salyk.kg:30040 [19:20:59]ConnectInit lk.salyk.kg [19:20:59]Connected sock=10 [19:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 09 C2 07 01 A7 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 99 80 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DC 02 00 35 04 06 00 1C DC 41 AC C4 39 2A 51 09 2E E9 43 9B E2 [19:20:59]Write to MH i2c: 01 00 00 C1 02 C3 [19:20:59]Write i2c OK [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: 01 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: 01 07 00 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: 01 07 00 C1 02 00 00 00 00 00 32 0D 09 [19:20:59]RasterBufferAndPrint [19:20:59]line [19:20:59]line [19:20:59]line [19:20:59]line [19:20:59]line [19:20:59]written 0, free lines is 3387 [19:20:59]MH_Cut [19:20:59]Write to MH i2c: D1 01 00 C8 02 01 9C [19:20:59]Write i2c OK [19:20:59]MH_I2C_Read... [19:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D0 6C 47 00 D9 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B DC 02 00 F4 03 04 00 EA 26 B7 67 B6 04 01 00 00 08 F8 EE 7E 0F D2 9F 03 [19:20:59]CommunicateWithHost err = 0 [19:20:59]CheckOFDResponse [19:20:59]1017 (14) - 77093643461234 [19:20:59]1041 (16) - 0000000000871826 [19:20:59]1040 (4) - 187467 [19:20:59]1012 (4) - 20.02.2025 12:58 [19:20:59]1206 (1) - 0 [19:20:59]OFD Sender: Remove packet 187467 [19:20:59]ProducePacketName [19:20:59]name=ofd_packets/00187467 [19:20:59]NVStorageDeleteData [19:20:59]Read from MH i2c: D1 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: D1 01 00 [19:20:59]MH_I2C_Read... [19:20:59]Read from MH i2c: D1 01 00 C8 02 00 9B [19:20:59]Write to MH i2c: 01 00 00 C9 02 CB [19:20:59]Write i2c OK [19:20:59]MH_I2C_Read... [19:21:00]OFD Sender: No OFD packet to send [19:21:00]*** Cut start [19:21:00]*** Partial cut [19:21:00]*** CUTSNS_PIN = 1 [19:21:00]*** CUTSNS_PIN = 0 [19:21:00]*** Brake cut motor [19:21:01]Read from MH i2c: 01 [19:21:01]MH_I2C_Read... [19:21:01]*** Stop cut motor [19:21:01]*** Cut end [19:21:01]Read from MH i2c: 01 07 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [19:21:01]process_action close_receipt done [19:21:01]requested_data is exist [19:21:01]produce_requested_data [19:21:01]requested_item fm.sn is exist - process it [19:21:01]wFMCommunicate request_size=4 [19:21:01]MH_SAM_APDU [19:21:01]CAPDU: 80 11 00 00 [19:21:01]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:01]Read from MH i2c: E2 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 17 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 99 [19:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:21:01]wFMCommunicate OK [19:21:01]requested_item fd.num is exist - process it [19:21:01]SAM_PROTO_GetFieldsCounters [19:21:01]wFMCommunicate request_size=4 [19:21:01]MH_SAM_APDU [19:21:01]CAPDU: 80 13 00 00 [19:21:01]Write to MH i2c: E2 08 00 CB 02 80 13 00 00 00 00 00 00 49 [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:01]Read from MH i2c: E2 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 62 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 62 00 CB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4B DC 02 00 0E 04 04 00 88 02 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 49 [19:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4B DC 02 00 0E 04 04 00 88 02 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:21:01]wFMCommunicate OK [19:21:01]SAM_PROTO_GetFieldsCounters done [19:21:01]requested_item shift.num is exist - process it [19:21:01]requested_item shift.opened is exist - process it [19:21:01]req_shift_opened [19:21:01]FM_GetShiftState [19:21:01]SAM_PROTO_GetShiftState [19:21:01]wFMCommunicate request_size=4 [19:21:01]MH_SAM_APDU [19:21:01]CAPDU: 80 13 01 00 [19:21:01]Write to MH i2c: E2 08 00 CC 02 80 13 01 00 00 00 00 00 4B [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:01]Read from MH i2c: E2 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 0E 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 0E 00 CC 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9D [19:21:01]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:21:01]wFMCommunicate OK [19:21:01]SAM_PROTO_GetShiftState done [19:21:01]FM_GetShiftState done [19:21:01]req_shift_opened done [19:21:01]requested_item shift.open_date is exist - process it [19:21:01]req_shift_open_date [19:21:01]req_shift_open_date done [19:21:01]produce_requested_data done [19:21:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187467,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:21:01]process_action_free close_receipt [19:21:01]json_value_free [19:21:01]json_value_free done [19:21:01]process_json_proto returns [19:21:01]Send response to host [19:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187467,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:21:01]free response buf [19:21:01]execute_script done [19:21:01]execute_script returns [19:21:01]free content buf [19:21:01]Sock 9.Close socket [19:21:01]Sock 9.Thread stoped [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:44]accept exits with 7 [19:22:44]New connection [19:22:44]New thread 3067080036 created [19:22:44]Thread 3067223396 joined [19:22:44]Waiting for new connection... [19:22:44] Sock 7.Parse request [19:22:44]Sock 7.Check first char [19:22:44]Sock 7.First char is OK [19:22:44]request: POST /json_proto HTTP/1.0 [19:22:44]Method: POST [19:22:44]URL: /json_proto [19:22:44]Method is POST - this is cgi request [19:22:44]url: /json_proto [19:22:44]query_string will be loaded in cgi processing [19:22:44]execute_cgi json_proto POST (null) [19:22:44]execute_cgi path=json_proto method=POST [19:22:44]POST find Content-Length [19:22:44]Host: 172.17.46.131:8080 [19:22:44]Content-Length: 682 [19:22:44]Content-Type: application/json [19:22:44] [19:22:44]POST finish read [19:22:44]Found Content-Length = 682 [19:22:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [19:22:44]execute_script... [19:22: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)412627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [19:22:44]POST & json_proto [19:22:44]process_json_proto [19:22:44]json parsed OK: [19:22:44]protocol is kg_v1.0 [19:22:44]action value=close_receipt [19:22:44]process_action close_receipt [19:22:44]cmd_close_receipt [19:22:44]MH_GetDate [19:22:44]Write to MH i2c: F0 00 00 CD 02 BE [19:22:44]Write i2c OK [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: F0 [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: F0 09 00 [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: F0 09 00 CD 02 00 04 81 B7 67 7E 41 4F 65 DD [19:22:44]GetLastDocTimeStamp 1740079257 [19:22:44]current date 1740079364 [19:22:44]FM_GetShiftState [19:22:44]SAM_PROTO_GetShiftState [19:22:44]wFMCommunicate request_size=4 [19:22:44]MH_SAM_APDU [19:22:44]CAPDU: 80 13 01 00 [19:22:44]Write to MH i2c: E2 08 00 CE 02 80 13 01 00 00 00 00 00 4D [19:22:44]Write i2c OK [19:22:44]MH_I2C_Read... [19:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:44]Read from MH i2c: E2 [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: E2 0E 00 [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: E2 0E 00 CE 02 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9F [19:22:44]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:22:44]wFMCommunicate OK [19:22:44]SAM_PROTO_GetShiftState done [19:22:44]FM_GetShiftState done [19:22:44]opened in 1740011697 [19:22:44]opened+sec_in_day 1740098097 [19:22:44]quantity*price = 100012 [19:22:44]sum+1 = 100014 [19:22:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 269 20.02.2025 19:22 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187468 ФПД: 270136393197207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T192244&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187468&fm=270136393197207&tin=02508201610067®Number=0000000000091857&sum=100000 [19:22:45]StoreToDocumentArchive [19:22:45]shift 648 fd 187468 [19:22:45]save to /storage/0648/doc_00187468 [19:22:45]save last doc name /storage/0648/doc_00187468 to /storage/kkm_last_doc_name [19:22:45]save OK [19:22:45]Clear old archive folders... [19:22:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:45]tlvbuf is 0202DA90 [19:22:45]SAM_PROTO_ClearQueue [19:22:45]wFMCommunicate request_size=4 [19:22:45]MH_SAM_APDU [19:22:45]CAPDU: 80 09 00 00 [19:22:45]Write to MH i2c: E2 08 00 DB 02 80 09 00 00 00 00 00 00 4F [19:22:45]OFD Sender: No OFD packet to send [19:22:45]Write i2c OK [19:22:45]MH_I2C_Read... [19:22:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:45]Read from MH i2c: E2 [19:22:45]MH_I2C_Read... [19:22:45]Read from MH i2c: E2 03 00 [19:22:45]MH_I2C_Read... [19:22:45]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [19:22:45]RAPDU: 90 00 [19:22:45]wFMCommunicate OK [19:22:45]SAM_PROTO_ClearQueue done [19:22:45]KKMCreateOFDPacket [19:22:45]OFDProtocolAddRootSTLVToBuf [19:22:45]FM_MakeSignedData [19:22:45]FM_MakeSignedData [19:22:45]SAM_PROTO_SignData [19:22:45]wFMCommunicate request_size=4 [19:22:45]MH_SAM_APDU [19:22:45]CAPDU: 80 0D 01 02 [19:22:45]Write to MH i2c: E2 08 00 DC 02 80 0D 01 02 00 00 00 00 57 [19:22:45]Write i2c OK [19:22:45]MH_I2C_Read... [19:22:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:45]Read from MH i2c: E2 [19:22:45]MH_I2C_Read... [19:22:45]Read from MH i2c: E2 03 00 [19:22:45]MH_I2C_Read... [19:22:45]Read from MH i2c: E2 03 00 DC 02 00 90 00 52 [19:22:45]RAPDU: 90 00 [19:22:45]wFMCommunicate OK [19:22:45]wFMCommunicate request_size=255 [19:22:45]MH_SAM_APDU [19:22:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0D 01 00 00 F4 03 04 00 04 81 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DC 02 00 35 04 06 00 F5 [19:22:45]Write to MH i2c: E2 02 01 DD 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0D 01 00 00 F4 03 04 00 04 81 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DC 02 00 35 04 06 00 F5 00 00 22 [19:22:45]Write i2c OK [19:22:45]MH_I2C_Read... [19:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:45]Read from MH i2c: E2 [19:22:45]MH_I2C_Read... [19:22:45]Read from MH i2c: E2 03 00 [19:22:45]MH_I2C_Read... [19:22:45]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [19:22:45]RAPDU: 90 00 [19:22:45]wFMCommunicate OK [19:22:45]wFMCommunicate request_size=10 [19:22:45]MH_SAM_APDU [19:22:45]CAPDU: 80 0D 02 02 05 B0 07 C1 E6 97 [19:22:45]Write to MH i2c: E2 0D 00 DE 02 80 0D 02 02 05 00 B0 07 C1 E6 97 00 00 59 [19:22:45]Write i2c OK [19:22:45]MH_I2C_Read... [19:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [19:22:46]RAPDU: 90 00 [19:22:46]wFMCommunicate OK [19:22:46]wFMCommunicate request_size=4 [19:22:46]MH_SAM_APDU [19:22:46]CAPDU: 80 0D 03 02 [19:22:46]Write to MH i2c: E2 08 00 DF 02 80 0D 03 02 00 00 00 00 5C [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 0B 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 0B 00 DF 02 00 DC 9F 65 CC 3C 9F 49 8F 90 00 BC [19:22:46]RAPDU: DC 9F 65 CC 3C 9F 49 8F 90 00 [19:22:46]wFMCommunicate OK [19:22:46]SAM_PROTO_SignData done [19:22:46]FM_MakeSignedData done [19:22:46]CreateOFDProtocolMessage [19:22:46]wFMCommunicate request_size=4 [19:22:46]MH_SAM_APDU [19:22:46]CAPDU: 80 11 00 00 [19:22:46]Write to MH i2c: E2 08 00 E0 02 80 11 00 00 00 00 00 00 5C [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 17 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 17 00 E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [19:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:22:46]wFMCommunicate OK [19:22:46]CreateOFDProtocolMessage done [19:22:46]OFDSenderStorePacket 187468 [19:22:46]StoreOFDPacket docnum=187468 [19:22:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 EA 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 0D 01 00 00 F4 03 04 00 04 81 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DC 02 00 35 04 06 00 F5 B0 07 C1 E6 97 DC 9F 65 CC 3C 9F 49 8F [19:22:46]CheckFolder [19:22:46]dirname=/storage/ofd_packets [19:22:46]CheckFolder done [19:22:46]ProducePacketName [19:22:46]name=ofd_packets/00187468 [19:22:46]NVStorageSaveData ofd_packets/00187468 [19:22:46]File name is /storage/ofd_packets/00187468 [19:22:46]Write 301 bytes [19:22:46]NVStorageSaveData done [19:22:46]OFDSenderStorePacket done [19:22:46]KKMCreateOFDPacket done [19:22:46]NVStorageSaveData kkm_last_timestamp [19:22:46]File name is /storage/kkm_last_timestamp [19:22:46]Write 4 bytes [19:22:46]NVStorageSaveData done [19:22:46]ExternCall_PrintAddStr [19:22:46]wPrintStart [19:22:46]Write to MH i2c: 01 00 00 E1 02 E3 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 07 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 FF 0F F8 [19:22:46]RasterBufferAndPrint [19:22:46]line Счет N : (1)412627 [19:22:46]line ИНН: 02508201610067 [19:22:46]line Контрольно-Кассовый Чек [19:22:46]line ПРОДАЖА [19:22:46]line ТРК (МРК, ГНК) : 33 [19:22:46]line Товар: 2710124500 [19:22:46]line Аи-95-К-5 [19:22:46]line 13.910 * 71.90 [19:22:46]line = 1000.13 [19:22:46]line НДС 12% НСП 1% [19:22:46]line > о реализуемом товаре [19:22:46]line ОКРУГЛЕНИЕ: -0.13 [19:22:46]line ИТОГО: 1000.00 [19:22:46]line Внесено: 1000.00 [19:22:46]line СДАЧА: 0.00 [19:22:46]line НСП 1% : 8.85 [19:22:46]line НДС 12% : 106.21 [19:22:46]line Наличными: 1000.00 [19:22:46]line Безнал.: 0.00 [19:22:46]line Место: АЗС № 92 "Партнер Нефть" [19:22:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:22:46]line СНО: Общий режим [19:22:46]line Чек 269 20.02.2025 19:22 [19:22:46]line Смена: 648 ФФД: 1.0 [19:22:46]line ЗНМ: 0300000118 [19:22:46]line РНМ: 0000000000091857 [19:22:46]line Версия ККМ: 001 [19:22:46]line ФМ: 0000000000871826 [19:22:46]line ФД: 187468 [19:22:46]line ФПД: 270136393197207 [19:22:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T192244&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187468&fm=270136393197207&tin=02508201610067®Number=0000000000091857&sum=100000 [19:22:46]written 0, free lines is 4095 [19:22:46]OFD Sender: Processing packet 187468 [packets to send 49, broken 48] [19:22:46]ProducePacketName [19:22:46]name=ofd_packets/00187468 [19:22:46]OFD Sender: To server: pG, [19:22:46]CommunicateWithHost lk.salyk.kg:30040 [19:22:46]ConnectInit lk.salyk.kg [19:22:46]Connected sock=10 [19:22:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 EA 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 0D 01 00 00 F4 03 04 00 04 81 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C DC 02 00 35 04 06 00 F5 B0 07 C1 E6 97 DC 9F 65 CC 3C 9F 49 8F [19:22:46]Write to MH i2c: 01 00 00 0C 03 0F [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 07 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 FA 0C 1C [19:22:46]RasterBufferAndPrint [19:22:46]line [19:22:46]line [19:22:46]line [19:22:46]line [19:22:46]line [19:22:46]written 0, free lines is 3328 [19:22:46]MH_Cut [19:22:46]Write to MH i2c: D1 01 00 13 03 01 E8 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: D1 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: D1 01 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: D1 01 00 13 03 00 E7 [19:22:46]Write to MH i2c: 01 00 00 14 03 17 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 83 5F 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 31 38 32 36 10 04 04 00 4C DC 02 00 F4 03 04 00 54 27 B7 67 B6 04 01 00 00 AC 91 E8 6E 32 70 70 13 [19:22:46]CommunicateWithHost err = 0 [19:22:46]CheckOFDResponse [19:22:46]1017 (14) - 77093643461234 [19:22:46]1041 (16) - 0000000000871826 [19:22:46]1040 (4) - 187468 [19:22:46]1012 (4) - 20.02.2025 13:00 [19:22:46]1206 (1) - 0 [19:22:46]OFD Sender: Remove packet 187468 [19:22:46]ProducePacketName [19:22:46]name=ofd_packets/00187468 [19:22:46]NVStorageDeleteData [19:22:47]OFD Sender: No OFD packet to send [19:22:47]*** Cut start [19:22:47]*** Partial cut [19:22:47]*** CUTSNS_PIN = 1 [19:22:47]*** CUTSNS_PIN = 0 [19:22:47]*** Brake cut motor [19:22:47]Read from MH i2c: 01 [19:22:48]MH_I2C_Read... [19:22:48]*** Stop cut motor [19:22:48]*** Cut end [19:22:48]Read from MH i2c: 01 07 00 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [19:22:48]process_action close_receipt done [19:22:48]requested_data is exist [19:22:48]produce_requested_data [19:22:48]requested_item fm.sn is exist - process it [19:22:48]wFMCommunicate request_size=4 [19:22:48]MH_SAM_APDU [19:22:48]CAPDU: 80 11 00 00 [19:22:48]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [19:22:48]Write i2c OK [19:22:48]MH_I2C_Read... [19:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:48]Read from MH i2c: E2 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 17 00 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E5 [19:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:22:48]wFMCommunicate OK [19:22:48]requested_item fd.num is exist - process it [19:22:48]SAM_PROTO_GetFieldsCounters [19:22:48]wFMCommunicate request_size=4 [19:22:48]MH_SAM_APDU [19:22:48]CAPDU: 80 13 00 00 [19:22:48]Write to MH i2c: E2 08 00 16 03 80 13 00 00 00 00 00 00 95 [19:22:48]Write i2c OK [19:22:48]MH_I2C_Read... [19:22:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:48]Read from MH i2c: E2 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 62 00 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 62 00 16 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4C DC 02 00 0E 04 04 00 88 02 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 99 [19:22:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4C DC 02 00 0E 04 04 00 88 02 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:22:48]wFMCommunicate OK [19:22:48]SAM_PROTO_GetFieldsCounters done [19:22:48]requested_item shift.num is exist - process it [19:22:48]requested_item shift.opened is exist - process it [19:22:48]req_shift_opened [19:22:48]FM_GetShiftState [19:22:48]SAM_PROTO_GetShiftState [19:22:48]wFMCommunicate request_size=4 [19:22:48]MH_SAM_APDU [19:22:48]CAPDU: 80 13 01 00 [19:22:48]Write to MH i2c: E2 08 00 17 03 80 13 01 00 00 00 00 00 97 [19:22:48]Write i2c OK [19:22:48]MH_I2C_Read... [19:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:48]Read from MH i2c: E2 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 0E 00 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 0E 00 17 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E9 [19:22:48]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:22:48]wFMCommunicate OK [19:22:48]SAM_PROTO_GetShiftState done [19:22:48]FM_GetShiftState done [19:22:48]req_shift_opened done [19:22:48]requested_item shift.open_date is exist - process it [19:22:48]req_shift_open_date [19:22:48]req_shift_open_date done [19:22:48]produce_requested_data done [19:22:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187468,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:22:48]process_action_free close_receipt [19:22:48]json_value_free [19:22:48]json_value_free done [19:22:48]process_json_proto returns [19:22:48]Send response to host [19:22:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187468,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:22:48]free response buf [19:22:48]execute_script done [19:22:48]execute_script returns [19:22:48]free content buf [19:22:48]Sock 7.Close socket [19:22:48]Sock 7.Thread stoped [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:05]accept exits with 9 [19:26:05]New connection [19:26:05]New thread 3067223396 created [19:26:05]Thread 3067080036 joined [19:26:05]Waiting for new connection... [19:26:05] Sock 9.Parse request [19:26:05]Sock 9.Check first char [19:26:05]Sock 9.First char is OK [19:26:05]request: POST /json_proto HTTP/1.0 [19:26:05]Method: POST [19:26:05]URL: /json_proto [19:26:05]Method is POST - this is cgi request [19:26:05]url: /json_proto [19:26:05]query_string will be loaded in cgi processing [19:26:05]execute_cgi json_proto POST (null) [19:26:05]execute_cgi path=json_proto method=POST [19:26:05]POST find Content-Length [19:26:05]Host: 172.17.46.131:8080 [19:26:05]Content-Length: 682 [19:26:05]Content-Type: application/json [19:26:05] [19:26:05]POST finish read [19:26:05]Found Content-Length = 682 [19:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:26:05]execute_script... [19:26: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)412628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "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:26:05]POST & json_proto [19:26:05]process_json_proto [19:26:05]json parsed OK: [19:26:05]protocol is kg_v1.0 [19:26:05]action value=close_receipt [19:26:05]process_action close_receipt [19:26:05]cmd_close_receipt [19:26:05]MH_GetDate [19:26:05]Write to MH i2c: F0 00 00 18 03 0A [19:26:05]Write i2c OK [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: F0 [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: F0 09 00 [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: F0 09 00 18 03 00 CE 81 B7 67 7E 41 4F 65 F3 [19:26:05]GetLastDocTimeStamp 1740079364 [19:26:05]current date 1740079566 [19:26:05]FM_GetShiftState [19:26:05]SAM_PROTO_GetShiftState [19:26:05]wFMCommunicate request_size=4 [19:26:05]MH_SAM_APDU [19:26:05]CAPDU: 80 13 01 00 [19:26:05]Write to MH i2c: E2 08 00 19 03 80 13 01 00 00 00 00 00 99 [19:26:05]Write i2c OK [19:26:05]MH_I2C_Read... [19:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:05]Read from MH i2c: E2 [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: E2 0E 00 [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: E2 0E 00 19 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EB [19:26:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:26:05]wFMCommunicate OK [19:26:05]SAM_PROTO_GetShiftState done [19:26:05]FM_GetShiftState done [19:26:05]opened in 1740011697 [19:26:05]opened+sec_in_day 1740098097 [19:26:05]quantity*price = 100023 [19:26:05]sum+1 = 100025 [19:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 270 20.02.2025 19:26 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187469 ФПД: 23433649108017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T192606&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187469&fm=23433649108017&tin=02508201610067®Number=0000000000091857&sum=100000 [19:26:06]StoreToDocumentArchive [19:26:06]shift 648 fd 187469 [19:26:06]save to /storage/0648/doc_00187469 [19:26:06]save last doc name /storage/0648/doc_00187469 to /storage/kkm_last_doc_name [19:26:06]save OK [19:26:06]Clear old archive folders... [19:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:06]tlvbuf is 02045C00 [19:26:06]SAM_PROTO_ClearQueue [19:26:06]wFMCommunicate request_size=4 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 09 00 00 [19:26:06]Write to MH i2c: E2 08 00 26 03 80 09 00 00 00 00 00 00 9B [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:06]Read from MH i2c: E2 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [19:26:06]RAPDU: 90 00 [19:26:06]wFMCommunicate OK [19:26:06]SAM_PROTO_ClearQueue done [19:26:06]KKMCreateOFDPacket [19:26:06]OFDProtocolAddRootSTLVToBuf [19:26:06]FM_MakeSignedData [19:26:06]FM_MakeSignedData [19:26:06]SAM_PROTO_SignData [19:26:06]wFMCommunicate request_size=4 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 0D 01 02 [19:26:06]Write to MH i2c: E2 08 00 27 03 80 0D 01 02 00 00 00 00 A3 [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 27 03 00 90 00 9E [19:26:07]RAPDU: 90 00 [19:26:07]wFMCommunicate OK [19:26:07]wFMCommunicate request_size=255 [19:26:07]MH_SAM_APDU [19:26: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 CE 81 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DC 02 00 35 04 06 00 15 [19:26:07]Write to MH i2c: E2 02 01 28 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 CE 81 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DC 02 00 35 04 06 00 15 00 00 E6 [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [19:26:07]RAPDU: 90 00 [19:26:07]wFMCommunicate OK [19:26:07]wFMCommunicate request_size=10 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 0D 02 02 05 50 12 54 B4 31 [19:26:07]Write to MH i2c: E2 0D 00 29 03 80 0D 02 02 05 00 50 12 54 B4 31 00 00 4B [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [19:26:07]RAPDU: 90 00 [19:26:07]wFMCommunicate OK [19:26:07]wFMCommunicate request_size=4 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 0D 03 02 [19:26:07]Write to MH i2c: E2 08 00 2A 03 80 0D 03 02 00 00 00 00 A8 [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]OFD Sender: No OFD packet to send [19:26:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 0B 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 0B 00 2A 03 00 F2 05 D9 D1 35 17 E0 58 90 00 CE [19:26:07]RAPDU: F2 05 D9 D1 35 17 E0 58 90 00 [19:26:07]wFMCommunicate OK [19:26:07]SAM_PROTO_SignData done [19:26:07]FM_MakeSignedData done [19:26:07]CreateOFDProtocolMessage [19:26:07]wFMCommunicate request_size=4 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 11 00 00 [19:26:07]Write to MH i2c: E2 08 00 2B 03 80 11 00 00 00 00 00 00 A8 [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 17 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 17 00 2B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [19:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:26:07]wFMCommunicate OK [19:26:07]CreateOFDProtocolMessage done [19:26:07]OFDSenderStorePacket 187469 [19:26:07]StoreOFDPacket docnum=187469 [19:26:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F 68 07 01 A2 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 CE 81 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DC 02 00 35 04 06 00 15 50 12 54 B4 31 F2 05 D9 D1 35 17 E0 58 [19:26:07]CheckFolder [19:26:07]dirname=/storage/ofd_packets [19:26:07]CheckFolder done [19:26:07]ProducePacketName [19:26:07]name=ofd_packets/00187469 [19:26:07]NVStorageSaveData ofd_packets/00187469 [19:26:07]File name is /storage/ofd_packets/00187469 [19:26:07]Write 301 bytes [19:26:07]NVStorageSaveData done [19:26:07]OFDSenderStorePacket done [19:26:07]KKMCreateOFDPacket done [19:26:07]NVStorageSaveData kkm_last_timestamp [19:26:07]File name is /storage/kkm_last_timestamp [19:26:07]Write 4 bytes [19:26:07]NVStorageSaveData done [19:26:07]ExternCall_PrintAddStr [19:26:07]wPrintStart [19:26:07]Write to MH i2c: 01 00 00 2C 03 2F [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: 01 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: 01 07 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: 01 07 00 2C 03 00 00 00 00 00 FF 0F 44 [19:26:07]RasterBufferAndPrint [19:26:07]line Счет N : (1)412628 [19:26:07]line ИНН: 02508201610067 [19:26:07]line Контрольно-Кассовый Чек [19:26:07]line ПРОДАЖА [19:26:07]line ТРК (МРК, ГНК) : 32 [19:26:07]line Товар: 2710124130 [19:26:07]line Аи-92-К-2 [19:26:07]line 15.580 * 64.20 [19:26:07]line = 1000.24 [19:26:07]line НДС 12% НСП 1% [19:26:07]line > о реализуемом товаре [19:26:07]line ОКРУГЛЕНИЕ: -0.24 [19:26:07]line ИТОГО: 1000.00 [19:26:07]line Внесено: 1000.00 [19:26:07]line СДАЧА: 0.00 [19:26:07]line НСП 1% : 8.85 [19:26:07]line НДС 12% : 106.22 [19:26:07]line Наличными: 1000.00 [19:26:07]line Безнал.: 0.00 [19:26:07]line Место: АЗС № 92 "Партнер Нефть" [19:26:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:26:07]line СНО: Общий режим [19:26:07]line Чек 270 20.02.2025 19:26 [19:26:07]line Смена: 648 ФФД: 1.0 [19:26:07]line ЗНМ: 0300000118 [19:26:07]line РНМ: 0000000000091857 [19:26:07]line Версия ККМ: 001 [19:26:07]line ФМ: 0000000000871826 [19:26:07]line ФД: 187469 [19:26:07]line ФПД: 23433649108017 [19:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T192606&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187469&fm=23433649108017&tin=02508201610067®Number=0000000000091857&sum=100000 [19:26:07]OFD Sender: Processing packet 187469 [packets to send 49, broken 48] [19:26:07]ProducePacketName [19:26:07]name=ofd_packets/00187469 [19:26:07]OFD Sender: To server: pG, [19:26:07]CommunicateWithHost lk.salyk.kg:30040 [19:26:07]ConnectInit lk.salyk.kg [19:26:07]written 0, free lines is 4095 [19:26:08]Connected sock=11 [19:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F 68 07 01 A2 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 CE 81 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DC 02 00 35 04 06 00 15 50 12 54 B4 31 F2 05 D9 D1 35 17 E0 58 [19:26:08]Write to MH i2c: 01 00 00 57 03 5A [19:26:08]Write i2c OK [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: 01 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: 01 07 00 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 F4 0C 61 [19:26:08]RasterBufferAndPrint [19:26:08]line [19:26:08]line [19:26:08]line [19:26:08]line [19:26:08]line [19:26:08]written 0, free lines is 3322 [19:26:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 19 44 47 00 85 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DC 02 00 F4 03 04 00 1E 28 B7 67 B6 04 01 00 00 FD BE BE 05 80 B9 95 69 [19:26:08]CommunicateWithHost err = 0 [19:26:08]CheckOFDResponse [19:26:08]1017 (14) - 77093643461234 [19:26:08]1041 (16) - 0000000000871826 [19:26:08]1040 (4) - 187469 [19:26:08]1012 (4) - 20.02.2025 13:03 [19:26:08]1206 (1) - 0 [19:26:08]OFD Sender: Remove packet 187469 [19:26:08]ProducePacketName [19:26:08]name=ofd_packets/00187469 [19:26:08]NVStorageDeleteData [19:26:08]MH_Cut [19:26:08]Write to MH i2c: D1 01 00 5E 03 01 33 [19:26:08]Write i2c OK [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: D1 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: D1 01 00 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: D1 01 00 5E 03 00 32 [19:26:08]Write to MH i2c: 01 00 00 5F 03 62 [19:26:08]Write i2c OK [19:26:08]MH_I2C_Read... [19:26:08]OFD Sender: No OFD packet to send [19:26:08]*** Cut start [19:26:08]*** Partial cut [19:26:08]*** CUTSNS_PIN = 1 [19:26:09]*** CUTSNS_PIN = 0 [19:26:09]*** Brake cut motor [19:26:09]Read from MH i2c: 01 [19:26:09]MH_I2C_Read... [19:26:09]*** Stop cut motor [19:26:09]*** Cut end [19:26:09]Read from MH i2c: 01 07 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 FF 0F 77 [19:26:09]process_action close_receipt done [19:26:09]requested_data is exist [19:26:09]produce_requested_data [19:26:09]requested_item fm.sn is exist - process it [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 11 00 00 [19:26:09]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 17 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 30 [19:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:26:09]wFMCommunicate OK [19:26:09]requested_item fd.num is exist - process it [19:26:09]SAM_PROTO_GetFieldsCounters [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 13 00 00 [19:26:09]Write to MH i2c: E2 08 00 61 03 80 13 00 00 00 00 00 00 E0 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 62 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 62 00 61 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4D DC 02 00 0E 04 04 00 88 02 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 E8 [19:26:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4D DC 02 00 0E 04 04 00 88 02 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:26:09]wFMCommunicate OK [19:26:09]SAM_PROTO_GetFieldsCounters done [19:26:09]requested_item shift.num is exist - process it [19:26:09]requested_item shift.opened is exist - process it [19:26:09]req_shift_opened [19:26:09]FM_GetShiftState [19:26:09]SAM_PROTO_GetShiftState [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 13 01 00 [19:26:09]Write to MH i2c: E2 08 00 62 03 80 13 01 00 00 00 00 00 E2 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 0E 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 0E 00 62 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 34 [19:26:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:26:09]wFMCommunicate OK [19:26:09]SAM_PROTO_GetShiftState done [19:26:09]FM_GetShiftState done [19:26:09]req_shift_opened done [19:26:09]requested_item shift.open_date is exist - process it [19:26:09]req_shift_open_date [19:26:09]req_shift_open_date done [19:26:09]produce_requested_data done [19:26:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187469,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:26:09]process_action_free close_receipt [19:26:09]json_value_free [19:26:09]json_value_free done [19:26:09]process_json_proto returns [19:26:09]Send response to host [19:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187469,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:26:09]free response buf [19:26:09]execute_script done [19:26:09]execute_script returns [19:26:09]free content buf [19:26:09]Sock 9.Close socket [19:26:09]Sock 9.Thread stoped [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:36]accept exits with 7 [19:36:36]New connection [19:36:36]New thread 3067080036 created [19:36:36]Thread 3067223396 joined [19:36:36]Waiting for new connection... [19:36:36] Sock 7.Parse request [19:36:36]Sock 7.Check first char [19:36:36]Sock 7.First char is OK [19:36:36]request: POST /json_proto HTTP/1.0 [19:36:36]Method: POST [19:36:36]URL: /json_proto [19:36:36]Method is POST - this is cgi request [19:36:36]url: /json_proto [19:36:36]query_string will be loaded in cgi processing [19:36:36]execute_cgi json_proto POST (null) [19:36:36]execute_cgi path=json_proto method=POST [19:36:36]POST find Content-Length [19:36:36]Host: 172.17.46.131:8080 [19:36:36]Content-Length: 800 [19:36:36]Content-Type: application/json [19:36:36] [19:36:36]POST finish read [19:36:36]Found Content-Length = 800 [19:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:36]execute_script... [19:36: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)412629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:36]POST & json_proto [19:36:36]process_json_proto [19:36:36]json parsed OK: [19:36:36]protocol is kg_v1.0 [19:36:36]action value=close_receipt [19:36:36]process_action close_receipt [19:36:36]cmd_close_receipt [19:36:36]MH_GetDate [19:36:36]Write to MH i2c: F0 00 00 63 03 55 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: F0 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: F0 09 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: F0 09 00 63 03 00 44 84 B7 67 7E 41 4F 65 B7 [19:36:36]GetLastDocTimeStamp 1740079566 [19:36:36]current date 1740080196 [19:36:36]FM_GetShiftState [19:36:36]SAM_PROTO_GetShiftState [19:36:36]wFMCommunicate request_size=4 [19:36:36]MH_SAM_APDU [19:36:36]CAPDU: 80 13 01 00 [19:36:36]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:36]Read from MH i2c: E2 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 0E 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 36 [19:36:36]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:36:36]wFMCommunicate OK [19:36:36]SAM_PROTO_GetShiftState done [19:36:36]FM_GetShiftState done [19:36:36]opened in 1740011697 [19:36:36]opened+sec_in_day 1740098097 [19:36:36]quantity*price = 50011 [19:36:36]sum+1 = 50013 [19:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 271 20.02.2025 19:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187470 ФПД: 159364413836890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T193636&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187470&fm=159364413836890&tin=02508201610067®Number=0000000000091857&sum=50012 [19:36:37]StoreToDocumentArchive [19:36:37]shift 648 fd 187470 [19:36:37]save to /storage/0648/doc_00187470 [19:36:37]save last doc name /storage/0648/doc_00187470 to /storage/kkm_last_doc_name [19:36:37]save OK [19:36:37]Clear old archive folders... [19:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:37]tlvbuf is 0203B370 [19:36:37]SAM_PROTO_ClearQueue [19:36:37]wFMCommunicate request_size=4 [19:36:37]MH_SAM_APDU [19:36:37]CAPDU: 80 09 00 00 [19:36:37]Write to MH i2c: E2 08 00 71 03 80 09 00 00 00 00 00 00 E6 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:37]Read from MH i2c: E2 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 03 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 03 00 71 03 00 90 00 E8 [19:36:37]RAPDU: 90 00 [19:36:37]wFMCommunicate OK [19:36:37]SAM_PROTO_ClearQueue done [19:36:37]KKMCreateOFDPacket [19:36:37]OFDProtocolAddRootSTLVToBuf [19:36:37]FM_MakeSignedData [19:36:37]FM_MakeSignedData [19:36:37]SAM_PROTO_SignData [19:36:37]wFMCommunicate request_size=4 [19:36:37]MH_SAM_APDU [19:36:37]CAPDU: 80 0D 01 02 [19:36:37]Write to MH i2c: E2 08 00 72 03 80 0D 01 02 00 00 00 00 EE [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:37]Read from MH i2c: E2 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 03 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [19:36:37]RAPDU: 90 00 [19:36:37]wFMCommunicate OK [19:36:37]wFMCommunicate request_size=255 [19:36:37]MH_SAM_APDU [19:36: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 44 84 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DC 02 00 35 04 06 00 90 [19:36:37]Write to MH i2c: E2 02 01 73 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 44 84 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DC 02 00 35 04 06 00 90 00 00 DB [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:37]Read from MH i2c: E2 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 03 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [19:36:37]RAPDU: 90 00 [19:36:37]wFMCommunicate OK [19:36:37]wFMCommunicate request_size=10 [19:36:37]MH_SAM_APDU [19:36:37]CAPDU: 80 0D 02 02 05 F0 EB 46 CE 5A [19:36:37]Write to MH i2c: E2 0D 00 74 03 80 0D 02 02 05 00 F0 EB 46 CE 5A 00 00 44 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:37]Read from MH i2c: E2 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 03 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [19:36:37]RAPDU: 90 00 [19:36:37]wFMCommunicate OK [19:36:37]wFMCommunicate request_size=4 [19:36:37]MH_SAM_APDU [19:36:37]CAPDU: 80 0D 03 02 [19:36:37]Write to MH i2c: E2 08 00 75 03 80 0D 03 02 00 00 00 00 F3 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:37]Read from MH i2c: E2 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 0B 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 0B 00 75 03 00 23 F9 00 7D D5 1A B8 FD 90 00 31 [19:36:37]RAPDU: 23 F9 00 7D D5 1A B8 FD 90 00 [19:36:37]wFMCommunicate OK [19:36:37]SAM_PROTO_SignData done [19:36:37]FM_MakeSignedData done [19:36:37]CreateOFDProtocolMessage [19:36:37]wFMCommunicate request_size=4 [19:36:37]MH_SAM_APDU [19:36:37]CAPDU: 80 11 00 00 [19:36:37]Write to MH i2c: E2 08 00 76 03 80 11 00 00 00 00 00 00 F3 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:38]Read from MH i2c: E2 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 17 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 17 00 76 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 46 [19:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:36:38]wFMCommunicate OK [19:36:38]CreateOFDProtocolMessage done [19:36:38]OFDSenderStorePacket 187470 [19:36:38]StoreOFDPacket docnum=187470 [19:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D A5 07 01 02 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 44 84 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DC 02 00 35 04 06 00 90 F0 EB 46 CE 5A 23 F9 00 7D D5 1A B8 FD [19:36:38]CheckFolder [19:36:38]dirname=/storage/ofd_packets [19:36:38]CheckFolder done [19:36:38]ProducePacketName [19:36:38]name=ofd_packets/00187470 [19:36:38]NVStorageSaveData ofd_packets/00187470 [19:36:38]File name is /storage/ofd_packets/00187470 [19:36:38]Write 301 bytes [19:36:38]NVStorageSaveData done [19:36:38]OFDSenderStorePacket done [19:36:38]KKMCreateOFDPacket done [19:36:38]NVStorageSaveData kkm_last_timestamp [19:36:38]File name is /storage/kkm_last_timestamp [19:36:38]Write 4 bytes [19:36:38]NVStorageSaveData done [19:36:38]ExternCall_PrintAddStr [19:36:38]wPrintStart [19:36:38]Write to MH i2c: 01 00 00 77 03 7A [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 07 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 07 00 77 03 00 00 00 00 00 FF 0F 8F [19:36:38]RasterBufferAndPrint [19:36:38]line Счет N : (1)412629 [19:36:38]line ИНН: 02508201610067 [19:36:38]line Контрольно-Кассовый Чек [19:36:38]line ПРОДАЖА [19:36:38]line ТРК (МРК, ГНК) : 32 [19:36:38]line Товар: 2710124130 [19:36:38]line Аи-92-К-2 [19:36:38]line 7.790 * 64.20 [19:36:38]line = 500.12 [19:36:38]line НДС 12% НСП 1% [19:36:38]line > о реализуемом товаре [19:36:38]line ИТОГО: 500.12 [19:36:38]line НСП 1% : 4.43 [19:36:38]line НДС 12% : 53.11 [19:36:38]line Наличными: 0.00 [19:36:38]line Безнал.: 500.12 [19:36:38]line Место: АЗС № 92 "Партнер Нефть" [19:36:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:36:38]line СНО: Общий режим [19:36:38]line Чек 271 20.02.2025 19:36 [19:36:38]line Смена: 648 ФФД: 1.0 [19:36:38]line ЗНМ: 0300000118 [19:36:38]line РНМ: 0000000000091857 [19:36:38]line Версия ККМ: 001 [19:36:38]line Платежная система: O! деньги [19:36:38]line ФМ: 0000000000871826 [19:36:38]line ФД: 187470 [19:36:38]line ФПД: 159364413836890 [19:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T193636&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187470&fm=159364413836890&tin=02508201610067®Number=0000000000091857&sum=50012 [19:36:38]written 0, free lines is 4095 [19:36:38]OFD Sender: Processing packet 187470 [packets to send 49, broken 48] [19:36:38]ProducePacketName [19:36:38]name=ofd_packets/00187470 [19:36:38]OFD Sender: To server: pG, [19:36:38]CommunicateWithHost lk.salyk.kg:30040 [19:36:38]ConnectInit lk.salyk.kg [19:36:38]Connected sock=10 [19:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D A5 07 01 02 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 44 84 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DC 02 00 35 04 06 00 90 F0 EB 46 CE 5A 23 F9 00 7D D5 1A B8 FD [19:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A6 A4 47 00 3F 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E DC 02 00 F4 03 04 00 94 2A B7 67 B6 04 01 00 00 39 29 91 96 C9 7B D2 9B [19:36:38]CommunicateWithHost err = 0 [19:36:38]CheckOFDResponse [19:36:38]1017 (14) - 77093643461234 [19:36:38]1041 (16) - 0000000000871826 [19:36:38]1040 (4) - 187470 [19:36:38]1012 (4) - 20.02.2025 13:13 [19:36:38]1206 (1) - 0 [19:36:38]OFD Sender: Remove packet 187470 [19:36:38]ProducePacketName [19:36:38]name=ofd_packets/00187470 [19:36:38]NVStorageDeleteData [19:36:38]Write to MH i2c: 01 00 00 A1 03 A4 [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 07 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 02 0D BA [19:36:38]RasterBufferAndPrint [19:36:38]line [19:36:38]line [19:36:38]line [19:36:38]line [19:36:38]line [19:36:38]written 0, free lines is 3336 [19:36:38]MH_Cut [19:36:38]Write to MH i2c: D1 01 00 A8 03 01 7D [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: D1 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: D1 01 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: D1 01 00 A8 03 00 7C [19:36:38]Write to MH i2c: 01 00 00 A9 03 AC [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]OFD Sender: No OFD packet to send [19:36:39]*** Cut start [19:36:39]*** Partial cut [19:36:39]*** CUTSNS_PIN = 1 [19:36:39]*** CUTSNS_PIN = 0 [19:36:39]*** Brake cut motor [19:36:39]Read from MH i2c: 01 [19:36:39]MH_I2C_Read... [19:36:39]*** Stop cut motor [19:36:39]*** Cut end [19:36:39]Read from MH i2c: 01 07 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [19:36:39]process_action close_receipt done [19:36:39]requested_data is exist [19:36:39]produce_requested_data [19:36:39]requested_item fm.sn is exist - process it [19:36:39]wFMCommunicate request_size=4 [19:36:39]MH_SAM_APDU [19:36:39]CAPDU: 80 11 00 00 [19:36:39]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:39]Read from MH i2c: E2 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 17 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [19:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:36:39]wFMCommunicate OK [19:36:39]requested_item fd.num is exist - process it [19:36:39]SAM_PROTO_GetFieldsCounters [19:36:39]wFMCommunicate request_size=4 [19:36:39]MH_SAM_APDU [19:36:39]CAPDU: 80 13 00 00 [19:36:39]Write to MH i2c: E2 08 00 AB 03 80 13 00 00 00 00 00 00 2A [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 62 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 62 00 AB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4E DC 02 00 0E 04 04 00 88 02 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 36 [19:36: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4E DC 02 00 0E 04 04 00 88 02 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:36:40]wFMCommunicate OK [19:36:40]SAM_PROTO_GetFieldsCounters done [19:36:40]requested_item shift.num is exist - process it [19:36:40]requested_item shift.opened is exist - process it [19:36:40]req_shift_opened [19:36:40]FM_GetShiftState [19:36:40]SAM_PROTO_GetShiftState [19:36:40]wFMCommunicate request_size=4 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 13 01 00 [19:36:40]Write to MH i2c: E2 08 00 AC 03 80 13 01 00 00 00 00 00 2C [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 0E 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 0E 00 AC 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7E [19:36:40]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:36:40]wFMCommunicate OK [19:36:40]SAM_PROTO_GetShiftState done [19:36:40]FM_GetShiftState done [19:36:40]req_shift_opened done [19:36:40]requested_item shift.open_date is exist - process it [19:36:40]req_shift_open_date [19:36:40]req_shift_open_date done [19:36:40]produce_requested_data done [19:36:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187470,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:36:40]process_action_free close_receipt [19:36:40]json_value_free [19:36:40]json_value_free done [19:36:40]process_json_proto returns [19:36:40]Send response to host [19:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187470,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:36:40]free response buf [19:36:40]execute_script done [19:36:40]execute_script returns [19:36:40]free content buf [19:36:40]Sock 7.Close socket [19:36:40]Sock 7.Thread stoped [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:17]accept exits with 9 [19:42:17]New connection [19:42:17]New thread 3067223396 created [19:42:17]Thread 3067080036 joined [19:42:17]Waiting for new connection... [19:42:17] Sock 9.Parse request [19:42:17]Sock 9.Check first char [19:42:17]Sock 9.First char is OK [19:42:17]request: POST /json_proto HTTP/1.0 [19:42:17]Method: POST [19:42:17]URL: /json_proto [19:42:17]Method is POST - this is cgi request [19:42:17]url: /json_proto [19:42:17]query_string will be loaded in cgi processing [19:42:17]execute_cgi json_proto POST (null) [19:42:17]execute_cgi path=json_proto method=POST [19:42:17]POST find Content-Length [19:42:17]Host: 172.17.46.131:8080 [19:42:17]Content-Length: 678 [19:42:17]Content-Type: application/json [19:42:17] [19:42:17]POST finish read [19:42:17]Found Content-Length = 678 [19:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "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:42:17]execute_script... [19:42:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "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:42:17]POST & json_proto [19:42:17]process_json_proto [19:42:17]json parsed OK: [19:42:17]protocol is kg_v1.0 [19:42:17]action value=close_receipt [19:42:17]process_action close_receipt [19:42:17]cmd_close_receipt [19:42:17]MH_GetDate [19:42:17]Write to MH i2c: F0 00 00 AD 03 9F [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: F0 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: F0 09 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: F0 09 00 AD 03 00 9A 85 B7 67 7E 41 4F 65 58 [19:42:17]GetLastDocTimeStamp 1740080196 [19:42:17]current date 1740080538 [19:42:17]FM_GetShiftState [19:42:17]SAM_PROTO_GetShiftState [19:42:17]wFMCommunicate request_size=4 [19:42:17]MH_SAM_APDU [19:42:17]CAPDU: 80 13 01 00 [19:42:17]Write to MH i2c: E2 08 00 AE 03 80 13 01 00 00 00 00 00 2E [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 0E 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 0E 00 AE 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 80 [19:42:18]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:42:18]wFMCommunicate OK [19:42:18]SAM_PROTO_GetShiftState done [19:42:18]FM_GetShiftState done [19:42:18]opened in 1740011697 [19:42:18]opened+sec_in_day 1740098097 [19:42:18]quantity*price = 70042 [19:42:18]sum+1 = 70043 [19:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 272 20.02.2025 19:42 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187471 ФПД: 147307738071775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T194218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187471&fm=147307738071775&tin=02508201610067®Number=0000000000091857&sum=70000 [19:42:19]StoreToDocumentArchive [19:42:19]shift 648 fd 187471 [19:42:19]save to /storage/0648/doc_00187471 [19:42:19]save last doc name /storage/0648/doc_00187471 to /storage/kkm_last_doc_name [19:42:19]save OK [19:42:19]Clear old archive folders... [19:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:19]tlvbuf is 02008970 [19:42:19]SAM_PROTO_ClearQueue [19:42:19]wFMCommunicate request_size=4 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 09 00 00 [19:42:19]Write to MH i2c: E2 08 00 BB 03 80 09 00 00 00 00 00 00 30 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 03 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [19:42:19]RAPDU: 90 00 [19:42:19]wFMCommunicate OK [19:42:19]SAM_PROTO_ClearQueue done [19:42:19]KKMCreateOFDPacket [19:42:19]OFDProtocolAddRootSTLVToBuf [19:42:19]FM_MakeSignedData [19:42:19]FM_MakeSignedData [19:42:19]SAM_PROTO_SignData [19:42:19]wFMCommunicate request_size=4 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 0D 01 02 [19:42:19]Write to MH i2c: E2 08 00 BC 03 80 0D 01 02 00 00 00 00 38 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 03 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [19:42:19]RAPDU: 90 00 [19:42:19]wFMCommunicate OK [19:42:19]wFMCommunicate request_size=255 [19:42:19]MH_SAM_APDU [19:42: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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 9A 85 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DC 02 00 35 04 06 00 85 [19:42:19]Write to MH i2c: E2 02 01 BD 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 9A 85 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DC 02 00 35 04 06 00 85 00 00 0C [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]OFD Sender: No OFD packet to send [19:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 03 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [19:42:19]RAPDU: 90 00 [19:42:19]wFMCommunicate OK [19:42:19]wFMCommunicate request_size=10 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 0D 02 02 05 F9 C1 66 82 DF [19:42:19]Write to MH i2c: E2 0D 00 BE 03 80 0D 02 02 05 00 F9 C1 66 82 DF 00 00 C6 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 03 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [19:42:19]RAPDU: 90 00 [19:42:19]wFMCommunicate OK [19:42:19]wFMCommunicate request_size=4 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 0D 03 02 [19:42:19]Write to MH i2c: E2 08 00 BF 03 80 0D 03 02 00 00 00 00 3D [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 0B 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 0B 00 BF 03 00 32 C7 D0 28 06 2A 40 D1 90 00 70 [19:42:19]RAPDU: 32 C7 D0 28 06 2A 40 D1 90 00 [19:42:19]wFMCommunicate OK [19:42:19]SAM_PROTO_SignData done [19:42:19]FM_MakeSignedData done [19:42:19]CreateOFDProtocolMessage [19:42:19]wFMCommunicate request_size=4 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 11 00 00 [19:42:19]Write to MH i2c: E2 08 00 C0 03 80 11 00 00 00 00 00 00 3D [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 17 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 17 00 C0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [19:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:42:19]wFMCommunicate OK [19:42:19]CreateOFDProtocolMessage done [19:42:19]OFDSenderStorePacket 187471 [19:42:19]StoreOFDPacket docnum=187471 [19:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FC 9B 07 01 FC 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 9A 85 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DC 02 00 35 04 06 00 85 F9 C1 66 82 DF 32 C7 D0 28 06 2A 40 D1 [19:42:19]CheckFolder [19:42:19]dirname=/storage/ofd_packets [19:42:19]CheckFolder done [19:42:19]ProducePacketName [19:42:19]name=ofd_packets/00187471 [19:42:19]NVStorageSaveData ofd_packets/00187471 [19:42:19]File name is /storage/ofd_packets/00187471 [19:42:19]Write 301 bytes [19:42:19]NVStorageSaveData done [19:42:19]OFDSenderStorePacket done [19:42:19]KKMCreateOFDPacket done [19:42:19]NVStorageSaveData kkm_last_timestamp [19:42:19]File name is /storage/kkm_last_timestamp [19:42:19]Write 4 bytes [19:42:19]NVStorageSaveData done [19:42:19]ExternCall_PrintAddStr [19:42:19]wPrintStart [19:42:19]Write to MH i2c: 01 00 00 C1 03 C4 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 07 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 FF 0F D9 [19:42:19]RasterBufferAndPrint [19:42:19]line Счет N : (1)412630 [19:42:19]line ИНН: 02508201610067 [19:42:19]line Контрольно-Кассовый Чек [19:42:19]line ПРОДАЖА [19:42:19]line ТРК (МРК, ГНК) : 12 [19:42:19]line Товар: 2710124130 [19:42:19]line Аи-92-К-2 [19:42:19]line 10.910 * 64.20 [19:42:19]line = 700.42 [19:42:19]line НДС 12% НСП 1% [19:42:19]line > о реализуемом товаре [19:42:19]line ОКРУГЛЕНИЕ: -0.42 [19:42:19]line ИТОГО: 700.00 [19:42:19]line Внесено: 700.00 [19:42:19]line СДАЧА: 0.00 [19:42:19]line НСП 1% : 6.20 [19:42:19]line НДС 12% : 74.38 [19:42:19]line Наличными: 700.00 [19:42:19]line Безнал.: 0.00 [19:42:19]line Место: АЗС № 92 "Партнер Нефть" [19:42:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:42:19]line СНО: Общий режим [19:42:19]line Чек 272 20.02.2025 19:42 [19:42:19]line Смена: 648 ФФД: 1.0 [19:42:19]line ЗНМ: 0300000118 [19:42:19]line РНМ: 0000000000091857 [19:42:19]line Версия ККМ: 001 [19:42:19]line ФМ: 0000000000871826 [19:42:19]line ФД: 187471 [19:42:19]line ФПД: 147307738071775 [19:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T194218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187471&fm=147307738071775&tin=02508201610067®Number=0000000000091857&sum=70000 [19:42:19]OFD Sender: Processing packet 187471 [packets to send 49, broken 48] [19:42:19]ProducePacketName [19:42:19]name=ofd_packets/00187471 [19:42:19]OFD Sender: To server: pG, [19:42:19]CommunicateWithHost lk.salyk.kg:30040 [19:42:19]ConnectInit lk.salyk.kg [19:42:19]written 0, free lines is 4095 [19:42:20]Connected sock=10 [19:42:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FC 9B 07 01 FC 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 9A 85 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DC 02 00 35 04 06 00 85 F9 C1 66 82 DF 32 C7 D0 28 06 2A 40 D1 [19:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FC 19 47 00 47 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F DC 02 00 F4 03 04 00 EA 2B B7 67 B6 04 01 00 00 C7 99 C9 1E 04 AF 26 FE [19:42:20]CommunicateWithHost err = 0 [19:42:20]CheckOFDResponse [19:42:20]1017 (14) - 77093643461234 [19:42:20]1041 (16) - 0000000000871826 [19:42:20]1040 (4) - 187471 [19:42:20]1012 (4) - 20.02.2025 13:19 [19:42:20]1206 (1) - 0 [19:42:20]OFD Sender: Remove packet 187471 [19:42:20]ProducePacketName [19:42:20]name=ofd_packets/00187471 [19:42:20]NVStorageDeleteData [19:42:20]Write to MH i2c: 01 00 00 EC 03 EF [19:42:20]Write i2c OK [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: 01 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: 01 07 00 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 DD 0C DF [19:42:20]RasterBufferAndPrint [19:42:20]line [19:42:20]line [19:42:20]line [19:42:20]line [19:42:20]line [19:42:20]written 0, free lines is 3299 [19:42:20]MH_Cut [19:42:20]Write to MH i2c: D1 01 00 F3 03 01 C8 [19:42:20]Write i2c OK [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: D1 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: D1 01 00 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: D1 01 00 F3 03 00 C7 [19:42:20]Write to MH i2c: 01 00 00 F4 03 F7 [19:42:20]Write i2c OK [19:42:20]MH_I2C_Read... [19:42:20]OFD Sender: No OFD packet to send [19:42:21]*** Cut start [19:42:21]*** Partial cut [19:42:21]*** CUTSNS_PIN = 1 [19:42:21]*** CUTSNS_PIN = 0 [19:42:21]*** Brake cut motor [19:42:21]Read from MH i2c: 01 [19:42:21]MH_I2C_Read... [19:42:21]*** Stop cut motor [19:42:21]*** Cut end [19:42:21]Read from MH i2c: 01 07 00 [19:42:21]MH_I2C_Read... [19:42:21]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [19:42:21]process_action close_receipt done [19:42:21]requested_data is exist [19:42:21]produce_requested_data [19:42:21]requested_item fm.sn is exist - process it [19:42:21]wFMCommunicate request_size=4 [19:42:21]MH_SAM_APDU [19:42:21]CAPDU: 80 11 00 00 [19:42:21]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [19:42:21]Write i2c OK [19:42:21]MH_I2C_Read... [19:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:21]Read from MH i2c: E2 [19:42:21]MH_I2C_Read... [19:42:21]Read from MH i2c: E2 17 00 [19:42:21]MH_I2C_Read... [19:42:21]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C5 [19:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:42:21]wFMCommunicate OK [19:42:21]requested_item fd.num is exist - process it [19:42:21]SAM_PROTO_GetFieldsCounters [19:42:21]wFMCommunicate request_size=4 [19:42:21]MH_SAM_APDU [19:42:21]CAPDU: 80 13 00 00 [19:42:21]Write to MH i2c: E2 08 00 F6 03 80 13 00 00 00 00 00 00 75 [19:42:21]Write i2c OK [19:42:21]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 62 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 62 00 F6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4F DC 02 00 0E 04 04 00 88 02 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 85 [19:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4F DC 02 00 0E 04 04 00 88 02 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:42:22]wFMCommunicate OK [19:42:22]SAM_PROTO_GetFieldsCounters done [19:42:22]requested_item shift.num is exist - process it [19:42:22]requested_item shift.opened is exist - process it [19:42:22]req_shift_opened [19:42:22]FM_GetShiftState [19:42:22]SAM_PROTO_GetShiftState [19:42:22]wFMCommunicate request_size=4 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 13 01 00 [19:42:22]Write to MH i2c: E2 08 00 F7 03 80 13 01 00 00 00 00 00 77 [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0E 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0E 00 F7 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C9 [19:42:22]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:42:22]wFMCommunicate OK [19:42:22]SAM_PROTO_GetShiftState done [19:42:22]FM_GetShiftState done [19:42:22]req_shift_opened done [19:42:22]requested_item shift.open_date is exist - process it [19:42:22]req_shift_open_date [19:42:22]req_shift_open_date done [19:42:22]produce_requested_data done [19:42:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187471,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:42:22]process_action_free close_receipt [19:42:22]json_value_free [19:42:22]json_value_free done [19:42:22]process_json_proto returns [19:42:22]Send response to host [19:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187471,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:42:22]free response buf [19:42:22]execute_script done [19:42:22]execute_script returns [19:42:22]free content buf [19:42:22]Sock 9.Close socket [19:42:22]Sock 9.Thread stoped [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]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:49]accept exits with 7 [19:44:49]New connection [19:44:49]New thread 3067080036 created [19:44:49]Thread 3067223396 joined [19:44:49]Waiting for new connection... [19:44:49] Sock 7.Parse request [19:44:49]Sock 7.Check first char [19:44:49]Sock 7.First char is OK [19:44:49]request: POST /json_proto HTTP/1.0 [19:44:49]Method: POST [19:44:49]URL: /json_proto [19:44:49]Method is POST - this is cgi request [19:44:49]url: /json_proto [19:44:49]query_string will be loaded in cgi processing [19:44:49]execute_cgi json_proto POST (null) [19:44:49]execute_cgi path=json_proto method=POST [19:44:49]POST find Content-Length [19:44:49]Host: 172.17.46.131:8080 [19:44:49]Content-Length: 677 [19:44:49]Content-Type: application/json [19:44:49] [19:44:49]POST finish read [19:44:49]Found Content-Length = 677 [19:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "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:44:49]execute_script... [19:44: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)412631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "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:44:49]POST & json_proto [19:44:49]process_json_proto [19:44:49]json parsed OK: [19:44:49]protocol is kg_v1.0 [19:44:49]action value=close_receipt [19:44:49]process_action close_receipt [19:44:49]cmd_close_receipt [19:44:49]MH_GetDate [19:44:49]Write to MH i2c: F0 00 00 F8 03 EA [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 09 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 09 00 F8 03 00 31 86 B7 67 7E 41 4F 65 3B [19:44:49]GetLastDocTimeStamp 1740080538 [19:44:49]current date 1740080689 [19:44:49]FM_GetShiftState [19:44:49]SAM_PROTO_GetShiftState [19:44:49]wFMCommunicate request_size=4 [19:44:49]MH_SAM_APDU [19:44:49]CAPDU: 80 13 01 00 [19:44:49]Write to MH i2c: E2 08 00 F9 03 80 13 01 00 00 00 00 00 79 [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:49]Read from MH i2c: E2 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 0E 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 0E 00 F9 03 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CB [19:44:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:44:49]wFMCommunicate OK [19:44:49]SAM_PROTO_GetShiftState done [19:44:49]FM_GetShiftState done [19:44:49]opened in 1740011697 [19:44:49]opened+sec_in_day 1740098097 [19:44:49]quantity*price = 20030 [19:44:49]sum+1 = 20031 [19:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 273 20.02.2025 19:44 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187472 ФПД: 212168994027270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T194450&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187472&fm=212168994027270&tin=02508201610067®Number=0000000000091857&sum=20000 [19:44:50]StoreToDocumentArchive [19:44:50]shift 648 fd 187472 [19:44:50]save to /storage/0648/doc_00187472 [19:44:50]save last doc name /storage/0648/doc_00187472 to /storage/kkm_last_doc_name [19:44:50]save OK [19:44:50]Clear old archive folders... [19:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:50]tlvbuf is 0203BBF0 [19:44:50]SAM_PROTO_ClearQueue [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 09 00 00 [19:44:50]Write to MH i2c: E2 08 00 06 04 80 09 00 00 00 00 00 00 7C [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]SAM_PROTO_ClearQueue done [19:44:50]KKMCreateOFDPacket [19:44:50]OFDProtocolAddRootSTLVToBuf [19:44:50]FM_MakeSignedData [19:44:50]FM_MakeSignedData [19:44:50]SAM_PROTO_SignData [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 01 02 [19:44:50]Write to MH i2c: E2 08 00 07 04 80 0D 01 02 00 00 00 00 84 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=255 [19:44:50]MH_SAM_APDU [19:44: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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 11 01 00 00 F4 03 04 00 32 86 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DC 02 00 35 04 06 00 C0 [19:44:50]Write to MH i2c: E2 02 01 08 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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 11 01 00 00 F4 03 04 00 32 86 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DC 02 00 35 04 06 00 C0 00 00 C9 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=10 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 02 02 05 F7 71 85 77 06 [19:44:50]Write to MH i2c: E2 0D 00 09 04 80 0D 02 02 05 00 F7 71 85 77 06 00 00 FB [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 03 02 [19:44:50]Write to MH i2c: E2 08 00 0A 04 80 0D 03 02 00 00 00 00 89 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:51]Read from MH i2c: E2 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 0B 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 0B 00 0A 04 00 6D E2 A2 DC 40 8A BD 09 90 00 E7 [19:44:51]RAPDU: 6D E2 A2 DC 40 8A BD 09 90 00 [19:44:51]wFMCommunicate OK [19:44:51]SAM_PROTO_SignData done [19:44:51]FM_MakeSignedData done [19:44:51]CreateOFDProtocolMessage [19:44:51]wFMCommunicate request_size=4 [19:44:51]MH_SAM_APDU [19:44:51]CAPDU: 80 11 00 00 [19:44:51]Write to MH i2c: E2 08 00 0B 04 80 11 00 00 00 00 00 00 89 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:51]Read from MH i2c: E2 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 17 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: E2 17 00 0B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DC [19:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:44:51]wFMCommunicate OK [19:44:51]CreateOFDProtocolMessage done [19:44:51]OFDSenderStorePacket 187472 [19:44:51]StoreOFDPacket docnum=187472 [19:44:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 05 52 07 01 D6 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 11 01 00 00 F4 03 04 00 32 86 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DC 02 00 35 04 06 00 C0 F7 71 85 77 06 6D E2 A2 DC 40 8A BD 09 [19:44:51]CheckFolder [19:44:51]dirname=/storage/ofd_packets [19:44:51]CheckFolder done [19:44:51]ProducePacketName [19:44:51]name=ofd_packets/00187472 [19:44:51]NVStorageSaveData ofd_packets/00187472 [19:44:51]File name is /storage/ofd_packets/00187472 [19:44:51]Write 301 bytes [19:44:51]NVStorageSaveData done [19:44:51]OFDSenderStorePacket done [19:44:51]KKMCreateOFDPacket done [19:44:51]NVStorageSaveData kkm_last_timestamp [19:44:51]File name is /storage/kkm_last_timestamp [19:44:51]Write 4 bytes [19:44:51]NVStorageSaveData done [19:44:51]ExternCall_PrintAddStr [19:44:51]wPrintStart [19:44:51]Write to MH i2c: 01 00 00 0C 04 10 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 FF 0F 25 [19:44:51]RasterBufferAndPrint [19:44:51]line Счет N : (1)412631 [19:44:51]line ИНН: 02508201610067 [19:44:51]line Контрольно-Кассовый Чек [19:44:51]line ПРОДАЖА [19:44:51]line ТРК (МРК, ГНК) : 32 [19:44:51]line Товар: 2710124130 [19:44:51]line Аи-92-К-2 [19:44:51]line 3.120 * 64.20 [19:44:51]line = 200.30 [19:44:51]line НДС 12% НСП 1% [19:44:51]line > о реализуемом товаре [19:44:51]line ОКРУГЛЕНИЕ: -0.30 [19:44:51]line ИТОГО: 200.00 [19:44:51]line Внесено: 200.00 [19:44:51]line СДАЧА: 0.00 [19:44:51]line НСП 1% : 1.77 [19:44:51]line НДС 12% : 21.27 [19:44:51]line Наличными: 200.00 [19:44:51]line Безнал.: 0.00 [19:44:51]line Место: АЗС № 92 "Партнер Нефть" [19:44:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:44:51]line СНО: Общий режим [19:44:51]line Чек 273 20.02.2025 19:44 [19:44:51]line Смена: 648 ФФД: 1.0 [19:44:51]line ЗНМ: 0300000118 [19:44:51]line РНМ: 0000000000091857 [19:44:51]line Версия ККМ: 001 [19:44:51]line ФМ: 0000000000871826 [19:44:51]line ФД: 187472 [19:44:51]line ФПД: 212168994027270 [19:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T194450&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187472&fm=212168994027270&tin=02508201610067®Number=0000000000091857&sum=20000 [19:44:51]written 0, free lines is 4095 [19:44:51]OFD Sender: Processing packet 187472 [packets to send 49, broken 48] [19:44:51]ProducePacketName [19:44:51]name=ofd_packets/00187472 [19:44:51]OFD Sender: To server: pG, [19:44:51]CommunicateWithHost lk.salyk.kg:30040 [19:44:51]ConnectInit lk.salyk.kg [19:44:51]Connected sock=9 [19:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 05 52 07 01 D6 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 4F 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 11 01 00 00 F4 03 04 00 32 86 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DC 02 00 35 04 06 00 C0 F7 71 85 77 06 6D E2 A2 DC 40 8A BD 09 [19:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CA A4 47 00 30 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 31 38 32 36 10 04 04 00 50 DC 02 00 F4 03 04 00 82 2C B7 67 B6 04 01 00 00 10 AA DF 1E 2C C7 89 37 [19:44:51]CommunicateWithHost err = 0 [19:44:51]CheckOFDResponse [19:44:51]1017 (14) - 77093643461234 [19:44:51]1041 (16) - 0000000000871826 [19:44:51]1040 (4) - 187472 [19:44:51]1012 (4) - 20.02.2025 13:22 [19:44:51]1206 (1) - 0 [19:44:51]OFD Sender: Remove packet 187472 [19:44:51]ProducePacketName [19:44:51]name=ofd_packets/00187472 [19:44:51]NVStorageDeleteData [19:44:51]Write to MH i2c: 01 00 00 37 04 3B [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 37 04 00 00 00 00 00 E0 0C 2E [19:44:51]RasterBufferAndPrint [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]written 0, free lines is 3302 [19:44:51]MH_Cut [19:44:51]Write to MH i2c: D1 01 00 3E 04 01 14 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 01 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 01 00 3E 04 00 13 [19:44:51]Write to MH i2c: 01 00 00 3F 04 43 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:52]OFD Sender: No OFD packet to send [19:44:52]*** Cut start [19:44:52]*** Partial cut [19:44:52]*** CUTSNS_PIN = 1 [19:44:52]*** CUTSNS_PIN = 0 [19:44:52]*** Brake cut motor [19:44:53]Read from MH i2c: 01 [19:44:53]MH_I2C_Read... [19:44:53]*** Stop cut motor [19:44:53]*** Cut end [19:44:53]Read from MH i2c: 01 07 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [19:44:53]process_action close_receipt done [19:44:53]requested_data is exist [19:44:53]produce_requested_data [19:44:53]requested_item fm.sn is exist - process it [19:44:53]wFMCommunicate request_size=4 [19:44:53]MH_SAM_APDU [19:44:53]CAPDU: 80 11 00 00 [19:44:53]Write to MH i2c: E2 08 00 40 04 80 11 00 00 00 00 00 00 BE [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:53]Read from MH i2c: E2 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 17 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 17 00 40 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [19:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:44:53]wFMCommunicate OK [19:44:53]requested_item fd.num is exist - process it [19:44:53]SAM_PROTO_GetFieldsCounters [19:44:53]wFMCommunicate request_size=4 [19:44:53]MH_SAM_APDU [19:44:53]CAPDU: 80 13 00 00 [19:44:53]Write to MH i2c: E2 08 00 41 04 80 13 00 00 00 00 00 00 C1 [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:53]Read from MH i2c: E2 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 62 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 62 00 41 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 50 DC 02 00 0E 04 04 00 88 02 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 D5 [19:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 50 DC 02 00 0E 04 04 00 88 02 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:44:53]wFMCommunicate OK [19:44:53]SAM_PROTO_GetFieldsCounters done [19:44:53]requested_item shift.num is exist - process it [19:44:53]requested_item shift.opened is exist - process it [19:44:53]req_shift_opened [19:44:53]FM_GetShiftState [19:44:53]SAM_PROTO_GetShiftState [19:44:53]wFMCommunicate request_size=4 [19:44:53]MH_SAM_APDU [19:44:53]CAPDU: 80 13 01 00 [19:44:53]Write to MH i2c: E2 08 00 42 04 80 13 01 00 00 00 00 00 C3 [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 [19:44:53]MH_I2C_Read... [19:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:53]Read from MH i2c: E2 0E 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 0E 00 42 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 15 [19:44:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:44:53]wFMCommunicate OK [19:44:53]SAM_PROTO_GetShiftState done [19:44:53]FM_GetShiftState done [19:44:53]req_shift_opened done [19:44:53]requested_item shift.open_date is exist - process it [19:44:53]req_shift_open_date [19:44:53]req_shift_open_date done [19:44:53]produce_requested_data done [19:44:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187472,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:44:53]process_action_free close_receipt [19:44:53]json_value_free [19:44:53]json_value_free done [19:44:53]process_json_proto returns [19:44:53]Send response to host [19:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187472,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:44:53]free response buf [19:44:53]execute_script done [19:44:53]execute_script returns [19:44:53]free content buf [19:44:53]Sock 7.Close socket [19:44:53]Sock 7.Thread stoped [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:09]accept exits with 10 [19:52:09]New connection [19:52:09]New thread 3067223396 created [19:52:09]Thread 3067080036 joined [19:52:09]Waiting for new connection... [19:52:09] Sock 10.Parse request [19:52:09]Sock 10.Check first char [19:52:09]Sock 10.First char is OK [19:52:09]request: POST /json_proto HTTP/1.0 [19:52:09]Method: POST [19:52:09]URL: /json_proto [19:52:09]Method is POST - this is cgi request [19:52:09]url: /json_proto [19:52:09]query_string will be loaded in cgi processing [19:52:09]execute_cgi json_proto POST (null) [19:52:09]execute_cgi path=json_proto method=POST [19:52:09]POST find Content-Length [19:52:09]Host: 172.17.46.131:8080 [19:52:09]Content-Length: 677 [19:52:09]Content-Type: application/json [19:52:09] [19:52:09]POST finish read [19:52:09]Found Content-Length = 677 [19:52:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:52:09]execute_script... [19:52:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:52:09]POST & json_proto [19:52:09]process_json_proto [19:52:09]json parsed OK: [19:52:09]protocol is kg_v1.0 [19:52:09]action value=close_receipt [19:52:09]process_action close_receipt [19:52:09]cmd_close_receipt [19:52:09]MH_GetDate [19:52:09]Write to MH i2c: F0 00 00 43 04 36 [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: F0 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: F0 09 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: F0 09 00 43 04 00 E9 87 B7 67 7E 41 4F 65 40 [19:52:09]GetLastDocTimeStamp 1740080690 [19:52:09]current date 1740081129 [19:52:09]FM_GetShiftState [19:52:09]SAM_PROTO_GetShiftState [19:52:09]wFMCommunicate request_size=4 [19:52:09]MH_SAM_APDU [19:52:09]CAPDU: 80 13 01 00 [19:52:09]Write to MH i2c: E2 08 00 44 04 80 13 01 00 00 00 00 00 C5 [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:09]Read from MH i2c: E2 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 0E 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 0E 00 44 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 17 [19:52:09]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:52:09]wFMCommunicate OK [19:52:09]SAM_PROTO_GetShiftState done [19:52:09]FM_GetShiftState done [19:52:09]opened in 1740011697 [19:52:09]opened+sec_in_day 1740098097 [19:52:09]quantity*price = 50011 [19:52:09]sum+1 = 50013 [19:52:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 274 20.02.2025 19:52 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187473 ФПД: 33384964078335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T195209&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187473&fm=33384964078335&tin=02508201610067®Number=0000000000091857&sum=50000 [19:52:10]StoreToDocumentArchive [19:52:10]shift 648 fd 187473 [19:52:10]save to /storage/0648/doc_00187473 [19:52:10]save last doc name /storage/0648/doc_00187473 to /storage/kkm_last_doc_name [19:52:10]save OK [19:52:10]Clear old archive folders... [19:52:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:10]tlvbuf is 0202A730 [19:52:10]SAM_PROTO_ClearQueue [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 09 00 00 [19:52:10]Write to MH i2c: E2 08 00 51 04 80 09 00 00 00 00 00 00 C7 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [19:52:10]RAPDU: 90 00 [19:52:10]wFMCommunicate OK [19:52:10]SAM_PROTO_ClearQueue done [19:52:10]KKMCreateOFDPacket [19:52:10]OFDProtocolAddRootSTLVToBuf [19:52:10]FM_MakeSignedData [19:52:10]FM_MakeSignedData [19:52:10]SAM_PROTO_SignData [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 0D 01 02 [19:52:10]Write to MH i2c: E2 08 00 52 04 80 0D 01 02 00 00 00 00 CF [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [19:52:10]RAPDU: 90 00 [19:52:10]wFMCommunicate OK [19:52:10]wFMCommunicate request_size=255 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 E9 87 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DC 02 00 35 04 06 00 1E [19:52:10]Write to MH i2c: E2 02 01 53 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 E9 87 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DC 02 00 35 04 06 00 1E 00 00 E0 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [19:52:10]RAPDU: 90 00 [19:52:10]wFMCommunicate OK [19:52:10]wFMCommunicate request_size=10 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 0D 02 02 05 5D 0A EC BA FF [19:52:10]Write to MH i2c: E2 0D 00 54 04 80 0D 02 02 05 00 5D 0A EC BA FF 00 00 E8 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [19:52:10]RAPDU: 90 00 [19:52:10]wFMCommunicate OK [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 0D 03 02 [19:52:10]Write to MH i2c: E2 08 00 55 04 80 0D 03 02 00 00 00 00 D4 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 0B 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 0B 00 55 04 00 EA 01 EF B1 36 F2 24 CE 90 00 7A [19:52:10]RAPDU: EA 01 EF B1 36 F2 24 CE 90 00 [19:52:10]wFMCommunicate OK [19:52:10]SAM_PROTO_SignData done [19:52:10]FM_MakeSignedData done [19:52:10]CreateOFDProtocolMessage [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 11 00 00 [19:52:10]Write to MH i2c: E2 08 00 56 04 80 11 00 00 00 00 00 00 D4 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 17 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 17 00 56 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [19:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:52:10]wFMCommunicate OK [19:52:10]CreateOFDProtocolMessage done [19:52:10]OFDSenderStorePacket 187473 [19:52:10]StoreOFDPacket docnum=187473 [19:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3F 38 07 01 B6 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 E9 87 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DC 02 00 35 04 06 00 1E 5D 0A EC BA FF EA 01 EF B1 36 F2 24 CE [19:52:10]CheckFolder [19:52:10]dirname=/storage/ofd_packets [19:52:10]CheckFolder done [19:52:10]ProducePacketName [19:52:10]name=ofd_packets/00187473 [19:52:10]NVStorageSaveData ofd_packets/00187473 [19:52:10]File name is /storage/ofd_packets/00187473 [19:52:10]Write 301 bytes [19:52:10]NVStorageSaveData done [19:52:10]OFDSenderStorePacket done [19:52:10]KKMCreateOFDPacket done [19:52:10]NVStorageSaveData kkm_last_timestamp [19:52:10]File name is /storage/kkm_last_timestamp [19:52:10]Write 4 bytes [19:52:10]NVStorageSaveData done [19:52:10]ExternCall_PrintAddStr [19:52:10]wPrintStart [19:52:10]Write to MH i2c: 01 00 00 57 04 5B [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 07 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 07 00 57 04 00 00 00 00 00 FF 0F 70 [19:52:10]RasterBufferAndPrint [19:52:10]line Счет N : (1)412632 [19:52:10]line ИНН: 02508201610067 [19:52:10]line Контрольно-Кассовый Чек [19:52:10]line ПРОДАЖА [19:52:10]line ТРК (МРК, ГНК) : 42 [19:52:10]line Товар: 2710124130 [19:52:10]line Аи-92-К-2 [19:52:10]line 7.790 * 64.20 [19:52:10]line = 500.12 [19:52:10]line НДС 12% НСП 1% [19:52:10]line > о реализуемом товаре [19:52:10]line ОКРУГЛЕНИЕ: -0.12 [19:52:10]line ИТОГО: 500.00 [19:52:10]line Внесено: 500.00 [19:52:10]line СДАЧА: 0.00 [19:52:10]line НСП 1% : 4.43 [19:52:10]line НДС 12% : 53.11 [19:52:10]line Наличными: 500.00 [19:52:10]line Безнал.: 0.00 [19:52:10]line Место: АЗС № 92 "Партнер Нефть" [19:52:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:52:10]line СНО: Общий режим [19:52:10]line Чек 274 20.02.2025 19:52 [19:52:10]line Смена: 648 ФФД: 1.0 [19:52:10]line ЗНМ: 0300000118 [19:52:10]line РНМ: 0000000000091857 [19:52:10]line Версия ККМ: 001 [19:52:10]line ФМ: 0000000000871826 [19:52:10]line ФД: 187473 [19:52:10]line ФПД: 33384964078335 [19:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T195209&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187473&fm=33384964078335&tin=02508201610067®Number=0000000000091857&sum=50000 [19:52:11]written 0, free lines is 4095 [19:52:11]OFD Sender: Processing packet 187473 [packets to send 49, broken 48] [19:52:11]ProducePacketName [19:52:11]name=ofd_packets/00187473 [19:52:11]OFD Sender: To server: pG, [19:52:11]CommunicateWithHost lk.salyk.kg:30040 [19:52:11]ConnectInit lk.salyk.kg [19:52:11]Connected sock=9 [19:52:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3F 38 07 01 B6 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 E9 87 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DC 02 00 35 04 06 00 1E 5D 0A EC BA FF EA 01 EF B1 36 F2 24 CE [19:52:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2B 3B 47 00 0F 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 DC 02 00 F4 03 04 00 39 2E B7 67 B6 04 01 00 00 C1 4C 23 02 97 59 32 37 [19:52:11]CommunicateWithHost err = 0 [19:52:11]CheckOFDResponse [19:52:11]1017 (14) - 77093643461234 [19:52:11]1041 (16) - 0000000000871826 [19:52:11]1040 (4) - 187473 [19:52:11]1012 (4) - 20.02.2025 13:29 [19:52:11]1206 (1) - 0 [19:52:11]OFD Sender: Remove packet 187473 [19:52:11]ProducePacketName [19:52:11]name=ofd_packets/00187473 [19:52:11]NVStorageDeleteData [19:52:11]Write to MH i2c: 01 00 00 82 04 86 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 07 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 DF 0C 78 [19:52:11]RasterBufferAndPrint [19:52:11]line [19:52:11]line [19:52:11]line [19:52:11]line [19:52:11]line [19:52:11]written 0, free lines is 3303 [19:52:11]MH_Cut [19:52:11]Write to MH i2c: D1 01 00 89 04 01 5F [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: D1 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: D1 01 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: D1 01 00 89 04 00 5E [19:52:11]Write to MH i2c: 01 00 00 8A 04 8E [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:12]OFD Sender: No OFD packet to send [19:52:12]*** Cut start [19:52:12]*** Partial cut [19:52:12]*** CUTSNS_PIN = 1 [19:52:12]*** CUTSNS_PIN = 0 [19:52:12]*** Brake cut motor [19:52:13]Read from MH i2c: 01 [19:52:13]MH_I2C_Read... [19:52:13]*** Stop cut motor [19:52:13]*** Cut end [19:52:13]Read from MH i2c: 01 07 00 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: 01 07 00 8A 04 00 00 00 00 00 FF 0F A3 [19:52:13]process_action close_receipt done [19:52:13]requested_data is exist [19:52:13]produce_requested_data [19:52:13]requested_item fm.sn is exist - process it [19:52:13]wFMCommunicate request_size=4 [19:52:13]MH_SAM_APDU [19:52:13]CAPDU: 80 11 00 00 [19:52:13]Write to MH i2c: E2 08 00 8B 04 80 11 00 00 00 00 00 00 09 [19:52:13]Write i2c OK [19:52:13]MH_I2C_Read... [19:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:13]Read from MH i2c: E2 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 17 00 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 17 00 8B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [19:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:52:13]wFMCommunicate OK [19:52:13]requested_item fd.num is exist - process it [19:52:13]SAM_PROTO_GetFieldsCounters [19:52:13]wFMCommunicate request_size=4 [19:52:13]MH_SAM_APDU [19:52:13]CAPDU: 80 13 00 00 [19:52:13]Write to MH i2c: E2 08 00 8C 04 80 13 00 00 00 00 00 00 0C [19:52:13]Write i2c OK [19:52:13]MH_I2C_Read... [19:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:13]Read from MH i2c: E2 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 62 00 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 62 00 8C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 51 DC 02 00 0E 04 04 00 88 02 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 24 [19:52:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 51 DC 02 00 0E 04 04 00 88 02 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:52:13]wFMCommunicate OK [19:52:13]SAM_PROTO_GetFieldsCounters done [19:52:13]requested_item shift.num is exist - process it [19:52:13]requested_item shift.opened is exist - process it [19:52:13]req_shift_opened [19:52:13]FM_GetShiftState [19:52:13]SAM_PROTO_GetShiftState [19:52:13]wFMCommunicate request_size=4 [19:52:13]MH_SAM_APDU [19:52:13]CAPDU: 80 13 01 00 [19:52:13]Write to MH i2c: E2 08 00 8D 04 80 13 01 00 00 00 00 00 0E [19:52:13]Write i2c OK [19:52:13]MH_I2C_Read... [19:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:13]Read from MH i2c: E2 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 0E 00 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 0E 00 8D 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 60 [19:52:13]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:52:13]wFMCommunicate OK [19:52:13]SAM_PROTO_GetShiftState done [19:52:13]FM_GetShiftState done [19:52:13]req_shift_opened done [19:52:13]requested_item shift.open_date is exist - process it [19:52:13]req_shift_open_date [19:52:13]req_shift_open_date done [19:52:13]produce_requested_data done [19:52:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187473,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:52:13]process_action_free close_receipt [19:52:13]json_value_free [19:52:13]json_value_free done [19:52:13]process_json_proto returns [19:52:13]Send response to host [19:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187473,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:52:13]free response buf [19:52:13]execute_script done [19:52:13]execute_script returns [19:52:13]free content buf [19:52:13]Sock 10.Close socket [19:52:13]Sock 10.Thread stoped [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:31]accept exits with 7 [19:53:31]New connection [19:53:31]New thread 3067080036 created [19:53:31]Thread 3067223396 joined [19:53:31]Waiting for new connection... [19:53:31] Sock 7.Parse request [19:53:31]Sock 7.Check first char [19:53:31]Sock 7.First char is OK [19:53:31]request: POST /json_proto HTTP/1.0 [19:53:31]Method: POST [19:53:31]URL: /json_proto [19:53:31]Method is POST - this is cgi request [19:53:31]url: /json_proto [19:53:31]query_string will be loaded in cgi processing [19:53:31]execute_cgi json_proto POST (null) [19:53:31]execute_cgi path=json_proto method=POST [19:53:31]POST find Content-Length [19:53:31]Host: 172.17.46.131:8080 [19:53:31]Content-Length: 677 [19:53:31]Content-Type: application/json [19:53:31] [19:53:31]POST finish read [19:53:31]Found Content-Length = 677 [19:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "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" ] } } [19:53:31]execute_script... [19:53:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "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" ] } } [19:53:31]POST & json_proto [19:53:31]process_json_proto [19:53:31]json parsed OK: [19:53:31]protocol is kg_v1.0 [19:53:31]action value=close_receipt [19:53:31]process_action close_receipt [19:53:31]cmd_close_receipt [19:53:31]MH_GetDate [19:53:31]Write to MH i2c: F0 00 00 8E 04 81 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: F0 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: F0 09 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: F0 09 00 8E 04 00 3C 88 B7 67 7E 41 4F 65 DF [19:53:31]GetLastDocTimeStamp 1740081129 [19:53:31]current date 1740081212 [19:53:31]FM_GetShiftState [19:53:31]SAM_PROTO_GetShiftState [19:53:31]wFMCommunicate request_size=4 [19:53:31]MH_SAM_APDU [19:53:31]CAPDU: 80 13 01 00 [19:53:31]Write to MH i2c: E2 08 00 8F 04 80 13 01 00 00 00 00 00 10 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:31]Read from MH i2c: E2 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 0E 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 0E 00 8F 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 62 [19:53:31]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:53:31]wFMCommunicate OK [19:53:31]SAM_PROTO_GetShiftState done [19:53:31]FM_GetShiftState done [19:53:31]opened in 1740011697 [19:53:31]opened+sec_in_day 1740098097 [19:53:31]quantity*price = 60027 [19:53:31]sum+1 = 60028 [19:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 275 20.02.2025 19:53 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187474 ФПД: 1621764410072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T195332&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187474&fm=1621764410072&tin=02508201610067®Number=0000000000091857&sum=60000 [19:53:32]StoreToDocumentArchive [19:53:32]shift 648 fd 187474 [19:53:32]save to /storage/0648/doc_00187474 [19:53:32]save last doc name /storage/0648/doc_00187474 to /storage/kkm_last_doc_name [19:53:32]save OK [19:53:32]Clear old archive folders... [19:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:32]tlvbuf is 02045820 [19:53:32]SAM_PROTO_ClearQueue [19:53:32]wFMCommunicate request_size=4 [19:53:32]MH_SAM_APDU [19:53:32]CAPDU: 80 09 00 00 [19:53:32]Write to MH i2c: E2 08 00 9C 04 80 09 00 00 00 00 00 00 12 [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:33]Read from MH i2c: E2 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 9C 04 00 90 00 14 [19:53:33]RAPDU: 90 00 [19:53:33]wFMCommunicate OK [19:53:33]SAM_PROTO_ClearQueue done [19:53:33]KKMCreateOFDPacket [19:53:33]OFDProtocolAddRootSTLVToBuf [19:53:33]FM_MakeSignedData [19:53:33]FM_MakeSignedData [19:53:33]SAM_PROTO_SignData [19:53:33]wFMCommunicate request_size=4 [19:53:33]MH_SAM_APDU [19:53:33]CAPDU: 80 0D 01 02 [19:53:33]Write to MH i2c: E2 08 00 9D 04 80 0D 01 02 00 00 00 00 1A [19:53:33]Write i2c OK [19:53:33]MH_I2C_Read... [19:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:33]Read from MH i2c: E2 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 9D 04 00 90 00 15 [19:53:33]RAPDU: 90 00 [19:53:33]wFMCommunicate OK [19:53:33]wFMCommunicate request_size=255 [19:53:33]MH_SAM_APDU [19:53: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 3C 88 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DC 02 00 35 04 06 00 01 [19:53:33]Write to MH i2c: E2 02 01 9E 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 3C 88 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DC 02 00 35 04 06 00 01 00 00 BA [19:53:33]Write i2c OK [19:53:33]MH_I2C_Read... [19:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:33]Read from MH i2c: E2 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 9E 04 00 90 00 16 [19:53:33]RAPDU: 90 00 [19:53:33]wFMCommunicate OK [19:53:33]wFMCommunicate request_size=10 [19:53:33]MH_SAM_APDU [19:53:33]CAPDU: 80 0D 02 02 05 79 98 B1 0A D8 [19:53:33]Write to MH i2c: E2 0D 00 9F 04 80 0D 02 02 05 00 79 98 B1 0A D8 00 00 CB [19:53:33]Write i2c OK [19:53:33]MH_I2C_Read... [19:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:33]Read from MH i2c: E2 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 9F 04 00 90 00 17 [19:53:33]RAPDU: 90 00 [19:53:33]wFMCommunicate OK [19:53:33]wFMCommunicate request_size=4 [19:53:33]MH_SAM_APDU [19:53:33]CAPDU: 80 0D 03 02 [19:53:33]Write to MH i2c: E2 08 00 A0 04 80 0D 03 02 00 00 00 00 1F [19:53:33]Write i2c OK [19:53:33]MH_I2C_Read... [19:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:33]Read from MH i2c: E2 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 0B 00 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 0B 00 A0 04 00 C4 59 DF C6 4F 8C 72 97 90 00 C6 [19:53:33]RAPDU: C4 59 DF C6 4F 8C 72 97 90 00 [19:53:33]wFMCommunicate OK [19:53:33]SAM_PROTO_SignData done [19:53:33]FM_MakeSignedData done [19:53:33]CreateOFDProtocolMessage [19:53:33]wFMCommunicate request_size=4 [19:53:33]MH_SAM_APDU [19:53:33]CAPDU: 80 11 00 00 [19:53:33]Write to MH i2c: E2 08 00 A1 04 80 11 00 00 00 00 00 00 1F [19:53:33]Write i2c OK [19:53:33]MH_I2C_Read... [19:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:33]Read from MH i2c: E2 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 17 00 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 17 00 A1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [19:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:53:33]wFMCommunicate OK [19:53:33]CreateOFDProtocolMessage done [19:53:33]OFDSenderStorePacket 187474 [19:53:33]StoreOFDPacket docnum=187474 [19:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1E FE 07 01 F1 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 3C 88 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DC 02 00 35 04 06 00 01 79 98 B1 0A D8 C4 59 DF C6 4F 8C 72 97 [19:53:33]CheckFolder [19:53:33]dirname=/storage/ofd_packets [19:53:33]CheckFolder done [19:53:33]ProducePacketName [19:53:33]name=ofd_packets/00187474 [19:53:33]NVStorageSaveData ofd_packets/00187474 [19:53:33]File name is /storage/ofd_packets/00187474 [19:53:33]Write 301 bytes [19:53:33]NVStorageSaveData done [19:53:33]OFDSenderStorePacket done [19:53:33]KKMCreateOFDPacket done [19:53:33]NVStorageSaveData kkm_last_timestamp [19:53:33]File name is /storage/kkm_last_timestamp [19:53:33]Write 4 bytes [19:53:33]NVStorageSaveData done [19:53:33]ExternCall_PrintAddStr [19:53:33]wPrintStart [19:53:33]Write to MH i2c: 01 00 00 A2 04 A6 [19:53:33]Write i2c OK [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: 01 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: 01 07 00 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 FF 0F BB [19:53:33]RasterBufferAndPrint [19:53:33]line Счет N : (1)412633 [19:53:33]line ИНН: 02508201610067 [19:53:33]line Контрольно-Кассовый Чек [19:53:33]line ПРОДАЖА [19:53:33]line ТРК (МРК, ГНК) : 32 [19:53:33]line Товар: 2710124130 [19:53:33]line Аи-92-К-2 [19:53:33]line 9.350 * 64.20 [19:53:33]line = 600.27 [19:53:33]line НДС 12% НСП 1% [19:53:33]line > о реализуемом товаре [19:53:33]line ОКРУГЛЕНИЕ: -0.27 [19:53:33]line ИТОГО: 600.00 [19:53:33]line Внесено: 600.00 [19:53:33]line СДАЧА: 0.00 [19:53:33]line НСП 1% : 5.31 [19:53:33]line НДС 12% : 63.74 [19:53:33]line Наличными: 600.00 [19:53:33]line Безнал.: 0.00 [19:53:33]line Место: АЗС № 92 "Партнер Нефть" [19:53:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:53:33]line СНО: Общий режим [19:53:33]line Чек 275 20.02.2025 19:53 [19:53:33]line Смена: 648 ФФД: 1.0 [19:53:33]line ЗНМ: 0300000118 [19:53:33]line РНМ: 0000000000091857 [19:53:33]line Версия ККМ: 001 [19:53:33]line ФМ: 0000000000871826 [19:53:33]line ФД: 187474 [19:53:33]line ФПД: 1621764410072 [19:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T195332&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187474&fm=1621764410072&tin=02508201610067®Number=0000000000091857&sum=60000 [19:53:33]OFD Sender: Processing packet 187474 [packets to send 49, broken 48] [19:53:33]ProducePacketName [19:53:33]name=ofd_packets/00187474 [19:53:33]OFD Sender: To server: pG, [19:53:33]CommunicateWithHost lk.salyk.kg:30040 [19:53:33]ConnectInit lk.salyk.kg [19:53:33]written 0, free lines is 4095 [19:53:33]Connected sock=10 [19:53:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1E FE 07 01 F1 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 3C 88 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DC 02 00 35 04 06 00 01 79 98 B1 0A D8 C4 59 DF C6 4F 8C 72 97 [19:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7D FB 47 00 37 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 DC 02 00 F4 03 04 00 8C 2E B7 67 B6 04 01 00 00 92 BE ED 16 CD 0E 56 37 [19:53:34]CommunicateWithHost err = 0 [19:53:34]CheckOFDResponse [19:53:34]1017 (14) - 77093643461234 [19:53:34]1041 (16) - 0000000000871826 [19:53:34]1040 (4) - 187474 [19:53:34]1012 (4) - 20.02.2025 13:30 [19:53:34]1206 (1) - 0 [19:53:34]OFD Sender: Remove packet 187474 [19:53:34]ProducePacketName [19:53:34]name=ofd_packets/00187474 [19:53:34]NVStorageDeleteData [19:53:34]Write to MH i2c: 01 00 00 CD 04 D1 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 07 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 07 00 CD 04 00 00 00 00 00 DD 0C C1 [19:53:34]RasterBufferAndPrint [19:53:34]line [19:53:34]line [19:53:34]line [19:53:34]line [19:53:34]line [19:53:34]written 0, free lines is 3299 [19:53:34]MH_Cut [19:53:34]Write to MH i2c: D1 01 00 D4 04 01 AA [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: D1 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: D1 01 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: D1 01 00 D4 04 00 A9 [19:53:34]Write to MH i2c: 01 00 00 D5 04 D9 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]OFD Sender: No OFD packet to send [19:53:34]*** Cut start [19:53:34]*** Partial cut [19:53:34]*** CUTSNS_PIN = 1 [19:53:35]*** CUTSNS_PIN = 0 [19:53:35]*** Brake cut motor [19:53:35]Read from MH i2c: 01 [19:53:35]MH_I2C_Read... [19:53:35]*** Stop cut motor [19:53:35]*** Cut end [19:53:35]Read from MH i2c: 01 07 00 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: 01 07 00 D5 04 00 00 00 00 00 FF 0F EE [19:53:35]process_action close_receipt done [19:53:35]requested_data is exist [19:53:35]produce_requested_data [19:53:35]requested_item fm.sn is exist - process it [19:53:35]wFMCommunicate request_size=4 [19:53:35]MH_SAM_APDU [19:53:35]CAPDU: 80 11 00 00 [19:53:35]Write to MH i2c: E2 08 00 D6 04 80 11 00 00 00 00 00 00 54 [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:35]Read from MH i2c: E2 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: E2 17 00 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: E2 17 00 D6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [19:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:53:35]wFMCommunicate OK [19:53:35]requested_item fd.num is exist - process it [19:53:35]SAM_PROTO_GetFieldsCounters [19:53:35]wFMCommunicate request_size=4 [19:53:35]MH_SAM_APDU [19:53:35]CAPDU: 80 13 00 00 [19:53:35]Write to MH i2c: E2 08 00 D7 04 80 13 00 00 00 00 00 00 57 [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:35]Read from MH i2c: E2 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: E2 62 00 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: E2 62 00 D7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 52 DC 02 00 0E 04 04 00 88 02 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 73 [19:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 52 DC 02 00 0E 04 04 00 88 02 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:53:35]wFMCommunicate OK [19:53:35]SAM_PROTO_GetFieldsCounters done [19:53:35]requested_item shift.num is exist - process it [19:53:35]requested_item shift.opened is exist - process it [19:53:35]req_shift_opened [19:53:35]FM_GetShiftState [19:53:35]SAM_PROTO_GetShiftState [19:53:35]wFMCommunicate request_size=4 [19:53:35]MH_SAM_APDU [19:53:35]CAPDU: 80 13 01 00 [19:53:35]Write to MH i2c: E2 08 00 D8 04 80 13 01 00 00 00 00 00 59 [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:35]Read from MH i2c: E2 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: E2 0E 00 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: E2 0E 00 D8 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AB [19:53:35]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:53:35]wFMCommunicate OK [19:53:35]SAM_PROTO_GetShiftState done [19:53:35]FM_GetShiftState done [19:53:35]req_shift_opened done [19:53:35]requested_item shift.open_date is exist - process it [19:53:35]req_shift_open_date [19:53:35]req_shift_open_date done [19:53:35]produce_requested_data done [19:53:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187474,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:53:35]process_action_free close_receipt [19:53:35]json_value_free [19:53:35]json_value_free done [19:53:35]process_json_proto returns [19:53:35]Send response to host [19:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187474,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:53:35]free response buf [19:53:35]execute_script done [19:53:35]execute_script returns [19:53:35]free content buf [19:53:35]Sock 7.Close socket [19:53:35]Sock 7.Thread stoped [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:43]accept exits with 9 [19:54:43]New connection [19:54:43]New thread 3067223396 created [19:54:43]Thread 3067080036 joined [19:54:43]Waiting for new connection... [19:54:43] Sock 9.Parse request [19:54:43]Sock 9.Check first char [19:54:43]Sock 9.First char is OK [19:54:43]request: POST /json_proto HTTP/1.0 [19:54:43]Method: POST [19:54:43]URL: /json_proto [19:54:43]Method is POST - this is cgi request [19:54:43]url: /json_proto [19:54:43]query_string will be loaded in cgi processing [19:54:43]execute_cgi json_proto POST (null) [19:54:43]execute_cgi path=json_proto method=POST [19:54:43]POST find Content-Length [19:54:43]Host: 172.17.46.131:8080 [19:54:43]Content-Length: 678 [19:54:43]Content-Type: application/json [19:54:43] [19:54:43]POST finish read [19:54:43]Found Content-Length = 678 [19:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "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" ] } } [19:54:43]execute_script... [19: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)412634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "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" ] } } [19:54:43]POST & json_proto [19:54:43]process_json_proto [19:54:43]json parsed OK: [19:54:43]protocol is kg_v1.0 [19:54:43]action value=close_receipt [19:54:43]process_action close_receipt [19:54:43]cmd_close_receipt [19:54:43]MH_GetDate [19:54:43]Write to MH i2c: F0 00 00 D9 04 CC [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: F0 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: F0 09 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: F0 09 00 D9 04 00 84 88 B7 67 7E 41 4F 65 72 [19:54:43]GetLastDocTimeStamp 1740081212 [19:54:43]current date 1740081284 [19:54:43]FM_GetShiftState [19:54:43]SAM_PROTO_GetShiftState [19:54:43]wFMCommunicate request_size=4 [19:54:43]MH_SAM_APDU [19:54:43]CAPDU: 80 13 01 00 [19:54:43]Write to MH i2c: E2 08 00 DA 04 80 13 01 00 00 00 00 00 5B [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:43]Read from MH i2c: E2 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 0E 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 0E 00 DA 04 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AD [19:54:43]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:54:43]wFMCommunicate OK [19:54:43]SAM_PROTO_GetShiftState done [19:54:43]FM_GetShiftState done [19:54:43]opened in 1740011697 [19:54:43]opened+sec_in_day 1740098097 [19:54:43]quantity*price = 250034 [19:54:43]sum+1 = 250035 [19:54:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 276 20.02.2025 19:54 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187475 ФПД: 211165230070491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T195444&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187475&fm=211165230070491&tin=02508201610067®Number=0000000000091857&sum=250000 [19:54:44]StoreToDocumentArchive [19:54:44]shift 648 fd 187475 [19:54:44]save to /storage/0648/doc_00187475 [19:54:44]save last doc name /storage/0648/doc_00187475 to /storage/kkm_last_doc_name [19:54:44]save OK [19:54:44]Clear old archive folders... [19:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:44]tlvbuf is 020297E0 [19:54:44]SAM_PROTO_ClearQueue [19:54:44]wFMCommunicate request_size=4 [19:54:44]MH_SAM_APDU [19:54:44]CAPDU: 80 09 00 00 [19:54:44]Write to MH i2c: E2 08 00 E7 04 80 09 00 00 00 00 00 00 5D [19:54:44]Write i2c OK [19:54:44]MH_I2C_Read... [19:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:44]Read from MH i2c: E2 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: E2 03 00 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: E2 03 00 E7 04 00 90 00 5F [19:54:44]RAPDU: 90 00 [19:54:44]wFMCommunicate OK [19:54:44]SAM_PROTO_ClearQueue done [19:54:44]KKMCreateOFDPacket [19:54:44]OFDProtocolAddRootSTLVToBuf [19:54:44]FM_MakeSignedData [19:54:44]FM_MakeSignedData [19:54:44]SAM_PROTO_SignData [19:54:44]wFMCommunicate request_size=4 [19:54:44]MH_SAM_APDU [19:54:44]CAPDU: 80 0D 01 02 [19:54:44]Write to MH i2c: E2 08 00 E8 04 80 0D 01 02 00 00 00 00 65 [19:54:44]Write i2c OK [19:54:44]MH_I2C_Read... [19:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:44]Read from MH i2c: E2 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: E2 03 00 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: E2 03 00 E8 04 00 90 00 60 [19:54:44]RAPDU: 90 00 [19:54:44]wFMCommunicate OK [19:54:44]wFMCommunicate request_size=255 [19:54:44]MH_SAM_APDU [19: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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 14 01 00 00 F4 03 04 00 84 88 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DC 02 00 35 04 06 00 C0 0D BC 86 [19:54:44]Write to MH i2c: E2 02 01 E9 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 14 01 00 00 F4 03 04 00 84 88 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DC 02 00 35 04 06 00 C0 0D BC 86 00 00 6D [19:54:44]Write i2c OK [19:54:44]MH_I2C_Read... [19:54:44]OFD Sender: No OFD packet to send [19:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:44]Read from MH i2c: E2 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: E2 03 00 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: E2 03 00 E9 04 00 90 00 61 [19:54:44]RAPDU: 90 00 [19:54:44]wFMCommunicate OK [19:54:44]wFMCommunicate request_size=7 [19:54:44]MH_SAM_APDU [19:54:44]CAPDU: 80 0D 02 02 02 FA DB [19:54:44]Write to MH i2c: E2 0A 00 EA 04 80 0D 02 02 02 00 FA DB 00 00 41 [19:54:44]Write i2c OK [19:54:44]MH_I2C_Read... [19:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:44]Read from MH i2c: E2 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: E2 03 00 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: E2 03 00 EA 04 00 90 00 62 [19:54:44]RAPDU: 90 00 [19:54:44]wFMCommunicate OK [19:54:44]wFMCommunicate request_size=4 [19:54:44]MH_SAM_APDU [19:54:44]CAPDU: 80 0D 03 02 [19:54:44]Write to MH i2c: E2 08 00 EB 04 80 0D 03 02 00 00 00 00 6A [19:54:44]Write i2c OK [19:54:44]MH_I2C_Read... [19:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:44]Read from MH i2c: E2 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: E2 0B 00 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: E2 0B 00 EB 04 00 2B 07 04 5D 6C 81 3F 1B 90 00 45 [19:54:45]RAPDU: 2B 07 04 5D 6C 81 3F 1B 90 00 [19:54:45]wFMCommunicate OK [19:54:45]SAM_PROTO_SignData done [19:54:45]FM_MakeSignedData done [19:54:45]CreateOFDProtocolMessage [19:54:45]wFMCommunicate request_size=4 [19:54:45]MH_SAM_APDU [19:54:45]CAPDU: 80 11 00 00 [19:54:45]Write to MH i2c: E2 08 00 EC 04 80 11 00 00 00 00 00 00 6A [19:54:45]Write i2c OK [19:54:45]MH_I2C_Read... [19:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:45]Read from MH i2c: E2 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: E2 17 00 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: E2 17 00 EC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [19:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:54:45]wFMCommunicate OK [19:54:45]CreateOFDProtocolMessage done [19:54:45]OFDSenderStorePacket 187475 [19:54:45]StoreOFDPacket docnum=187475 [19:54:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 53 83 04 01 2F 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 14 01 00 00 F4 03 04 00 84 88 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DC 02 00 35 04 06 00 C0 0D BC 86 FA DB 2B 07 04 5D 6C 81 3F 1B [19:54:45]CheckFolder [19:54:45]dirname=/storage/ofd_packets [19:54:45]CheckFolder done [19:54:45]ProducePacketName [19:54:45]name=ofd_packets/00187475 [19:54:45]NVStorageSaveData ofd_packets/00187475 [19:54:45]File name is /storage/ofd_packets/00187475 [19:54:45]Write 298 bytes [19:54:45]NVStorageSaveData done [19:54:45]OFDSenderStorePacket done [19:54:45]KKMCreateOFDPacket done [19:54:45]NVStorageSaveData kkm_last_timestamp [19:54:45]File name is /storage/kkm_last_timestamp [19:54:45]Write 4 bytes [19:54:45]NVStorageSaveData done [19:54:45]ExternCall_PrintAddStr [19:54:45]wPrintStart [19:54:45]Write to MH i2c: 01 00 00 ED 04 F1 [19:54:45]Write i2c OK [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 07 00 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 07 00 ED 04 00 00 00 00 00 FF 0F 06 [19:54:45]RasterBufferAndPrint [19:54:45]line Счет N : (1)412634 [19:54:45]line ИНН: 02508201610067 [19:54:45]line Контрольно-Кассовый Чек [19:54:45]line ПРОДАЖА [19:54:45]line ТРК (МРК, ГНК) : 5 [19:54:45]line Товар: 2710194210 [19:54:45]line ДТ-К-5 [19:54:45]line 34.440 * 72.60 [19:54:45]line = 2500.34 [19:54:45]line НДС 12% НСП 1% [19:54:45]line > о реализуемом товаре [19:54:45]line ОКРУГЛЕНИЕ: -0.34 [19:54:45]line ИТОГО: 2500.00 [19:54:45]line Внесено: 2500.00 [19:54:45]line СДАЧА: 0.00 [19:54:45]line НСП 1% : 22.13 [19:54:45]line НДС 12% : 265.52 [19:54:45]line Наличными: 2500.00 [19:54:45]line Безнал.: 0.00 [19:54:45]line Место: АЗС № 92 "Партнер Нефть" [19:54:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:54:45]line СНО: Общий режим [19:54:45]line Чек 276 20.02.2025 19:54 [19:54:45]line Смена: 648 ФФД: 1.0 [19:54:45]line ЗНМ: 0300000118 [19:54:45]line РНМ: 0000000000091857 [19:54:45]line Версия ККМ: 001 [19:54:45]line ФМ: 0000000000871826 [19:54:45]line ФД: 187475 [19:54:45]line ФПД: 211165230070491 [19:54:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T195444&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187475&fm=211165230070491&tin=02508201610067®Number=0000000000091857&sum=250000 [19:54:45]OFD Sender: Processing packet 187475 [packets to send 49, broken 48] [19:54:45]ProducePacketName [19:54:45]name=ofd_packets/00187475 [19:54:45]OFD Sender: To server: pG, [19:54:45]CommunicateWithHost lk.salyk.kg:30040 [19:54:45]ConnectInit lk.salyk.kg [19:54:45]written 0, free lines is 4095 [19:54:45]Connected sock=7 [19: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 31 38 32 36 0C 01 00 00 53 83 04 01 2F 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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 14 01 00 00 F4 03 04 00 84 88 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DC 02 00 35 04 06 00 C0 0D BC 86 FA DB 2B 07 04 5D 6C 81 3F 1B [19:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BE 7A 47 00 B8 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DC 02 00 F4 03 04 00 D4 2E B7 67 B6 04 01 00 00 3E 49 61 C7 3E A2 55 BC [19:54:45]CommunicateWithHost err = 0 [19:54:45]CheckOFDResponse [19:54:45]1017 (14) - 77093643461234 [19:54:45]1041 (16) - 0000000000871826 [19:54:45]1040 (4) - 187475 [19:54:45]1012 (4) - 20.02.2025 13:32 [19:54:45]1206 (1) - 0 [19:54:45]OFD Sender: Remove packet 187475 [19:54:45]ProducePacketName [19:54:45]name=ofd_packets/00187475 [19:54:45]NVStorageDeleteData [19:54:45]Write to MH i2c: 01 00 00 18 05 1D [19:54:45]Write i2c OK [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 07 00 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 07 00 18 05 00 00 00 00 00 FC 0C 2C [19:54:45]RasterBufferAndPrint [19:54:45]line [19:54:45]line [19:54:45]line [19:54:45]line [19:54:45]line [19:54:45]written 0, free lines is 3331 [19:54:45]MH_Cut [19:54:45]Write to MH i2c: D1 01 00 1F 05 01 F6 [19:54:45]Write i2c OK [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: D1 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: D1 01 00 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: D1 01 00 1F 05 00 F5 [19:54:45]Write to MH i2c: 01 00 00 20 05 25 [19:54:45]Write i2c OK [19:54:45]MH_I2C_Read... [19:54:46]OFD Sender: No OFD packet to send [19:54:46]*** Cut start [19:54:46]*** Partial cut [19:54:46]*** CUTSNS_PIN = 1 [19:54:46]*** CUTSNS_PIN = 0 [19:54:46]*** Brake cut motor [19:54:47]Read from MH i2c: 01 [19:54:47]MH_I2C_Read... [19:54:47]*** Stop cut motor [19:54:47]*** Cut end [19:54:47]Read from MH i2c: 01 07 00 [19:54:47]MH_I2C_Read... [19:54:47]Read from MH i2c: 01 07 00 20 05 00 00 00 00 00 FF 0F 3A [19:54:47]process_action close_receipt done [19:54:47]requested_data is exist [19:54:47]produce_requested_data [19:54:47]requested_item fm.sn is exist - process it [19:54:47]wFMCommunicate request_size=4 [19:54:47]MH_SAM_APDU [19:54:47]CAPDU: 80 11 00 00 [19:54:47]Write to MH i2c: E2 08 00 21 05 80 11 00 00 00 00 00 00 A0 [19:54:47]Write i2c OK [19:54:47]MH_I2C_Read... [19:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:47]Read from MH i2c: E2 [19:54:47]MH_I2C_Read... [19:54:47]Read from MH i2c: E2 17 00 [19:54:47]MH_I2C_Read... [19:54:47]Read from MH i2c: E2 17 00 21 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F3 [19:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:54:47]wFMCommunicate OK [19:54:47]requested_item fd.num is exist - process it [19:54:47]SAM_PROTO_GetFieldsCounters [19:54:47]wFMCommunicate request_size=4 [19:54:47]MH_SAM_APDU [19:54:47]CAPDU: 80 13 00 00 [19:54:47]Write to MH i2c: E2 08 00 22 05 80 13 00 00 00 00 00 00 A3 [19:54:47]Write i2c OK [19:54:47]MH_I2C_Read... [19:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:47]Read from MH i2c: E2 [19:54:47]MH_I2C_Read... [19:54:47]Read from MH i2c: E2 62 00 [19:54:47]MH_I2C_Read... [19:54:47]Read from MH i2c: E2 62 00 22 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 53 DC 02 00 0E 04 04 00 88 02 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 C3 [19: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 53 DC 02 00 0E 04 04 00 88 02 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:54:47]wFMCommunicate OK [19:54:47]SAM_PROTO_GetFieldsCounters done [19:54:47]requested_item shift.num is exist - process it [19:54:47]requested_item shift.opened is exist - process it [19:54:47]req_shift_opened [19:54:47]FM_GetShiftState [19:54:47]SAM_PROTO_GetShiftState [19:54:47]wFMCommunicate request_size=4 [19:54:47]MH_SAM_APDU [19:54:47]CAPDU: 80 13 01 00 [19:54:47]Write to MH i2c: E2 08 00 23 05 80 13 01 00 00 00 00 00 A5 [19:54:47]Write i2c OK [19:54:47]MH_I2C_Read... [19:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:47]Read from MH i2c: E2 [19:54:47]MH_I2C_Read... [19:54:47]Read from MH i2c: E2 0E 00 [19:54:47]MH_I2C_Read... [19:54:47]Read from MH i2c: E2 0E 00 23 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F7 [19:54:47]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:54:47]wFMCommunicate OK [19:54:47]SAM_PROTO_GetShiftState done [19:54:47]FM_GetShiftState done [19:54:47]req_shift_opened done [19:54:47]requested_item shift.open_date is exist - process it [19:54:47]req_shift_open_date [19:54:47]req_shift_open_date done [19:54:47]produce_requested_data done [19:54:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187475,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:54:47]process_action_free close_receipt [19:54:47]json_value_free [19:54:47]json_value_free done [19:54:47]process_json_proto returns [19:54:47]Send response to host [19:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187475,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:54:47]free response buf [19:54:47]execute_script done [19:54:47]execute_script returns [19:54:47]free content buf [19:54:47]Sock 9.Close socket [19:54:47]Sock 9.Thread stoped [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:15]accept exits with 10 [19:58:15]New connection [19:58:15]New thread 3067080036 created [19:58:15]Thread 3067223396 joined [19:58:15]Waiting for new connection... [19:58:15] Sock 10.Parse request [19:58:15]Sock 10.Check first char [19:58:15]Sock 10.First char is OK [19:58:15]request: POST /json_proto HTTP/1.0 [19:58:15]Method: POST [19:58:15]URL: /json_proto [19:58:15]Method is POST - this is cgi request [19:58:15]url: /json_proto [19:58:15]query_string will be loaded in cgi processing [19:58:15]execute_cgi json_proto POST (null) [19:58:15]execute_cgi path=json_proto method=POST [19:58:15]POST find Content-Length [19:58:15]Host: 172.17.46.131:8080 [19:58:15]Content-Length: 800 [19:58:15]Content-Type: application/json [19:58:15] [19:58:15]POST finish read [19:58:15]Found Content-Length = 800 [19:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4999561", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:15]execute_script... [19:58:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4999561", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:15]POST & json_proto [19:58:15]process_json_proto [19:58:15]json parsed OK: [19:58:15]protocol is kg_v1.0 [19:58:15]action value=close_receipt [19:58:15]process_action close_receipt [19:58:15]cmd_close_receipt [19:58:15]MH_GetDate [19:58:15]Write to MH i2c: F0 00 00 24 05 18 [19:58:15]Write i2c OK [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: F0 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: F0 09 00 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: F0 09 00 24 05 00 58 89 B7 67 7E 41 4F 65 93 [19:58:15]GetLastDocTimeStamp 1740081284 [19:58:15]current date 1740081496 [19:58:15]FM_GetShiftState [19:58:15]SAM_PROTO_GetShiftState [19:58:15]wFMCommunicate request_size=4 [19:58:15]MH_SAM_APDU [19:58:15]CAPDU: 80 13 01 00 [19:58:15]Write to MH i2c: E2 08 00 25 05 80 13 01 00 00 00 00 00 A7 [19:58:15]Write i2c OK [19:58:15]MH_I2C_Read... [19:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:15]Read from MH i2c: E2 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: E2 0E 00 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: E2 0E 00 25 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F9 [19:58:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:58:15]wFMCommunicate OK [19:58:15]SAM_PROTO_GetShiftState done [19:58:15]FM_GetShiftState done [19:58:15]opened in 1740011697 [19:58:15]opened+sec_in_day 1740098097 [19:58:15]quantity*price = 0 [19:58:15]sum+1 = 1 [19:58:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 277 20.02.2025 19:58 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4999561 ФМ: 0000000000871826 ФД: 187476 ФПД: 220545444824306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T195816&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187476&fm=220545444824306&tin=02508201610067®Number=0000000000091857&sum=0 [19:58:17]StoreToDocumentArchive [19:58:17]shift 648 fd 187476 [19:58:17]save to /storage/0648/doc_00187476 [19:58:17]save last doc name /storage/0648/doc_00187476 to /storage/kkm_last_doc_name [19:58:17]save OK [19:58:17]Clear old archive folders... [19:58:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:17]tlvbuf is 02045AB0 [19:58:17]SAM_PROTO_ClearQueue [19:58:17]wFMCommunicate request_size=4 [19:58:17]MH_SAM_APDU [19:58:17]CAPDU: 80 09 00 00 [19:58:17]Write to MH i2c: E2 08 00 32 05 80 09 00 00 00 00 00 00 A9 [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:17]Read from MH i2c: E2 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 03 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 03 00 32 05 00 90 00 AB [19:58:17]RAPDU: 90 00 [19:58:17]wFMCommunicate OK [19:58:17]SAM_PROTO_ClearQueue done [19:58:17]KKMCreateOFDPacket [19:58:17]OFDProtocolAddRootSTLVToBuf [19:58:17]FM_MakeSignedData [19:58:17]FM_MakeSignedData [19:58:17]SAM_PROTO_SignData [19:58:17]wFMCommunicate request_size=4 [19:58:17]MH_SAM_APDU [19:58:17]CAPDU: 80 0D 01 02 [19:58:17]Write to MH i2c: E2 08 00 33 05 80 0D 01 02 00 00 00 00 B1 [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:17]Read from MH i2c: E2 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 03 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [19:58:17]RAPDU: 90 00 [19:58:17]wFMCommunicate OK [19:58:17]wFMCommunicate request_size=255 [19:58:17]MH_SAM_APDU [19:58: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 58 89 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DC 02 00 35 04 06 00 C8 [19:58:17]Write to MH i2c: E2 02 01 34 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 58 89 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DC 02 00 35 04 06 00 C8 00 00 8D [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:17]Read from MH i2c: E2 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 03 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [19:58:17]RAPDU: 90 00 [19:58:17]wFMCommunicate OK [19:58:17]wFMCommunicate request_size=10 [19:58:17]MH_SAM_APDU [19:58:17]CAPDU: 80 0D 02 02 05 95 BC E5 44 F2 [19:58:17]Write to MH i2c: E2 0D 00 35 05 80 0D 02 02 05 00 95 BC E5 44 F2 00 00 2A [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:17]Read from MH i2c: E2 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 03 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [19:58:17]RAPDU: 90 00 [19:58:17]wFMCommunicate OK [19:58:17]wFMCommunicate request_size=4 [19:58:17]MH_SAM_APDU [19:58:17]CAPDU: 80 0D 03 02 [19:58:17]Write to MH i2c: E2 08 00 36 05 80 0D 03 02 00 00 00 00 B6 [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:17]Read from MH i2c: E2 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 0B 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 0B 00 36 05 00 65 A3 4C 45 07 A5 21 44 90 00 61 [19:58:17]RAPDU: 65 A3 4C 45 07 A5 21 44 90 00 [19:58:17]wFMCommunicate OK [19:58:17]SAM_PROTO_SignData done [19:58:17]FM_MakeSignedData done [19:58:17]CreateOFDProtocolMessage [19:58:17]wFMCommunicate request_size=4 [19:58:17]MH_SAM_APDU [19:58:17]CAPDU: 80 11 00 00 [19:58:17]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:17]Read from MH i2c: E2 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 17 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [19:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:58:17]wFMCommunicate OK [19:58:17]CreateOFDProtocolMessage done [19:58:17]OFDSenderStorePacket 187476 [19:58:17]StoreOFDPacket docnum=187476 [19:58:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E1 F4 07 01 08 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 58 89 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DC 02 00 35 04 06 00 C8 95 BC E5 44 F2 65 A3 4C 45 07 A5 21 44 [19:58:17]CheckFolder [19:58:17]dirname=/storage/ofd_packets [19:58:17]CheckFolder done [19:58:17]ProducePacketName [19:58:17]name=ofd_packets/00187476 [19:58:17]NVStorageSaveData ofd_packets/00187476 [19:58:17]File name is /storage/ofd_packets/00187476 [19:58:17]Write 301 bytes [19:58:17]NVStorageSaveData done [19:58:17]OFDSenderStorePacket done [19:58:17]KKMCreateOFDPacket done [19:58:17]NVStorageSaveData kkm_last_timestamp [19:58:17]File name is /storage/kkm_last_timestamp [19:58:17]Write 4 bytes [19:58:17]NVStorageSaveData done [19:58:17]ExternCall_PrintAddStr [19:58:17]wPrintStart [19:58:17]Write to MH i2c: 01 00 00 38 05 3D [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: 01 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: 01 07 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: 01 07 00 38 05 00 00 00 00 00 FF 0F 52 [19:58:17]RasterBufferAndPrint [19:58:17]line Счет N : (1)412635 [19:58:17]line ИНН: 02508201610067 [19:58:17]line Контрольно-Кассовый Чек [19:58:17]line ПРОДАЖА [19:58:17]line ТРК (МРК, ГНК) : 32 [19:58:17]line Товар: 2710124130 [19:58:17]line Аи-92-К-2 [19:58:17]line 10.000 * 0.00 [19:58:17]line = 0.00 [19:58:17]line НДС 12% НСП 1% [19:58:17]line > о реализуемом товаре [19:58:17]line ИТОГО: 0.00 [19:58:17]line НСП 1% : 0.00 [19:58:17]line НДС 12% : 0.00 [19:58:17]line Наличными: 0.00 [19:58:17]line Безнал.: 0.00 [19:58:17]line Место: АЗС № 92 "Партнер Нефть" [19:58:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:58:17]line СНО: Общий режим [19:58:17]line Чек 277 20.02.2025 19:58 [19:58:17]line Смена: 648 ФФД: 1.0 [19:58:17]line ЗНМ: 0300000118 [19:58:17]line РНМ: 0000000000091857 [19:58:17]line Версия ККМ: 001 [19:58:17]line Талоны: Топливные Талоны [19:58:17]line 4999561 [19:58:17]line ФМ: 0000000000871826 [19:58:17]line ФД: 187476 [19:58:17]line ФПД: 220545444824306 [19:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T195816&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187476&fm=220545444824306&tin=02508201610067®Number=0000000000091857&sum=0 [19:58:17]written 0, free lines is 4095 [19:58:17]OFD Sender: Processing packet 187476 [packets to send 49, broken 48] [19:58:17]ProducePacketName [19:58:17]name=ofd_packets/00187476 [19:58:17]OFD Sender: To server: pG, [19:58:17]CommunicateWithHost lk.salyk.kg:30040 [19:58:17]ConnectInit lk.salyk.kg [19:58:17]Connected sock=9 [19:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E1 F4 07 01 08 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 58 89 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DC 02 00 35 04 06 00 C8 95 BC E5 44 F2 65 A3 4C 45 07 A5 21 44 [19:58:18]Write to MH i2c: 01 00 00 62 05 67 [19:58:18]Write i2c OK [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: 01 [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: 01 07 00 [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 F9 0C 73 [19:58:18]RasterBufferAndPrint [19:58:18]line [19:58:18]line [19:58:18]line [19:58:18]line [19:58:18]line [19:58:18]written 0, free lines is 3327 [19:58:18]MH_Cut [19:58:18]Write to MH i2c: D1 01 00 69 05 01 40 [19:58:18]Write i2c OK [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: D1 [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: D1 01 00 [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: D1 01 00 69 05 00 3F [19:58:18]Write to MH i2c: 01 00 00 6A 05 6F [19:58:18]Write i2c OK [19:58:18]MH_I2C_Read... [19:58:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 02 74 47 00 E2 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 DC 02 00 F4 03 04 00 A8 2F B7 67 B6 04 01 00 00 3C B1 C4 57 F5 33 04 70 [19:58:18]CommunicateWithHost err = 0 [19:58:18]CheckOFDResponse [19:58:18]1017 (14) - 77093643461234 [19:58:18]1041 (16) - 0000000000871826 [19:58:18]1040 (4) - 187476 [19:58:18]1012 (4) - 20.02.2025 13:35 [19:58:18]1206 (1) - 0 [19:58:18]OFD Sender: Remove packet 187476 [19:58:18]ProducePacketName [19:58:18]name=ofd_packets/00187476 [19:58:18]NVStorageDeleteData [19:58:18]OFD Sender: No OFD packet to send [19:58:18]*** Cut start [19:58:18]*** Partial cut [19:58:18]*** CUTSNS_PIN = 1 [19:58:18]*** CUTSNS_PIN = 0 [19:58:19]*** Brake cut motor [19:58:19]Read from MH i2c: 01 [19:58:19]MH_I2C_Read... [19:58:19]*** Stop cut motor [19:58:19]*** Cut end [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 6A 05 00 00 00 00 00 FF 0F 84 [19:58:19]process_action close_receipt done [19:58:19]requested_data is exist [19:58:19]produce_requested_data [19:58:19]requested_item fm.sn is exist - process it [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 6B 05 80 11 00 00 00 00 00 00 EA [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 6B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [19:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:58:19]wFMCommunicate OK [19:58:19]requested_item fd.num is exist - process it [19:58:19]SAM_PROTO_GetFieldsCounters [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 13 00 00 [19:58:19]Write to MH i2c: E2 08 00 6C 05 80 13 00 00 00 00 00 00 ED [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 62 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 62 00 6C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 54 DC 02 00 0E 04 04 00 88 02 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 11 [19:58:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 54 DC 02 00 0E 04 04 00 88 02 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:58:19]wFMCommunicate OK [19:58:19]SAM_PROTO_GetFieldsCounters done [19:58:19]requested_item shift.num is exist - process it [19:58:19]requested_item shift.opened is exist - process it [19:58:19]req_shift_opened [19:58:19]FM_GetShiftState [19:58:19]SAM_PROTO_GetShiftState [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 13 01 00 [19:58:19]Write to MH i2c: E2 08 00 6D 05 80 13 01 00 00 00 00 00 EF [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 0E 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 0E 00 6D 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 41 [19:58:19]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [19:58:19]wFMCommunicate OK [19:58:19]SAM_PROTO_GetShiftState done [19:58:19]FM_GetShiftState done [19:58:19]req_shift_opened done [19:58:19]requested_item shift.open_date is exist - process it [19:58:19]req_shift_open_date [19:58:19]req_shift_open_date done [19:58:19]produce_requested_data done [19:58:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187476,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [19:58:19]process_action_free close_receipt [19:58:19]json_value_free [19:58:19]json_value_free done [19:58:19]process_json_proto returns [19:58:19]Send response to host [19:58:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187476,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [19:58:19]free response buf [19:58:19]execute_script done [19:58:19]execute_script returns [19:58:19]free content buf [19:58:19]Sock 10.Close socket [19:58:19]Sock 10.Thread stoped [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:00]accept exits with 7 [20:15:00]New connection [20:15:00]New thread 3067223396 created [20:15:00]Thread 3067080036 joined [20:15:00]Waiting for new connection... [20:15:00] Sock 7.Parse request [20:15:00]Sock 7.Check first char [20:15:00]Sock 7.First char is OK [20:15:00]request: POST /json_proto HTTP/1.0 [20:15:00]Method: POST [20:15:00]URL: /json_proto [20:15:00]Method is POST - this is cgi request [20:15:00]url: /json_proto [20:15:00]query_string will be loaded in cgi processing [20:15:00]execute_cgi json_proto POST (null) [20:15:00]execute_cgi path=json_proto method=POST [20:15:00]POST find Content-Length [20:15:00]Host: 172.17.46.131:8080 [20:15:00]Content-Length: 677 [20:15:00]Content-Type: application/json [20:15:00] [20:15:00]POST finish read [20:15:00]Found Content-Length = 677 [20:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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:15:00]execute_script... [20:15: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)412636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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:15:00]POST & json_proto [20:15:00]process_json_proto [20:15:00]json parsed OK: [20:15:00]protocol is kg_v1.0 [20:15:00]action value=close_receipt [20:15:00]process_action close_receipt [20:15:00]cmd_close_receipt [20:15:00]MH_GetDate [20:15:00]Write to MH i2c: F0 00 00 6E 05 62 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: F0 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: F0 09 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: F0 09 00 6E 05 00 45 8D B7 67 7E 41 4F 65 CE [20:15:00]GetLastDocTimeStamp 1740081496 [20:15:00]current date 1740082501 [20:15:00]FM_GetShiftState [20:15:00]SAM_PROTO_GetShiftState [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 13 01 00 [20:15:00]Write to MH i2c: E2 08 00 6F 05 80 13 01 00 00 00 00 00 F1 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 0E 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 0E 00 6F 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 43 [20:15:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:15:00]wFMCommunicate OK [20:15:00]SAM_PROTO_GetShiftState done [20:15:00]FM_GetShiftState done [20:15:00]opened in 1740011697 [20:15:00]opened+sec_in_day 1740098097 [20:15:00]quantity*price = 70030 [20:15:00]sum+1 = 70032 [20:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 278 20.02.2025 20:15 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187477 ФПД: 225732243073177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T201501&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187477&fm=225732243073177&tin=02508201610067®Number=0000000000091857&sum=70000 [20:15:01]StoreToDocumentArchive [20:15:01]shift 648 fd 187477 [20:15:01]save to /storage/0648/doc_00187477 [20:15:01]save last doc name /storage/0648/doc_00187477 to /storage/kkm_last_doc_name [20:15:01]save OK [20:15:01]Clear old archive folders... [20:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:01]tlvbuf is 0204E720 [20:15:01]SAM_PROTO_ClearQueue [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 09 00 00 [20:15:01]Write to MH i2c: E2 08 00 7C 05 80 09 00 00 00 00 00 00 F3 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 7C 05 00 90 00 F5 [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]SAM_PROTO_ClearQueue done [20:15:02]KKMCreateOFDPacket [20:15:02]OFDProtocolAddRootSTLVToBuf [20:15:02]FM_MakeSignedData [20:15:02]FM_MakeSignedData [20:15:02]SAM_PROTO_SignData [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 01 02 [20:15:02]Write to MH i2c: E2 08 00 7D 05 80 0D 01 02 00 00 00 00 FB [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 7D 05 00 90 00 F6 [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]wFMCommunicate request_size=255 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 16 01 00 00 F4 03 04 00 45 8D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DC 02 00 35 04 06 00 CD [20:15:02]Write to MH i2c: E2 02 01 7E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 16 01 00 00 F4 03 04 00 45 8D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DC 02 00 35 04 06 00 CD 00 00 40 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 7E 05 00 90 00 F7 [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]wFMCommunicate request_size=10 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 02 02 05 4D 62 29 A8 99 [20:15:02]Write to MH i2c: E2 0D 00 7F 05 80 0D 02 02 05 00 4D 62 29 A8 99 00 00 21 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 7F 05 00 90 00 F8 [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 03 02 [20:15:02]Write to MH i2c: E2 08 00 80 05 80 0D 03 02 00 00 00 00 00 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 0B 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 0B 00 80 05 00 8C BD 58 E8 01 E9 F8 05 90 00 71 [20:15:02]RAPDU: 8C BD 58 E8 01 E9 F8 05 90 00 [20:15:02]wFMCommunicate OK [20:15:02]SAM_PROTO_SignData done [20:15:02]FM_MakeSignedData done [20:15:02]CreateOFDProtocolMessage [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 11 00 00 [20:15:02]Write to MH i2c: E2 08 00 81 05 80 11 00 00 00 00 00 00 00 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 17 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 17 00 81 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [20:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:15:02]wFMCommunicate OK [20:15:02]CreateOFDProtocolMessage done [20:15:02]OFDSenderStorePacket 187477 [20:15:02]StoreOFDPacket docnum=187477 [20:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6D 41 07 01 F8 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 16 01 00 00 F4 03 04 00 45 8D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DC 02 00 35 04 06 00 CD 4D 62 29 A8 99 8C BD 58 E8 01 E9 F8 05 [20:15:02]CheckFolder [20:15:02]dirname=/storage/ofd_packets [20:15:02]CheckFolder done [20:15:02]ProducePacketName [20:15:02]name=ofd_packets/00187477 [20:15:02]NVStorageSaveData ofd_packets/00187477 [20:15:02]File name is /storage/ofd_packets/00187477 [20:15:02]Write 301 bytes [20:15:02]NVStorageSaveData done [20:15:02]OFDSenderStorePacket done [20:15:02]KKMCreateOFDPacket done [20:15:02]NVStorageSaveData kkm_last_timestamp [20:15:02]File name is /storage/kkm_last_timestamp [20:15:02]Write 4 bytes [20:15:02]NVStorageSaveData done [20:15:02]ExternCall_PrintAddStr [20:15:02]wPrintStart [20:15:02]Write to MH i2c: 01 00 00 82 05 87 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 07 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [20:15:02]RasterBufferAndPrint [20:15:02]line Счет N : (1)412636 [20:15:02]line ИНН: 02508201610067 [20:15:02]line Контрольно-Кассовый Чек [20:15:02]line ПРОДАЖА [20:15:02]line ТРК (МРК, ГНК) : 23 [20:15:02]line Товар: 2710124500 [20:15:02]line Аи-95-К-5 [20:15:02]line 9.740 * 71.90 [20:15:02]line = 700.31 [20:15:02]line НДС 12% НСП 1% [20:15:02]line > о реализуемом товаре [20:15:02]line ОКРУГЛЕНИЕ: -0.31 [20:15:02]line ИТОГО: 700.00 [20:15:02]line Внесено: 700.00 [20:15:02]line СДАЧА: 0.00 [20:15:02]line НСП 1% : 6.20 [20:15:02]line НДС 12% : 74.37 [20:15:02]line Наличными: 700.00 [20:15:02]line Безнал.: 0.00 [20:15:02]line Место: АЗС № 92 "Партнер Нефть" [20:15:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:15:02]line СНО: Общий режим [20:15:02]line Чек 278 20.02.2025 20:15 [20:15:02]line Смена: 648 ФФД: 1.0 [20:15:02]line ЗНМ: 0300000118 [20:15:02]line РНМ: 0000000000091857 [20:15:02]line Версия ККМ: 001 [20:15:02]line ФМ: 0000000000871826 [20:15:02]line ФД: 187477 [20:15:02]line ФПД: 225732243073177 [20:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T201501&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187477&fm=225732243073177&tin=02508201610067®Number=0000000000091857&sum=70000 [20:15:02]OFD Sender: Processing packet 187477 [packets to send 49, broken 48] [20:15:02]ProducePacketName [20:15:02]name=ofd_packets/00187477 [20:15:02]OFD Sender: To server: pG, [20:15:02]CommunicateWithHost lk.salyk.kg:30040 [20:15:02]ConnectInit lk.salyk.kg [20:15:02]written 0, free lines is 4095 [20:15:03]Connected sock=10 [20:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6D 41 07 01 F8 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 16 01 00 00 F4 03 04 00 45 8D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 DC 02 00 35 04 06 00 CD 4D 62 29 A8 99 8C BD 58 E8 01 E9 F8 05 [20:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 51 81 47 00 23 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 31 38 32 36 10 04 04 00 55 DC 02 00 F4 03 04 00 95 33 B7 67 B6 04 01 00 00 47 C3 4F 05 0F 6E 97 BE [20:15:03]CommunicateWithHost err = 0 [20:15:03]CheckOFDResponse [20:15:03]1017 (14) - 77093643461234 [20:15:03]1041 (16) - 0000000000871826 [20:15:03]1040 (4) - 187477 [20:15:03]1012 (4) - 20.02.2025 13:52 [20:15:03]1206 (1) - 0 [20:15:03]OFD Sender: Remove packet 187477 [20:15:03]ProducePacketName [20:15:03]name=ofd_packets/00187477 [20:15:03]NVStorageDeleteData [20:15:03]Write to MH i2c: 01 00 00 AD 05 B2 [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 07 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 F3 0C B8 [20:15:03]RasterBufferAndPrint [20:15:03]line [20:15:03]line [20:15:03]line [20:15:03]line [20:15:03]line [20:15:03]written 0, free lines is 3321 [20:15:03]MH_Cut [20:15:03]Write to MH i2c: D1 01 00 B4 05 01 8B [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: D1 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: D1 01 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: D1 01 00 B4 05 00 8A [20:15:03]Write to MH i2c: 01 00 00 B5 05 BA [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]OFD Sender: No OFD packet to send [20:15:04]*** Cut start [20:15:04]*** Partial cut [20:15:04]*** CUTSNS_PIN = 1 [20:15:04]*** CUTSNS_PIN = 0 [20:15:04]*** Brake cut motor [20:15:04]Read from MH i2c: 01 [20:15:04]MH_I2C_Read... [20:15:04]*** Stop cut motor [20:15:04]*** Cut end [20:15:04]Read from MH i2c: 01 07 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [20:15:04]process_action close_receipt done [20:15:04]requested_data is exist [20:15:04]produce_requested_data [20:15:04]requested_item fm.sn is exist - process it [20:15:04]wFMCommunicate request_size=4 [20:15:04]MH_SAM_APDU [20:15:04]CAPDU: 80 11 00 00 [20:15:04]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:04]Read from MH i2c: E2 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 17 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 88 [20:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:15:04]wFMCommunicate OK [20:15:04]requested_item fd.num is exist - process it [20:15:04]SAM_PROTO_GetFieldsCounters [20:15:04]wFMCommunicate request_size=4 [20:15:04]MH_SAM_APDU [20:15:04]CAPDU: 80 13 00 00 [20:15:04]Write to MH i2c: E2 08 00 B7 05 80 13 00 00 00 00 00 00 38 [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:04]Read from MH i2c: E2 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 62 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 62 00 B7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 55 DC 02 00 0E 04 04 00 88 02 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 60 [20:15:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 55 DC 02 00 0E 04 04 00 88 02 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 [20:15:04]wFMCommunicate OK [20:15:04]SAM_PROTO_GetFieldsCounters done [20:15:04]requested_item shift.num is exist - process it [20:15:04]requested_item shift.opened is exist - process it [20:15:04]req_shift_opened [20:15:04]FM_GetShiftState [20:15:04]SAM_PROTO_GetShiftState [20:15:04]wFMCommunicate request_size=4 [20:15:04]MH_SAM_APDU [20:15:04]CAPDU: 80 13 01 00 [20:15:04]Write to MH i2c: E2 08 00 B8 05 80 13 01 00 00 00 00 00 3A [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 0E 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 0E 00 B8 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8C [20:15:05]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:15:05]wFMCommunicate OK [20:15:05]SAM_PROTO_GetShiftState done [20:15:05]FM_GetShiftState done [20:15:05]req_shift_opened done [20:15:05]requested_item shift.open_date is exist - process it [20:15:05]req_shift_open_date [20:15:05]req_shift_open_date done [20:15:05]produce_requested_data done [20:15:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187477,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [20:15:05]process_action_free close_receipt [20:15:05]json_value_free [20:15:05]json_value_free done [20:15:05]process_json_proto returns [20:15:05]Send response to host [20:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187477,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [20:15:05]free response buf [20:15:05]execute_script done [20:15:05]execute_script returns [20:15:05]free content buf [20:15:05]Sock 7.Close socket [20:15:05]Sock 7.Thread stoped [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:16]accept exits with 9 [20:18:16]New connection [20:18:16]New thread 3067080036 created [20:18:16]Thread 3067223396 joined [20:18:16]Waiting for new connection... [20:18:16] Sock 9.Parse request [20:18:16]Sock 9.Check first char [20:18:16]Sock 9.First char is OK [20:18:16]request: POST /json_proto HTTP/1.0 [20:18:16]Method: POST [20:18:16]URL: /json_proto [20:18:16]Method is POST - this is cgi request [20:18:16]url: /json_proto [20:18:16]query_string will be loaded in cgi processing [20:18:16]execute_cgi json_proto POST (null) [20:18:16]execute_cgi path=json_proto method=POST [20:18:16]POST find Content-Length [20:18:16]Host: 172.17.46.131:8080 [20:18:16]Content-Length: 674 [20:18:16]Content-Type: application/json [20:18:16] [20:18:16]POST finish read [20:18:16]Found Content-Length = 674 [20:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "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" ] } } [20:18:16]execute_script... [20:18: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)412638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "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" ] } } [20:18:16]POST & json_proto [20:18:16]process_json_proto [20:18:16]json parsed OK: [20:18:16]protocol is kg_v1.0 [20:18:16]action value=close_receipt [20:18:16]process_action close_receipt [20:18:16]cmd_close_receipt [20:18:16]MH_GetDate [20:18:16]Write to MH i2c: F0 00 00 B9 05 AD [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: F0 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: F0 09 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: F0 09 00 B9 05 00 09 8E B7 67 7E 41 4F 65 DE [20:18:16]GetLastDocTimeStamp 1740082501 [20:18:16]current date 1740082697 [20:18:16]FM_GetShiftState [20:18:16]SAM_PROTO_GetShiftState [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 13 01 00 [20:18:16]Write to MH i2c: E2 08 00 BA 05 80 13 01 00 00 00 00 00 3C [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 0E 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 0E 00 BA 05 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 8E [20:18:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:18:16]wFMCommunicate OK [20:18:16]SAM_PROTO_GetShiftState done [20:18:16]FM_GetShiftState done [20:18:16]opened in 1740011697 [20:18:16]opened+sec_in_day 1740098097 [20:18:16]quantity*price = 80005 [20:18:16]sum+1 = 80006 [20:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 279 20.02.2025 20:18 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187478 ФПД: 92015923787436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T201817&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187478&fm=92015923787436&tin=02508201610067®Number=0000000000091857&sum=80000 [20:18:17]StoreToDocumentArchive [20:18:17]shift 648 fd 187478 [20:18:17]save to /storage/0648/doc_00187478 [20:18:17]save last doc name /storage/0648/doc_00187478 to /storage/kkm_last_doc_name [20:18:17]save OK [20:18:17]Clear old archive folders... [20:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:18:17]tlvbuf is 0204F2C0 [20:18:17]SAM_PROTO_ClearQueue [20:18:17]wFMCommunicate request_size=4 [20:18:17]MH_SAM_APDU [20:18:17]CAPDU: 80 09 00 00 [20:18:17]Write to MH i2c: E2 08 00 C7 05 80 09 00 00 00 00 00 00 3E [20:18:17]Write i2c OK [20:18:17]MH_I2C_Read... [20:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:17]Read from MH i2c: E2 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 03 00 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [20:18:17]RAPDU: 90 00 [20:18:17]wFMCommunicate OK [20:18:17]SAM_PROTO_ClearQueue done [20:18:17]KKMCreateOFDPacket [20:18:17]OFDProtocolAddRootSTLVToBuf [20:18:17]FM_MakeSignedData [20:18:17]FM_MakeSignedData [20:18:17]SAM_PROTO_SignData [20:18:17]wFMCommunicate request_size=4 [20:18:17]MH_SAM_APDU [20:18:17]CAPDU: 80 0D 01 02 [20:18:17]Write to MH i2c: E2 08 00 C8 05 80 0D 01 02 00 00 00 00 46 [20:18:17]Write i2c OK [20:18:17]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 C8 05 00 90 00 41 [20:18:18]RAPDU: 90 00 [20:18:18]wFMCommunicate OK [20:18:18]wFMCommunicate request_size=255 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 17 01 00 00 F4 03 04 00 09 8E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DC 02 00 35 04 06 00 53 B0 20 73 [20:18:18]Write to MH i2c: E2 02 01 C9 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 17 01 00 00 F4 03 04 00 09 8E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DC 02 00 35 04 06 00 53 B0 20 73 00 00 BF [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [20:18:18]RAPDU: 90 00 [20:18:18]wFMCommunicate OK [20:18:18]wFMCommunicate request_size=7 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 0D 02 02 02 76 AC [20:18:18]Write to MH i2c: E2 0A 00 CA 05 80 0D 02 02 02 00 76 AC 00 00 6F [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [20:18:18]RAPDU: 90 00 [20:18:18]wFMCommunicate OK [20:18:18]wFMCommunicate request_size=4 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 0D 03 02 [20:18:18]Write to MH i2c: E2 08 00 CB 05 80 0D 03 02 00 00 00 00 4B [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 0B 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 0B 00 CB 05 00 C0 40 94 B4 8B 22 2B 3C 90 00 A8 [20:18:18]RAPDU: C0 40 94 B4 8B 22 2B 3C 90 00 [20:18:18]wFMCommunicate OK [20:18:18]SAM_PROTO_SignData done [20:18:18]FM_MakeSignedData done [20:18:18]CreateOFDProtocolMessage [20:18:18]wFMCommunicate request_size=4 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 11 00 00 [20:18:18]Write to MH i2c: E2 08 00 CC 05 80 11 00 00 00 00 00 00 4B [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 17 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 17 00 CC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [20:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:18:18]wFMCommunicate OK [20:18:18]CreateOFDProtocolMessage done [20:18:18]OFDSenderStorePacket 187478 [20:18:18]StoreOFDPacket docnum=187478 [20:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D7 F2 04 01 47 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 17 01 00 00 F4 03 04 00 09 8E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DC 02 00 35 04 06 00 53 B0 20 73 76 AC C0 40 94 B4 8B 22 2B 3C [20:18:18]CheckFolder [20:18:18]dirname=/storage/ofd_packets [20:18:18]CheckFolder done [20:18:18]ProducePacketName [20:18:18]name=ofd_packets/00187478 [20:18:18]NVStorageSaveData ofd_packets/00187478 [20:18:18]File name is /storage/ofd_packets/00187478 [20:18:18]Write 298 bytes [20:18:18]NVStorageSaveData done [20:18:18]OFDSenderStorePacket done [20:18:18]KKMCreateOFDPacket done [20:18:18]NVStorageSaveData kkm_last_timestamp [20:18:18]File name is /storage/kkm_last_timestamp [20:18:18]Write 4 bytes [20:18:18]NVStorageSaveData done [20:18:18]ExternCall_PrintAddStr [20:18:18]wPrintStart [20:18:18]Write to MH i2c: 01 00 00 CD 05 D2 [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 07 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 07 00 CD 05 00 00 00 00 00 FF 0F E7 [20:18:18]RasterBufferAndPrint [20:18:18]line Счет N : (1)412638 [20:18:18]line ИНН: 02508201610067 [20:18:18]line Контрольно-Кассовый Чек [20:18:18]line ПРОДАЖА [20:18:18]line ТРК (МРК, ГНК) : 5 [20:18:18]line Товар: 2710194210 [20:18:18]line ДТ-К-5 [20:18:18]line 11.020 * 72.60 [20:18:18]line = 800.05 [20:18:18]line НДС 12% НСП 1% [20:18:18]line > о реализуемом товаре [20:18:18]line ОКРУГЛЕНИЕ: -0.05 [20:18:18]line ИТОГО: 800.00 [20:18:18]line Внесено: 800.00 [20:18:18]line СДАЧА: 0.00 [20:18:18]line НСП 1% : 7.08 [20:18:18]line НДС 12% : 84.96 [20:18:18]line Наличными: 800.00 [20:18:18]line Безнал.: 0.00 [20:18:18]line Место: АЗС № 92 "Партнер Нефть" [20:18:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:18:18]line СНО: Общий режим [20:18:18]line Чек 279 20.02.2025 20:18 [20:18:18]line Смена: 648 ФФД: 1.0 [20:18:18]line ЗНМ: 0300000118 [20:18:18]line РНМ: 0000000000091857 [20:18:18]line Версия ККМ: 001 [20:18:18]line ФМ: 0000000000871826 [20:18:18]line ФД: 187478 [20:18:18]line ФПД: 92015923787436 [20:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T201817&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187478&fm=92015923787436&tin=02508201610067®Number=0000000000091857&sum=80000 [20:18:18]OFD Sender: Processing packet 187478 [packets to send 49, broken 48] [20:18:18]ProducePacketName [20:18:18]name=ofd_packets/00187478 [20:18:18]OFD Sender: To server: pG, [20:18:18]CommunicateWithHost lk.salyk.kg:30040 [20:18:18]ConnectInit lk.salyk.kg [20:18:18]written 0, free lines is 4095 [20:18:18]Connected sock=10 [20:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D7 F2 04 01 47 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 17 01 00 00 F4 03 04 00 09 8E B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DC 02 00 35 04 06 00 53 B0 20 73 76 AC C0 40 94 B4 8B 22 2B 3C [20:18:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F6 16 47 00 52 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 DC 02 00 F4 03 04 00 59 34 B7 67 B6 04 01 00 00 45 5B 46 75 C6 6E C8 84 [20:18:19]CommunicateWithHost err = 0 [20:18:19]CheckOFDResponse [20:18:19]1017 (14) - 77093643461234 [20:18:19]1041 (16) - 0000000000871826 [20:18:19]1040 (4) - 187478 [20:18:19]1012 (4) - 20.02.2025 13:55 [20:18:19]1206 (1) - 0 [20:18:19]OFD Sender: Remove packet 187478 [20:18:19]ProducePacketName [20:18:19]name=ofd_packets/00187478 [20:18:19]NVStorageDeleteData [20:18:19]Write to MH i2c: 01 00 00 F8 05 FD [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: 01 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: 01 07 00 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 E4 0C F4 [20:18:19]RasterBufferAndPrint [20:18:19]line [20:18:19]line [20:18:19]line [20:18:19]line [20:18:19]line [20:18:19]written 0, free lines is 3306 [20:18:19]MH_Cut [20:18:19]Write to MH i2c: D1 01 00 FF 05 01 D6 [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: D1 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: D1 01 00 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: D1 01 00 FF 05 00 D5 [20:18:19]Write to MH i2c: 01 00 00 00 06 06 [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]OFD Sender: No OFD packet to send [20:18:19]*** Cut start [20:18:19]*** Partial cut [20:18:19]*** CUTSNS_PIN = 1 [20:18:19]*** CUTSNS_PIN = 0 [20:18:20]*** Brake cut motor [20:18:20]Read from MH i2c: 01 [20:18:20]MH_I2C_Read... [20:18:20]*** Stop cut motor [20:18:20]*** Cut end [20:18:20]Read from MH i2c: 01 07 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: 01 07 00 00 06 00 00 00 00 00 FF 0F 1B [20:18:20]process_action close_receipt done [20:18:20]requested_data is exist [20:18:20]produce_requested_data [20:18:20]requested_item fm.sn is exist - process it [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 11 00 00 [20:18:20]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 17 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [20:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:18:20]wFMCommunicate OK [20:18:20]requested_item fd.num is exist - process it [20:18:20]SAM_PROTO_GetFieldsCounters [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 13 00 00 [20:18:20]Write to MH i2c: E2 08 00 02 06 80 13 00 00 00 00 00 00 84 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 62 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 62 00 02 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 56 DC 02 00 0E 04 04 00 88 02 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 B0 [20:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 56 DC 02 00 0E 04 04 00 88 02 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 [20:18:20]wFMCommunicate OK [20:18:20]SAM_PROTO_GetFieldsCounters done [20:18:20]requested_item shift.num is exist - process it [20:18:20]requested_item shift.opened is exist - process it [20:18:20]req_shift_opened [20:18:20]FM_GetShiftState [20:18:20]SAM_PROTO_GetShiftState [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 13 01 00 [20:18:20]Write to MH i2c: E2 08 00 03 06 80 13 01 00 00 00 00 00 86 [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 03 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 D8 [20:18:20]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:18:20]wFMCommunicate OK [20:18:20]SAM_PROTO_GetShiftState done [20:18:20]FM_GetShiftState done [20:18:20]req_shift_opened done [20:18:20]requested_item shift.open_date is exist - process it [20:18:20]req_shift_open_date [20:18:20]req_shift_open_date done [20:18:20]produce_requested_data done [20:18:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187478,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [20:18:20]process_action_free close_receipt [20:18:20]json_value_free [20:18:20]json_value_free done [20:18:20]process_json_proto returns [20:18:20]Send response to host [20:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187478,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [20:18:20]free response buf [20:18:20]execute_script done [20:18:20]execute_script returns [20:18:20]free content buf [20:18:20]Sock 9.Close socket [20:18:20]Sock 9.Thread stoped [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:34]accept exits with 7 [20:25:34]New connection [20:25:34]New thread 3067223396 created [20:25:34]Thread 3067080036 joined [20:25:34]Waiting for new connection... [20:25:34] Sock 7.Parse request [20:25:34]Sock 7.Check first char [20:25:34]Sock 7.First char is OK [20:25:34]request: POST /json_proto HTTP/1.0 [20:25:34]Method: POST [20:25:34]URL: /json_proto [20:25:34]Method is POST - this is cgi request [20:25:34]url: /json_proto [20:25:34]query_string will be loaded in cgi processing [20:25:34]execute_cgi json_proto POST (null) [20:25:34]execute_cgi path=json_proto method=POST [20:25:34]POST find Content-Length [20:25:34]Host: 172.17.46.131:8080 [20:25:34]Content-Length: 1012 [20:25:34]Content-Type: application/json [20:25:34] [20:25:34]POST finish read [20:25:34]Found Content-Length = 1012 [20:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 83.800, "sum" : 6000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 83.80 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:34]execute_script... [20:25: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)412637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 83.800, "sum" : 6000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 83.80 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:34]POST & json_proto [20:25:34]process_json_proto [20:25:34]json parsed OK: [20:25:34]protocol is kg_v1.0 [20:25:34]action value=close_receipt [20:25:34]process_action close_receipt [20:25:34]cmd_close_receipt [20:25:34]MH_GetDate [20:25:34]Write to MH i2c: F0 00 00 04 06 F9 [20:25:34]Write i2c OK [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: F0 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: F0 09 00 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: F0 09 00 04 06 00 BF 8F B7 67 7E 41 4F 65 E1 [20:25:34]GetLastDocTimeStamp 1740082697 [20:25:34]current date 1740083135 [20:25:34]FM_GetShiftState [20:25:34]SAM_PROTO_GetShiftState [20:25:34]wFMCommunicate request_size=4 [20:25:34]MH_SAM_APDU [20:25:34]CAPDU: 80 13 01 00 [20:25:34]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [20:25:34]Write i2c OK [20:25:34]MH_I2C_Read... [20:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:34]Read from MH i2c: E2 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: E2 0E 00 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DA [20:25:34]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:25:34]wFMCommunicate OK [20:25:34]SAM_PROTO_GetShiftState done [20:25:34]FM_GetShiftState done [20:25:34]opened in 1740011697 [20:25:34]opened+sec_in_day 1740098097 [20:25:34]quantity*price = 600008 [20:25:34]sum+1 = 600009 [20:25:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.18 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 280 20.02.2025 20:25 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Дисконтная программа СкидкаДТ номер 92 сэкономлено 83.80 сом ФМ: 0000000000871826 ФД: 187479 ФПД: 186415690182622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T202535&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187479&fm=186415690182622&tin=02508201610067®Number=0000000000091857&sum=600000 [20:25:35]StoreToDocumentArchive [20:25:35]shift 648 fd 187479 [20:25:35]save to /storage/0648/doc_00187479 [20:25:35]save last doc name /storage/0648/doc_00187479 to /storage/kkm_last_doc_name [20:25:35]save OK [20:25:35]Clear old archive folders... [20:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:25:35]tlvbuf is 020461B0 [20:25:35]SAM_PROTO_ClearQueue [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 09 00 00 [20:25:35]Write to MH i2c: E2 08 00 12 06 80 09 00 00 00 00 00 00 8A [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]SAM_PROTO_ClearQueue done [20:25:35]KKMCreateOFDPacket [20:25:35]OFDProtocolAddRootSTLVToBuf [20:25:35]FM_MakeSignedData [20:25:35]FM_MakeSignedData [20:25:35]SAM_PROTO_SignData [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 01 02 [20:25:35]Write to MH i2c: E2 08 00 13 06 80 0D 01 02 00 00 00 00 92 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:36]Read from MH i2c: E2 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 03 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [20:25:36]RAPDU: 90 00 [20:25:36]wFMCommunicate OK [20:25:36]wFMCommunicate request_size=255 [20:25:36]MH_SAM_APDU [20:25: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 58 47 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 BF 8F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DC 02 00 35 04 06 00 A9 8B 48 FE [20:25:36]Write to MH i2c: E2 02 01 14 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 58 47 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 BF 8F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DC 02 00 35 04 06 00 A9 8B 48 FE 00 00 ED [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:36]Read from MH i2c: E2 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 03 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [20:25:36]RAPDU: 90 00 [20:25:36]wFMCommunicate OK [20:25:36]wFMCommunicate request_size=7 [20:25:36]MH_SAM_APDU [20:25:36]CAPDU: 80 0D 02 02 02 6F DE [20:25:36]Write to MH i2c: E2 0A 00 15 06 80 0D 02 02 02 00 6F DE 00 00 E6 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:36]Read from MH i2c: E2 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 03 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [20:25:36]RAPDU: 90 00 [20:25:36]wFMCommunicate OK [20:25:36]wFMCommunicate request_size=4 [20:25:36]MH_SAM_APDU [20:25:36]CAPDU: 80 0D 03 02 [20:25:36]Write to MH i2c: E2 08 00 16 06 80 0D 03 02 00 00 00 00 97 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:36]Read from MH i2c: E2 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 0B 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 0B 00 16 06 00 A3 42 E8 5D B0 6F 42 93 90 00 B6 [20:25:36]RAPDU: A3 42 E8 5D B0 6F 42 93 90 00 [20:25:36]wFMCommunicate OK [20:25:36]SAM_PROTO_SignData done [20:25:36]FM_MakeSignedData done [20:25:36]CreateOFDProtocolMessage [20:25:36]wFMCommunicate request_size=4 [20:25:36]MH_SAM_APDU [20:25:36]CAPDU: 80 11 00 00 [20:25:36]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:36]Read from MH i2c: E2 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 17 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [20:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:25:36]wFMCommunicate OK [20:25:36]CreateOFDProtocolMessage done [20:25:36]OFDSenderStorePacket 187479 [20:25:36]StoreOFDPacket docnum=187479 [20:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F1 BE 04 01 86 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 47 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 BF 8F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DC 02 00 35 04 06 00 A9 8B 48 FE 6F DE A3 42 E8 5D B0 6F 42 93 [20:25:36]CheckFolder [20:25:36]dirname=/storage/ofd_packets [20:25:36]CheckFolder done [20:25:36]ProducePacketName [20:25:36]name=ofd_packets/00187479 [20:25:36]NVStorageSaveData ofd_packets/00187479 [20:25:36]File name is /storage/ofd_packets/00187479 [20:25:36]Write 298 bytes [20:25:36]NVStorageSaveData done [20:25:36]OFDSenderStorePacket done [20:25:36]KKMCreateOFDPacket done [20:25:36]NVStorageSaveData kkm_last_timestamp [20:25:36]File name is /storage/kkm_last_timestamp [20:25:36]Write 4 bytes [20:25:36]NVStorageSaveData done [20:25:36]ExternCall_PrintAddStr [20:25:36]wPrintStart [20:25:36]Write to MH i2c: 01 00 00 18 06 1E [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [20:25:36]RasterBufferAndPrint [20:25:36]line Счет N : (1)412637 [20:25:36]line ИНН: 02508201610067 [20:25:36]line Контрольно-Кассовый Чек [20:25:36]line ПРОДАЖА [20:25:36]line ТРК (МРК, ГНК) : 6 [20:25:36]line Товар: 2710194210 [20:25:36]line ДТ-К-5 [20:25:36]line 83.800 * 71.60 [20:25:36]line = 6000.08 [20:25:36]line НДС 12% НСП 1% [20:25:36]line > о реализуемом товаре [20:25:36]line ОКРУГЛЕНИЕ: -0.08 [20:25:36]line ИТОГО: 6000.00 [20:25:36]line Внесено: 6000.00 [20:25:36]line СДАЧА: 0.00 [20:25:36]line НСП 1% : 53.10 [20:25:36]line НДС 12% : 637.18 [20:25:36]line Наличными: 6000.00 [20:25:36]line Безнал.: 0.00 [20:25:36]line Место: АЗС № 92 "Партнер Нефть" [20:25:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:25:36]line СНО: Общий режим [20:25:36]line Чек 280 20.02.2025 20:25 [20:25:36]line Смена: 648 ФФД: 1.0 [20:25:36]line ЗНМ: 0300000118 [20:25:36]line РНМ: 0000000000091857 [20:25:36]line Версия ККМ: 001 [20:25:36]line [20:25:36]line Дисконтная программа [20:25:36]line СкидкаДТ [20:25:36]line номер 92 [20:25:36]line сэкономлено 83.80 сом [20:25:36]line ФМ: 0000000000871826 [20:25:36]line ФД: 187479 [20:25:36]line ФПД: 186415690182622 [20:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T202535&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187479&fm=186415690182622&tin=02508201610067®Number=0000000000091857&sum=600000 [20:25:36]OFD Sender: Processing packet 187479 [packets to send 49, broken 48] [20:25:36]ProducePacketName [20:25:36]name=ofd_packets/00187479 [20:25:36]OFD Sender: To server: pG, [20:25:36]CommunicateWithHost lk.salyk.kg:30040 [20:25:36]ConnectInit lk.salyk.kg [20:25:36]written 0, free lines is 4095 [20:25:36]Connected sock=10 [20:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F1 BE 04 01 86 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 47 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 BF 8F B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DC 02 00 35 04 06 00 A9 8B 48 FE 6F DE A3 42 E8 5D B0 6F 42 93 [20:25:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1E CD 47 00 89 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 31 38 32 36 10 04 04 00 57 DC 02 00 F4 03 04 00 0F 36 B7 67 B6 04 01 00 00 C6 5C 35 04 89 E2 B0 CD [20:25:37]CommunicateWithHost err = 0 [20:25:37]CheckOFDResponse [20:25:37]1017 (14) - 77093643461234 [20:25:37]1041 (16) - 0000000000871826 [20:25:37]1040 (4) - 187479 [20:25:37]1012 (4) - 20.02.2025 14:02 [20:25:37]1206 (1) - 0 [20:25:37]OFD Sender: Remove packet 187479 [20:25:37]ProducePacketName [20:25:37]name=ofd_packets/00187479 [20:25:37]NVStorageDeleteData [20:25:37]Write to MH i2c: 01 00 00 48 06 4E [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: 01 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: 01 07 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: 01 07 00 48 06 00 00 00 00 00 A3 0C 04 [20:25:37]RasterBufferAndPrint [20:25:37]line [20:25:37]line [20:25:37]line [20:25:37]line [20:25:37]line [20:25:37]written 0, free lines is 3241 [20:25:37]MH_Cut [20:25:37]Write to MH i2c: D1 01 00 4F 06 01 27 [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: D1 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: D1 01 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: D1 01 00 4F 06 00 26 [20:25:37]Write to MH i2c: 01 00 00 50 06 56 [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]OFD Sender: No OFD packet to send [20:25:37]*** Cut start [20:25:37]*** Partial cut [20:25:37]*** CUTSNS_PIN = 1 [20:25:38]*** CUTSNS_PIN = 0 [20:25:38]*** Brake cut motor [20:25:38]Read from MH i2c: 01 [20:25:38]MH_I2C_Read... [20:25:38]*** Stop cut motor [20:25:38]*** Cut end [20:25:38]Read from MH i2c: 01 07 00 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [20:25:38]process_action close_receipt done [20:25:38]requested_data is exist [20:25:38]produce_requested_data [20:25:38]requested_item fm.sn is exist - process it [20:25:38]wFMCommunicate request_size=4 [20:25:38]MH_SAM_APDU [20:25:38]CAPDU: 80 11 00 00 [20:25:38]Write to MH i2c: E2 08 00 51 06 80 11 00 00 00 00 00 00 D1 [20:25:38]Write i2c OK [20:25:38]MH_I2C_Read... [20:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:38]Read from MH i2c: E2 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 17 00 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 17 00 51 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [20:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:25:38]wFMCommunicate OK [20:25:38]requested_item fd.num is exist - process it [20:25:38]SAM_PROTO_GetFieldsCounters [20:25:38]wFMCommunicate request_size=4 [20:25:38]MH_SAM_APDU [20:25:38]CAPDU: 80 13 00 00 [20:25:38]Write to MH i2c: E2 08 00 52 06 80 13 00 00 00 00 00 00 D4 [20:25:38]Write i2c OK [20:25:38]MH_I2C_Read... [20:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:38]Read from MH i2c: E2 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 62 00 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 62 00 52 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 57 DC 02 00 0E 04 04 00 88 02 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 04 [20:25:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 57 DC 02 00 0E 04 04 00 88 02 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 [20:25:38]wFMCommunicate OK [20:25:38]SAM_PROTO_GetFieldsCounters done [20:25:38]requested_item shift.num is exist - process it [20:25:38]requested_item shift.opened is exist - process it [20:25:38]req_shift_opened [20:25:38]FM_GetShiftState [20:25:38]SAM_PROTO_GetShiftState [20:25:38]wFMCommunicate request_size=4 [20:25:38]MH_SAM_APDU [20:25:38]CAPDU: 80 13 01 00 [20:25:38]Write to MH i2c: E2 08 00 53 06 80 13 01 00 00 00 00 00 D6 [20:25:38]Write i2c OK [20:25:38]MH_I2C_Read... [20:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:39]Read from MH i2c: E2 [20:25:39]MH_I2C_Read... [20:25:39]Read from MH i2c: E2 0E 00 [20:25:39]MH_I2C_Read... [20:25:39]Read from MH i2c: E2 0E 00 53 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 28 [20:25:39]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:25:39]wFMCommunicate OK [20:25:39]SAM_PROTO_GetShiftState done [20:25:39]FM_GetShiftState done [20:25:39]req_shift_opened done [20:25:39]requested_item shift.open_date is exist - process it [20:25:39]req_shift_open_date [20:25:39]req_shift_open_date done [20:25:39]produce_requested_data done [20:25:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187479,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [20:25:39]process_action_free close_receipt [20:25:39]json_value_free [20:25:39]json_value_free done [20:25:39]process_json_proto returns [20:25:39]Send response to host [20:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187479,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [20:25:39]free response buf [20:25:39]execute_script done [20:25:39]execute_script returns [20:25:39]free content buf [20:25:39]Sock 7.Close socket [20:25:39]Sock 7.Thread stoped [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:57]accept exits with 9 [20:34:57]New connection [20:34:57]New thread 3067080036 created [20:34:57]Thread 3067223396 joined [20:34:57]Waiting for new connection... [20:34:57] Sock 9.Parse request [20:34:57]Sock 9.Check first char [20:34:57]Sock 9.First char is OK [20:34:57]request: POST /json_proto HTTP/1.0 [20:34:57]Method: POST [20:34:57]URL: /json_proto [20:34:57]Method is POST - this is cgi request [20:34:57]url: /json_proto [20:34:57]query_string will be loaded in cgi processing [20:34:57]execute_cgi json_proto POST (null) [20:34:57]execute_cgi path=json_proto method=POST [20:34:57]POST find Content-Length [20:34:57]Host: 172.17.46.131:8080 [20:34:57]Content-Length: 682 [20:34:57]Content-Type: application/json [20:34:57] [20:34:57]POST finish read [20:34:57]Found Content-Length = 682 [20:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [20:34:57]execute_script... [20:34: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)412639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [20:34:57]POST & json_proto [20:34:57]process_json_proto [20:34:57]json parsed OK: [20:34:57]protocol is kg_v1.0 [20:34:57]action value=close_receipt [20:34:57]process_action close_receipt [20:34:57]cmd_close_receipt [20:34:57]MH_GetDate [20:34:57]Write to MH i2c: F0 00 00 54 06 49 [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: F0 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: F0 09 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: F0 09 00 54 06 00 F2 91 B7 67 7E 41 4F 65 66 [20:34:57]GetLastDocTimeStamp 1740083135 [20:34:57]current date 1740083698 [20:34:57]FM_GetShiftState [20:34:57]SAM_PROTO_GetShiftState [20:34:57]wFMCommunicate request_size=4 [20:34:57]MH_SAM_APDU [20:34:57]CAPDU: 80 13 01 00 [20:34:57]Write to MH i2c: E2 08 00 55 06 80 13 01 00 00 00 00 00 D8 [20:34:57]Write i2c OK [20:34:57]MH_I2C_Read... [20:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:57]Read from MH i2c: E2 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 0E 00 [20:34:57]MH_I2C_Read... [20:34:57]Read from MH i2c: E2 0E 00 55 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2A [20:34:57]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:34:57]wFMCommunicate OK [20:34:57]SAM_PROTO_GetShiftState done [20:34:57]FM_GetShiftState done [20:34:57]opened in 1740011697 [20:34:57]opened+sec_in_day 1740098097 [20:34:57]quantity*price = 150055 [20:34:57]sum+1 = 150056 [20:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 281 20.02.2025 20:34 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187480 ФПД: 109385932245606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T203458&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187480&fm=109385932245606&tin=02508201610067®Number=0000000000091857&sum=150000 [20:34:59]StoreToDocumentArchive [20:34:59]shift 648 fd 187480 [20:34:59]save to /storage/0648/doc_00187480 [20:34:59]save last doc name /storage/0648/doc_00187480 to /storage/kkm_last_doc_name [20:34:59]save OK [20:34:59]Clear old archive folders... [20:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:59]tlvbuf is 02029C70 [20:34:59]SAM_PROTO_ClearQueue [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 09 00 00 [20:34:59]Write to MH i2c: E2 08 00 62 06 80 09 00 00 00 00 00 00 DA [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 03 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 03 00 62 06 00 90 00 DC [20:34:59]RAPDU: 90 00 [20:34:59]wFMCommunicate OK [20:34:59]SAM_PROTO_ClearQueue done [20:34:59]KKMCreateOFDPacket [20:34:59]OFDProtocolAddRootSTLVToBuf [20:34:59]FM_MakeSignedData [20:34:59]FM_MakeSignedData [20:34:59]SAM_PROTO_SignData [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 0D 01 02 [20:34:59]Write to MH i2c: E2 08 00 63 06 80 0D 01 02 00 00 00 00 E2 [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 03 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 03 00 63 06 00 90 00 DD [20:34:59]RAPDU: 90 00 [20:34:59]wFMCommunicate OK [20:34:59]wFMCommunicate request_size=255 [20:34:59]MH_SAM_APDU [20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 19 01 00 00 F4 03 04 00 F2 91 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 DC 02 00 35 04 06 00 63 [20:34:59]Write to MH i2c: E2 02 01 64 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 19 01 00 00 F4 03 04 00 F2 91 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 DC 02 00 35 04 06 00 63 00 00 77 [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 03 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 03 00 64 06 00 90 00 DE [20:34:59]RAPDU: 90 00 [20:34:59]wFMCommunicate OK [20:34:59]wFMCommunicate request_size=10 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 0D 02 02 05 7C 65 A2 8A 66 [20:34:59]Write to MH i2c: E2 0D 00 65 06 80 0D 02 02 05 00 7C 65 A2 8A 66 00 00 62 [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 03 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 03 00 65 06 00 90 00 DF [20:34:59]RAPDU: 90 00 [20:34:59]wFMCommunicate OK [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 0D 03 02 [20:34:59]Write to MH i2c: E2 08 00 66 06 80 0D 03 02 00 00 00 00 E7 [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 0B 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 0B 00 66 06 00 7F E2 7B 67 49 25 3E E9 90 00 C0 [20:34:59]RAPDU: 7F E2 7B 67 49 25 3E E9 90 00 [20:34:59]wFMCommunicate OK [20:34:59]SAM_PROTO_SignData done [20:34:59]FM_MakeSignedData done [20:34:59]CreateOFDProtocolMessage [20:34:59]wFMCommunicate request_size=4 [20:34:59]MH_SAM_APDU [20:34:59]CAPDU: 80 11 00 00 [20:34:59]Write to MH i2c: E2 08 00 67 06 80 11 00 00 00 00 00 00 E7 [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:59]Read from MH i2c: E2 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 17 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: E2 17 00 67 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3A [20:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:34:59]wFMCommunicate OK [20:34:59]CreateOFDProtocolMessage done [20:34:59]OFDSenderStorePacket 187480 [20:34:59]StoreOFDPacket docnum=187480 [20:34:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 96 0B 07 01 DB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 19 01 00 00 F4 03 04 00 F2 91 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 DC 02 00 35 04 06 00 63 7C 65 A2 8A 66 7F E2 7B 67 49 25 3E E9 [20:34:59]CheckFolder [20:34:59]dirname=/storage/ofd_packets [20:34:59]CheckFolder done [20:34:59]ProducePacketName [20:34:59]name=ofd_packets/00187480 [20:34:59]NVStorageSaveData ofd_packets/00187480 [20:34:59]File name is /storage/ofd_packets/00187480 [20:34:59]Write 301 bytes [20:34:59]NVStorageSaveData done [20:34:59]OFDSenderStorePacket done [20:34:59]KKMCreateOFDPacket done [20:34:59]NVStorageSaveData kkm_last_timestamp [20:34:59]File name is /storage/kkm_last_timestamp [20:34:59]Write 4 bytes [20:34:59]NVStorageSaveData done [20:34:59]ExternCall_PrintAddStr [20:34:59]wPrintStart [20:34:59]Write to MH i2c: 01 00 00 68 06 6E [20:34:59]Write i2c OK [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: 01 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: 01 07 00 [20:34:59]MH_I2C_Read... [20:34:59]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 FF 0F 83 [20:34:59]RasterBufferAndPrint [20:34:59]line Счет N : (1)412639 [20:34:59]line ИНН: 02508201610067 [20:34:59]line Контрольно-Кассовый Чек [20:34:59]line ПРОДАЖА [20:34:59]line ТРК (МРК, ГНК) : 33 [20:34:59]line Товар: 2710124500 [20:34:59]line Аи-95-К-5 [20:34:59]line 20.870 * 71.90 [20:34:59]line = 1500.55 [20:34:59]line НДС 12% НСП 1% [20:34:59]line > о реализуемом товаре [20:34:59]line ОКРУГЛЕНИЕ: -0.55 [20:34:59]line ИТОГО: 1500.00 [20:34:59]line Внесено: 1500.00 [20:34:59]line СДАЧА: 0.00 [20:34:59]line НСП 1% : 13.28 [20:34:59]line НДС 12% : 159.35 [20:34:59]line Наличными: 1500.00 [20:34:59]line Безнал.: 0.00 [20:34:59]line Место: АЗС № 92 "Партнер Нефть" [20:34:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:34:59]line СНО: Общий режим [20:34:59]line Чек 281 20.02.2025 20:34 [20:34:59]line Смена: 648 ФФД: 1.0 [20:34:59]line ЗНМ: 0300000118 [20:34:59]line РНМ: 0000000000091857 [20:34:59]line Версия ККМ: 001 [20:34:59]line ФМ: 0000000000871826 [20:34:59]line ФД: 187480 [20:34:59]line ФПД: 109385932245606 [20:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T203458&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187480&fm=109385932245606&tin=02508201610067®Number=0000000000091857&sum=150000 [20:34:59]OFD Sender: Processing packet 187480 [packets to send 49, broken 48] [20:34:59]ProducePacketName [20:34:59]name=ofd_packets/00187480 [20:34:59]OFD Sender: To server: pG, [20:34:59]CommunicateWithHost lk.salyk.kg:30040 [20:34:59]ConnectInit lk.salyk.kg [20:34:59]written 0, free lines is 4095 [20:35:00]Connected sock=10 [20: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 31 38 32 36 0F 01 00 00 96 0B 07 01 DB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 19 01 00 00 F4 03 04 00 F2 91 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 DC 02 00 35 04 06 00 63 7C 65 A2 8A 66 7F E2 7B 67 49 25 3E E9 [20:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8E 08 47 00 D8 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 31 38 32 36 10 04 04 00 58 DC 02 00 F4 03 04 00 42 38 B7 67 B6 04 01 00 00 60 8F A2 6C E5 12 D8 51 [20:35:00]CommunicateWithHost err = 0 [20:35:00]CheckOFDResponse [20:35:00]1017 (14) - 77093643461234 [20:35:00]1041 (16) - 0000000000871826 [20:35:00]1040 (4) - 187480 [20:35:00]1012 (4) - 20.02.2025 14:12 [20:35:00]1206 (1) - 0 [20:35:00]OFD Sender: Remove packet 187480 [20:35:00]ProducePacketName [20:35:00]name=ofd_packets/00187480 [20:35:00]NVStorageDeleteData [20:35:00]Write to MH i2c: 01 00 00 93 06 99 [20:35:00]Write i2c OK [20:35:00]MH_I2C_Read... [20:35:00]Read from MH i2c: 01 [20:35:00]MH_I2C_Read... [20:35:00]Read from MH i2c: 01 07 00 [20:35:00]MH_I2C_Read... [20:35:00]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 00 0D AD [20:35:00]RasterBufferAndPrint [20:35:00]line [20:35:00]line [20:35:00]line [20:35:00]line [20:35:00]line [20:35:00]written 0, free lines is 3334 [20:35:00]MH_Cut [20:35:00]Write to MH i2c: D1 01 00 9A 06 01 72 [20:35:00]Write i2c OK [20:35:00]MH_I2C_Read... [20:35:00]Read from MH i2c: D1 [20:35:00]MH_I2C_Read... [20:35:00]Read from MH i2c: D1 01 00 [20:35:00]MH_I2C_Read... [20:35:00]Read from MH i2c: D1 01 00 9A 06 00 71 [20:35:00]Write to MH i2c: 01 00 00 9B 06 A1 [20:35:00]Write i2c OK [20:35:00]MH_I2C_Read... [20:35:00]OFD Sender: No OFD packet to send [20:35:01]*** Cut start [20:35:01]*** Partial cut [20:35:01]*** CUTSNS_PIN = 1 [20:35:01]*** CUTSNS_PIN = 0 [20:35:01]*** Brake cut motor [20:35:01]Read from MH i2c: 01 [20:35:01]MH_I2C_Read... [20:35:01]*** Stop cut motor [20:35:01]*** Cut end [20:35:01]Read from MH i2c: 01 07 00 [20:35:01]MH_I2C_Read... [20:35:01]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 FF 0F B6 [20:35:01]process_action close_receipt done [20:35:01]requested_data is exist [20:35:01]produce_requested_data [20:35:01]requested_item fm.sn is exist - process it [20:35:01]wFMCommunicate request_size=4 [20:35:01]MH_SAM_APDU [20:35:01]CAPDU: 80 11 00 00 [20:35:01]Write to MH i2c: E2 08 00 9C 06 80 11 00 00 00 00 00 00 1C [20:35:01]Write i2c OK [20:35:01]MH_I2C_Read... [20:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:01]Read from MH i2c: E2 [20:35:01]MH_I2C_Read... [20:35:01]Read from MH i2c: E2 17 00 [20:35:01]MH_I2C_Read... [20:35:01]Read from MH i2c: E2 17 00 9C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [20:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:35:01]wFMCommunicate OK [20:35:01]requested_item fd.num is exist - process it [20:35:01]SAM_PROTO_GetFieldsCounters [20:35:01]wFMCommunicate request_size=4 [20:35:01]MH_SAM_APDU [20:35:01]CAPDU: 80 13 00 00 [20:35:01]Write to MH i2c: E2 08 00 9D 06 80 13 00 00 00 00 00 00 1F [20:35:01]Write i2c OK [20:35:01]MH_I2C_Read... [20:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:02]Read from MH i2c: E2 [20:35:02]MH_I2C_Read... [20:35:02]Read from MH i2c: E2 62 00 [20:35:02]MH_I2C_Read... [20:35:02]Read from MH i2c: E2 62 00 9D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 58 DC 02 00 0E 04 04 00 88 02 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 53 [20: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 58 DC 02 00 0E 04 04 00 88 02 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 [20:35:02]wFMCommunicate OK [20:35:02]SAM_PROTO_GetFieldsCounters done [20:35:02]requested_item shift.num is exist - process it [20:35:02]requested_item shift.opened is exist - process it [20:35:02]req_shift_opened [20:35:02]FM_GetShiftState [20:35:02]SAM_PROTO_GetShiftState [20:35:02]wFMCommunicate request_size=4 [20:35:02]MH_SAM_APDU [20:35:02]CAPDU: 80 13 01 00 [20:35:02]Write to MH i2c: E2 08 00 9E 06 80 13 01 00 00 00 00 00 21 [20:35:02]Write i2c OK [20:35:02]MH_I2C_Read... [20:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:02]Read from MH i2c: E2 [20:35:02]MH_I2C_Read... [20:35:02]Read from MH i2c: E2 0E 00 [20:35:02]MH_I2C_Read... [20:35:02]Read from MH i2c: E2 0E 00 9E 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 73 [20:35:02]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:35:02]wFMCommunicate OK [20:35:02]SAM_PROTO_GetShiftState done [20:35:02]FM_GetShiftState done [20:35:02]req_shift_opened done [20:35:02]requested_item shift.open_date is exist - process it [20:35:02]req_shift_open_date [20:35:02]req_shift_open_date done [20:35:02]produce_requested_data done [20:35:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187480,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [20:35:02]process_action_free close_receipt [20:35:02]json_value_free [20:35:02]json_value_free done [20:35:02]process_json_proto returns [20:35:02]Send response to host [20:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187480,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [20:35:02]free response buf [20:35:02]execute_script done [20:35:02]execute_script returns [20:35:02]free content buf [20:35:02]Sock 9.Close socket [20:35:02]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:07]accept exits with 7 [20:37:07]New connection [20:37:07]New thread 3067223396 created [20:37:07]Thread 3067080036 joined [20:37:07]Waiting for new connection... [20:37:07] Sock 7.Parse request [20:37:07]Sock 7.Check first char [20:37:07]Sock 7.First char is OK [20:37:07]request: POST /json_proto HTTP/1.0 [20:37:07]Method: POST [20:37:07]URL: /json_proto [20:37:07]Method is POST - this is cgi request [20:37:07]url: /json_proto [20:37:07]query_string will be loaded in cgi processing [20:37:07]execute_cgi json_proto POST (null) [20:37:07]execute_cgi path=json_proto method=POST [20:37:07]POST find Content-Length [20:37:07]Host: 172.17.46.131:8080 [20:37:07]Content-Length: 800 [20:37:07]Content-Type: application/json [20:37:07] [20:37:07]POST finish read [20:37:07]Found Content-Length = 800 [20:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:07]execute_script... [20:37: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)412640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:07]POST & json_proto [20:37:07]process_json_proto [20:37:07]json parsed OK: [20:37:07]protocol is kg_v1.0 [20:37:07]action value=close_receipt [20:37:07]process_action close_receipt [20:37:07]cmd_close_receipt [20:37:07]MH_GetDate [20:37:07]Write to MH i2c: F0 00 00 9F 06 94 [20:37:07]Write i2c OK [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: F0 [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: F0 09 00 [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: F0 09 00 9F 06 00 74 92 B7 67 7E 41 4F 65 34 [20:37:07]GetLastDocTimeStamp 1740083698 [20:37:07]current date 1740083828 [20:37:07]FM_GetShiftState [20:37:07]SAM_PROTO_GetShiftState [20:37:07]wFMCommunicate request_size=4 [20:37:07]MH_SAM_APDU [20:37:07]CAPDU: 80 13 01 00 [20:37:07]Write to MH i2c: E2 08 00 A0 06 80 13 01 00 00 00 00 00 23 [20:37:07]Write i2c OK [20:37:07]MH_I2C_Read... [20:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:07]Read from MH i2c: E2 [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: E2 0E 00 [20:37:07]MH_I2C_Read... [20:37:07]Read from MH i2c: E2 0E 00 A0 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 75 [20:37:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:37:07]wFMCommunicate OK [20:37:07]SAM_PROTO_GetShiftState done [20:37:07]FM_GetShiftState done [20:37:07]opened in 1740011697 [20:37:07]opened+sec_in_day 1740098097 [20:37:07]quantity*price = 100042 [20:37:07]sum+1 = 100044 [20:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 282 20.02.2025 20:37 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187481 ФПД: 43289401495403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T203708&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187481&fm=43289401495403&tin=02508201610067®Number=0000000000091857&sum=100043 [20:37:08]StoreToDocumentArchive [20:37:08]shift 648 fd 187481 [20:37:08]save to /storage/0648/doc_00187481 [20:37:08]save last doc name /storage/0648/doc_00187481 to /storage/kkm_last_doc_name [20:37:08]save OK [20:37:08]Clear old archive folders... [20:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:37:08]tlvbuf is 020516A0 [20:37:08]SAM_PROTO_ClearQueue [20:37:08]wFMCommunicate request_size=4 [20:37:08]MH_SAM_APDU [20:37:08]CAPDU: 80 09 00 00 [20:37:08]Write to MH i2c: E2 08 00 AD 06 80 09 00 00 00 00 00 00 25 [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:08]Read from MH i2c: E2 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 03 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 03 00 AD 06 00 90 00 27 [20:37:08]RAPDU: 90 00 [20:37:08]wFMCommunicate OK [20:37:08]SAM_PROTO_ClearQueue done [20:37:08]KKMCreateOFDPacket [20:37:08]OFDProtocolAddRootSTLVToBuf [20:37:08]FM_MakeSignedData [20:37:08]FM_MakeSignedData [20:37:08]SAM_PROTO_SignData [20:37:08]wFMCommunicate request_size=4 [20:37:08]MH_SAM_APDU [20:37:08]CAPDU: 80 0D 01 02 [20:37:08]Write to MH i2c: E2 08 00 AE 06 80 0D 01 02 00 00 00 00 2D [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:08]Read from MH i2c: E2 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 03 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 03 00 AE 06 00 90 00 28 [20:37:08]RAPDU: 90 00 [20:37:08]wFMCommunicate OK [20:37:08]wFMCommunicate request_size=255 [20:37:08]MH_SAM_APDU [20:37: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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 74 92 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 DC 02 00 35 04 06 00 27 5F 19 66 [20:37:08]Write to MH i2c: E2 02 01 AF 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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 74 92 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 DC 02 00 35 04 06 00 27 5F 19 66 00 00 29 [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:09]Read from MH i2c: E2 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 03 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 03 00 AF 06 00 90 00 29 [20:37:09]RAPDU: 90 00 [20:37:09]wFMCommunicate OK [20:37:09]wFMCommunicate request_size=7 [20:37:09]MH_SAM_APDU [20:37:09]CAPDU: 80 0D 02 02 02 0F 6B [20:37:09]Write to MH i2c: E2 0A 00 B0 06 80 0D 02 02 02 00 0F 6B 00 00 AE [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:09]Read from MH i2c: E2 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 03 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [20:37:09]RAPDU: 90 00 [20:37:09]wFMCommunicate OK [20:37:09]wFMCommunicate request_size=4 [20:37:09]MH_SAM_APDU [20:37:09]CAPDU: 80 0D 03 02 [20:37:09]Write to MH i2c: E2 08 00 B1 06 80 0D 03 02 00 00 00 00 32 [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:09]Read from MH i2c: E2 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 0B 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 0B 00 B1 06 00 C9 08 62 1C 10 49 51 FE 90 00 2A [20:37:09]RAPDU: C9 08 62 1C 10 49 51 FE 90 00 [20:37:09]wFMCommunicate OK [20:37:09]SAM_PROTO_SignData done [20:37:09]FM_MakeSignedData done [20:37:09]CreateOFDProtocolMessage [20:37:09]wFMCommunicate request_size=4 [20:37:09]MH_SAM_APDU [20:37:09]CAPDU: 80 11 00 00 [20:37:09]Write to MH i2c: E2 08 00 B2 06 80 11 00 00 00 00 00 00 32 [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:09]Read from MH i2c: E2 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 17 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 17 00 B2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [20:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:37:09]wFMCommunicate OK [20:37:09]CreateOFDProtocolMessage done [20:37:09]OFDSenderStorePacket 187481 [20:37:09]StoreOFDPacket docnum=187481 [20:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 08 04 01 4A 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 74 92 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 DC 02 00 35 04 06 00 27 5F 19 66 0F 6B C9 08 62 1C 10 49 51 FE [20:37:09]CheckFolder [20:37:09]dirname=/storage/ofd_packets [20:37:09]CheckFolder done [20:37:09]ProducePacketName [20:37:09]name=ofd_packets/00187481 [20:37:09]NVStorageSaveData ofd_packets/00187481 [20:37:09]File name is /storage/ofd_packets/00187481 [20:37:09]Write 298 bytes [20:37:09]NVStorageSaveData done [20:37:09]OFDSenderStorePacket done [20:37:09]KKMCreateOFDPacket done [20:37:09]NVStorageSaveData kkm_last_timestamp [20:37:09]File name is /storage/kkm_last_timestamp [20:37:09]Write 4 bytes [20:37:09]NVStorageSaveData done [20:37:09]ExternCall_PrintAddStr [20:37:09]wPrintStart [20:37:09]Write to MH i2c: 01 00 00 B3 06 B9 [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: 01 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: 01 07 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 FF 0F CE [20:37:09]RasterBufferAndPrint [20:37:09]line Счет N : (1)412640 [20:37:09]line ИНН: 02508201610067 [20:37:09]line Контрольно-Кассовый Чек [20:37:09]line ПРОДАЖА [20:37:09]line ТРК (МРК, ГНК) : 11 [20:37:09]line Товар: 2710194210 [20:37:09]line ДТ-К-2 [20:37:09]line 13.780 * 72.60 [20:37:09]line = 1000.43 [20:37:09]line НДС 12% НСП 1% [20:37:09]line > о реализуемом товаре [20:37:09]line ИТОГО: 1000.43 [20:37:09]line НСП 1% : 8.85 [20:37:09]line НДС 12% : 106.24 [20:37:09]line Наличными: 0.00 [20:37:09]line Безнал.: 1000.43 [20:37:09]line Место: АЗС № 92 "Партнер Нефть" [20:37:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:37:09]line СНО: Общий режим [20:37:09]line Чек 282 20.02.2025 20:37 [20:37:09]line Смена: 648 ФФД: 1.0 [20:37:09]line ЗНМ: 0300000118 [20:37:09]line РНМ: 0000000000091857 [20:37:09]line Версия ККМ: 001 [20:37:09]line Платежная система: O! деньги [20:37:09]line ФМ: 0000000000871826 [20:37:09]line ФД: 187481 [20:37:09]line ФПД: 43289401495403 [20:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T203708&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187481&fm=43289401495403&tin=02508201610067®Number=0000000000091857&sum=100043 [20:37:09]OFD Sender: Processing packet 187481 [packets to send 49, broken 48] [20:37:09]ProducePacketName [20:37:09]name=ofd_packets/00187481 [20:37:09]OFD Sender: To server: pG, [20:37:09]CommunicateWithHost lk.salyk.kg:30040 [20:37:09]ConnectInit lk.salyk.kg [20:37:09]written 0, free lines is 4095 [20:37:09]Connected sock=10 [20:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 08 04 01 4A 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 74 92 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 DC 02 00 35 04 06 00 27 5F 19 66 0F 6B C9 08 62 1C 10 49 51 FE [20:37:10]Write to MH i2c: 01 00 00 DD 06 E3 [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 07 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 07 00 DD 06 00 00 00 00 00 F7 0C ED [20:37:10]RasterBufferAndPrint [20:37:10]line [20:37:10]line [20:37:10]line [20:37:10]line [20:37:10]line [20:37:10]written 0, free lines is 3326 [20:37:10]MH_Cut [20:37:10]Write to MH i2c: D1 01 00 E4 06 01 BC [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: D1 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: D1 01 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: D1 01 00 E4 06 00 BB [20:37:10]Write to MH i2c: 01 00 00 E5 06 EB [20:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F8 69 47 00 72 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 31 38 32 36 10 04 04 00 59 DC 02 00 F4 03 04 00 C4 38 B7 67 B6 04 01 00 00 E9 E8 C5 19 29 79 7B DC [20:37:10]CommunicateWithHost err = 0 [20:37:10]CheckOFDResponse [20:37:10]1017 (14) - 77093643461234 [20:37:10]1041 (16) - 0000000000871826 [20:37:10]1040 (4) - 187481 [20:37:10]1012 (4) - 20.02.2025 14:14 [20:37:10]1206 (1) - 0 [20:37:10]OFD Sender: Remove packet 187481 [20:37:10]ProducePacketName [20:37:10]name=ofd_packets/00187481 [20:37:10]NVStorageDeleteData [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]OFD Sender: No OFD packet to send [20:37:10]*** Cut start [20:37:10]*** Partial cut [20:37:10]*** CUTSNS_PIN = 1 [20:37:10]*** CUTSNS_PIN = 0 [20:37:11]*** Brake cut motor [20:37:11]Read from MH i2c: 01 [20:37:11]MH_I2C_Read... [20:37:11]*** Stop cut motor [20:37:11]*** Cut end [20:37:11]Read from MH i2c: 01 07 00 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [20:37:11]process_action close_receipt done [20:37:11]requested_data is exist [20:37:11]produce_requested_data [20:37:11]requested_item fm.sn is exist - process it [20:37:11]wFMCommunicate request_size=4 [20:37:11]MH_SAM_APDU [20:37:11]CAPDU: 80 11 00 00 [20:37:11]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [20:37:11]Write i2c OK [20:37:11]MH_I2C_Read... [20:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:11]Read from MH i2c: E2 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: E2 17 00 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B9 [20:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:37:11]wFMCommunicate OK [20:37:11]requested_item fd.num is exist - process it [20:37:11]SAM_PROTO_GetFieldsCounters [20:37:11]wFMCommunicate request_size=4 [20:37:11]MH_SAM_APDU [20:37:11]CAPDU: 80 13 00 00 [20:37:11]Write to MH i2c: E2 08 00 E7 06 80 13 00 00 00 00 00 00 69 [20:37:11]Write i2c OK [20:37:11]MH_I2C_Read... [20:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:11]Read from MH i2c: E2 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: E2 62 00 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: E2 62 00 E7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 59 DC 02 00 0E 04 04 00 88 02 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 A1 [20:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 59 DC 02 00 0E 04 04 00 88 02 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 [20:37:11]wFMCommunicate OK [20:37:11]SAM_PROTO_GetFieldsCounters done [20:37:11]requested_item shift.num is exist - process it [20:37:11]requested_item shift.opened is exist - process it [20:37:11]req_shift_opened [20:37:11]FM_GetShiftState [20:37:11]SAM_PROTO_GetShiftState [20:37:11]wFMCommunicate request_size=4 [20:37:11]MH_SAM_APDU [20:37:11]CAPDU: 80 13 01 00 [20:37:11]Write to MH i2c: E2 08 00 E8 06 80 13 01 00 00 00 00 00 6B [20:37:11]Write i2c OK [20:37:11]MH_I2C_Read... [20:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:11]Read from MH i2c: E2 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: E2 0E 00 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: E2 0E 00 E8 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BD [20:37:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:37:11]wFMCommunicate OK [20:37:11]SAM_PROTO_GetShiftState done [20:37:11]FM_GetShiftState done [20:37:11]req_shift_opened done [20:37:11]requested_item shift.open_date is exist - process it [20:37:11]req_shift_open_date [20:37:11]req_shift_open_date done [20:37:11]produce_requested_data done [20:37:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187481,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [20:37:11]process_action_free close_receipt [20:37:11]json_value_free [20:37:11]json_value_free done [20:37:11]process_json_proto returns [20:37:11]Send response to host [20:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187481,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [20:37:11]free response buf [20:37:11]execute_script done [20:37:11]execute_script returns [20:37:11]free content buf [20:37:11]Sock 7.Close socket [20:37:11]Sock 7.Thread stoped [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:07]accept exits with 9 [20:46:07]New connection [20:46:07]New thread 3067080036 created [20:46:07]Thread 3067223396 joined [20:46:07]Waiting for new connection... [20:46:07] Sock 9.Parse request [20:46:07]Sock 9.Check first char [20:46:07]Sock 9.First char is OK [20:46:07]request: POST /json_proto HTTP/1.0 [20:46:07]Method: POST [20:46:07]URL: /json_proto [20:46:07]Method is POST - this is cgi request [20:46:07]url: /json_proto [20:46:07]query_string will be loaded in cgi processing [20:46:07]execute_cgi json_proto POST (null) [20:46:07]execute_cgi path=json_proto method=POST [20:46:07]POST find Content-Length [20:46:07]Host: 172.17.46.131:8080 [20:46:07]Content-Length: 677 [20:46:07]Content-Type: application/json [20:46:07] [20:46:07]POST finish read [20:46:07]Found Content-Length = 677 [20:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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" ] } } [20:46:07]execute_script... [20:46: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)412641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "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" ] } } [20:46:07]POST & json_proto [20:46:07]process_json_proto [20:46:07]json parsed OK: [20:46:07]protocol is kg_v1.0 [20:46:07]action value=close_receipt [20:46:07]process_action close_receipt [20:46:07]cmd_close_receipt [20:46:07]MH_GetDate [20:46:07]Write to MH i2c: F0 00 00 E9 06 DE [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: F0 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: F0 09 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: F0 09 00 E9 06 00 90 94 B7 67 7E 41 4F 65 9C [20:46:07]GetLastDocTimeStamp 1740083828 [20:46:07]current date 1740084368 [20:46:07]FM_GetShiftState [20:46:07]SAM_PROTO_GetShiftState [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 13 01 00 [20:46:07]Write to MH i2c: E2 08 00 EA 06 80 13 01 00 00 00 00 00 6D [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 0E 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 0E 00 EA 06 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BF [20:46:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:46:07]wFMCommunicate OK [20:46:07]SAM_PROTO_GetShiftState done [20:46:07]FM_GetShiftState done [20:46:07]opened in 1740011697 [20:46:07]opened+sec_in_day 1740098097 [20:46:07]quantity*price = 30045 [20:46:07]sum+1 = 30047 [20:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 283 20.02.2025 20:46 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187482 ФПД: 213815268558508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T204608&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187482&fm=213815268558508&tin=02508201610067®Number=0000000000091857&sum=30000 [20:46:08]StoreToDocumentArchive [20:46:08]shift 648 fd 187482 [20:46:08]save to /storage/0648/doc_00187482 [20:46:08]save last doc name /storage/0648/doc_00187482 to /storage/kkm_last_doc_name [20:46:08]save OK [20:46:08]Clear old archive folders... [20:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:08]tlvbuf is 02055810 [20:46:08]SAM_PROTO_ClearQueue [20:46:08]wFMCommunicate request_size=4 [20:46:08]MH_SAM_APDU [20:46:08]CAPDU: 80 09 00 00 [20:46:08]Write to MH i2c: E2 08 00 F7 06 80 09 00 00 00 00 00 00 6F [20:46:08]Write i2c OK [20:46:08]MH_I2C_Read... [20:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:08]Read from MH i2c: E2 [20:46:08]MH_I2C_Read... [20:46:08]Read from MH i2c: E2 03 00 [20:46:08]MH_I2C_Read... [20:46:08]Read from MH i2c: E2 03 00 F7 06 00 90 00 71 [20:46:08]RAPDU: 90 00 [20:46:08]wFMCommunicate OK [20:46:08]SAM_PROTO_ClearQueue done [20:46:08]KKMCreateOFDPacket [20:46:08]OFDProtocolAddRootSTLVToBuf [20:46:08]FM_MakeSignedData [20:46:08]FM_MakeSignedData [20:46:08]SAM_PROTO_SignData [20:46:08]wFMCommunicate request_size=4 [20:46:08]MH_SAM_APDU [20:46:08]CAPDU: 80 0D 01 02 [20:46:08]Write to MH i2c: E2 08 00 F8 06 80 0D 01 02 00 00 00 00 77 [20:46:08]Write i2c OK [20:46:08]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 F8 06 00 90 00 72 [20:46:09]RAPDU: 90 00 [20:46:09]wFMCommunicate OK [20:46:09]wFMCommunicate request_size=255 [20:46:09]MH_SAM_APDU [20:46: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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 90 94 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DC 02 00 35 04 06 00 C2 [20:46:09]Write to MH i2c: E2 02 01 F9 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 90 94 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DC 02 00 35 04 06 00 C2 00 00 97 [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [20:46:09]RAPDU: 90 00 [20:46:09]wFMCommunicate OK [20:46:09]wFMCommunicate request_size=10 [20:46:09]MH_SAM_APDU [20:46:09]CAPDU: 80 0D 02 02 05 76 BF 21 46 AC [20:46:09]Write to MH i2c: E2 0D 00 FA 06 80 0D 02 02 05 00 76 BF 21 46 AC 00 00 CC [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [20:46:09]RAPDU: 90 00 [20:46:09]wFMCommunicate OK [20:46:09]wFMCommunicate request_size=4 [20:46:09]MH_SAM_APDU [20:46:09]CAPDU: 80 0D 03 02 [20:46:09]Write to MH i2c: E2 08 00 FB 06 80 0D 03 02 00 00 00 00 7C [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 0B 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 0B 00 FB 06 00 63 1F 6C B8 FE 19 87 B3 90 00 74 [20:46:09]RAPDU: 63 1F 6C B8 FE 19 87 B3 90 00 [20:46:09]wFMCommunicate OK [20:46:09]SAM_PROTO_SignData done [20:46:09]FM_MakeSignedData done [20:46:09]CreateOFDProtocolMessage [20:46:09]wFMCommunicate request_size=4 [20:46:09]MH_SAM_APDU [20:46:09]CAPDU: 80 11 00 00 [20:46:09]Write to MH i2c: E2 08 00 FC 06 80 11 00 00 00 00 00 00 7C [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:09]Read from MH i2c: E2 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 17 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: E2 17 00 FC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CF [20:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:46:09]wFMCommunicate OK [20:46:09]CreateOFDProtocolMessage done [20:46:09]OFDSenderStorePacket 187482 [20:46:09]StoreOFDPacket docnum=187482 [20:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC C3 07 01 82 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 90 94 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DC 02 00 35 04 06 00 C2 76 BF 21 46 AC 63 1F 6C B8 FE 19 87 B3 [20:46:09]CheckFolder [20:46:09]dirname=/storage/ofd_packets [20:46:09]CheckFolder done [20:46:09]ProducePacketName [20:46:09]name=ofd_packets/00187482 [20:46:09]NVStorageSaveData ofd_packets/00187482 [20:46:09]File name is /storage/ofd_packets/00187482 [20:46:09]Write 301 bytes [20:46:09]NVStorageSaveData done [20:46:09]OFDSenderStorePacket done [20:46:09]KKMCreateOFDPacket done [20:46:09]NVStorageSaveData kkm_last_timestamp [20:46:09]File name is /storage/kkm_last_timestamp [20:46:09]Write 4 bytes [20:46:09]NVStorageSaveData done [20:46:09]ExternCall_PrintAddStr [20:46:09]wPrintStart [20:46:09]Write to MH i2c: 01 00 00 FD 06 03 [20:46:09]Write i2c OK [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: 01 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: 01 07 00 [20:46:09]MH_I2C_Read... [20:46:09]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [20:46:09]RasterBufferAndPrint [20:46:09]line Счет N : (1)412641 [20:46:09]line ИНН: 02508201610067 [20:46:09]line Контрольно-Кассовый Чек [20:46:09]line ПРОДАЖА [20:46:09]line ТРК (МРК, ГНК) : 12 [20:46:09]line Товар: 2710124130 [20:46:09]line Аи-92-К-2 [20:46:09]line 4.680 * 64.20 [20:46:09]line = 300.46 [20:46:09]line НДС 12% НСП 1% [20:46:09]line > о реализуемом товаре [20:46:09]line ОКРУГЛЕНИЕ: -0.46 [20:46:09]line ИТОГО: 300.00 [20:46:09]line Внесено: 300.00 [20:46:09]line СДАЧА: 0.00 [20:46:09]line НСП 1% : 2.66 [20:46:09]line НДС 12% : 31.91 [20:46:09]line Наличными: 300.00 [20:46:09]line Безнал.: 0.00 [20:46:09]line Место: АЗС № 92 "Партнер Нефть" [20:46:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:46:09]line СНО: Общий режим [20:46:09]line Чек 283 20.02.2025 20:46 [20:46:09]line Смена: 648 ФФД: 1.0 [20:46:09]line ЗНМ: 0300000118 [20:46:09]line РНМ: 0000000000091857 [20:46:09]line Версия ККМ: 001 [20:46:09]line ФМ: 0000000000871826 [20:46:09]line ФД: 187482 [20:46:09]line ФПД: 213815268558508 [20:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T204608&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187482&fm=213815268558508&tin=02508201610067®Number=0000000000091857&sum=30000 [20:46:09]written 0, free lines is 4095 [20:46:09]OFD Sender: Processing packet 187482 [packets to send 49, broken 48] [20:46:09]ProducePacketName [20:46:09]name=ofd_packets/00187482 [20:46:09]OFD Sender: To server: pG, [20:46:09]CommunicateWithHost lk.salyk.kg:30040 [20:46:09]ConnectInit lk.salyk.kg [20:46:09]Connected sock=10 [20:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC C3 07 01 82 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 90 94 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DC 02 00 35 04 06 00 C2 76 BF 21 46 AC 63 1F 6C B8 FE 19 87 B3 [20:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 17 91 47 00 1D 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A DC 02 00 F4 03 04 00 E0 3A B7 67 B6 04 01 00 00 73 CF 0C 0A 58 07 E8 77 [20:46:10]CommunicateWithHost err = 0 [20:46:10]CheckOFDResponse [20:46:10]1017 (14) - 77093643461234 [20:46:10]1041 (16) - 0000000000871826 [20:46:10]1040 (4) - 187482 [20:46:10]1012 (4) - 20.02.2025 14:23 [20:46:10]1206 (1) - 0 [20:46:10]OFD Sender: Remove packet 187482 [20:46:10]ProducePacketName [20:46:10]name=ofd_packets/00187482 [20:46:10]NVStorageDeleteData [20:46:10]Write to MH i2c: 01 00 00 28 07 2F [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: 01 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: 01 07 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 F6 0C 38 [20:46:10]RasterBufferAndPrint [20:46:10]line [20:46:10]line [20:46:10]line [20:46:10]line [20:46:10]line [20:46:10]written 0, free lines is 3326 [20:46:10]MH_Cut [20:46:10]Write to MH i2c: D1 01 00 2F 07 01 08 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: D1 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: D1 01 00 [20:46:10]MH_I2C_Read... [20:46:10]Read from MH i2c: D1 01 00 2F 07 00 07 [20:46:10]Write to MH i2c: 01 00 00 30 07 37 [20:46:10]Write i2c OK [20:46:10]MH_I2C_Read... [20:46:10]OFD Sender: No OFD packet to send [20:46:10]*** Cut start [20:46:10]*** Partial cut [20:46:10]*** CUTSNS_PIN = 1 [20:46:10]*** CUTSNS_PIN = 0 [20:46:11]*** Brake cut motor [20:46:11]Read from MH i2c: 01 [20:46:11]MH_I2C_Read... [20:46:11]*** Stop cut motor [20:46:11]*** Cut end [20:46:11]Read from MH i2c: 01 07 00 [20:46:11]MH_I2C_Read... [20:46:11]Read from MH i2c: 01 07 00 30 07 00 00 00 00 00 FF 0F 4C [20:46:11]process_action close_receipt done [20:46:11]requested_data is exist [20:46:11]produce_requested_data [20:46:11]requested_item fm.sn is exist - process it [20:46:11]wFMCommunicate request_size=4 [20:46:11]MH_SAM_APDU [20:46:11]CAPDU: 80 11 00 00 [20:46:11]Write to MH i2c: E2 08 00 31 07 80 11 00 00 00 00 00 00 B2 [20:46:11]Write i2c OK [20:46:11]MH_I2C_Read... [20:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:11]Read from MH i2c: E2 [20:46:11]MH_I2C_Read... [20:46:11]Read from MH i2c: E2 17 00 [20:46:11]MH_I2C_Read... [20:46:11]Read from MH i2c: E2 17 00 31 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 05 [20:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:46:11]wFMCommunicate OK [20:46:11]requested_item fd.num is exist - process it [20:46:11]SAM_PROTO_GetFieldsCounters [20:46:11]wFMCommunicate request_size=4 [20:46:11]MH_SAM_APDU [20:46:11]CAPDU: 80 13 00 00 [20:46:11]Write to MH i2c: E2 08 00 32 07 80 13 00 00 00 00 00 00 B5 [20:46:11]Write i2c OK [20:46:11]MH_I2C_Read... [20:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:11]Read from MH i2c: E2 [20:46:11]MH_I2C_Read... [20:46:11]Read from MH i2c: E2 62 00 [20:46:11]MH_I2C_Read... [20:46:11]Read from MH i2c: E2 62 00 32 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5A DC 02 00 0E 04 04 00 88 02 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 F1 [20:46:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5A DC 02 00 0E 04 04 00 88 02 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 [20:46:11]wFMCommunicate OK [20:46:11]SAM_PROTO_GetFieldsCounters done [20:46:11]requested_item shift.num is exist - process it [20:46:11]requested_item shift.opened is exist - process it [20:46:11]req_shift_opened [20:46:11]FM_GetShiftState [20:46:11]SAM_PROTO_GetShiftState [20:46:11]wFMCommunicate request_size=4 [20:46:11]MH_SAM_APDU [20:46:11]CAPDU: 80 13 01 00 [20:46:11]Write to MH i2c: E2 08 00 33 07 80 13 01 00 00 00 00 00 B7 [20:46:11]Write i2c OK [20:46:11]MH_I2C_Read... [20:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:11]Read from MH i2c: E2 [20:46:11]MH_I2C_Read... [20:46:11]Read from MH i2c: E2 0E 00 [20:46:11]MH_I2C_Read... [20:46:11]Read from MH i2c: E2 0E 00 33 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 09 [20:46:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:46:11]wFMCommunicate OK [20:46:11]SAM_PROTO_GetShiftState done [20:46:11]FM_GetShiftState done [20:46:11]req_shift_opened done [20:46:11]requested_item shift.open_date is exist - process it [20:46:11]req_shift_open_date [20:46:11]req_shift_open_date done [20:46:11]produce_requested_data done [20:46:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187482,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [20:46:11]process_action_free close_receipt [20:46:11]json_value_free [20:46:11]json_value_free done [20:46:11]process_json_proto returns [20:46:11]Send response to host [20:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187482,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [20:46:11]free response buf [20:46:11]execute_script done [20:46:11]execute_script returns [20:46:11]free content buf [20:46:11]Sock 9.Close socket [20:46:11]Sock 9.Thread stoped [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]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:22]accept exits with 7 [20:50:22]New connection [20:50:22]New thread 3067223396 created [20:50:22]Thread 3067080036 joined [20:50:22]Waiting for new connection... [20:50:22] Sock 7.Parse request [20:50:22]Sock 7.Check first char [20:50:22]Sock 7.First char is OK [20:50:22]request: POST /json_proto HTTP/1.0 [20:50:22]Method: POST [20:50:22]URL: /json_proto [20:50:22]Method is POST - this is cgi request [20:50:22]url: /json_proto [20:50:22]query_string will be loaded in cgi processing [20:50:22]execute_cgi json_proto POST (null) [20:50:22]execute_cgi path=json_proto method=POST [20:50:22]POST find Content-Length [20:50:22]Host: 172.17.46.131:8080 [20:50:22]Content-Length: 673 [20:50:22]Content-Type: application/json [20:50:22] [20:50:22]POST finish read [20:50:22]Found Content-Length = 673 [20:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 3.860, "sum" : 280.24, "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" ] } } [20:50:22]execute_script... [20:50: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)412642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 3.860, "sum" : 280.24, "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" ] } } [20:50:22]POST & json_proto [20:50:22]process_json_proto [20:50:22]json parsed OK: [20:50:22]protocol is kg_v1.0 [20:50:22]action value=close_receipt [20:50:22]process_action close_receipt [20:50:22]cmd_close_receipt [20:50:22]MH_GetDate [20:50:22]Write to MH i2c: F0 00 00 34 07 2A [20:50:22]Write i2c OK [20:50:22]MH_I2C_Read... [20:50:22]Read from MH i2c: F0 [20:50:22]MH_I2C_Read... [20:50:22]Read from MH i2c: F0 09 00 [20:50:22]MH_I2C_Read... [20:50:22]Read from MH i2c: F0 09 00 34 07 00 8E 95 B7 67 7E 41 4F 65 E7 [20:50:22]GetLastDocTimeStamp 1740084368 [20:50:22]current date 1740084622 [20:50:22]FM_GetShiftState [20:50:22]SAM_PROTO_GetShiftState [20:50:22]wFMCommunicate request_size=4 [20:50:22]MH_SAM_APDU [20:50:22]CAPDU: 80 13 01 00 [20:50:22]Write to MH i2c: E2 08 00 35 07 80 13 01 00 00 00 00 00 B9 [20:50:22]Write i2c OK [20:50:22]MH_I2C_Read... [20:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:22]Read from MH i2c: E2 [20:50:22]MH_I2C_Read... [20:50:22]Read from MH i2c: E2 0E 00 [20:50:22]MH_I2C_Read... [20:50:22]Read from MH i2c: E2 0E 00 35 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0B [20:50:22]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:50:22]wFMCommunicate OK [20:50:22]SAM_PROTO_GetShiftState done [20:50:22]FM_GetShiftState done [20:50:22]opened in 1740011697 [20:50:22]opened+sec_in_day 1740098097 [20:50:22]quantity*price = 28023 [20:50:22]sum+1 = 28025 [20:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.76 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 284 20.02.2025 20:50 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187483 ФПД: 106395900180878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T205022&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187483&fm=106395900180878&tin=02508201610067®Number=0000000000091857&sum=28000 [20:50:23]StoreToDocumentArchive [20:50:23]shift 648 fd 187483 [20:50:23]save to /storage/0648/doc_00187483 [20:50:23]save last doc name /storage/0648/doc_00187483 to /storage/kkm_last_doc_name [20:50:23]save OK [20:50:23]Clear old archive folders... [20:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:50:23]tlvbuf is 0204F5A0 [20:50:23]SAM_PROTO_ClearQueue [20:50:23]wFMCommunicate request_size=4 [20:50:23]MH_SAM_APDU [20:50:23]CAPDU: 80 09 00 00 [20:50:23]Write to MH i2c: E2 08 00 42 07 80 09 00 00 00 00 00 00 BB [20:50:23]Write i2c OK [20:50:23]MH_I2C_Read... [20:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:23]Read from MH i2c: E2 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 03 00 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [20:50:23]RAPDU: 90 00 [20:50:23]wFMCommunicate OK [20:50:23]SAM_PROTO_ClearQueue done [20:50:23]KKMCreateOFDPacket [20:50:23]OFDProtocolAddRootSTLVToBuf [20:50:23]FM_MakeSignedData [20:50:23]FM_MakeSignedData [20:50:23]SAM_PROTO_SignData [20:50:23]wFMCommunicate request_size=4 [20:50:23]MH_SAM_APDU [20:50:23]CAPDU: 80 0D 01 02 [20:50:23]Write to MH i2c: E2 08 00 43 07 80 0D 01 02 00 00 00 00 C3 [20:50:23]Write i2c OK [20:50:23]MH_I2C_Read... [20:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:23]Read from MH i2c: E2 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 03 00 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 03 00 43 07 00 90 00 BE [20:50:23]RAPDU: 90 00 [20:50:23]wFMCommunicate OK [20:50:23]wFMCommunicate request_size=255 [20:50:23]MH_SAM_APDU [20:50: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 14 0F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 78 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 A0 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 1C 01 00 00 F4 03 04 00 8E 95 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B DC 02 00 35 04 06 00 60 C4 39 D5 [20:50:23]Write to MH i2c: E2 02 01 44 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 14 0F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 78 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 A0 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 1C 01 00 00 F4 03 04 00 8E 95 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B DC 02 00 35 04 06 00 60 C4 39 D5 00 00 35 [20:50:23]Write i2c OK [20:50:23]MH_I2C_Read... [20:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:23]Read from MH i2c: E2 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 03 00 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [20:50:23]RAPDU: 90 00 [20:50:23]wFMCommunicate OK [20:50:23]wFMCommunicate request_size=7 [20:50:23]MH_SAM_APDU [20:50:23]CAPDU: 80 0D 02 02 02 F9 8E [20:50:23]Write to MH i2c: E2 0A 00 45 07 80 0D 02 02 02 00 F9 8E 00 00 51 [20:50:23]Write i2c OK [20:50:23]MH_I2C_Read... [20:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:23]Read from MH i2c: E2 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 03 00 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 03 00 45 07 00 90 00 C0 [20:50:23]RAPDU: 90 00 [20:50:23]wFMCommunicate OK [20:50:23]wFMCommunicate request_size=4 [20:50:23]MH_SAM_APDU [20:50:23]CAPDU: 80 0D 03 02 [20:50:23]Write to MH i2c: E2 08 00 46 07 80 0D 03 02 00 00 00 00 C8 [20:50:23]Write i2c OK [20:50:23]MH_I2C_Read... [20:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:23]Read from MH i2c: E2 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 0B 00 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 0B 00 46 07 00 2E A6 72 F4 A5 2F C1 F3 90 00 8B [20:50:23]RAPDU: 2E A6 72 F4 A5 2F C1 F3 90 00 [20:50:23]wFMCommunicate OK [20:50:23]SAM_PROTO_SignData done [20:50:23]FM_MakeSignedData done [20:50:23]CreateOFDProtocolMessage [20:50:23]wFMCommunicate request_size=4 [20:50:23]MH_SAM_APDU [20:50:23]CAPDU: 80 11 00 00 [20:50:23]Write to MH i2c: E2 08 00 47 07 80 11 00 00 00 00 00 00 C8 [20:50:23]Write i2c OK [20:50:23]MH_I2C_Read... [20:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:23]Read from MH i2c: E2 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 17 00 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: E2 17 00 47 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1B [20:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:50:23]wFMCommunicate OK [20:50:23]CreateOFDProtocolMessage done [20:50:23]OFDSenderStorePacket 187483 [20:50:23]StoreOFDPacket docnum=187483 [20:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0A 9D 04 01 0F 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 78 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 A0 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 1C 01 00 00 F4 03 04 00 8E 95 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B DC 02 00 35 04 06 00 60 C4 39 D5 F9 8E 2E A6 72 F4 A5 2F C1 F3 [20:50:23]CheckFolder [20:50:23]dirname=/storage/ofd_packets [20:50:23]CheckFolder done [20:50:23]ProducePacketName [20:50:23]name=ofd_packets/00187483 [20:50:23]NVStorageSaveData ofd_packets/00187483 [20:50:23]File name is /storage/ofd_packets/00187483 [20:50:23]Write 298 bytes [20:50:23]NVStorageSaveData done [20:50:23]OFDSenderStorePacket done [20:50:23]KKMCreateOFDPacket done [20:50:23]NVStorageSaveData kkm_last_timestamp [20:50:23]File name is /storage/kkm_last_timestamp [20:50:23]Write 4 bytes [20:50:23]NVStorageSaveData done [20:50:23]ExternCall_PrintAddStr [20:50:23]wPrintStart [20:50:23]Write to MH i2c: 01 00 00 48 07 4F [20:50:23]Write i2c OK [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: 01 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: 01 07 00 [20:50:23]MH_I2C_Read... [20:50:23]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 FF 0F 64 [20:50:23]RasterBufferAndPrint [20:50:23]line Счет N : (1)412642 [20:50:23]line ИНН: 02508201610067 [20:50:23]line Контрольно-Кассовый Чек [20:50:23]line ПРОДАЖА [20:50:23]line ТРК (МРК, ГНК) : 5 [20:50:23]line Товар: 2710194210 [20:50:23]line ДТ-К-5 [20:50:23]line 3.860 * 72.60 [20:50:23]line = 280.24 [20:50:23]line НДС 12% НСП 1% [20:50:23]line > о реализуемом товаре [20:50:23]line ОКРУГЛЕНИЕ: -0.24 [20:50:23]line ИТОГО: 280.00 [20:50:23]line Внесено: 280.00 [20:50:23]line СДАЧА: 0.00 [20:50:23]line НСП 1% : 2.48 [20:50:23]line НДС 12% : 29.76 [20:50:23]line Наличными: 280.00 [20:50:23]line Безнал.: 0.00 [20:50:23]line Место: АЗС № 92 "Партнер Нефть" [20:50:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:50:23]line СНО: Общий режим [20:50:23]line Чек 284 20.02.2025 20:50 [20:50:23]line Смена: 648 ФФД: 1.0 [20:50:23]line ЗНМ: 0300000118 [20:50:23]line РНМ: 0000000000091857 [20:50:23]line Версия ККМ: 001 [20:50:23]line ФМ: 0000000000871826 [20:50:23]line ФД: 187483 [20:50:23]line ФПД: 106395900180878 [20:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T205022&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187483&fm=106395900180878&tin=02508201610067®Number=0000000000091857&sum=28000 [20:50:24]OFD Sender: Processing packet 187483 [packets to send 49, broken 48] [20:50:24]ProducePacketName [20:50:24]name=ofd_packets/00187483 [20:50:24]OFD Sender: To server: pG, [20:50:24]CommunicateWithHost lk.salyk.kg:30040 [20:50:24]ConnectInit lk.salyk.kg [20:50:24]written 0, free lines is 4095 [20:50:24]Connected sock=10 [20:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0A 9D 04 01 0F 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 78 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 A0 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 1C 01 00 00 F4 03 04 00 8E 95 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B DC 02 00 35 04 06 00 60 C4 39 D5 F9 8E 2E A6 72 F4 A5 2F C1 F3 [20:50:24]Write to MH i2c: 01 00 00 73 07 7A [20:50:24]Write i2c OK [20:50:24]MH_I2C_Read... [20:50:24]Read from MH i2c: 01 [20:50:24]MH_I2C_Read... [20:50:24]Read from MH i2c: 01 07 00 [20:50:24]MH_I2C_Read... [20:50:24]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 E7 0C 74 [20:50:24]RasterBufferAndPrint [20:50:24]line [20:50:24]line [20:50:24]line [20:50:24]line [20:50:24]line [20:50:24]written 0, free lines is 3310 [20:50:24]MH_Cut [20:50:24]Write to MH i2c: D1 01 00 7A 07 01 53 [20:50:24]Write i2c OK [20:50:24]MH_I2C_Read... [20:50:24]Read from MH i2c: D1 [20:50:24]MH_I2C_Read... [20:50:24]Read from MH i2c: D1 01 00 [20:50:24]MH_I2C_Read... [20:50:24]Read from MH i2c: D1 01 00 7A 07 00 52 [20:50:24]Write to MH i2c: 01 00 00 7B 07 82 [20:50:24]Write i2c OK [20:50:24]MH_I2C_Read... [20:50:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 96 40 47 00 F5 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 31 38 32 36 10 04 04 00 5B DC 02 00 F4 03 04 00 DF 3B B7 67 B6 04 01 00 00 D7 8E 61 0C 63 54 0A 93 [20:50:24]CommunicateWithHost err = 0 [20:50:24]CheckOFDResponse [20:50:24]1017 (14) - 77093643461234 [20:50:24]1041 (16) - 0000000000871826 [20:50:24]1040 (4) - 187483 [20:50:24]1012 (4) - 20.02.2025 14:27 [20:50:24]1206 (1) - 0 [20:50:24]OFD Sender: Remove packet 187483 [20:50:24]ProducePacketName [20:50:24]name=ofd_packets/00187483 [20:50:24]NVStorageDeleteData [20:50:25]*** Cut start [20:50:25]*** Partial cut [20:50:25]*** CUTSNS_PIN = 1 [20:50:25]*** CUTSNS_PIN = 0 [20:50:25]OFD Sender: No OFD packet to send [20:50:25]*** Brake cut motor [20:50:25]Read from MH i2c: 01 [20:50:25]MH_I2C_Read... [20:50:25]*** Stop cut motor [20:50:25]*** Cut end [20:50:25]Read from MH i2c: 01 07 00 [20:50:25]MH_I2C_Read... [20:50:25]Read from MH i2c: 01 07 00 7B 07 00 00 00 00 00 FF 0F 97 [20:50:25]process_action close_receipt done [20:50:25]requested_data is exist [20:50:25]produce_requested_data [20:50:25]requested_item fm.sn is exist - process it [20:50:25]wFMCommunicate request_size=4 [20:50:25]MH_SAM_APDU [20:50:25]CAPDU: 80 11 00 00 [20:50:25]Write to MH i2c: E2 08 00 7C 07 80 11 00 00 00 00 00 00 FD [20:50:25]Write i2c OK [20:50:25]MH_I2C_Read... [20:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:25]Read from MH i2c: E2 [20:50:25]MH_I2C_Read... [20:50:25]Read from MH i2c: E2 17 00 [20:50:25]MH_I2C_Read... [20:50:25]Read from MH i2c: E2 17 00 7C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 50 [20:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:50:25]wFMCommunicate OK [20:50:25]requested_item fd.num is exist - process it [20:50:25]SAM_PROTO_GetFieldsCounters [20:50:25]wFMCommunicate request_size=4 [20:50:25]MH_SAM_APDU [20:50:25]CAPDU: 80 13 00 00 [20:50:25]Write to MH i2c: E2 08 00 7D 07 80 13 00 00 00 00 00 00 00 [20:50:25]Write i2c OK [20:50:25]MH_I2C_Read... [20:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:26]Read from MH i2c: E2 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: E2 62 00 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: E2 62 00 7D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5B DC 02 00 0E 04 04 00 88 02 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 40 [20:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5B DC 02 00 0E 04 04 00 88 02 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 [20:50:26]wFMCommunicate OK [20:50:26]SAM_PROTO_GetFieldsCounters done [20:50:26]requested_item shift.num is exist - process it [20:50:26]requested_item shift.opened is exist - process it [20:50:26]req_shift_opened [20:50:26]FM_GetShiftState [20:50:26]SAM_PROTO_GetShiftState [20:50:26]wFMCommunicate request_size=4 [20:50:26]MH_SAM_APDU [20:50:26]CAPDU: 80 13 01 00 [20:50:26]Write to MH i2c: E2 08 00 7E 07 80 13 01 00 00 00 00 00 02 [20:50:26]Write i2c OK [20:50:26]MH_I2C_Read... [20:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:26]Read from MH i2c: E2 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: E2 0E 00 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: E2 0E 00 7E 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 54 [20:50:26]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [20:50:26]wFMCommunicate OK [20:50:26]SAM_PROTO_GetShiftState done [20:50:26]FM_GetShiftState done [20:50:26]req_shift_opened done [20:50:26]requested_item shift.open_date is exist - process it [20:50:26]req_shift_open_date [20:50:26]req_shift_open_date done [20:50:26]produce_requested_data done [20:50:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187483,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [20:50:26]process_action_free close_receipt [20:50:26]json_value_free [20:50:26]json_value_free done [20:50:26]process_json_proto returns [20:50:26]Send response to host [20:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187483,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [20:50:26]free response buf [20:50:26]execute_script done [20:50:26]execute_script returns [20:50:26]free content buf [20:50:26]Sock 7.Close socket [20:50:26]Sock 7.Thread stoped [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:38]accept exits with 9 [21:03:38]New connection [21:03:38]New thread 3067080036 created [21:03:38]Thread 3067223396 joined [21:03:38]Waiting for new connection... [21:03:38] Sock 9.Parse request [21:03:38]Sock 9.Check first char [21:03:38]Sock 9.First char is OK [21:03:38]request: POST /json_proto HTTP/1.0 [21:03:38]Method: POST [21:03:38]URL: /json_proto [21:03:38]Method is POST - this is cgi request [21:03:38]url: /json_proto [21:03:38]query_string will be loaded in cgi processing [21:03:38]execute_cgi json_proto POST (null) [21:03:38]execute_cgi path=json_proto method=POST [21:03:38]POST find Content-Length [21:03:38]Host: 172.17.46.131:8080 [21:03:38]Content-Length: 677 [21:03:38]Content-Type: application/json [21:03:38] [21:03:38]POST finish read [21:03:38]Found Content-Length = 677 [21:03:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:03:38]execute_script... [21:03: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)412645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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:03:38]POST & json_proto [21:03:38]process_json_proto [21:03:38]json parsed OK: [21:03:38]protocol is kg_v1.0 [21:03:38]action value=close_receipt [21:03:38]process_action close_receipt [21:03:38]cmd_close_receipt [21:03:38]MH_GetDate [21:03:38]Write to MH i2c: F0 00 00 7F 07 75 [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: F0 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: F0 09 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: F0 09 00 7F 07 00 AA 98 B7 67 7E 41 4F 65 51 [21:03:38]GetLastDocTimeStamp 1740084622 [21:03:38]current date 1740085418 [21:03:38]FM_GetShiftState [21:03:38]SAM_PROTO_GetShiftState [21:03:38]wFMCommunicate request_size=4 [21:03:38]MH_SAM_APDU [21:03:38]CAPDU: 80 13 01 00 [21:03:38]Write to MH i2c: E2 08 00 80 07 80 13 01 00 00 00 00 00 04 [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:38]Read from MH i2c: E2 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: E2 0E 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: E2 0E 00 80 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 56 [21:03:38]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:03:38]wFMCommunicate OK [21:03:38]SAM_PROTO_GetShiftState done [21:03:38]FM_GetShiftState done [21:03:38]opened in 1740011697 [21:03:38]opened+sec_in_day 1740098097 [21:03:38]quantity*price = 50011 [21:03:38]sum+1 = 50013 [21:03:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 285 20.02.2025 21:03 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187484 ФПД: 38748570412778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T210339&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187484&fm=38748570412778&tin=02508201610067®Number=0000000000091857&sum=50000 [21:03:39]StoreToDocumentArchive [21:03:39]shift 648 fd 187484 [21:03:39]save to /storage/0648/doc_00187484 [21:03:39]save last doc name /storage/0648/doc_00187484 to /storage/kkm_last_doc_name [21:03:39]save OK [21:03:39]Clear old archive folders... [21:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:39]tlvbuf is 02055840 [21:03:39]SAM_PROTO_ClearQueue [21:03:39]wFMCommunicate request_size=4 [21:03:39]MH_SAM_APDU [21:03:39]CAPDU: 80 09 00 00 [21:03:39]Write to MH i2c: E2 08 00 8D 07 80 09 00 00 00 00 00 00 06 [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:39]Read from MH i2c: E2 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 03 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [21:03:39]RAPDU: 90 00 [21:03:39]wFMCommunicate OK [21:03:39]SAM_PROTO_ClearQueue done [21:03:39]KKMCreateOFDPacket [21:03:39]OFDProtocolAddRootSTLVToBuf [21:03:39]FM_MakeSignedData [21:03:39]FM_MakeSignedData [21:03:39]SAM_PROTO_SignData [21:03:39]wFMCommunicate request_size=4 [21:03:39]MH_SAM_APDU [21:03:39]CAPDU: 80 0D 01 02 [21:03:39]Write to MH i2c: E2 08 00 8E 07 80 0D 01 02 00 00 00 00 0E [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:39]Read from MH i2c: E2 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 03 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [21:03:39]RAPDU: 90 00 [21:03:39]wFMCommunicate OK [21:03:39]wFMCommunicate request_size=255 [21:03:39]MH_SAM_APDU [21:03: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AB 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DC 02 00 35 04 06 00 23 [21:03:39]Write to MH i2c: E2 02 01 8F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AB 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DC 02 00 35 04 06 00 23 00 00 0D [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:39]Read from MH i2c: E2 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 03 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 03 00 8F 07 00 90 00 0A [21:03:39]RAPDU: 90 00 [21:03:39]wFMCommunicate OK [21:03:39]wFMCommunicate request_size=10 [21:03:39]MH_SAM_APDU [21:03:39]CAPDU: 80 0D 02 02 05 3D DA C6 66 EA [21:03:39]Write to MH i2c: E2 0D 00 90 07 80 0D 02 02 05 00 3D DA C6 66 EA 00 00 48 [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:39]Read from MH i2c: E2 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 03 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 03 00 90 07 00 90 00 0B [21:03:39]RAPDU: 90 00 [21:03:39]wFMCommunicate OK [21:03:39]wFMCommunicate request_size=4 [21:03:39]MH_SAM_APDU [21:03:39]CAPDU: 80 0D 03 02 [21:03:39]Write to MH i2c: E2 08 00 91 07 80 0D 03 02 00 00 00 00 13 [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:39]Read from MH i2c: E2 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 0B 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 0B 00 91 07 00 98 B2 01 80 55 D0 A5 10 90 00 B9 [21:03:39]RAPDU: 98 B2 01 80 55 D0 A5 10 90 00 [21:03:39]wFMCommunicate OK [21:03:39]SAM_PROTO_SignData done [21:03:39]FM_MakeSignedData done [21:03:39]CreateOFDProtocolMessage [21:03:39]wFMCommunicate request_size=4 [21:03:39]MH_SAM_APDU [21:03:39]CAPDU: 80 11 00 00 [21:03:39]Write to MH i2c: E2 08 00 92 07 80 11 00 00 00 00 00 00 13 [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:39]Read from MH i2c: E2 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 17 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: E2 17 00 92 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [21:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:03:39]wFMCommunicate OK [21:03:39]CreateOFDProtocolMessage done [21:03:39]OFDSenderStorePacket 187484 [21:03:39]StoreOFDPacket docnum=187484 [21:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E C4 07 01 AA 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AB 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DC 02 00 35 04 06 00 23 3D DA C6 66 EA 98 B2 01 80 55 D0 A5 10 [21:03:39]CheckFolder [21:03:39]dirname=/storage/ofd_packets [21:03:39]CheckFolder done [21:03:39]ProducePacketName [21:03:39]name=ofd_packets/00187484 [21:03:39]NVStorageSaveData ofd_packets/00187484 [21:03:39]File name is /storage/ofd_packets/00187484 [21:03:39]Write 301 bytes [21:03:39]NVStorageSaveData done [21:03:39]OFDSenderStorePacket done [21:03:39]KKMCreateOFDPacket done [21:03:39]NVStorageSaveData kkm_last_timestamp [21:03:39]File name is /storage/kkm_last_timestamp [21:03:39]Write 4 bytes [21:03:39]NVStorageSaveData done [21:03:39]ExternCall_PrintAddStr [21:03:39]wPrintStart [21:03:39]Write to MH i2c: 01 00 00 93 07 9A [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 07 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 FF 0F AF [21:03:39]RasterBufferAndPrint [21:03:39]line Счет N : (1)412645 [21:03:39]line ИНН: 02508201610067 [21:03:39]line Контрольно-Кассовый Чек [21:03:39]line ПРОДАЖА [21:03:39]line ТРК (МРК, ГНК) : 22 [21:03:39]line Товар: 2710124130 [21:03:39]line Аи-92-К-2 [21:03:39]line 7.790 * 64.20 [21:03:39]line = 500.12 [21:03:39]line НДС 12% НСП 1% [21:03:39]line > о реализуемом товаре [21:03:39]line ОКРУГЛЕНИЕ: -0.12 [21:03:39]line ИТОГО: 500.00 [21:03:39]line Внесено: 500.00 [21:03:39]line СДАЧА: 0.00 [21:03:39]line НСП 1% : 4.43 [21:03:39]line НДС 12% : 53.11 [21:03:39]line Наличными: 500.00 [21:03:39]line Безнал.: 0.00 [21:03:39]line Место: АЗС № 92 "Партнер Нефть" [21:03:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:03:39]line СНО: Общий режим [21:03:39]line Чек 285 20.02.2025 21:03 [21:03:39]line Смена: 648 ФФД: 1.0 [21:03:39]line ЗНМ: 0300000118 [21:03:39]line РНМ: 0000000000091857 [21:03:39]line Версия ККМ: 001 [21:03:39]line ФМ: 0000000000871826 [21:03:39]line ФД: 187484 [21:03:39]line ФПД: 38748570412778 [21:03:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T210339&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187484&fm=38748570412778&tin=02508201610067®Number=0000000000091857&sum=50000 [21:03:40]OFD Sender: Processing packet 187484 [packets to send 49, broken 48] [21:03:40]ProducePacketName [21:03:40]name=ofd_packets/00187484 [21:03:40]OFD Sender: To server: pG, [21:03:40]CommunicateWithHost lk.salyk.kg:30040 [21:03:40]ConnectInit lk.salyk.kg [21:03:40]written 0, free lines is 4095 [21:03:40]Connected sock=10 [21:03:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E C4 07 01 AA 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AB 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DC 02 00 35 04 06 00 23 3D DA C6 66 EA 98 B2 01 80 55 D0 A5 10 [21:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3A 3B 47 00 FE 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C DC 02 00 F4 03 04 00 FA 3E B7 67 B6 04 01 00 00 02 32 6C 5E 09 E1 30 7B [21:03:40]CommunicateWithHost err = 0 [21:03:40]CheckOFDResponse [21:03:40]1017 (14) - 77093643461234 [21:03:40]1041 (16) - 0000000000871826 [21:03:40]1040 (4) - 187484 [21:03:40]1012 (4) - 20.02.2025 14:40 [21:03:40]1206 (1) - 0 [21:03:40]OFD Sender: Remove packet 187484 [21:03:40]ProducePacketName [21:03:40]name=ofd_packets/00187484 [21:03:40]NVStorageDeleteData [21:03:40]Write to MH i2c: 01 00 00 BE 07 C5 [21:03:40]Write i2c OK [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: 01 [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: 01 07 00 [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: 01 07 00 BE 07 00 00 00 00 00 E7 0C BF [21:03:40]RasterBufferAndPrint [21:03:40]line [21:03:40]line [21:03:40]line [21:03:40]line [21:03:40]line [21:03:40]written 0, free lines is 3310 [21:03:40]MH_Cut [21:03:40]Write to MH i2c: D1 01 00 C5 07 01 9E [21:03:40]Write i2c OK [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: D1 [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: D1 01 00 [21:03:40]MH_I2C_Read... [21:03:40]Read from MH i2c: D1 01 00 C5 07 00 9D [21:03:40]Write to MH i2c: 01 00 00 C6 07 CD [21:03:40]Write i2c OK [21:03:40]MH_I2C_Read... [21:03:41]OFD Sender: No OFD packet to send [21:03:41]*** Cut start [21:03:41]*** Partial cut [21:03:41]*** CUTSNS_PIN = 1 [21:03:41]*** CUTSNS_PIN = 0 [21:03:41]*** Brake cut motor [21:03:41]Read from MH i2c: 01 [21:03:41]MH_I2C_Read... [21:03:41]*** Stop cut motor [21:03:41]*** Cut end [21:03:41]Read from MH i2c: 01 07 00 [21:03:41]MH_I2C_Read... [21:03:41]Read from MH i2c: 01 07 00 C6 07 00 00 00 00 00 FF 0F E2 [21:03:41]process_action close_receipt done [21:03:41]requested_data is exist [21:03:41]produce_requested_data [21:03:41]requested_item fm.sn is exist - process it [21:03:41]wFMCommunicate request_size=4 [21:03:41]MH_SAM_APDU [21:03:41]CAPDU: 80 11 00 00 [21:03:41]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [21:03:41]Write i2c OK [21:03:41]MH_I2C_Read... [21:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:42]Read from MH i2c: E2 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: E2 17 00 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [21:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:03:42]wFMCommunicate OK [21:03:42]requested_item fd.num is exist - process it [21:03:42]SAM_PROTO_GetFieldsCounters [21:03:42]wFMCommunicate request_size=4 [21:03:42]MH_SAM_APDU [21:03:42]CAPDU: 80 13 00 00 [21:03:42]Write to MH i2c: E2 08 00 C8 07 80 13 00 00 00 00 00 00 4B [21:03:42]Write i2c OK [21:03:42]MH_I2C_Read... [21:03:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:42]Read from MH i2c: E2 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: E2 62 00 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: E2 62 00 C8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5C DC 02 00 0E 04 04 00 88 02 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 8F [21:03:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5C DC 02 00 0E 04 04 00 88 02 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 [21:03:42]wFMCommunicate OK [21:03:42]SAM_PROTO_GetFieldsCounters done [21:03:42]requested_item shift.num is exist - process it [21:03:42]requested_item shift.opened is exist - process it [21:03:42]req_shift_opened [21:03:42]FM_GetShiftState [21:03:42]SAM_PROTO_GetShiftState [21:03:42]wFMCommunicate request_size=4 [21:03:42]MH_SAM_APDU [21:03:42]CAPDU: 80 13 01 00 [21:03:42]Write to MH i2c: E2 08 00 C9 07 80 13 01 00 00 00 00 00 4D [21:03:42]Write i2c OK [21:03:42]MH_I2C_Read... [21:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:42]Read from MH i2c: E2 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: E2 0E 00 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: E2 0E 00 C9 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9F [21:03:42]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:03:42]wFMCommunicate OK [21:03:42]SAM_PROTO_GetShiftState done [21:03:42]FM_GetShiftState done [21:03:42]req_shift_opened done [21:03:42]requested_item shift.open_date is exist - process it [21:03:42]req_shift_open_date [21:03:42]req_shift_open_date done [21:03:42]produce_requested_data done [21:03:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187484,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [21:03:42]process_action_free close_receipt [21:03:42]json_value_free [21:03:42]json_value_free done [21:03:42]process_json_proto returns [21:03:42]Send response to host [21:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187484,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [21:03:42]free response buf [21:03:42]execute_script done [21:03:42]execute_script returns [21:03:42]free content buf [21:03:42]Sock 9.Close socket [21:03:42]Sock 9.Thread stoped [21:03:42]accept exits with 7 [21:03:42]New connection [21:03:42]New thread 3067223396 created [21:03:42]Thread 3067080036 joined [21:03:42]Waiting for new connection... [21:03:42] Sock 7.Parse request [21:03:42]Sock 7.Check first char [21:03:42]Sock 7.First char is OK [21:03:42]request: POST /json_proto HTTP/1.0 [21:03:42]Method: POST [21:03:42]URL: /json_proto [21:03:42]Method is POST - this is cgi request [21:03:42]url: /json_proto [21:03:42]query_string will be loaded in cgi processing [21:03:42]execute_cgi json_proto POST (null) [21:03:42]execute_cgi path=json_proto method=POST [21:03:42]POST find Content-Length [21:03:42]Host: 172.17.46.131:8080 [21:03:42]Content-Length: 674 [21:03:42]Content-Type: application/json [21:03:42] [21:03:42]POST finish read [21:03:42]Found Content-Length = 674 [21:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "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" ] } } [21:03:42]execute_script... [21:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "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" ] } } [21:03:42]POST & json_proto [21:03:42]process_json_proto [21:03:42]json parsed OK: [21:03:42]protocol is kg_v1.0 [21:03:42]action value=close_receipt [21:03:42]process_action close_receipt [21:03:42]cmd_close_receipt [21:03:42]MH_GetDate [21:03:42]Write to MH i2c: F0 00 00 CA 07 C0 [21:03:42]Write i2c OK [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: F0 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: F0 09 00 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: F0 09 00 CA 07 00 AF 98 B7 67 7E 41 4F 65 A1 [21:03:42]GetLastDocTimeStamp 1740085419 [21:03:42]current date 1740085423 [21:03:42]FM_GetShiftState [21:03:42]SAM_PROTO_GetShiftState [21:03:42]wFMCommunicate request_size=4 [21:03:42]MH_SAM_APDU [21:03:42]CAPDU: 80 13 01 00 [21:03:42]Write to MH i2c: E2 08 00 CB 07 80 13 01 00 00 00 00 00 4F [21:03:42]Write i2c OK [21:03:42]MH_I2C_Read... [21:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:42]Read from MH i2c: E2 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: E2 0E 00 [21:03:42]MH_I2C_Read... [21:03:42]Read from MH i2c: E2 0E 00 CB 07 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 A1 [21:03:42]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:03:42]wFMCommunicate OK [21:03:42]SAM_PROTO_GetShiftState done [21:03:42]FM_GetShiftState done [21:03:42]opened in 1740011697 [21:03:42]opened+sec_in_day 1740098097 [21:03:42]quantity*price = 80005 [21:03:42]sum+1 = 80006 [21:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 286 20.02.2025 21:03 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187485 ФПД: 247990340202357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T210343&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187485&fm=247990340202357&tin=02508201610067®Number=0000000000091857&sum=80000 [21:03:43]StoreToDocumentArchive [21:03:43]shift 648 fd 187485 [21:03:43]save to /storage/0648/doc_00187485 [21:03:43]save last doc name /storage/0648/doc_00187485 to /storage/kkm_last_doc_name [21:03:43]save OK [21:03:43]Clear old archive folders... [21:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:03:43]tlvbuf is 02060F70 [21:03:43]SAM_PROTO_ClearQueue [21:03:43]wFMCommunicate request_size=4 [21:03:43]MH_SAM_APDU [21:03:43]CAPDU: 80 09 00 00 [21:03:43]Write to MH i2c: E2 08 00 D8 07 80 09 00 00 00 00 00 00 51 [21:03:43]Write i2c OK [21:03:43]MH_I2C_Read... [21:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:43]Read from MH i2c: E2 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: E2 03 00 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [21:03:43]RAPDU: 90 00 [21:03:43]wFMCommunicate OK [21:03:43]SAM_PROTO_ClearQueue done [21:03:43]KKMCreateOFDPacket [21:03:43]OFDProtocolAddRootSTLVToBuf [21:03:43]FM_MakeSignedData [21:03:43]FM_MakeSignedData [21:03:43]SAM_PROTO_SignData [21:03:43]wFMCommunicate request_size=4 [21:03:43]MH_SAM_APDU [21:03:43]CAPDU: 80 0D 01 02 [21:03:43]Write to MH i2c: E2 08 00 D9 07 80 0D 01 02 00 00 00 00 59 [21:03:43]Write i2c OK [21:03:43]MH_I2C_Read... [21:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:44]Read from MH i2c: E2 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 03 00 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [21:03:44]RAPDU: 90 00 [21:03:44]wFMCommunicate OK [21:03:44]wFMCommunicate request_size=255 [21:03:44]MH_SAM_APDU [21:03: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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 1E 01 00 00 F4 03 04 00 AF 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DC 02 00 35 04 06 00 E1 8B C0 22 [21:03:44]Write to MH i2c: E2 02 01 DA 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 1E 01 00 00 F4 03 04 00 AF 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DC 02 00 35 04 06 00 E1 8B C0 22 00 00 48 [21:03:44]Write i2c OK [21:03:44]MH_I2C_Read... [21:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:44]Read from MH i2c: E2 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 03 00 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 03 00 DA 07 00 90 00 55 [21:03:44]RAPDU: 90 00 [21:03:44]wFMCommunicate OK [21:03:44]wFMCommunicate request_size=7 [21:03:44]MH_SAM_APDU [21:03:44]CAPDU: 80 0D 02 02 02 AF 75 [21:03:44]Write to MH i2c: E2 0A 00 DB 07 80 0D 02 02 02 00 AF 75 00 00 84 [21:03:44]Write i2c OK [21:03:44]MH_I2C_Read... [21:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:44]Read from MH i2c: E2 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 03 00 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 03 00 DB 07 00 90 00 56 [21:03:44]RAPDU: 90 00 [21:03:44]wFMCommunicate OK [21:03:44]wFMCommunicate request_size=4 [21:03:44]MH_SAM_APDU [21:03:44]CAPDU: 80 0D 03 02 [21:03:44]Write to MH i2c: E2 08 00 DC 07 80 0D 03 02 00 00 00 00 5E [21:03:44]Write i2c OK [21:03:44]MH_I2C_Read... [21:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:44]Read from MH i2c: E2 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 0B 00 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 0B 00 DC 07 00 A4 FC 59 4F A5 16 73 C4 90 00 99 [21:03:44]RAPDU: A4 FC 59 4F A5 16 73 C4 90 00 [21:03:44]wFMCommunicate OK [21:03:44]SAM_PROTO_SignData done [21:03:44]FM_MakeSignedData done [21:03:44]CreateOFDProtocolMessage [21:03:44]wFMCommunicate request_size=4 [21:03:44]MH_SAM_APDU [21:03:44]CAPDU: 80 11 00 00 [21:03:44]Write to MH i2c: E2 08 00 DD 07 80 11 00 00 00 00 00 00 5E [21:03:44]Write i2c OK [21:03:44]MH_I2C_Read... [21:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:44]Read from MH i2c: E2 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 17 00 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: E2 17 00 DD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [21:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:03:44]wFMCommunicate OK [21:03:44]CreateOFDProtocolMessage done [21:03:44]OFDSenderStorePacket 187485 [21:03:44]StoreOFDPacket docnum=187485 [21:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 93 2A 04 01 F5 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 1E 01 00 00 F4 03 04 00 AF 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DC 02 00 35 04 06 00 E1 8B C0 22 AF 75 A4 FC 59 4F A5 16 73 C4 [21:03:44]CheckFolder [21:03:44]dirname=/storage/ofd_packets [21:03:44]CheckFolder done [21:03:44]ProducePacketName [21:03:44]name=ofd_packets/00187485 [21:03:44]NVStorageSaveData ofd_packets/00187485 [21:03:44]File name is /storage/ofd_packets/00187485 [21:03:44]Write 298 bytes [21:03:44]NVStorageSaveData done [21:03:44]OFDSenderStorePacket done [21:03:44]KKMCreateOFDPacket done [21:03:44]NVStorageSaveData kkm_last_timestamp [21:03:44]File name is /storage/kkm_last_timestamp [21:03:44]Write 4 bytes [21:03:44]NVStorageSaveData done [21:03:44]ExternCall_PrintAddStr [21:03:44]wPrintStart [21:03:44]Write to MH i2c: 01 00 00 DE 07 E5 [21:03:44]Write i2c OK [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: 01 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: 01 07 00 [21:03:44]MH_I2C_Read... [21:03:44]Read from MH i2c: 01 07 00 DE 07 00 00 00 00 00 FF 0F FA [21:03:44]RasterBufferAndPrint [21:03:44]line Счет N : (1)412644 [21:03:44]line ИНН: 02508201610067 [21:03:44]line Контрольно-Кассовый Чек [21:03:44]line ПРОДАЖА [21:03:44]line ТРК (МРК, ГНК) : 5 [21:03:44]line Товар: 2710194210 [21:03:44]line ДТ-К-5 [21:03:44]line 11.020 * 72.60 [21:03:44]line = 800.05 [21:03:44]line НДС 12% НСП 1% [21:03:44]line > о реализуемом товаре [21:03:44]line ОКРУГЛЕНИЕ: -0.05 [21:03:44]line ИТОГО: 800.00 [21:03:44]line Внесено: 800.00 [21:03:44]line СДАЧА: 0.00 [21:03:44]line НСП 1% : 7.08 [21:03:44]line НДС 12% : 84.96 [21:03:44]line Наличными: 800.00 [21:03:44]line Безнал.: 0.00 [21:03:44]line Место: АЗС № 92 "Партнер Нефть" [21:03:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:03:44]line СНО: Общий режим [21:03:44]line Чек 286 20.02.2025 21:03 [21:03:44]line Смена: 648 ФФД: 1.0 [21:03:44]line ЗНМ: 0300000118 [21:03:44]line РНМ: 0000000000091857 [21:03:44]line Версия ККМ: 001 [21:03:44]line ФМ: 0000000000871826 [21:03:44]line ФД: 187485 [21:03:44]line ФПД: 247990340202357 [21:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T210343&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187485&fm=247990340202357&tin=02508201610067®Number=0000000000091857&sum=80000 [21:03:44]OFD Sender: Processing packet 187485 [packets to send 49, broken 48] [21:03:44]ProducePacketName [21:03:44]name=ofd_packets/00187485 [21:03:44]OFD Sender: To server: pG, [21:03:44]CommunicateWithHost lk.salyk.kg:30040 [21:03:44]ConnectInit lk.salyk.kg [21:03:44]written 0, free lines is 4095 [21:03:45]Connected sock=11 [21:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 93 2A 04 01 F5 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 1E 01 00 00 F4 03 04 00 AF 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DC 02 00 35 04 06 00 E1 8B C0 22 AF 75 A4 FC 59 4F A5 16 73 C4 [21:03:45]Write to MH i2c: 01 00 00 09 08 11 [21:03:45]Write i2c OK [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: 01 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: 01 07 00 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: 01 07 00 09 08 00 00 00 00 00 EF 0C 13 [21:03:45]RasterBufferAndPrint [21:03:45]line [21:03:45]line [21:03:45]line [21:03:45]line [21:03:45]line [21:03:45]written 0, free lines is 3320 [21:03:45]MH_Cut [21:03:45]Write to MH i2c: D1 01 00 10 08 01 EA [21:03:45]Write i2c OK [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: D1 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: D1 01 00 [21:03:45]MH_I2C_Read... [21:03:45]Read from MH i2c: D1 01 00 10 08 00 E9 [21:03:45]Write to MH i2c: 01 00 00 11 08 19 [21:03:45]Write i2c OK [21:03:45]MH_I2C_Read... [21:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D C2 47 00 44 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DC 02 00 F4 03 04 00 FF 3E B7 67 B6 04 01 00 00 20 6F A2 26 74 26 C0 60 [21:03:45]CommunicateWithHost err = 0 [21:03:45]CheckOFDResponse [21:03:45]1017 (14) - 77093643461234 [21:03:45]1041 (16) - 0000000000871826 [21:03:45]1040 (4) - 187485 [21:03:45]1012 (4) - 20.02.2025 14:41 [21:03:45]1206 (1) - 0 [21:03:45]OFD Sender: Remove packet 187485 [21:03:45]ProducePacketName [21:03:45]name=ofd_packets/00187485 [21:03:45]NVStorageDeleteData [21:03:45]*** Cut start [21:03:45]*** Partial cut [21:03:45]*** CUTSNS_PIN = 1 [21:03:46]OFD Sender: No OFD packet to send [21:03:46]*** CUTSNS_PIN = 0 [21:03:46]*** Brake cut motor [21:03:46]Read from MH i2c: 01 [21:03:46]MH_I2C_Read... [21:03:46]*** Stop cut motor [21:03:46]*** Cut end [21:03:46]Read from MH i2c: 01 07 00 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: 01 07 00 11 08 00 00 00 00 00 FF 0F 2E [21:03:46]process_action close_receipt done [21:03:46]requested_data is exist [21:03:46]produce_requested_data [21:03:46]requested_item fm.sn is exist - process it [21:03:46]wFMCommunicate request_size=4 [21:03:46]MH_SAM_APDU [21:03:46]CAPDU: 80 11 00 00 [21:03:46]Write to MH i2c: E2 08 00 12 08 80 11 00 00 00 00 00 00 94 [21:03:46]Write i2c OK [21:03:46]MH_I2C_Read... [21:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:46]Read from MH i2c: E2 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 17 00 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 17 00 12 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [21:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:03:46]wFMCommunicate OK [21:03:46]requested_item fd.num is exist - process it [21:03:46]SAM_PROTO_GetFieldsCounters [21:03:46]wFMCommunicate request_size=4 [21:03:46]MH_SAM_APDU [21:03:46]CAPDU: 80 13 00 00 [21:03:46]Write to MH i2c: E2 08 00 13 08 80 13 00 00 00 00 00 00 97 [21:03:46]Write i2c OK [21:03:46]MH_I2C_Read... [21:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:46]Read from MH i2c: E2 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 62 00 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 62 00 13 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5D DC 02 00 0E 04 04 00 88 02 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 DF [21:03:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5D DC 02 00 0E 04 04 00 88 02 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:03:46]wFMCommunicate OK [21:03:46]SAM_PROTO_GetFieldsCounters done [21:03:46]requested_item shift.num is exist - process it [21:03:46]requested_item shift.opened is exist - process it [21:03:46]req_shift_opened [21:03:46]FM_GetShiftState [21:03:46]SAM_PROTO_GetShiftState [21:03:46]wFMCommunicate request_size=4 [21:03:46]MH_SAM_APDU [21:03:46]CAPDU: 80 13 01 00 [21:03:46]Write to MH i2c: E2 08 00 14 08 80 13 01 00 00 00 00 00 99 [21:03:46]Write i2c OK [21:03:46]MH_I2C_Read... [21:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:46]Read from MH i2c: E2 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 0E 00 [21:03:46]MH_I2C_Read... [21:03:46]Read from MH i2c: E2 0E 00 14 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 EB [21:03:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:03:46]wFMCommunicate OK [21:03:46]SAM_PROTO_GetShiftState done [21:03:46]FM_GetShiftState done [21:03:46]req_shift_opened done [21:03:46]requested_item shift.open_date is exist - process it [21:03:46]req_shift_open_date [21:03:46]req_shift_open_date done [21:03:46]produce_requested_data done [21:03:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187485,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [21:03:46]process_action_free close_receipt [21:03:46]json_value_free [21:03:46]json_value_free done [21:03:46]process_json_proto returns [21:03:46]Send response to host [21:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187485,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [21:03:46]free response buf [21:03:46]execute_script done [21:03:46]execute_script returns [21:03:46]free content buf [21:03:46]Sock 7.Close socket [21:03:46]Sock 7.Thread stoped [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:03]accept exits with 9 [21:04:03]New connection [21:04:03]New thread 3067080036 created [21:04:03]Thread 3067223396 joined [21:04:03]Waiting for new connection... [21:04:03] Sock 9.Parse request [21:04:03]Sock 9.Check first char [21:04:03]Sock 9.First char is OK [21:04:03]request: POST /json_proto HTTP/1.0 [21:04:03]Method: POST [21:04:03]URL: /json_proto [21:04:03]Method is POST - this is cgi request [21:04:03]url: /json_proto [21:04:03]query_string will be loaded in cgi processing [21:04:03]execute_cgi json_proto POST (null) [21:04:03]execute_cgi path=json_proto method=POST [21:04:03]POST find Content-Length [21:04:03]Host: 172.17.46.131:8080 [21:04:03]Content-Length: 682 [21:04:03]Content-Type: application/json [21:04:03] [21:04:03]POST finish read [21:04:03]Found Content-Length = 682 [21:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [21:04:03]execute_script... [21:04:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [21:04:03]POST & json_proto [21:04:03]process_json_proto [21:04:03]json parsed OK: [21:04:03]protocol is kg_v1.0 [21:04:03]action value=close_receipt [21:04:03]process_action close_receipt [21:04:03]cmd_close_receipt [21:04:03]MH_GetDate [21:04:03]Write to MH i2c: F0 00 00 15 08 0C [21:04:03]Write i2c OK [21:04:03]MH_I2C_Read... [21:04:03]Read from MH i2c: F0 [21:04:03]MH_I2C_Read... [21:04:03]Read from MH i2c: F0 09 00 [21:04:03]MH_I2C_Read... [21:04:03]Read from MH i2c: F0 09 00 15 08 00 C3 98 B7 67 7E 41 4F 65 01 [21:04:03]GetLastDocTimeStamp 1740085423 [21:04:03]current date 1740085443 [21:04:03]FM_GetShiftState [21:04:03]SAM_PROTO_GetShiftState [21:04:03]wFMCommunicate request_size=4 [21:04:03]MH_SAM_APDU [21:04:03]CAPDU: 80 13 01 00 [21:04:03]Write to MH i2c: E2 08 00 16 08 80 13 01 00 00 00 00 00 9B [21:04:03]Write i2c OK [21:04:03]MH_I2C_Read... [21:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:03]Read from MH i2c: E2 [21:04:03]MH_I2C_Read... [21:04:03]Read from MH i2c: E2 0E 00 [21:04:03]MH_I2C_Read... [21:04:03]Read from MH i2c: E2 0E 00 16 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 ED [21:04:03]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:04:03]wFMCommunicate OK [21:04:03]SAM_PROTO_GetShiftState done [21:04:03]FM_GetShiftState done [21:04:03]opened in 1740011697 [21:04:03]opened+sec_in_day 1740098097 [21:04:03]quantity*price = 300038 [21:04:03]sum+1 = 300040 [21:04:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 287 20.02.2025 21:04 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187486 ФПД: 148846184295059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T210404&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187486&fm=148846184295059&tin=02508201610067®Number=0000000000091857&sum=300000 [21:04:04]StoreToDocumentArchive [21:04:04]shift 648 fd 187486 [21:04:04]save to /storage/0648/doc_00187486 [21:04:04]save last doc name /storage/0648/doc_00187486 to /storage/kkm_last_doc_name [21:04:04]save OK [21:04:04]Clear old archive folders... [21:04:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:04]tlvbuf is 0206EEE0 [21:04:04]SAM_PROTO_ClearQueue [21:04:04]wFMCommunicate request_size=4 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 09 00 00 [21:04:04]Write to MH i2c: E2 08 00 23 08 80 09 00 00 00 00 00 00 9D [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 03 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 03 00 23 08 00 90 00 9F [21:04:04]RAPDU: 90 00 [21:04:04]wFMCommunicate OK [21:04:04]SAM_PROTO_ClearQueue done [21:04:04]KKMCreateOFDPacket [21:04:04]OFDProtocolAddRootSTLVToBuf [21:04:04]FM_MakeSignedData [21:04:04]FM_MakeSignedData [21:04:04]SAM_PROTO_SignData [21:04:04]wFMCommunicate request_size=4 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 0D 01 02 [21:04:04]Write to MH i2c: E2 08 00 24 08 80 0D 01 02 00 00 00 00 A5 [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 03 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 03 00 24 08 00 90 00 A0 [21:04:04]RAPDU: 90 00 [21:04:04]wFMCommunicate OK [21:04:04]wFMCommunicate request_size=255 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 1F 01 00 00 F4 03 04 00 C4 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DC 02 00 35 04 06 00 87 [21:04:04]Write to MH i2c: E2 02 01 25 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 1F 01 00 00 F4 03 04 00 C4 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DC 02 00 35 04 06 00 87 00 00 5E [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 03 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 03 00 25 08 00 90 00 A1 [21:04:04]RAPDU: 90 00 [21:04:04]wFMCommunicate OK [21:04:04]wFMCommunicate request_size=10 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 0D 02 02 05 5F F3 F0 EA 93 [21:04:04]Write to MH i2c: E2 0D 00 26 08 80 0D 02 02 05 00 5F F3 F0 EA 93 00 00 71 [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 03 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 03 00 26 08 00 90 00 A2 [21:04:04]RAPDU: 90 00 [21:04:04]wFMCommunicate OK [21:04:04]wFMCommunicate request_size=4 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 0D 03 02 [21:04:04]Write to MH i2c: E2 08 00 27 08 80 0D 03 02 00 00 00 00 AA [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 0B 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 0B 00 27 08 00 14 56 4F C2 73 5E F1 DD 90 00 C5 [21:04:04]RAPDU: 14 56 4F C2 73 5E F1 DD 90 00 [21:04:04]wFMCommunicate OK [21:04:04]SAM_PROTO_SignData done [21:04:04]FM_MakeSignedData done [21:04:04]CreateOFDProtocolMessage [21:04:04]wFMCommunicate request_size=4 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 11 00 00 [21:04:04]Write to MH i2c: E2 08 00 28 08 80 11 00 00 00 00 00 00 AA [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 17 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 17 00 28 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [21:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:04:04]wFMCommunicate OK [21:04:04]CreateOFDProtocolMessage done [21:04:04]OFDSenderStorePacket 187486 [21:04:04]StoreOFDPacket docnum=187486 [21:04:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 62 07 01 AB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 1F 01 00 00 F4 03 04 00 C4 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DC 02 00 35 04 06 00 87 5F F3 F0 EA 93 14 56 4F C2 73 5E F1 DD [21:04:04]CheckFolder [21:04:04]dirname=/storage/ofd_packets [21:04:04]CheckFolder done [21:04:04]ProducePacketName [21:04:04]name=ofd_packets/00187486 [21:04:04]NVStorageSaveData ofd_packets/00187486 [21:04:04]File name is /storage/ofd_packets/00187486 [21:04:04]Write 301 bytes [21:04:04]NVStorageSaveData done [21:04:04]OFDSenderStorePacket done [21:04:04]KKMCreateOFDPacket done [21:04:04]NVStorageSaveData kkm_last_timestamp [21:04:04]File name is /storage/kkm_last_timestamp [21:04:04]Write 4 bytes [21:04:04]NVStorageSaveData done [21:04:04]ExternCall_PrintAddStr [21:04:04]wPrintStart [21:04:04]Write to MH i2c: 01 00 00 29 08 31 [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: 01 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: 01 07 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 FF 0F 46 [21:04:04]RasterBufferAndPrint [21:04:04]line Счет N : (1)412643 [21:04:04]line ИНН: 02508201610067 [21:04:04]line Контрольно-Кассовый Чек [21:04:04]line ПРОДАЖА [21:04:04]line ТРК (МРК, ГНК) : 43 [21:04:04]line Товар: 2710124500 [21:04:04]line Аи-95-К-5 [21:04:04]line 41.730 * 71.90 [21:04:04]line = 3000.39 [21:04:04]line НДС 12% НСП 1% [21:04:04]line > о реализуемом товаре [21:04:04]line ОКРУГЛЕНИЕ: -0.39 [21:04:04]line ИТОГО: 3000.00 [21:04:04]line Внесено: 3000.00 [21:04:04]line СДАЧА: 0.00 [21:04:04]line НСП 1% : 26.55 [21:04:04]line НДС 12% : 318.62 [21:04:04]line Наличными: 3000.00 [21:04:04]line Безнал.: 0.00 [21:04:04]line Место: АЗС № 92 "Партнер Нефть" [21:04:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:04:04]line СНО: Общий режим [21:04:04]line Чек 287 20.02.2025 21:04 [21:04:04]line Смена: 648 ФФД: 1.0 [21:04:04]line ЗНМ: 0300000118 [21:04:04]line РНМ: 0000000000091857 [21:04:04]line Версия ККМ: 001 [21:04:04]line ФМ: 0000000000871826 [21:04:04]line ФД: 187486 [21:04:04]line ФПД: 148846184295059 [21:04:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T210404&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187486&fm=148846184295059&tin=02508201610067®Number=0000000000091857&sum=300000 [21:04:04]written 0, free lines is 4095 [21:04:04]OFD Sender: Processing packet 187486 [packets to send 49, broken 48] [21:04:04]ProducePacketName [21:04:04]name=ofd_packets/00187486 [21:04:04]OFD Sender: To server: pG, [21:04:04]CommunicateWithHost lk.salyk.kg:30040 [21:04:04]ConnectInit lk.salyk.kg [21:04:04]Connected sock=10 [21:04:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 62 07 01 AB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 1F 01 00 00 F4 03 04 00 C4 98 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DC 02 00 35 04 06 00 87 5F F3 F0 EA 93 14 56 4F C2 73 5E F1 DD [21:04:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C2 EE 47 00 28 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E DC 02 00 F4 03 04 00 13 3F B7 67 B6 04 01 00 00 A1 F8 A9 6C 36 51 1B 41 [21:04:05]CommunicateWithHost err = 0 [21:04:05]CheckOFDResponse [21:04:05]1017 (14) - 77093643461234 [21:04:05]1041 (16) - 0000000000871826 [21:04:05]1040 (4) - 187486 [21:04:05]1012 (4) - 20.02.2025 14:41 [21:04:05]1206 (1) - 0 [21:04:05]OFD Sender: Remove packet 187486 [21:04:05]ProducePacketName [21:04:05]name=ofd_packets/00187486 [21:04:05]NVStorageDeleteData [21:04:05]Write to MH i2c: 01 00 00 54 08 5C [21:04:05]Write i2c OK [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: 01 [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: 01 07 00 [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: 01 07 00 54 08 00 00 00 00 00 1B 0D 8B [21:04:05]RasterBufferAndPrint [21:04:05]line [21:04:05]line [21:04:05]line [21:04:05]line [21:04:05]line [21:04:05]written 0, free lines is 3364 [21:04:05]MH_Cut [21:04:05]Write to MH i2c: D1 01 00 5B 08 01 35 [21:04:05]Write i2c OK [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: D1 [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: D1 01 00 [21:04:05]MH_I2C_Read... [21:04:05]Read from MH i2c: D1 01 00 5B 08 00 34 [21:04:05]Write to MH i2c: 01 00 00 5C 08 64 [21:04:05]Write i2c OK [21:04:05]MH_I2C_Read... [21:04:05]OFD Sender: No OFD packet to send [21:04:05]*** Cut start [21:04:05]*** Partial cut [21:04:05]*** CUTSNS_PIN = 1 [21:04:05]*** CUTSNS_PIN = 0 [21:04:06]*** Brake cut motor [21:04:06]Read from MH i2c: 01 [21:04:06]MH_I2C_Read... [21:04:06]*** Stop cut motor [21:04:06]*** Cut end [21:04:06]Read from MH i2c: 01 07 00 [21:04:06]MH_I2C_Read... [21:04:06]Read from MH i2c: 01 07 00 5C 08 00 00 00 00 00 FF 0F 79 [21:04:06]process_action close_receipt done [21:04:06]requested_data is exist [21:04:06]produce_requested_data [21:04:06]requested_item fm.sn is exist - process it [21:04:06]wFMCommunicate request_size=4 [21:04:06]MH_SAM_APDU [21:04:06]CAPDU: 80 11 00 00 [21:04:06]Write to MH i2c: E2 08 00 5D 08 80 11 00 00 00 00 00 00 DF [21:04:06]Write i2c OK [21:04:06]MH_I2C_Read... [21:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:06]Read from MH i2c: E2 [21:04:06]MH_I2C_Read... [21:04:06]Read from MH i2c: E2 17 00 [21:04:06]MH_I2C_Read... [21:04:06]Read from MH i2c: E2 17 00 5D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [21:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:04:06]wFMCommunicate OK [21:04:06]requested_item fd.num is exist - process it [21:04:06]SAM_PROTO_GetFieldsCounters [21:04:06]wFMCommunicate request_size=4 [21:04:06]MH_SAM_APDU [21:04:06]CAPDU: 80 13 00 00 [21:04:06]Write to MH i2c: E2 08 00 5E 08 80 13 00 00 00 00 00 00 E2 [21:04:06]Write i2c OK [21:04:06]MH_I2C_Read... [21:04:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:06]Read from MH i2c: E2 [21:04:06]MH_I2C_Read... [21:04:06]Read from MH i2c: E2 62 00 [21:04:06]MH_I2C_Read... [21:04:06]Read from MH i2c: E2 62 00 5E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5E DC 02 00 0E 04 04 00 88 02 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 2E [21:04:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5E DC 02 00 0E 04 04 00 88 02 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 [21:04:06]wFMCommunicate OK [21:04:06]SAM_PROTO_GetFieldsCounters done [21:04:06]requested_item shift.num is exist - process it [21:04:06]requested_item shift.opened is exist - process it [21:04:06]req_shift_opened [21:04:06]FM_GetShiftState [21:04:06]SAM_PROTO_GetShiftState [21:04:06]wFMCommunicate request_size=4 [21:04:06]MH_SAM_APDU [21:04:06]CAPDU: 80 13 01 00 [21:04:06]Write to MH i2c: E2 08 00 5F 08 80 13 01 00 00 00 00 00 E4 [21:04:06]Write i2c OK [21:04:06]MH_I2C_Read... [21:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:06]Read from MH i2c: E2 [21:04:06]MH_I2C_Read... [21:04:06]Read from MH i2c: E2 0E 00 [21:04:06]MH_I2C_Read... [21:04:06]Read from MH i2c: E2 0E 00 5F 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 36 [21:04:06]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:04:06]wFMCommunicate OK [21:04:06]SAM_PROTO_GetShiftState done [21:04:06]FM_GetShiftState done [21:04:06]req_shift_opened done [21:04:06]requested_item shift.open_date is exist - process it [21:04:06]req_shift_open_date [21:04:06]req_shift_open_date done [21:04:06]produce_requested_data done [21:04:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187486,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [21:04:06]process_action_free close_receipt [21:04:06]json_value_free [21:04:06]json_value_free done [21:04:06]process_json_proto returns [21:04:06]Send response to host [21:04:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187486,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [21:04:06]free response buf [21:04:06]execute_script done [21:04:06]execute_script returns [21:04:06]free content buf [21:04:06]Sock 9.Close socket [21:04:06]Sock 9.Thread stoped [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:12]accept exits with 7 [21:24:12]New connection [21:24:12]New thread 3067223396 created [21:24:12]Thread 3067080036 joined [21:24:12]Waiting for new connection... [21:24:12] Sock 7.Parse request [21:24:12]Sock 7.Check first char [21:24:12]Sock 7.First char is OK [21:24:12]request: POST /json_proto HTTP/1.0 [21:24:12]Method: POST [21:24:12]URL: /json_proto [21:24:12]Method is POST - this is cgi request [21:24:12]url: /json_proto [21:24:12]query_string will be loaded in cgi processing [21:24:12]execute_cgi json_proto POST (null) [21:24:12]execute_cgi path=json_proto method=POST [21:24:12]POST find Content-Length [21:24:12]Host: 172.17.46.131:8080 [21:24:12]Content-Length: 800 [21:24:12]Content-Type: application/json [21:24:12] [21:24:12]POST finish read [21:24:12]Found Content-Length = 800 [21:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:12]execute_script... [21:24: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)412646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:12]POST & json_proto [21:24:12]process_json_proto [21:24:12]json parsed OK: [21:24:12]protocol is kg_v1.0 [21:24:12]action value=close_receipt [21:24:12]process_action close_receipt [21:24:12]cmd_close_receipt [21:24:12]MH_GetDate [21:24:12]Write to MH i2c: F0 00 00 60 08 57 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: F0 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: F0 09 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: F0 09 00 60 08 00 7D 9D B7 67 7E 41 4F 65 0B [21:24:12]GetLastDocTimeStamp 1740085444 [21:24:12]current date 1740086653 [21:24:12]FM_GetShiftState [21:24:12]SAM_PROTO_GetShiftState [21:24:12]wFMCommunicate request_size=4 [21:24:12]MH_SAM_APDU [21:24:12]CAPDU: 80 13 01 00 [21:24:12]Write to MH i2c: E2 08 00 61 08 80 13 01 00 00 00 00 00 E6 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:12]Read from MH i2c: E2 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 0E 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 0E 00 61 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 38 [21:24:12]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:24:12]wFMCommunicate OK [21:24:12]SAM_PROTO_GetShiftState done [21:24:12]FM_GetShiftState done [21:24:12]opened in 1740011697 [21:24:12]opened+sec_in_day 1740098097 [21:24:12]quantity*price = 50011 [21:24:12]sum+1 = 50013 [21:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 288 20.02.2025 21:24 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187487 ФПД: 164572657199340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T212413&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187487&fm=164572657199340&tin=02508201610067®Number=0000000000091857&sum=50012 [21:24:13]StoreToDocumentArchive [21:24:13]shift 648 fd 187487 [21:24:13]save to /storage/0648/doc_00187487 [21:24:13]save last doc name /storage/0648/doc_00187487 to /storage/kkm_last_doc_name [21:24:13]save OK [21:24:13]Clear old archive folders... [21:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:13]tlvbuf is 020556C0 [21:24:13]SAM_PROTO_ClearQueue [21:24:13]wFMCommunicate request_size=4 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 09 00 00 [21:24:13]Write to MH i2c: E2 08 00 6E 08 80 09 00 00 00 00 00 00 E8 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [21:24:13]RAPDU: 90 00 [21:24:13]wFMCommunicate OK [21:24:13]SAM_PROTO_ClearQueue done [21:24:13]KKMCreateOFDPacket [21:24:13]OFDProtocolAddRootSTLVToBuf [21:24:13]FM_MakeSignedData [21:24:13]FM_MakeSignedData [21:24:13]SAM_PROTO_SignData [21:24:13]wFMCommunicate request_size=4 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 0D 01 02 [21:24:13]Write to MH i2c: E2 08 00 6F 08 80 0D 01 02 00 00 00 00 F0 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [21:24:13]RAPDU: 90 00 [21:24:13]wFMCommunicate OK [21:24:13]wFMCommunicate request_size=255 [21:24:13]MH_SAM_APDU [21:24: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 7D 9D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DC 02 00 35 04 06 00 95 [21:24:13]Write to MH i2c: E2 02 01 70 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 7D 9D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DC 02 00 35 04 06 00 95 00 00 56 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [21:24:13]RAPDU: 90 00 [21:24:13]wFMCommunicate OK [21:24:13]wFMCommunicate request_size=10 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 0D 02 02 05 AD 8E C5 A8 EC [21:24:13]Write to MH i2c: E2 0D 00 71 08 80 0D 02 02 05 00 AD 8E C5 A8 EC 00 00 91 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 71 08 00 90 00 ED [21:24:13]RAPDU: 90 00 [21:24:13]wFMCommunicate OK [21:24:13]wFMCommunicate request_size=4 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 0D 03 02 [21:24:13]Write to MH i2c: E2 08 00 72 08 80 0D 03 02 00 00 00 00 F5 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 0B 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 0B 00 72 08 00 99 83 FF C6 6F 0B 80 29 90 00 FA [21:24:13]RAPDU: 99 83 FF C6 6F 0B 80 29 90 00 [21:24:13]wFMCommunicate OK [21:24:13]SAM_PROTO_SignData done [21:24:13]FM_MakeSignedData done [21:24:13]CreateOFDProtocolMessage [21:24:13]wFMCommunicate request_size=4 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 11 00 00 [21:24:13]Write to MH i2c: E2 08 00 73 08 80 11 00 00 00 00 00 00 F5 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 17 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 17 00 73 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [21:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:24:13]wFMCommunicate OK [21:24:13]CreateOFDProtocolMessage done [21:24:13]OFDSenderStorePacket 187487 [21:24:13]StoreOFDPacket docnum=187487 [21:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E6 B8 07 01 7D 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 7D 9D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DC 02 00 35 04 06 00 95 AD 8E C5 A8 EC 99 83 FF C6 6F 0B 80 29 [21:24:13]CheckFolder [21:24:13]dirname=/storage/ofd_packets [21:24:13]CheckFolder done [21:24:13]ProducePacketName [21:24:13]name=ofd_packets/00187487 [21:24:13]NVStorageSaveData ofd_packets/00187487 [21:24:13]File name is /storage/ofd_packets/00187487 [21:24:13]Write 301 bytes [21:24:13]NVStorageSaveData done [21:24:13]OFDSenderStorePacket done [21:24:13]KKMCreateOFDPacket done [21:24:13]NVStorageSaveData kkm_last_timestamp [21:24:13]File name is /storage/kkm_last_timestamp [21:24:13]Write 4 bytes [21:24:13]NVStorageSaveData done [21:24:13]OFD Sender: Processing packet 187487 [packets to send 49, broken 48] [21:24:13]ProducePacketName [21:24:13]name=ofd_packets/00187487 [21:24:13]OFD Sender: To server: pG, [21:24:13]CommunicateWithHost lk.salyk.kg:30040 [21:24:13]ConnectInit lk.salyk.kg [21:24:13]ExternCall_PrintAddStr [21:24:13]wPrintStart [21:24:13]Write to MH i2c: 01 00 00 74 08 7C [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: 01 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: 01 07 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: 01 07 00 74 08 00 00 00 00 00 FF 0F 91 [21:24:13]RasterBufferAndPrint [21:24:13]line Счет N : (1)412646 [21:24:13]line ИНН: 02508201610067 [21:24:13]line Контрольно-Кассовый Чек [21:24:13]line ПРОДАЖА [21:24:13]line ТРК (МРК, ГНК) : 12 [21:24:13]line Товар: 2710124130 [21:24:13]line Аи-92-К-2 [21:24:13]line 7.790 * 64.20 [21:24:13]line = 500.12 [21:24:13]line НДС 12% НСП 1% [21:24:13]line > о реализуемом товаре [21:24:13]line ИТОГО: 500.12 [21:24:13]line НСП 1% : 4.43 [21:24:13]line НДС 12% : 53.11 [21:24:13]line Наличными: 0.00 [21:24:13]line Безнал.: 500.12 [21:24:13]line Место: АЗС № 92 "Партнер Нефть" [21:24:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:24:13]line СНО: Общий режим [21:24:13]line Чек 288 20.02.2025 21:24 [21:24:13]line Смена: 648 ФФД: 1.0 [21:24:13]line ЗНМ: 0300000118 [21:24:13]line РНМ: 0000000000091857 [21:24:13]line Версия ККМ: 001 [21:24:13]line Платежная система: O! деньги [21:24:13]line ФМ: 0000000000871826 [21:24:13]line ФД: 187487 [21:24:13]line ФПД: 164572657199340 [21:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T212413&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187487&fm=164572657199340&tin=02508201610067®Number=0000000000091857&sum=50012 [21:24:14]Connected sock=11 [21:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E6 B8 07 01 7D 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 7D 9D B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DC 02 00 35 04 06 00 95 AD 8E C5 A8 EC 99 83 FF C6 6F 0B 80 29 [21:24:14]written 0, free lines is 4095 [21:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0B 74 47 00 BC 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DC 02 00 F4 03 04 00 CC 43 B7 67 B6 04 01 00 00 E0 8E DB 58 B4 F6 BD EE [21:24:14]CommunicateWithHost err = 0 [21:24:14]CheckOFDResponse [21:24:14]1017 (14) - 77093643461234 [21:24:14]1041 (16) - 0000000000871826 [21:24:14]1040 (4) - 187487 [21:24:14]1012 (4) - 20.02.2025 15:01 [21:24:14]1206 (1) - 0 [21:24:14]OFD Sender: Remove packet 187487 [21:24:14]ProducePacketName [21:24:14]name=ofd_packets/00187487 [21:24:14]NVStorageDeleteData [21:24:14]Write to MH i2c: 01 00 00 9E 08 A6 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 07 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 06 0D C0 [21:24:14]RasterBufferAndPrint [21:24:14]line [21:24:14]line [21:24:14]line [21:24:14]line [21:24:14]line [21:24:14]written 0, free lines is 3340 [21:24:14]MH_Cut [21:24:14]Write to MH i2c: D1 01 00 A5 08 01 7F [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: D1 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: D1 01 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: D1 01 00 A5 08 00 7E [21:24:14]Write to MH i2c: 01 00 00 A6 08 AE [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]OFD Sender: No OFD packet to send [21:24:15]*** Cut start [21:24:15]*** Partial cut [21:24:15]*** CUTSNS_PIN = 1 [21:24:15]*** CUTSNS_PIN = 0 [21:24:15]*** Brake cut motor [21:24:16]Read from MH i2c: 01 [21:24:16]MH_I2C_Read... [21:24:16]*** Stop cut motor [21:24:16]*** Cut end [21:24:16]Read from MH i2c: 01 07 00 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 FF 0F C3 [21:24:16]process_action close_receipt done [21:24:16]requested_data is exist [21:24:16]produce_requested_data [21:24:16]requested_item fm.sn is exist - process it [21:24:16]wFMCommunicate request_size=4 [21:24:16]MH_SAM_APDU [21:24:16]CAPDU: 80 11 00 00 [21:24:16]Write to MH i2c: E2 08 00 A7 08 80 11 00 00 00 00 00 00 29 [21:24:16]Write i2c OK [21:24:16]MH_I2C_Read... [21:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:16]Read from MH i2c: E2 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 17 00 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 17 00 A7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [21:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:24:16]wFMCommunicate OK [21:24:16]requested_item fd.num is exist - process it [21:24:16]SAM_PROTO_GetFieldsCounters [21:24:16]wFMCommunicate request_size=4 [21:24:16]MH_SAM_APDU [21:24:16]CAPDU: 80 13 00 00 [21:24:16]Write to MH i2c: E2 08 00 A8 08 80 13 00 00 00 00 00 00 2C [21:24:16]Write i2c OK [21:24:16]MH_I2C_Read... [21:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:16]Read from MH i2c: E2 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 62 00 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 62 00 A8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5F DC 02 00 0E 04 04 00 88 02 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 7C [21: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5F DC 02 00 0E 04 04 00 88 02 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 [21:24:16]wFMCommunicate OK [21:24:16]SAM_PROTO_GetFieldsCounters done [21:24:16]requested_item shift.num is exist - process it [21:24:16]requested_item shift.opened is exist - process it [21:24:16]req_shift_opened [21:24:16]FM_GetShiftState [21:24:16]SAM_PROTO_GetShiftState [21:24:16]wFMCommunicate request_size=4 [21:24:16]MH_SAM_APDU [21:24:16]CAPDU: 80 13 01 00 [21:24:16]Write to MH i2c: E2 08 00 A9 08 80 13 01 00 00 00 00 00 2E [21:24:16]Write i2c OK [21:24:16]MH_I2C_Read... [21:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:16]Read from MH i2c: E2 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 0E 00 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 0E 00 A9 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 80 [21:24:16]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:24:16]wFMCommunicate OK [21:24:16]SAM_PROTO_GetShiftState done [21:24:16]FM_GetShiftState done [21:24:16]req_shift_opened done [21:24:16]requested_item shift.open_date is exist - process it [21:24:16]req_shift_open_date [21:24:16]req_shift_open_date done [21:24:16]produce_requested_data done [21:24:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187487,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [21:24:16]process_action_free close_receipt [21:24:16]json_value_free [21:24:16]json_value_free done [21:24:16]process_json_proto returns [21:24:16]Send response to host [21:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187487,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [21:24:16]free response buf [21:24:16]execute_script done [21:24:16]execute_script returns [21:24:16]free content buf [21:24:16]Sock 7.Close socket [21:24:16]Sock 7.Thread stoped [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]accept exits with 9 [21:36:35]New connection [21:36:35]New thread 3067080036 created [21:36:35]Thread 3067223396 joined [21:36:35]Waiting for new connection... [21:36:35] Sock 9.Parse request [21:36:35]Sock 9.Check first char [21:36:35]Sock 9.First char is OK [21:36:35]request: POST /json_proto HTTP/1.0 [21:36:35]Method: POST [21:36:35]URL: /json_proto [21:36:35]Method is POST - this is cgi request [21:36:35]url: /json_proto [21:36:35]query_string will be loaded in cgi processing [21:36:35]execute_cgi json_proto POST (null) [21:36:35]execute_cgi path=json_proto method=POST [21:36:35]POST find Content-Length [21:36:35]Host: 172.17.46.131:8080 [21:36:35]Content-Length: 803 [21:36:35]Content-Type: application/json [21:36:35] [21:36:35]POST finish read [21:36:35]Found Content-Length = 803 [21:36:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:35]execute_script... [21:36: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)412647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:35]POST & json_proto [21:36:35]process_json_proto [21:36:35]json parsed OK: [21:36:35]protocol is kg_v1.0 [21:36:35]action value=close_receipt [21:36:35]process_action close_receipt [21:36:35]cmd_close_receipt [21:36:35]MH_GetDate [21:36:35]Write to MH i2c: F0 00 00 AA 08 A1 [21:36:35]Write i2c OK [21:36:35]MH_I2C_Read... [21:36:35]Read from MH i2c: F0 [21:36:35]MH_I2C_Read... [21:36:35]Read from MH i2c: F0 09 00 [21:36:35]MH_I2C_Read... [21:36:35]Read from MH i2c: F0 09 00 AA 08 00 64 A0 B7 67 7E 41 4F 65 3F [21:36:35]GetLastDocTimeStamp 1740086653 [21:36:35]current date 1740087396 [21:36:35]FM_GetShiftState [21:36:35]SAM_PROTO_GetShiftState [21:36:35]wFMCommunicate request_size=4 [21:36:35]MH_SAM_APDU [21:36:35]CAPDU: 80 13 01 00 [21:36:35]Write to MH i2c: E2 08 00 AB 08 80 13 01 00 00 00 00 00 30 [21:36:35]Write i2c OK [21:36:35]MH_I2C_Read... [21:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:35]Read from MH i2c: E2 [21:36:35]MH_I2C_Read... [21:36:35]Read from MH i2c: E2 0E 00 [21:36:35]MH_I2C_Read... [21:36:35]Read from MH i2c: E2 0E 00 AB 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 82 [21:36:35]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:36:35]wFMCommunicate OK [21:36:35]SAM_PROTO_GetShiftState done [21:36:35]FM_GetShiftState done [21:36:35]opened in 1740011697 [21:36:35]opened+sec_in_day 1740098097 [21:36:35]quantity*price = 150035 [21:36:35]sum+1 = 150036 [21:36:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.35 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.35 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 289 20.02.2025 21:36 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187488 ФПД: 252548837407424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T213636&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187488&fm=252548837407424&tin=02508201610067®Number=0000000000091857&sum=150035 [21:36:36]StoreToDocumentArchive [21:36:36]shift 648 fd 187488 [21:36:36]save to /storage/0648/doc_00187488 [21:36:36]save last doc name /storage/0648/doc_00187488 to /storage/kkm_last_doc_name [21:36:36]save OK [21:36:36]Clear old archive folders... [21:36:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:36]tlvbuf is 02031B40 [21:36:36]SAM_PROTO_ClearQueue [21:36:36]wFMCommunicate request_size=4 [21:36:36]MH_SAM_APDU [21:36:36]CAPDU: 80 09 00 00 [21:36:36]Write to MH i2c: E2 08 00 B8 08 80 09 00 00 00 00 00 00 32 [21:36:36]Write i2c OK [21:36:36]MH_I2C_Read... [21:36:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:36]Read from MH i2c: E2 [21:36:36]MH_I2C_Read... [21:36:36]Read from MH i2c: E2 03 00 [21:36:36]MH_I2C_Read... [21:36:36]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [21:36:36]RAPDU: 90 00 [21:36:36]wFMCommunicate OK [21:36:36]SAM_PROTO_ClearQueue done [21:36:36]KKMCreateOFDPacket [21:36:36]OFDProtocolAddRootSTLVToBuf [21:36:36]FM_MakeSignedData [21:36:36]FM_MakeSignedData [21:36:36]SAM_PROTO_SignData [21:36:36]wFMCommunicate request_size=4 [21:36:36]MH_SAM_APDU [21:36:36]CAPDU: 80 0D 01 02 [21:36:36]Write to MH i2c: E2 08 00 B9 08 80 0D 01 02 00 00 00 00 3A [21:36:36]Write i2c OK [21:36:36]MH_I2C_Read... [21:36:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:36]Read from MH i2c: E2 [21:36:36]MH_I2C_Read... [21:36:36]Read from MH i2c: E2 03 00 [21:36:36]MH_I2C_Read... [21:36:36]Read from MH i2c: E2 03 00 B9 08 00 90 00 35 [21:36:36]RAPDU: 90 00 [21:36:36]wFMCommunicate OK [21:36:36]wFMCommunicate request_size=255 [21:36:36]MH_SAM_APDU [21:36: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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 64 A0 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DC 02 00 35 04 06 00 E5 [21:36:36]Write to MH i2c: E2 02 01 BA 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 64 A0 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DC 02 00 35 04 06 00 E5 00 00 D6 [21:36:36]Write i2c OK [21:36:36]MH_I2C_Read... [21:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:36]Read from MH i2c: E2 [21:36:36]MH_I2C_Read... [21:36:36]Read from MH i2c: E2 03 00 [21:36:36]MH_I2C_Read... [21:36:36]Read from MH i2c: E2 03 00 BA 08 00 90 00 36 [21:36:36]RAPDU: 90 00 [21:36:36]wFMCommunicate OK [21:36:36]wFMCommunicate request_size=10 [21:36:36]MH_SAM_APDU [21:36:36]CAPDU: 80 0D 02 02 05 B1 1B BD FA C0 [21:36:36]Write to MH i2c: E2 0D 00 BB 08 80 0D 02 02 05 00 B1 1B BD FA C0 00 00 8A [21:36:36]Write i2c OK [21:36:36]MH_I2C_Read... [21:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:37]Read from MH i2c: E2 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: E2 03 00 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: E2 03 00 BB 08 00 90 00 37 [21:36:37]RAPDU: 90 00 [21:36:37]wFMCommunicate OK [21:36:37]wFMCommunicate request_size=4 [21:36:37]MH_SAM_APDU [21:36:37]CAPDU: 80 0D 03 02 [21:36:37]Write to MH i2c: E2 08 00 BC 08 80 0D 03 02 00 00 00 00 3F [21:36:37]Write i2c OK [21:36:37]MH_I2C_Read... [21:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:37]Read from MH i2c: E2 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: E2 0B 00 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: E2 0B 00 BC 08 00 D2 00 AA 33 11 67 D0 AC 90 00 E3 [21:36:37]RAPDU: D2 00 AA 33 11 67 D0 AC 90 00 [21:36:37]wFMCommunicate OK [21:36:37]SAM_PROTO_SignData done [21:36:37]FM_MakeSignedData done [21:36:37]CreateOFDProtocolMessage [21:36:37]wFMCommunicate request_size=4 [21:36:37]MH_SAM_APDU [21:36:37]CAPDU: 80 11 00 00 [21:36:37]Write to MH i2c: E2 08 00 BD 08 80 11 00 00 00 00 00 00 3F [21:36:37]Write i2c OK [21:36:37]MH_I2C_Read... [21:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:37]Read from MH i2c: E2 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: E2 17 00 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: E2 17 00 BD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [21:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:36:37]wFMCommunicate OK [21:36:37]CreateOFDProtocolMessage done [21:36:37]OFDSenderStorePacket 187488 [21:36:37]StoreOFDPacket docnum=187488 [21:36:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DD A7 07 01 13 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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 64 A0 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DC 02 00 35 04 06 00 E5 B1 1B BD FA C0 D2 00 AA 33 11 67 D0 AC [21:36:37]CheckFolder [21:36:37]dirname=/storage/ofd_packets [21:36:37]CheckFolder done [21:36:37]ProducePacketName [21:36:37]name=ofd_packets/00187488 [21:36:37]NVStorageSaveData ofd_packets/00187488 [21:36:37]File name is /storage/ofd_packets/00187488 [21:36:37]Write 301 bytes [21:36:37]NVStorageSaveData done [21:36:37]OFDSenderStorePacket done [21:36:37]KKMCreateOFDPacket done [21:36:37]NVStorageSaveData kkm_last_timestamp [21:36:37]File name is /storage/kkm_last_timestamp [21:36:37]Write 4 bytes [21:36:37]NVStorageSaveData done [21:36:37]ExternCall_PrintAddStr [21:36:37]wPrintStart [21:36:37]Write to MH i2c: 01 00 00 BE 08 C6 [21:36:37]Write i2c OK [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: 01 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: 01 07 00 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 FF 0F DB [21:36:37]RasterBufferAndPrint [21:36:37]line Счет N : (1)412647 [21:36:37]line ИНН: 02508201610067 [21:36:37]line Контрольно-Кассовый Чек [21:36:37]line ПРОДАЖА [21:36:37]line ТРК (МРК, ГНК) : 32 [21:36:37]line Товар: 2710124130 [21:36:37]line Аи-92-К-2 [21:36:37]line 23.370 * 64.20 [21:36:37]line = 1500.35 [21:36:37]line НДС 12% НСП 1% [21:36:37]line > о реализуемом товаре [21:36:37]line ИТОГО: 1500.35 [21:36:37]line НСП 1% : 13.28 [21:36:37]line НДС 12% : 159.33 [21:36:37]line Наличными: 0.00 [21:36:37]line Безнал.: 1500.35 [21:36:37]line Место: АЗС № 92 "Партнер Нефть" [21:36:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:36:37]line СНО: Общий режим [21:36:37]line Чек 289 20.02.2025 21:36 [21:36:37]line Смена: 648 ФФД: 1.0 [21:36:37]line ЗНМ: 0300000118 [21:36:37]line РНМ: 0000000000091857 [21:36:37]line Версия ККМ: 001 [21:36:37]line Платежная система: O! деньги [21:36:37]line ФМ: 0000000000871826 [21:36:37]line ФД: 187488 [21:36:37]line ФПД: 252548837407424 [21:36:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T213636&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187488&fm=252548837407424&tin=02508201610067®Number=0000000000091857&sum=150035 [21:36:37]OFD Sender: Processing packet 187488 [packets to send 49, broken 48] [21:36:37]ProducePacketName [21:36:37]name=ofd_packets/00187488 [21:36:37]OFD Sender: To server: pG, [21:36:37]CommunicateWithHost lk.salyk.kg:30040 [21:36:37]ConnectInit lk.salyk.kg [21:36:37]written 0, free lines is 4095 [21:36:37]Connected sock=11 [21:36:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DD A7 07 01 13 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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 64 A0 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DC 02 00 35 04 06 00 E5 B1 1B BD FA C0 D2 00 AA 33 11 67 D0 AC [21:36:37]Write to MH i2c: 01 00 00 E8 08 F0 [21:36:37]Write i2c OK [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: 01 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: 01 07 00 [21:36:37]MH_I2C_Read... [21:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 81 94 47 00 F2 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DC 02 00 F4 03 04 00 B4 46 B7 67 B6 04 01 00 00 D5 C7 AE 23 C2 7C 8B E0 [21:36:37]CommunicateWithHost err = 0 [21:36:37]CheckOFDResponse [21:36:37]1017 (14) - 77093643461234 [21:36:37]1041 (16) - 0000000000871826 [21:36:37]1040 (4) - 187488 [21:36:37]1012 (4) - 20.02.2025 15:13 [21:36:37]1206 (1) - 0 [21:36:37]OFD Sender: Remove packet 187488 [21:36:37]ProducePacketName [21:36:37]name=ofd_packets/00187488 [21:36:37]NVStorageDeleteData [21:36:37]Read from MH i2c: 01 07 00 E8 08 00 00 00 00 00 1B 0D 1F [21:36:37]RasterBufferAndPrint [21:36:37]line [21:36:37]line [21:36:37]line [21:36:37]line [21:36:37]line [21:36:37]written 0, free lines is 3367 [21:36:37]MH_Cut [21:36:37]Write to MH i2c: D1 01 00 EF 08 01 C9 [21:36:37]Write i2c OK [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: D1 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: D1 01 00 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: D1 01 00 EF 08 00 C8 [21:36:37]Write to MH i2c: 01 00 00 F0 08 F8 [21:36:37]Write i2c OK [21:36:37]MH_I2C_Read... [21:36:38]OFD Sender: No OFD packet to send [21:36:38]*** Cut start [21:36:38]*** Partial cut [21:36:38]*** CUTSNS_PIN = 1 [21:36:38]*** CUTSNS_PIN = 0 [21:36:38]*** Brake cut motor [21:36:39]Read from MH i2c: 01 [21:36:39]MH_I2C_Read... [21:36:39]*** Stop cut motor [21:36:39]*** Cut end [21:36:39]Read from MH i2c: 01 07 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 07 00 F0 08 00 00 00 00 00 FF 0F 0D [21:36:39]process_action close_receipt done [21:36:39]requested_data is exist [21:36:39]produce_requested_data [21:36:39]requested_item fm.sn is exist - process it [21:36:39]wFMCommunicate request_size=4 [21:36:39]MH_SAM_APDU [21:36:39]CAPDU: 80 11 00 00 [21:36:39]Write to MH i2c: E2 08 00 F1 08 80 11 00 00 00 00 00 00 73 [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:39]Read from MH i2c: E2 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 17 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 17 00 F1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C6 [21:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:36:39]wFMCommunicate OK [21:36:39]requested_item fd.num is exist - process it [21:36:39]SAM_PROTO_GetFieldsCounters [21:36:39]wFMCommunicate request_size=4 [21:36:39]MH_SAM_APDU [21:36:39]CAPDU: 80 13 00 00 [21:36:39]Write to MH i2c: E2 08 00 F2 08 80 13 00 00 00 00 00 00 76 [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:39]Read from MH i2c: E2 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 62 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 62 00 F2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 60 DC 02 00 0E 04 04 00 88 02 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 CA [21:36:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 60 DC 02 00 0E 04 04 00 88 02 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 [21:36:39]wFMCommunicate OK [21:36:39]SAM_PROTO_GetFieldsCounters done [21:36:39]requested_item shift.num is exist - process it [21:36:39]requested_item shift.opened is exist - process it [21:36:39]req_shift_opened [21:36:39]FM_GetShiftState [21:36:39]SAM_PROTO_GetShiftState [21:36:39]wFMCommunicate request_size=4 [21:36:39]MH_SAM_APDU [21:36:39]CAPDU: 80 13 01 00 [21:36:39]Write to MH i2c: E2 08 00 F3 08 80 13 01 00 00 00 00 00 78 [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:39]Read from MH i2c: E2 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 0E 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 0E 00 F3 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CA [21:36:39]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:36:39]wFMCommunicate OK [21:36:39]SAM_PROTO_GetShiftState done [21:36:39]FM_GetShiftState done [21:36:39]req_shift_opened done [21:36:39]requested_item shift.open_date is exist - process it [21:36:39]req_shift_open_date [21:36:39]req_shift_open_date done [21:36:39]produce_requested_data done [21:36:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187488,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [21:36:39]process_action_free close_receipt [21:36:39]json_value_free [21:36:39]json_value_free done [21:36:39]process_json_proto returns [21:36:39]Send response to host [21:36:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187488,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [21:36:39]free response buf [21:36:39]execute_script done [21:36:39]execute_script returns [21:36:39]free content buf [21:36:39]Sock 9.Close socket [21:36:39]Sock 9.Thread stoped [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:53]accept exits with 7 [21:52:53]New connection [21:52:53]New thread 3067223396 created [21:52:53]Thread 3067080036 joined [21:52:53]Waiting for new connection... [21:52:53] Sock 7.Parse request [21:52:53]Sock 7.Check first char [21:52:53]Sock 7.First char is OK [21:52:53]request: POST /json_proto HTTP/1.0 [21:52:53]Method: POST [21:52:53]URL: /json_proto [21:52:53]Method is POST - this is cgi request [21:52:53]url: /json_proto [21:52:53]query_string will be loaded in cgi processing [21:52:53]execute_cgi json_proto POST (null) [21:52:53]execute_cgi path=json_proto method=POST [21:52:53]POST find Content-Length [21:52:53]Host: 172.17.46.131:8080 [21:52:53]Content-Length: 799 [21:52:53]Content-Type: application/json [21:52:53] [21:52:53]POST finish read [21:52:53]Found Content-Length = 799 [21:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 15.160, "sum" : 1100.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1100.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:53]execute_script... [21:52: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)412648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 15.160, "sum" : 1100.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1100.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:53]POST & json_proto [21:52:53]process_json_proto [21:52:53]json parsed OK: [21:52:53]protocol is kg_v1.0 [21:52:53]action value=close_receipt [21:52:53]process_action close_receipt [21:52:53]cmd_close_receipt [21:52:53]MH_GetDate [21:52:53]Write to MH i2c: F0 00 00 F4 08 EB [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: F0 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: F0 09 00 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: F0 09 00 F4 08 00 36 A4 B7 67 7E 41 4F 65 5F [21:52:53]GetLastDocTimeStamp 1740087396 [21:52:53]current date 1740088374 [21:52:53]FM_GetShiftState [21:52:53]SAM_PROTO_GetShiftState [21:52:53]wFMCommunicate request_size=4 [21:52:53]MH_SAM_APDU [21:52:53]CAPDU: 80 13 01 00 [21:52:53]Write to MH i2c: E2 08 00 F5 08 80 13 01 00 00 00 00 00 7A [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:53]Read from MH i2c: E2 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: E2 0E 00 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: E2 0E 00 F5 08 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 CC [21:52:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:52:53]wFMCommunicate OK [21:52:53]SAM_PROTO_GetShiftState done [21:52:53]FM_GetShiftState done [21:52:53]opened in 1740011697 [21:52:53]opened+sec_in_day 1740098097 [21:52:53]quantity*price = 110061 [21:52:53]sum+1 = 110063 [21:52:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.62 НСП 1% : 9.74 НДС 12% : 116.88 Наличными: 0.00 Безнал.: 1100.62 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 290 20.02.2025 21:52 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187489 ФПД: 265307655580612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T215254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187489&fm=265307655580612&tin=02508201610067®Number=0000000000091857&sum=110062 [21:52:54]StoreToDocumentArchive [21:52:54]shift 648 fd 187489 [21:52:54]save to /storage/0648/doc_00187489 [21:52:54]save last doc name /storage/0648/doc_00187489 to /storage/kkm_last_doc_name [21:52:54]save OK [21:52:54]Clear old archive folders... [21:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:52:54]tlvbuf is 0204C0A0 [21:52:54]SAM_PROTO_ClearQueue [21:52:54]wFMCommunicate request_size=4 [21:52:54]MH_SAM_APDU [21:52:54]CAPDU: 80 09 00 00 [21:52:54]Write to MH i2c: E2 08 00 02 09 80 09 00 00 00 00 00 00 7D [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 03 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 03 00 02 09 00 90 00 7F [21:52:54]RAPDU: 90 00 [21:52:54]wFMCommunicate OK [21:52:54]SAM_PROTO_ClearQueue done [21:52:54]KKMCreateOFDPacket [21:52:54]OFDProtocolAddRootSTLVToBuf [21:52:54]FM_MakeSignedData [21:52:54]FM_MakeSignedData [21:52:54]SAM_PROTO_SignData [21:52:54]wFMCommunicate request_size=4 [21:52:54]MH_SAM_APDU [21:52:54]CAPDU: 80 0D 01 02 [21:52:54]Write to MH i2c: E2 08 00 03 09 80 0D 01 02 00 00 00 00 85 [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 03 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [21:52:54]RAPDU: 90 00 [21:52:54]wFMCommunicate OK [21:52:54]wFMCommunicate request_size=255 [21:52:54]MH_SAM_APDU [21:52: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 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 36 A4 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DC 02 00 35 04 06 00 F1 4B C0 91 [21:52:54]Write to MH i2c: E2 02 01 04 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 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 36 A4 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DC 02 00 35 04 06 00 F1 4B C0 91 00 00 BD [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 03 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 03 00 04 09 00 90 00 81 [21:52:54]RAPDU: 90 00 [21:52:54]wFMCommunicate OK [21:52:54]wFMCommunicate request_size=7 [21:52:54]MH_SAM_APDU [21:52:54]CAPDU: 80 0D 02 02 02 2B C4 [21:52:54]Write to MH i2c: E2 0A 00 05 09 80 0D 02 02 02 00 2B C4 00 00 7B [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 03 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 03 00 05 09 00 90 00 82 [21:52:54]RAPDU: 90 00 [21:52:54]wFMCommunicate OK [21:52:54]wFMCommunicate request_size=4 [21:52:54]MH_SAM_APDU [21:52:54]CAPDU: 80 0D 03 02 [21:52:54]Write to MH i2c: E2 08 00 06 09 80 0D 03 02 00 00 00 00 8A [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 0B 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 0B 00 06 09 00 2E DC 44 C7 CA 8A 30 7D 90 00 A1 [21:52:54]RAPDU: 2E DC 44 C7 CA 8A 30 7D 90 00 [21:52:54]wFMCommunicate OK [21:52:54]SAM_PROTO_SignData done [21:52:54]FM_MakeSignedData done [21:52:54]CreateOFDProtocolMessage [21:52:54]wFMCommunicate request_size=4 [21:52:54]MH_SAM_APDU [21:52:54]CAPDU: 80 11 00 00 [21:52:54]Write to MH i2c: E2 08 00 07 09 80 11 00 00 00 00 00 00 8A [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 17 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 17 00 07 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [21:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:52:54]wFMCommunicate OK [21:52:54]CreateOFDProtocolMessage done [21:52:54]OFDSenderStorePacket 187489 [21:52:54]StoreOFDPacket docnum=187489 [21:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3E 36 04 01 37 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 36 A4 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DC 02 00 35 04 06 00 F1 4B C0 91 2B C4 2E DC 44 C7 CA 8A 30 7D [21:52:54]CheckFolder [21:52:54]dirname=/storage/ofd_packets [21:52:54]CheckFolder done [21:52:54]ProducePacketName [21:52:54]name=ofd_packets/00187489 [21:52:54]NVStorageSaveData ofd_packets/00187489 [21:52:54]File name is /storage/ofd_packets/00187489 [21:52:54]Write 298 bytes [21:52:54]NVStorageSaveData done [21:52:54]OFDSenderStorePacket done [21:52:54]KKMCreateOFDPacket done [21:52:54]NVStorageSaveData kkm_last_timestamp [21:52:54]File name is /storage/kkm_last_timestamp [21:52:54]Write 4 bytes [21:52:54]NVStorageSaveData done [21:52:54]ExternCall_PrintAddStr [21:52:54]wPrintStart [21:52:54]Write to MH i2c: 01 00 00 08 09 11 [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: 01 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: 01 07 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: 01 07 00 08 09 00 00 00 00 00 FF 0F 26 [21:52:54]RasterBufferAndPrint [21:52:54]line Счет N : (1)412648 [21:52:54]line ИНН: 02508201610067 [21:52:54]line Контрольно-Кассовый Чек [21:52:54]line ПРОДАЖА [21:52:54]line ТРК (МРК, ГНК) : 5 [21:52:54]line Товар: 2710194210 [21:52:54]line ДТ-К-5 [21:52:54]line 15.160 * 72.60 [21:52:54]line = 1100.62 [21:52:54]line НДС 12% НСП 1% [21:52:54]line > о реализуемом товаре [21:52:54]line ИТОГО: 1100.62 [21:52:54]line НСП 1% : 9.74 [21:52:54]line НДС 12% : 116.88 [21:52:54]line Наличными: 0.00 [21:52:54]line Безнал.: 1100.62 [21:52:54]line Место: АЗС № 92 "Партнер Нефть" [21:52:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:52:54]line СНО: Общий режим [21:52:54]line Чек 290 20.02.2025 21:52 [21:52:54]line Смена: 648 ФФД: 1.0 [21:52:54]line ЗНМ: 0300000118 [21:52:54]line РНМ: 0000000000091857 [21:52:54]line Версия ККМ: 001 [21:52:55]line Платежная система: O! деньги [21:52:55]line ФМ: 0000000000871826 [21:52:55]line ФД: 187489 [21:52:55]line ФПД: 265307655580612 [21:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T215254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187489&fm=265307655580612&tin=02508201610067®Number=0000000000091857&sum=110062 [21:52:55]OFD Sender: Processing packet 187489 [packets to send 49, broken 48] [21:52:55]ProducePacketName [21:52:55]name=ofd_packets/00187489 [21:52:55]OFD Sender: To server: pG, [21:52:55]CommunicateWithHost lk.salyk.kg:30040 [21:52:55]ConnectInit lk.salyk.kg [21:52:55]written 0, free lines is 4095 [21:52:55]Connected sock=10 [21:52:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3E 36 04 01 37 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 36 A4 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DC 02 00 35 04 06 00 F1 4B C0 91 2B C4 2E DC 44 C7 CA 8A 30 7D [21:52:55]Write to MH i2c: 01 00 00 32 09 3B [21:52:55]Write i2c OK [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: 01 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: 01 07 00 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: 01 07 00 32 09 00 00 00 00 00 F3 0C 41 [21:52:55]RasterBufferAndPrint [21:52:55]line [21:52:55]line [21:52:55]line [21:52:55]line [21:52:55]line [21:52:55]written 0, free lines is 3321 [21:52:55]MH_Cut [21:52:55]Write to MH i2c: D1 01 00 39 09 01 14 [21:52:55]Write i2c OK [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: D1 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: D1 01 00 [21:52:55]MH_I2C_Read... [21:52:55]Read from MH i2c: D1 01 00 39 09 00 13 [21:52:55]Write to MH i2c: 01 00 00 3A 09 43 [21:52:55]Write i2c OK [21:52:55]MH_I2C_Read... [21:52:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 12 5E 47 00 AE 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 DC 02 00 F4 03 04 00 86 4A B7 67 B6 04 01 00 00 BD 51 D0 F1 82 50 51 5F [21:52:55]CommunicateWithHost err = 0 [21:52:55]CheckOFDResponse [21:52:55]1017 (14) - 77093643461234 [21:52:55]1041 (16) - 0000000000871826 [21:52:55]1040 (4) - 187489 [21:52:55]1012 (4) - 20.02.2025 15:30 [21:52:55]1206 (1) - 0 [21:52:55]OFD Sender: Remove packet 187489 [21:52:55]ProducePacketName [21:52:55]name=ofd_packets/00187489 [21:52:55]NVStorageDeleteData [21:52:56]OFD Sender: No OFD packet to send [21:52:56]*** Cut start [21:52:56]*** Partial cut [21:52:56]*** CUTSNS_PIN = 1 [21:52:56]*** CUTSNS_PIN = 0 [21:52:56]*** Brake cut motor [21:52:57]Read from MH i2c: 01 [21:52:57]MH_I2C_Read... [21:52:57]*** Stop cut motor [21:52:57]*** Cut end [21:52:57]Read from MH i2c: 01 07 00 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: 01 07 00 3A 09 00 00 00 00 00 FF 0F 58 [21:52:57]process_action close_receipt done [21:52:57]requested_data is exist [21:52:57]produce_requested_data [21:52:57]requested_item fm.sn is exist - process it [21:52:57]wFMCommunicate request_size=4 [21:52:57]MH_SAM_APDU [21:52:57]CAPDU: 80 11 00 00 [21:52:57]Write to MH i2c: E2 08 00 3B 09 80 11 00 00 00 00 00 00 BE [21:52:57]Write i2c OK [21:52:57]MH_I2C_Read... [21:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:57]Read from MH i2c: E2 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: E2 17 00 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: E2 17 00 3B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [21:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:52:57]wFMCommunicate OK [21:52:57]requested_item fd.num is exist - process it [21:52:57]SAM_PROTO_GetFieldsCounters [21:52:57]wFMCommunicate request_size=4 [21:52:57]MH_SAM_APDU [21:52:57]CAPDU: 80 13 00 00 [21:52:57]Write to MH i2c: E2 08 00 3C 09 80 13 00 00 00 00 00 00 C1 [21:52:57]Write i2c OK [21:52:57]MH_I2C_Read... [21:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:57]Read from MH i2c: E2 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: E2 62 00 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: E2 62 00 3C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 61 DC 02 00 0E 04 04 00 88 02 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 19 [21:52: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 61 DC 02 00 0E 04 04 00 88 02 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 [21:52:57]wFMCommunicate OK [21:52:57]SAM_PROTO_GetFieldsCounters done [21:52:57]requested_item shift.num is exist - process it [21:52:57]requested_item shift.opened is exist - process it [21:52:57]req_shift_opened [21:52:57]FM_GetShiftState [21:52:57]SAM_PROTO_GetShiftState [21:52:57]wFMCommunicate request_size=4 [21:52:57]MH_SAM_APDU [21:52:57]CAPDU: 80 13 01 00 [21:52:57]Write to MH i2c: E2 08 00 3D 09 80 13 01 00 00 00 00 00 C3 [21:52:57]Write i2c OK [21:52:57]MH_I2C_Read... [21:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:57]Read from MH i2c: E2 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: E2 0E 00 [21:52:57]MH_I2C_Read... [21:52:57]Read from MH i2c: E2 0E 00 3D 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 15 [21:52:57]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:52:57]wFMCommunicate OK [21:52:57]SAM_PROTO_GetShiftState done [21:52:57]FM_GetShiftState done [21:52:57]req_shift_opened done [21:52:57]requested_item shift.open_date is exist - process it [21:52:57]req_shift_open_date [21:52:57]req_shift_open_date done [21:52:57]produce_requested_data done [21:52:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187489,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [21:52:57]process_action_free close_receipt [21:52:57]json_value_free [21:52:57]json_value_free done [21:52:57]process_json_proto returns [21:52:57]Send response to host [21:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187489,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [21:52:57]free response buf [21:52:57]execute_script done [21:52:57]execute_script returns [21:52:57]free content buf [21:52:57]Sock 7.Close socket [21:52:57]Sock 7.Thread stoped [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:45]accept exits with 9 [21:58:45]New connection [21:58:45]New thread 3067080036 created [21:58:45]Thread 3067223396 joined [21:58:45]Waiting for new connection... [21:58:45] Sock 9.Parse request [21:58:45]Sock 9.Check first char [21:58:45]Sock 9.First char is OK [21:58:45]request: POST /json_proto HTTP/1.0 [21:58:45]Method: POST [21:58:45]URL: /json_proto [21:58:45]Method is POST - this is cgi request [21:58:45]url: /json_proto [21:58:45]query_string will be loaded in cgi processing [21:58:45]execute_cgi json_proto POST (null) [21:58:45]execute_cgi path=json_proto method=POST [21:58:45]POST find Content-Length [21:58:45]Host: 172.17.46.131:8080 [21:58:45]Content-Length: 678 [21:58:45]Content-Type: application/json [21:58:45] [21:58:45]POST finish read [21:58:45]Found Content-Length = 678 [21:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:45]execute_script... [21:58: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)412650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:45]POST & json_proto [21:58:45]process_json_proto [21:58:45]json parsed OK: [21:58:45]protocol is kg_v1.0 [21:58:45]action value=close_receipt [21:58:45]process_action close_receipt [21:58:45]cmd_close_receipt [21:58:45]MH_GetDate [21:58:45]Write to MH i2c: F0 00 00 3E 09 36 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: F0 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: F0 09 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: F0 09 00 3E 09 00 96 A5 B7 67 7E 41 4F 65 0B [21:58:45]GetLastDocTimeStamp 1740088374 [21:58:45]current date 1740088726 [21:58:45]FM_GetShiftState [21:58:45]SAM_PROTO_GetShiftState [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 13 01 00 [21:58:45]Write to MH i2c: E2 08 00 3F 09 80 13 01 00 00 00 00 00 C5 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 0E 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 0E 00 3F 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 17 [21:58:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:58:45]wFMCommunicate OK [21:58:45]SAM_PROTO_GetShiftState done [21:58:45]FM_GetShiftState done [21:58:45]opened in 1740011697 [21:58:45]opened+sec_in_day 1740098097 [21:58:45]quantity*price = 100042 [21:58:45]sum+1 = 100044 [21:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 291 20.02.2025 21:58 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187490 ФПД: 210551559760074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T215846&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187490&fm=210551559760074&tin=02508201610067®Number=0000000000091857&sum=100000 [21:58:46]StoreToDocumentArchive [21:58:46]shift 648 fd 187490 [21:58:46]save to /storage/0648/doc_00187490 [21:58:46]save last doc name /storage/0648/doc_00187490 to /storage/kkm_last_doc_name [21:58:46]save OK [21:58:46]Clear old archive folders... [21:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:58:46]tlvbuf is 02056130 [21:58:46]SAM_PROTO_ClearQueue [21:58:46]wFMCommunicate request_size=4 [21:58:46]MH_SAM_APDU [21:58:46]CAPDU: 80 09 00 00 [21:58:46]Write to MH i2c: E2 08 00 4C 09 80 09 00 00 00 00 00 00 C7 [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 03 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 03 00 4C 09 00 90 00 C9 [21:58:46]RAPDU: 90 00 [21:58:46]wFMCommunicate OK [21:58:46]SAM_PROTO_ClearQueue done [21:58:46]KKMCreateOFDPacket [21:58:46]OFDProtocolAddRootSTLVToBuf [21:58:46]FM_MakeSignedData [21:58:46]FM_MakeSignedData [21:58:46]SAM_PROTO_SignData [21:58:46]wFMCommunicate request_size=4 [21:58:46]MH_SAM_APDU [21:58:46]CAPDU: 80 0D 01 02 [21:58:46]Write to MH i2c: E2 08 00 4D 09 80 0D 01 02 00 00 00 00 CF [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 03 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 03 00 4D 09 00 90 00 CA [21:58:46]RAPDU: 90 00 [21:58:46]wFMCommunicate OK [21:58:46]wFMCommunicate request_size=255 [21:58:46]MH_SAM_APDU [21:58: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 96 A5 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DC 02 00 35 04 06 00 BF 7E DA ED [21:58:46]Write to MH i2c: E2 02 01 4E 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 96 A5 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DC 02 00 35 04 06 00 BF 7E DA ED 00 00 BE [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]OFD Sender: No OFD packet to send [21:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 03 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [21:58:46]RAPDU: 90 00 [21:58:46]wFMCommunicate OK [21:58:46]wFMCommunicate request_size=7 [21:58:46]MH_SAM_APDU [21:58:46]CAPDU: 80 0D 02 02 02 28 CA [21:58:46]Write to MH i2c: E2 0A 00 4F 09 80 0D 02 02 02 00 28 CA 00 00 C8 [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 03 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 03 00 4F 09 00 90 00 CC [21:58:46]RAPDU: 90 00 [21:58:46]wFMCommunicate OK [21:58:46]wFMCommunicate request_size=4 [21:58:46]MH_SAM_APDU [21:58:46]CAPDU: 80 0D 03 02 [21:58:46]Write to MH i2c: E2 08 00 50 09 80 0D 03 02 00 00 00 00 D4 [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 0B 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 0B 00 50 09 00 39 EF 75 9D 82 0A 75 CE 90 00 DE [21:58:46]RAPDU: 39 EF 75 9D 82 0A 75 CE 90 00 [21:58:46]wFMCommunicate OK [21:58:46]SAM_PROTO_SignData done [21:58:46]FM_MakeSignedData done [21:58:46]CreateOFDProtocolMessage [21:58:46]wFMCommunicate request_size=4 [21:58:46]MH_SAM_APDU [21:58:46]CAPDU: 80 11 00 00 [21:58:46]Write to MH i2c: E2 08 00 51 09 80 11 00 00 00 00 00 00 D4 [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 17 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 17 00 51 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [21:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:58:46]wFMCommunicate OK [21:58:46]CreateOFDProtocolMessage done [21:58:46]OFDSenderStorePacket 187490 [21:58:46]StoreOFDPacket docnum=187490 [21:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 71 C4 04 01 8B FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 96 A5 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DC 02 00 35 04 06 00 BF 7E DA ED 28 CA 39 EF 75 9D 82 0A 75 CE [21:58:46]CheckFolder [21:58:46]dirname=/storage/ofd_packets [21:58:46]CheckFolder done [21:58:46]ProducePacketName [21:58:46]name=ofd_packets/00187490 [21:58:46]NVStorageSaveData ofd_packets/00187490 [21:58:46]File name is /storage/ofd_packets/00187490 [21:58:46]Write 298 bytes [21:58:46]NVStorageSaveData done [21:58:46]OFDSenderStorePacket done [21:58:46]KKMCreateOFDPacket done [21:58:46]NVStorageSaveData kkm_last_timestamp [21:58:46]File name is /storage/kkm_last_timestamp [21:58:46]Write 4 bytes [21:58:46]NVStorageSaveData done [21:58:46]ExternCall_PrintAddStr [21:58:46]wPrintStart [21:58:46]Write to MH i2c: 01 00 00 52 09 5B [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 07 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 07 00 52 09 00 00 00 00 00 FF 0F 70 [21:58:46]RasterBufferAndPrint [21:58:46]line Счет N : (1)412650 [21:58:46]line ИНН: 02508201610067 [21:58:46]line Контрольно-Кассовый Чек [21:58:46]line ПРОДАЖА [21:58:46]line ТРК (МРК, ГНК) : 5 [21:58:46]line Товар: 2710194210 [21:58:46]line ДТ-К-5 [21:58:46]line 13.780 * 72.60 [21:58:46]line = 1000.43 [21:58:46]line НДС 12% НСП 1% [21:58:46]line > о реализуемом товаре [21:58:46]line ОКРУГЛЕНИЕ: -0.43 [21:58:46]line ИТОГО: 1000.00 [21:58:46]line Внесено: 1000.00 [21:58:46]line СДАЧА: 0.00 [21:58:46]line НСП 1% : 8.85 [21:58:46]line НДС 12% : 106.24 [21:58:46]line Наличными: 1000.00 [21:58:46]line Безнал.: 0.00 [21:58:46]line Место: АЗС № 92 "Партнер Нефть" [21:58:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:58:46]line СНО: Общий режим [21:58:46]line Чек 291 20.02.2025 21:58 [21:58:46]line Смена: 648 ФФД: 1.0 [21:58:46]line ЗНМ: 0300000118 [21:58:46]line РНМ: 0000000000091857 [21:58:46]line Версия ККМ: 001 [21:58:46]line ФМ: 0000000000871826 [21:58:46]line ФД: 187490 [21:58:46]line ФПД: 210551559760074 [21:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T215846&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187490&fm=210551559760074&tin=02508201610067®Number=0000000000091857&sum=100000 [21:58:47]OFD Sender: Processing packet 187490 [packets to send 49, broken 48] [21:58:47]ProducePacketName [21:58:47]name=ofd_packets/00187490 [21:58:47]OFD Sender: To server: pG, [21:58:47]CommunicateWithHost lk.salyk.kg:30040 [21:58:47]ConnectInit lk.salyk.kg [21:58:47]written 0, free lines is 4095 [21:58:47]Connected sock=7 [21:58:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 71 C4 04 01 8B FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 96 A5 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DC 02 00 35 04 06 00 BF 7E DA ED 28 CA 39 EF 75 9D 82 0A 75 CE [21:58:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 48 F7 47 00 9E 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 DC 02 00 F4 03 04 00 E6 4B B7 67 B6 04 01 00 00 E8 75 F2 4B A2 18 09 FD [21:58:47]CommunicateWithHost err = 0 [21:58:47]CheckOFDResponse [21:58:47]1017 (14) - 77093643461234 [21:58:47]1041 (16) - 0000000000871826 [21:58:47]1040 (4) - 187490 [21:58:47]1012 (4) - 20.02.2025 15:36 [21:58:47]1206 (1) - 0 [21:58:47]OFD Sender: Remove packet 187490 [21:58:47]ProducePacketName [21:58:47]name=ofd_packets/00187490 [21:58:47]NVStorageDeleteData [21:58:47]Write to MH i2c: 01 00 00 7D 09 86 [21:58:47]Write i2c OK [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: 01 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: 01 07 00 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: 01 07 00 7D 09 00 00 00 00 00 EF 0C 88 [21:58:47]RasterBufferAndPrint [21:58:47]line [21:58:47]line [21:58:47]line [21:58:47]line [21:58:47]line [21:58:47]written 0, free lines is 3317 [21:58:47]MH_Cut [21:58:47]Write to MH i2c: D1 01 00 84 09 01 5F [21:58:47]Write i2c OK [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: D1 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: D1 01 00 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: D1 01 00 84 09 00 5E [21:58:47]Write to MH i2c: 01 00 00 85 09 8E [21:58:47]Write i2c OK [21:58:47]MH_I2C_Read... [21:58:48]OFD Sender: No OFD packet to send [21:58:48]*** Cut start [21:58:48]*** Partial cut [21:58:48]*** CUTSNS_PIN = 1 [21:58:48]*** CUTSNS_PIN = 0 [21:58:48]*** Brake cut motor [21:58:49]Read from MH i2c: 01 [21:58:49]MH_I2C_Read... [21:58:49]*** Stop cut motor [21:58:49]*** Cut end [21:58:49]Read from MH i2c: 01 07 00 [21:58:49]MH_I2C_Read... [21:58:49]Read from MH i2c: 01 07 00 85 09 00 00 00 00 00 FF 0F A3 [21:58:49]process_action close_receipt done [21:58:49]requested_data is exist [21:58:49]produce_requested_data [21:58:49]requested_item fm.sn is exist - process it [21:58:49]wFMCommunicate request_size=4 [21:58:49]MH_SAM_APDU [21:58:49]CAPDU: 80 11 00 00 [21:58:49]Write to MH i2c: E2 08 00 86 09 80 11 00 00 00 00 00 00 09 [21:58:49]Write i2c OK [21:58:49]MH_I2C_Read... [21:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:49]Read from MH i2c: E2 [21:58:49]MH_I2C_Read... [21:58:49]Read from MH i2c: E2 17 00 [21:58:49]MH_I2C_Read... [21:58:49]Read from MH i2c: E2 17 00 86 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [21:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:58:49]wFMCommunicate OK [21:58:49]requested_item fd.num is exist - process it [21:58:49]SAM_PROTO_GetFieldsCounters [21:58:49]wFMCommunicate request_size=4 [21:58:49]MH_SAM_APDU [21:58:49]CAPDU: 80 13 00 00 [21:58:49]Write to MH i2c: E2 08 00 87 09 80 13 00 00 00 00 00 00 0C [21:58:49]Write i2c OK [21:58:49]MH_I2C_Read... [21:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:49]Read from MH i2c: E2 [21:58:49]MH_I2C_Read... [21:58:49]Read from MH i2c: E2 62 00 [21:58:49]MH_I2C_Read... [21:58:49]Read from MH i2c: E2 62 00 87 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 62 DC 02 00 0E 04 04 00 88 02 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 68 [21:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 62 DC 02 00 0E 04 04 00 88 02 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 [21:58:49]wFMCommunicate OK [21:58:49]SAM_PROTO_GetFieldsCounters done [21:58:49]requested_item shift.num is exist - process it [21:58:49]requested_item shift.opened is exist - process it [21:58:49]req_shift_opened [21:58:49]FM_GetShiftState [21:58:49]SAM_PROTO_GetShiftState [21:58:49]wFMCommunicate request_size=4 [21:58:49]MH_SAM_APDU [21:58:49]CAPDU: 80 13 01 00 [21:58:49]Write to MH i2c: E2 08 00 88 09 80 13 01 00 00 00 00 00 0E [21:58:49]Write i2c OK [21:58:49]MH_I2C_Read... [21:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:49]Read from MH i2c: E2 [21:58:49]MH_I2C_Read... [21:58:49]Read from MH i2c: E2 0E 00 [21:58:49]MH_I2C_Read... [21:58:49]Read from MH i2c: E2 0E 00 88 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 60 [21:58:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:58:49]wFMCommunicate OK [21:58:49]SAM_PROTO_GetShiftState done [21:58:49]FM_GetShiftState done [21:58:49]req_shift_opened done [21:58:49]requested_item shift.open_date is exist - process it [21:58:49]req_shift_open_date [21:58:49]req_shift_open_date done [21:58:49]produce_requested_data done [21:58:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187490,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [21:58:49]process_action_free close_receipt [21:58:49]json_value_free [21:58:49]json_value_free done [21:58:49]process_json_proto returns [21:58:49]Send response to host [21:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187490,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [21:58:49]free response buf [21:58:49]execute_script done [21:58:49]execute_script returns [21:58:49]free content buf [21:58:49]Sock 9.Close socket [21:58:49]Sock 9.Thread stoped [21:58:51]accept exits with 10 [21:58:51]New connection [21:58:51]New thread 3067223396 created [21:58:51]Thread 3067080036 joined [21:58:51]Waiting for new connection... [21:58:51] Sock 10.Parse request [21:58:51]Sock 10.Check first char [21:58:51]Sock 10.First char is OK [21:58:51]request: POST /json_proto HTTP/1.0 [21:58:51]Method: POST [21:58:51]URL: /json_proto [21:58:51]Method is POST - this is cgi request [21:58:51]url: /json_proto [21:58:51]query_string will be loaded in cgi processing [21:58:51]execute_cgi json_proto POST (null) [21:58:51]execute_cgi path=json_proto method=POST [21:58:51]POST find Content-Length [21:58:51]Host: 172.17.46.131:8080 [21:58:51]Content-Length: 800 [21:58:51]Content-Type: application/json [21:58:51] [21:58:51]POST finish read [21:58:51]Found Content-Length = 800 [21:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:51]execute_script... [21:58: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)412649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:51]POST & json_proto [21:58:51]process_json_proto [21:58:51]json parsed OK: [21:58:51]protocol is kg_v1.0 [21:58:51]action value=close_receipt [21:58:51]process_action close_receipt [21:58:51]cmd_close_receipt [21:58:51]MH_GetDate [21:58:51]Write to MH i2c: F0 00 00 89 09 81 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: F0 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: F0 09 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: F0 09 00 89 09 00 9C A5 B7 67 7E 41 4F 65 5C [21:58:51]GetLastDocTimeStamp 1740088726 [21:58:51]current date 1740088732 [21:58:51]FM_GetShiftState [21:58:51]SAM_PROTO_GetShiftState [21:58:51]wFMCommunicate request_size=4 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 13 01 00 [21:58:51]Write to MH i2c: E2 08 00 8A 09 80 13 01 00 00 00 00 00 10 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 0E 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 0E 00 8A 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 62 [21:58:51]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:58:51]wFMCommunicate OK [21:58:51]SAM_PROTO_GetShiftState done [21:58:51]FM_GetShiftState done [21:58:51]opened in 1740011697 [21:58:51]opened+sec_in_day 1740098097 [21:58:51]quantity*price = 30045 [21:58:51]sum+1 = 30047 [21:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.46 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.46 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 292 20.02.2025 21:58 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187491 ФПД: 196915386747848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T215852&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187491&fm=196915386747848&tin=02508201610067®Number=0000000000091857&sum=30046 [21:58:52]StoreToDocumentArchive [21:58:52]shift 648 fd 187491 [21:58:52]save to /storage/0648/doc_00187491 [21:58:52]save last doc name /storage/0648/doc_00187491 to /storage/kkm_last_doc_name [21:58:52]save OK [21:58:52]Clear old archive folders... [21:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:52]tlvbuf is 020824E0 [21:58:52]SAM_PROTO_ClearQueue [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 09 00 00 [21:58:52]Write to MH i2c: E2 08 00 97 09 80 09 00 00 00 00 00 00 12 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 97 09 00 90 00 14 [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]SAM_PROTO_ClearQueue done [21:58:52]KKMCreateOFDPacket [21:58:52]OFDProtocolAddRootSTLVToBuf [21:58:52]FM_MakeSignedData [21:58:52]FM_MakeSignedData [21:58:52]SAM_PROTO_SignData [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 01 02 [21:58:52]Write to MH i2c: E2 08 00 98 09 80 0D 01 02 00 00 00 00 1A [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 98 09 00 90 00 15 [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]wFMCommunicate request_size=255 [21:58:52]MH_SAM_APDU [21:58: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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 9C A5 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DC 02 00 35 04 06 00 B3 [21:58:52]Write to MH i2c: E2 02 01 99 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 9C A5 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DC 02 00 35 04 06 00 B3 00 00 B6 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 99 09 00 90 00 16 [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]wFMCommunicate request_size=10 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 02 02 05 17 EF AD 8B C8 [21:58:52]Write to MH i2c: E2 0D 00 9A 09 80 0D 02 02 05 00 17 EF AD 8B C8 00 00 2D [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 9A 09 00 90 00 17 [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 03 02 [21:58:52]Write to MH i2c: E2 08 00 9B 09 80 0D 03 02 00 00 00 00 1F [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 0B 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 0B 00 9B 09 00 50 5A E4 83 A7 F7 DC 39 90 00 E4 [21:58:52]RAPDU: 50 5A E4 83 A7 F7 DC 39 90 00 [21:58:53]wFMCommunicate OK [21:58:53]SAM_PROTO_SignData done [21:58:53]FM_MakeSignedData done [21:58:53]CreateOFDProtocolMessage [21:58:53]wFMCommunicate request_size=4 [21:58:53]MH_SAM_APDU [21:58:53]CAPDU: 80 11 00 00 [21:58:53]Write to MH i2c: E2 08 00 9C 09 80 11 00 00 00 00 00 00 1F [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:53]Read from MH i2c: E2 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: E2 17 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: E2 17 00 9C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [21:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:58:53]wFMCommunicate OK [21:58:53]CreateOFDProtocolMessage done [21:58:53]OFDSenderStorePacket 187491 [21:58:53]StoreOFDPacket docnum=187491 [21:58:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C A9 07 01 F7 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 9C A5 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DC 02 00 35 04 06 00 B3 17 EF AD 8B C8 50 5A E4 83 A7 F7 DC 39 [21:58:53]CheckFolder [21:58:53]dirname=/storage/ofd_packets [21:58:53]CheckFolder done [21:58:53]ProducePacketName [21:58:53]name=ofd_packets/00187491 [21:58:53]NVStorageSaveData ofd_packets/00187491 [21:58:53]File name is /storage/ofd_packets/00187491 [21:58:53]Write 301 bytes [21:58:53]NVStorageSaveData done [21:58:53]OFDSenderStorePacket done [21:58:53]KKMCreateOFDPacket done [21:58:53]NVStorageSaveData kkm_last_timestamp [21:58:53]File name is /storage/kkm_last_timestamp [21:58:53]Write 4 bytes [21:58:53]NVStorageSaveData done [21:58:53]ExternCall_PrintAddStr [21:58:53]wPrintStart [21:58:53]Write to MH i2c: 01 00 00 9D 09 A6 [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 9D 09 00 00 00 00 00 FF 0F BB [21:58:53]RasterBufferAndPrint [21:58:53]line Счет N : (1)412649 [21:58:53]line ИНН: 02508201610067 [21:58:53]line Контрольно-Кассовый Чек [21:58:53]line ПРОДАЖА [21:58:53]line ТРК (МРК, ГНК) : 22 [21:58:53]line Товар: 2710124130 [21:58:53]line Аи-92-К-2 [21:58:53]line 4.680 * 64.20 [21:58:53]line = 300.46 [21:58:53]line НДС 12% НСП 1% [21:58:53]line > о реализуемом товаре [21:58:53]line ИТОГО: 300.46 [21:58:53]line НСП 1% : 2.66 [21:58:53]line НДС 12% : 31.91 [21:58:53]line Наличными: 0.00 [21:58:53]line Безнал.: 300.46 [21:58:53]line Место: АЗС № 92 "Партнер Нефть" [21:58:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:58:53]line СНО: Общий режим [21:58:53]line Чек 292 20.02.2025 21:58 [21:58:53]line Смена: 648 ФФД: 1.0 [21:58:53]line ЗНМ: 0300000118 [21:58:53]line РНМ: 0000000000091857 [21:58:53]line Версия ККМ: 001 [21:58:53]line Платежная система: O! деньги [21:58:53]line ФМ: 0000000000871826 [21:58:53]line ФД: 187491 [21:58:53]line ФПД: 196915386747848 [21:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T215852&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187491&fm=196915386747848&tin=02508201610067®Number=0000000000091857&sum=30046 [21:58:53]written 0, free lines is 4095 [21:58:53]OFD Sender: Processing packet 187491 [packets to send 49, broken 48] [21:58:53]ProducePacketName [21:58:53]name=ofd_packets/00187491 [21:58:53]OFD Sender: To server: pG, [21:58:53]CommunicateWithHost lk.salyk.kg:30040 [21:58:53]ConnectInit lk.salyk.kg [21:58:53]Connected sock=9 [21:58:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C A9 07 01 F7 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 9C A5 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DC 02 00 35 04 06 00 B3 17 EF AD 8B C8 50 5A E4 83 A7 F7 DC 39 [21:58:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 43 C5 47 00 A9 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 DC 02 00 F4 03 04 00 EB 4B B7 67 B6 04 01 00 00 DC A2 E3 7F 28 7F 4B 93 [21:58:53]CommunicateWithHost err = 0 [21:58:53]CheckOFDResponse [21:58:53]1017 (14) - 77093643461234 [21:58:53]1041 (16) - 0000000000871826 [21:58:53]1040 (4) - 187491 [21:58:53]1012 (4) - 20.02.2025 15:36 [21:58:53]1206 (1) - 0 [21:58:53]OFD Sender: Remove packet 187491 [21:58:53]ProducePacketName [21:58:53]name=ofd_packets/00187491 [21:58:53]NVStorageDeleteData [21:58:53]Write to MH i2c: 01 00 00 C7 09 D0 [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 36 0D 1A [21:58:53]RasterBufferAndPrint [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]written 0, free lines is 3396 [21:58:53]MH_Cut [21:58:53]Write to MH i2c: D1 01 00 CE 09 01 A9 [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 01 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 01 00 CE 09 00 A8 [21:58:53]Write to MH i2c: 01 00 00 CF 09 D8 [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:54]OFD Sender: No OFD packet to send [21:58:54]*** Cut start [21:58:54]*** Partial cut [21:58:54]*** CUTSNS_PIN = 1 [21:58:54]*** CUTSNS_PIN = 0 [21:58:54]*** Brake cut motor [21:58:54]Read from MH i2c: 01 [21:58:54]MH_I2C_Read... [21:58:54]*** Stop cut motor [21:58:54]*** Cut end [21:58:54]Read from MH i2c: 01 07 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: 01 07 00 CF 09 00 00 00 00 00 FF 0F ED [21:58:54]process_action close_receipt done [21:58:54]requested_data is exist [21:58:54]produce_requested_data [21:58:54]requested_item fm.sn is exist - process it [21:58:54]wFMCommunicate request_size=4 [21:58:54]MH_SAM_APDU [21:58:54]CAPDU: 80 11 00 00 [21:58:54]Write to MH i2c: E2 08 00 D0 09 80 11 00 00 00 00 00 00 53 [21:58:54]Write i2c OK [21:58:54]MH_I2C_Read... [21:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:54]Read from MH i2c: E2 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 17 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 17 00 D0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A6 [21:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:58:55]wFMCommunicate OK [21:58:55]requested_item fd.num is exist - process it [21:58:55]SAM_PROTO_GetFieldsCounters [21:58:55]wFMCommunicate request_size=4 [21:58:55]MH_SAM_APDU [21:58:55]CAPDU: 80 13 00 00 [21:58:55]Write to MH i2c: E2 08 00 D1 09 80 13 00 00 00 00 00 00 56 [21:58:55]Write i2c OK [21:58:55]MH_I2C_Read... [21:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:55]Read from MH i2c: E2 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 62 00 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 62 00 D1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 63 DC 02 00 0E 04 04 00 88 02 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 B6 [21:58:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 63 DC 02 00 0E 04 04 00 88 02 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 [21:58:55]wFMCommunicate OK [21:58:55]SAM_PROTO_GetFieldsCounters done [21:58:55]requested_item shift.num is exist - process it [21:58:55]requested_item shift.opened is exist - process it [21:58:55]req_shift_opened [21:58:55]FM_GetShiftState [21:58:55]SAM_PROTO_GetShiftState [21:58:55]wFMCommunicate request_size=4 [21:58:55]MH_SAM_APDU [21:58:55]CAPDU: 80 13 01 00 [21:58:55]Write to MH i2c: E2 08 00 D2 09 80 13 01 00 00 00 00 00 58 [21:58:55]Write i2c OK [21:58:55]MH_I2C_Read... [21:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:55]Read from MH i2c: E2 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 0E 00 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 0E 00 D2 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AA [21:58:55]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [21:58:55]wFMCommunicate OK [21:58:55]SAM_PROTO_GetShiftState done [21:58:55]FM_GetShiftState done [21:58:55]req_shift_opened done [21:58:55]requested_item shift.open_date is exist - process it [21:58:55]req_shift_open_date [21:58:55]req_shift_open_date done [21:58:55]produce_requested_data done [21:58:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187491,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [21:58:55]process_action_free close_receipt [21:58:55]json_value_free [21:58:55]json_value_free done [21:58:55]process_json_proto returns [21:58:55]Send response to host [21:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187491,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [21:58:55]free response buf [21:58:55]execute_script done [21:58:55]execute_script returns [21:58:55]free content buf [21:58:55]Sock 10.Close socket [21:58:55]Sock 10.Thread stoped [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:14]accept exits with 7 [22:10:14]New connection [22:10:14]New thread 3067080036 created [22:10:14]Thread 3067223396 joined [22:10:14]Waiting for new connection... [22:10:14] Sock 7.Parse request [22:10:14]Sock 7.Check first char [22:10:14]Sock 7.First char is OK [22:10:14]request: POST /json_proto HTTP/1.0 [22:10:14]Method: POST [22:10:14]URL: /json_proto [22:10:14]Method is POST - this is cgi request [22:10:14]url: /json_proto [22:10:14]query_string will be loaded in cgi processing [22:10:14]execute_cgi json_proto POST (null) [22:10:14]execute_cgi path=json_proto method=POST [22:10:14]POST find Content-Length [22:10:14]Host: 172.17.46.131:8080 [22:10:14]Content-Length: 803 [22:10:14]Content-Type: application/json [22:10:14] [22:10:14]POST finish read [22:10:14]Found Content-Length = 803 [22:10:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:15]execute_script... [22:10: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)412652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:15]POST & json_proto [22:10:15]process_json_proto [22:10:15]json parsed OK: [22:10:15]protocol is kg_v1.0 [22:10:15]action value=close_receipt [22:10:15]process_action close_receipt [22:10:15]cmd_close_receipt [22:10:15]MH_GetDate [22:10:15]Write to MH i2c: F0 00 00 D3 09 CB [22:10:15]Write i2c OK [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: F0 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: F0 09 00 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: F0 09 00 D3 09 00 48 A8 B7 67 7E 41 4F 65 55 [22:10:15]GetLastDocTimeStamp 1740088732 [22:10:15]current date 1740089416 [22:10:15]FM_GetShiftState [22:10:15]SAM_PROTO_GetShiftState [22:10:15]wFMCommunicate request_size=4 [22:10:15]MH_SAM_APDU [22:10:15]CAPDU: 80 13 01 00 [22:10:15]Write to MH i2c: E2 08 00 D4 09 80 13 01 00 00 00 00 00 5A [22:10:15]Write i2c OK [22:10:15]MH_I2C_Read... [22:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:15]Read from MH i2c: E2 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: E2 0E 00 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: E2 0E 00 D4 09 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 AC [22:10:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:10:15]wFMCommunicate OK [22:10:15]SAM_PROTO_GetShiftState done [22:10:15]FM_GetShiftState done [22:10:15]opened in 1740011697 [22:10:15]opened+sec_in_day 1740098097 [22:10:15]quantity*price = 100023 [22:10:15]sum+1 = 100025 [22:10:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 293 20.02.2025 22:10 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187492 ФПД: 25871430612635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T221016&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187492&fm=25871430612635&tin=02508201610067®Number=0000000000091857&sum=100024 [22:10:16]StoreToDocumentArchive [22:10:16]shift 648 fd 187492 [22:10:16]save to /storage/0648/doc_00187492 [22:10:16]save last doc name /storage/0648/doc_00187492 to /storage/kkm_last_doc_name [22:10:16]save OK [22:10:16]Clear old archive folders... [22:10:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:10:16]tlvbuf is 0204FA90 [22:10:16]SAM_PROTO_ClearQueue [22:10:16]wFMCommunicate request_size=4 [22:10:16]MH_SAM_APDU [22:10:16]CAPDU: 80 09 00 00 [22:10:16]Write to MH i2c: E2 08 00 E1 09 80 09 00 00 00 00 00 00 5C [22:10:16]Write i2c OK [22:10:16]MH_I2C_Read... [22:10:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:16]Read from MH i2c: E2 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 03 00 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [22:10:16]RAPDU: 90 00 [22:10:16]wFMCommunicate OK [22:10:16]SAM_PROTO_ClearQueue done [22:10:16]KKMCreateOFDPacket [22:10:16]OFDProtocolAddRootSTLVToBuf [22:10:16]FM_MakeSignedData [22:10:16]FM_MakeSignedData [22:10:16]SAM_PROTO_SignData [22:10:16]wFMCommunicate request_size=4 [22:10:16]MH_SAM_APDU [22:10:16]CAPDU: 80 0D 01 02 [22:10:16]Write to MH i2c: E2 08 00 E2 09 80 0D 01 02 00 00 00 00 64 [22:10:16]Write i2c OK [22:10:16]MH_I2C_Read... [22:10:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:16]Read from MH i2c: E2 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 03 00 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 03 00 E2 09 00 90 00 5F [22:10:16]RAPDU: 90 00 [22:10:16]wFMCommunicate OK [22:10:16]wFMCommunicate request_size=255 [22:10:16]MH_SAM_APDU [22:10: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 48 A8 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DC 02 00 35 04 06 00 17 [22:10:16]Write to MH i2c: E2 02 01 E3 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 48 A8 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DC 02 00 35 04 06 00 17 00 00 A8 [22:10:16]Write i2c OK [22:10:16]MH_I2C_Read... [22:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:16]Read from MH i2c: E2 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 03 00 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 03 00 E3 09 00 90 00 60 [22:10:16]RAPDU: 90 00 [22:10:16]wFMCommunicate OK [22:10:16]wFMCommunicate request_size=10 [22:10:16]MH_SAM_APDU [22:10:16]CAPDU: 80 0D 02 02 05 87 A9 6E 76 9B [22:10:16]Write to MH i2c: E2 0D 00 E4 09 80 0D 02 02 05 00 87 A9 6E 76 9B 00 00 20 [22:10:16]Write i2c OK [22:10:16]MH_I2C_Read... [22:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:16]Read from MH i2c: E2 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 03 00 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 03 00 E4 09 00 90 00 61 [22:10:16]RAPDU: 90 00 [22:10:16]wFMCommunicate OK [22:10:16]wFMCommunicate request_size=4 [22:10:16]MH_SAM_APDU [22:10:16]CAPDU: 80 0D 03 02 [22:10:16]Write to MH i2c: E2 08 00 E5 09 80 0D 03 02 00 00 00 00 69 [22:10:16]Write i2c OK [22:10:16]MH_I2C_Read... [22:10:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:16]Read from MH i2c: E2 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 0B 00 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 0B 00 E5 09 00 B8 02 AA DB BC 8D E8 B7 90 00 91 [22:10:16]RAPDU: B8 02 AA DB BC 8D E8 B7 90 00 [22:10:16]wFMCommunicate OK [22:10:16]SAM_PROTO_SignData done [22:10:16]FM_MakeSignedData done [22:10:16]CreateOFDProtocolMessage [22:10:16]wFMCommunicate request_size=4 [22:10:16]MH_SAM_APDU [22:10:16]CAPDU: 80 11 00 00 [22:10:16]Write to MH i2c: E2 08 00 E6 09 80 11 00 00 00 00 00 00 69 [22:10:16]Write i2c OK [22:10:16]MH_I2C_Read... [22:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:16]Read from MH i2c: E2 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 17 00 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: E2 17 00 E6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BC [22:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:10:16]wFMCommunicate OK [22:10:16]CreateOFDProtocolMessage done [22:10:16]OFDSenderStorePacket 187492 [22:10:16]StoreOFDPacket docnum=187492 [22:10:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 03 B9 07 01 DF 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 48 A8 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DC 02 00 35 04 06 00 17 87 A9 6E 76 9B B8 02 AA DB BC 8D E8 B7 [22:10:16]CheckFolder [22:10:16]dirname=/storage/ofd_packets [22:10:16]CheckFolder done [22:10:16]ProducePacketName [22:10:16]name=ofd_packets/00187492 [22:10:16]NVStorageSaveData ofd_packets/00187492 [22:10:16]File name is /storage/ofd_packets/00187492 [22:10:16]Write 301 bytes [22:10:16]NVStorageSaveData done [22:10:16]OFDSenderStorePacket done [22:10:16]KKMCreateOFDPacket done [22:10:16]NVStorageSaveData kkm_last_timestamp [22:10:16]File name is /storage/kkm_last_timestamp [22:10:16]Write 4 bytes [22:10:16]NVStorageSaveData done [22:10:16]ExternCall_PrintAddStr [22:10:16]wPrintStart [22:10:16]Write to MH i2c: 01 00 00 E7 09 F0 [22:10:16]Write i2c OK [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: 01 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: 01 07 00 [22:10:16]MH_I2C_Read... [22:10:16]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 FF 0F 05 [22:10:16]RasterBufferAndPrint [22:10:16]line Счет N : (1)412652 [22:10:16]line ИНН: 02508201610067 [22:10:16]line Контрольно-Кассовый Чек [22:10:16]line ПРОДАЖА [22:10:16]line ТРК (МРК, ГНК) : 32 [22:10:16]line Товар: 2710124130 [22:10:16]line Аи-92-К-2 [22:10:16]line 15.580 * 64.20 [22:10:16]line = 1000.24 [22:10:16]line НДС 12% НСП 1% [22:10:16]line > о реализуемом товаре [22:10:16]line ИТОГО: 1000.24 [22:10:16]line НСП 1% : 8.85 [22:10:16]line НДС 12% : 106.22 [22:10:16]line Наличными: 0.00 [22:10:16]line Безнал.: 1000.24 [22:10:16]line Место: АЗС № 92 "Партнер Нефть" [22:10:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:10:16]line СНО: Общий режим [22:10:16]line Чек 293 20.02.2025 22:10 [22:10:16]line Смена: 648 ФФД: 1.0 [22:10:16]line ЗНМ: 0300000118 [22:10:16]line РНМ: 0000000000091857 [22:10:16]line Версия ККМ: 001 [22:10:16]line Платежная система: O! деньги [22:10:16]line ФМ: 0000000000871826 [22:10:16]line ФД: 187492 [22:10:16]line ФПД: 25871430612635 [22:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T221016&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187492&fm=25871430612635&tin=02508201610067®Number=0000000000091857&sum=100024 [22:10:17]OFD Sender: Processing packet 187492 [packets to send 49, broken 48] [22:10:17]ProducePacketName [22:10:17]name=ofd_packets/00187492 [22:10:17]OFD Sender: To server: pG, [22:10:17]CommunicateWithHost lk.salyk.kg:30040 [22:10:17]ConnectInit lk.salyk.kg [22:10:17]written 0, free lines is 4095 [22:10:17]Connected sock=10 [22:10:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 03 B9 07 01 DF 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 48 A8 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DC 02 00 35 04 06 00 17 87 A9 6E 76 9B B8 02 AA DB BC 8D E8 B7 [22:10:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EE FB 47 00 4D 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 31 38 32 36 10 04 04 00 64 DC 02 00 F4 03 04 00 97 4E B7 67 B6 04 01 00 00 C0 DD BD F6 1B 84 68 6F [22:10:17]CommunicateWithHost err = 0 [22:10:17]CheckOFDResponse [22:10:17]1017 (14) - 77093643461234 [22:10:17]1041 (16) - 0000000000871826 [22:10:17]1040 (4) - 187492 [22:10:17]1012 (4) - 20.02.2025 15:47 [22:10:17]1206 (1) - 0 [22:10:17]OFD Sender: Remove packet 187492 [22:10:17]ProducePacketName [22:10:17]name=ofd_packets/00187492 [22:10:17]NVStorageDeleteData [22:10:17]Write to MH i2c: 01 00 00 11 0A 1B [22:10:17]Write i2c OK [22:10:17]MH_I2C_Read... [22:10:17]Read from MH i2c: 01 [22:10:17]MH_I2C_Read... [22:10:17]Read from MH i2c: 01 07 00 [22:10:17]MH_I2C_Read... [22:10:17]Read from MH i2c: 01 07 00 11 0A 00 00 00 00 00 02 0D 31 [22:10:17]RasterBufferAndPrint [22:10:17]line [22:10:17]line [22:10:17]line [22:10:17]line [22:10:17]line [22:10:17]written 0, free lines is 3336 [22:10:17]MH_Cut [22:10:17]Write to MH i2c: D1 01 00 18 0A 01 F4 [22:10:17]Write i2c OK [22:10:17]MH_I2C_Read... [22:10:17]Read from MH i2c: D1 [22:10:17]MH_I2C_Read... [22:10:17]Read from MH i2c: D1 01 00 [22:10:17]MH_I2C_Read... [22:10:17]Read from MH i2c: D1 01 00 18 0A 00 F3 [22:10:17]Write to MH i2c: 01 00 00 19 0A 23 [22:10:17]Write i2c OK [22:10:17]MH_I2C_Read... [22:10:17]OFD Sender: No OFD packet to send [22:10:18]*** Cut start [22:10:18]*** Partial cut [22:10:18]*** CUTSNS_PIN = 1 [22:10:18]*** CUTSNS_PIN = 0 [22:10:18]*** Brake cut motor [22:10:18]Read from MH i2c: 01 [22:10:18]MH_I2C_Read... [22:10:18]Read from MH i2c: 01 07 00 [22:10:18]MH_I2C_Read... [22:10:18]*** Stop cut motor [22:10:18]*** Cut end [22:10:18]Read from MH i2c: 01 07 00 19 0A 00 00 00 00 00 FF 0F 38 [22:10:18]process_action close_receipt done [22:10:18]requested_data is exist [22:10:18]produce_requested_data [22:10:18]requested_item fm.sn is exist - process it [22:10:18]wFMCommunicate request_size=4 [22:10:18]MH_SAM_APDU [22:10:18]CAPDU: 80 11 00 00 [22:10:18]Write to MH i2c: E2 08 00 1A 0A 80 11 00 00 00 00 00 00 9E [22:10:18]Write i2c OK [22:10:18]MH_I2C_Read... [22:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:18]Read from MH i2c: E2 [22:10:18]MH_I2C_Read... [22:10:18]Read from MH i2c: E2 17 00 [22:10:18]MH_I2C_Read... [22:10:18]Read from MH i2c: E2 17 00 1A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [22:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:10:18]wFMCommunicate OK [22:10:18]requested_item fd.num is exist - process it [22:10:18]SAM_PROTO_GetFieldsCounters [22:10:18]wFMCommunicate request_size=4 [22:10:18]MH_SAM_APDU [22:10:18]CAPDU: 80 13 00 00 [22:10:18]Write to MH i2c: E2 08 00 1B 0A 80 13 00 00 00 00 00 00 A1 [22:10:18]Write i2c OK [22:10:18]MH_I2C_Read... [22:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:19]Read from MH i2c: E2 [22:10:19]MH_I2C_Read... [22:10:19]Read from MH i2c: E2 62 00 [22:10:19]MH_I2C_Read... [22:10:19]Read from MH i2c: E2 62 00 1B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 64 DC 02 00 0E 04 04 00 88 02 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 05 [22:10:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 64 DC 02 00 0E 04 04 00 88 02 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 [22:10:19]wFMCommunicate OK [22:10:19]SAM_PROTO_GetFieldsCounters done [22:10:19]requested_item shift.num is exist - process it [22:10:19]requested_item shift.opened is exist - process it [22:10:19]req_shift_opened [22:10:19]FM_GetShiftState [22:10:19]SAM_PROTO_GetShiftState [22:10:19]wFMCommunicate request_size=4 [22:10:19]MH_SAM_APDU [22:10:19]CAPDU: 80 13 01 00 [22:10:19]Write to MH i2c: E2 08 00 1C 0A 80 13 01 00 00 00 00 00 A3 [22:10:19]Write i2c OK [22:10:19]MH_I2C_Read... [22:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:19]Read from MH i2c: E2 [22:10:19]MH_I2C_Read... [22:10:19]Read from MH i2c: E2 0E 00 [22:10:19]MH_I2C_Read... [22:10:19]Read from MH i2c: E2 0E 00 1C 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F5 [22:10:19]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:10:19]wFMCommunicate OK [22:10:19]SAM_PROTO_GetShiftState done [22:10:19]FM_GetShiftState done [22:10:19]req_shift_opened done [22:10:19]requested_item shift.open_date is exist - process it [22:10:19]req_shift_open_date [22:10:19]req_shift_open_date done [22:10:19]produce_requested_data done [22:10:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187492,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [22:10:19]process_action_free close_receipt [22:10:19]json_value_free [22:10:19]json_value_free done [22:10:19]process_json_proto returns [22:10:19]Send response to host [22:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187492,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [22:10:19]free response buf [22:10:19]execute_script done [22:10:19]execute_script returns [22:10:19]free content buf [22:10:19]Sock 7.Close socket [22:10:19]Sock 7.Thread stoped [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:54]accept exits with 9 [22:10:54]New connection [22:10:54]New thread 3067223396 created [22:10:54]Thread 3067080036 joined [22:10:54]Waiting for new connection... [22:10:54] Sock 9.Parse request [22:10:54]Sock 9.Check first char [22:10:54]Sock 9.First char is OK [22:10:54]request: POST /json_proto HTTP/1.0 [22:10:54]Method: POST [22:10:54]URL: /json_proto [22:10:54]Method is POST - this is cgi request [22:10:54]url: /json_proto [22:10:54]query_string will be loaded in cgi processing [22:10:54]execute_cgi json_proto POST (null) [22:10:54]execute_cgi path=json_proto method=POST [22:10:54]POST find Content-Length [22:10:54]Host: 172.17.46.131:8080 [22:10:54]Content-Length: 1014 [22:10:54]Content-Type: application/json [22:10:54] [22:10:54]POST finish read [22:10:54]Found Content-Length = 1014 [22:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 125.700, "sum" : 9000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 125.70 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:54]execute_script... [22:10: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)412651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 125.700, "sum" : 9000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 125.70 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:54]POST & json_proto [22:10:54]process_json_proto [22:10:54]json parsed OK: [22:10:54]protocol is kg_v1.0 [22:10:54]action value=close_receipt [22:10:54]process_action close_receipt [22:10:54]cmd_close_receipt [22:10:54]MH_GetDate [22:10:54]Write to MH i2c: F0 00 00 1D 0A 16 [22:10:54]Write i2c OK [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: F0 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: F0 09 00 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: F0 09 00 1D 0A 00 6F A8 B7 67 7E 41 4F 65 C7 [22:10:54]GetLastDocTimeStamp 1740089416 [22:10:54]current date 1740089455 [22:10:54]FM_GetShiftState [22:10:54]SAM_PROTO_GetShiftState [22:10:54]wFMCommunicate request_size=4 [22:10:54]MH_SAM_APDU [22:10:54]CAPDU: 80 13 01 00 [22:10:54]Write to MH i2c: E2 08 00 1E 0A 80 13 01 00 00 00 00 00 A5 [22:10:54]Write i2c OK [22:10:54]MH_I2C_Read... [22:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:54]Read from MH i2c: E2 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: E2 0E 00 [22:10:54]MH_I2C_Read... [22:10:54]Read from MH i2c: E2 0E 00 1E 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F7 [22:10:54]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:10:54]wFMCommunicate OK [22:10:54]SAM_PROTO_GetShiftState done [22:10:54]FM_GetShiftState done [22:10:54]opened in 1740011697 [22:10:54]opened+sec_in_day 1740098097 [22:10:54]quantity*price = 900012 [22:10:54]sum+1 = 900013 [22:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.76 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 294 20.02.2025 22:10 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Дисконтная программа СкидкаДТ номер 92 сэкономлено 125.70 сом ФМ: 0000000000871826 ФД: 187493 ФПД: 63816145065069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T221055&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187493&fm=63816145065069&tin=02508201610067®Number=0000000000091857&sum=900000 [22:10:55]StoreToDocumentArchive [22:10:55]shift 648 fd 187493 [22:10:55]save to /storage/0648/doc_00187493 [22:10:55]save last doc name /storage/0648/doc_00187493 to /storage/kkm_last_doc_name [22:10:55]save OK [22:10:55]Clear old archive folders... [22:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:10:55]tlvbuf is 02032420 [22:10:55]SAM_PROTO_ClearQueue [22:10:55]wFMCommunicate request_size=4 [22:10:55]MH_SAM_APDU [22:10:55]CAPDU: 80 09 00 00 [22:10:55]Write to MH i2c: E2 08 00 2B 0A 80 09 00 00 00 00 00 00 A7 [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:55]Read from MH i2c: E2 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: E2 03 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [22:10:55]RAPDU: 90 00 [22:10:55]wFMCommunicate OK [22:10:55]SAM_PROTO_ClearQueue done [22:10:55]KKMCreateOFDPacket [22:10:55]OFDProtocolAddRootSTLVToBuf [22:10:55]FM_MakeSignedData [22:10:55]FM_MakeSignedData [22:10:55]SAM_PROTO_SignData [22:10:55]wFMCommunicate request_size=4 [22:10:55]MH_SAM_APDU [22:10:55]CAPDU: 80 0D 01 02 [22:10:55]Write to MH i2c: E2 08 00 2C 0A 80 0D 01 02 00 00 00 00 AF [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:55]Read from MH i2c: E2 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: E2 03 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [22:10:55]RAPDU: 90 00 [22:10:55]wFMCommunicate OK [22:10:55]wFMCommunicate request_size=255 [22:10:55]MH_SAM_APDU [22:10: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 04 EB 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 AC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 6F A8 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DC 02 00 35 04 06 00 3A 0A 5A A8 [22:10:55]Write to MH i2c: E2 02 01 2D 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 04 EB 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 AC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 6F A8 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DC 02 00 35 04 06 00 3A 0A 5A A8 00 00 D1 [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:56]Read from MH i2c: E2 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: E2 03 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [22:10:56]RAPDU: 90 00 [22:10:56]wFMCommunicate OK [22:10:56]wFMCommunicate request_size=7 [22:10:56]MH_SAM_APDU [22:10:56]CAPDU: 80 0D 02 02 02 54 6D [22:10:56]Write to MH i2c: E2 0A 00 2E 0A 80 0D 02 02 02 00 54 6D 00 00 77 [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:56]Read from MH i2c: E2 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: E2 03 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [22:10:56]RAPDU: 90 00 [22:10:56]wFMCommunicate OK [22:10:56]wFMCommunicate request_size=4 [22:10:56]MH_SAM_APDU [22:10:56]CAPDU: 80 0D 03 02 [22:10:56]Write to MH i2c: E2 08 00 2F 0A 80 0D 03 02 00 00 00 00 B4 [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:56]Read from MH i2c: E2 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: E2 0B 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: E2 0B 00 2F 0A 00 75 47 BD E1 A8 44 AE FE 90 00 A7 [22:10:56]RAPDU: 75 47 BD E1 A8 44 AE FE 90 00 [22:10:56]wFMCommunicate OK [22:10:56]SAM_PROTO_SignData done [22:10:56]FM_MakeSignedData done [22:10:56]CreateOFDProtocolMessage [22:10:56]wFMCommunicate request_size=4 [22:10:56]MH_SAM_APDU [22:10:56]CAPDU: 80 11 00 00 [22:10:56]Write to MH i2c: E2 08 00 30 0A 80 11 00 00 00 00 00 00 B4 [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:56]Read from MH i2c: E2 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: E2 17 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: E2 17 00 30 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 07 [22:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:10:56]wFMCommunicate OK [22:10:56]CreateOFDProtocolMessage done [22:10:56]OFDSenderStorePacket 187493 [22:10:56]StoreOFDPacket docnum=187493 [22:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 57 99 04 01 EB CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 EB 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 AC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 6F A8 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DC 02 00 35 04 06 00 3A 0A 5A A8 54 6D 75 47 BD E1 A8 44 AE FE [22:10:56]CheckFolder [22:10:56]dirname=/storage/ofd_packets [22:10:56]CheckFolder done [22:10:56]ProducePacketName [22:10:56]name=ofd_packets/00187493 [22:10:56]NVStorageSaveData ofd_packets/00187493 [22:10:56]File name is /storage/ofd_packets/00187493 [22:10:56]Write 298 bytes [22:10:56]NVStorageSaveData done [22:10:56]OFDSenderStorePacket done [22:10:56]KKMCreateOFDPacket done [22:10:56]NVStorageSaveData kkm_last_timestamp [22:10:56]File name is /storage/kkm_last_timestamp [22:10:56]Write 4 bytes [22:10:56]NVStorageSaveData done [22:10:56]ExternCall_PrintAddStr [22:10:56]wPrintStart [22:10:56]Write to MH i2c: 01 00 00 31 0A 3B [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 31 0A 00 00 00 00 00 FF 0F 50 [22:10:56]RasterBufferAndPrint [22:10:56]line Счет N : (1)412651 [22:10:56]line ИНН: 02508201610067 [22:10:56]line Контрольно-Кассовый Чек [22:10:56]line ПРОДАЖА [22:10:56]line ТРК (МРК, ГНК) : 6 [22:10:56]line Товар: 2710194210 [22:10:56]line ДТ-К-5 [22:10:56]line 125.700 * 71.60 [22:10:56]line = 9000.12 [22:10:56]line НДС 12% НСП 1% [22:10:56]line > о реализуемом товаре [22:10:56]line ОКРУГЛЕНИЕ: -0.12 [22:10:56]line ИТОГО: 9000.00 [22:10:56]line Внесено: 9000.00 [22:10:56]line СДАЧА: 0.00 [22:10:56]line НСП 1% : 79.65 [22:10:56]line НДС 12% : 955.76 [22:10:56]line Наличными: 9000.00 [22:10:56]line Безнал.: 0.00 [22:10:56]line Место: АЗС № 92 "Партнер Нефть" [22:10:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:10:56]line СНО: Общий режим [22:10:56]line Чек 294 20.02.2025 22:10 [22:10:56]line Смена: 648 ФФД: 1.0 [22:10:56]line ЗНМ: 0300000118 [22:10:56]line РНМ: 0000000000091857 [22:10:56]line Версия ККМ: 001 [22:10:56]line [22:10:56]line Дисконтная программа [22:10:56]line СкидкаДТ [22:10:56]line номер 92 [22:10:56]line сэкономлено 125.70 сом [22:10:56]line ФМ: 0000000000871826 [22:10:56]line ФД: 187493 [22:10:56]line ФПД: 63816145065069 [22:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T221055&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187493&fm=63816145065069&tin=02508201610067®Number=0000000000091857&sum=900000 [22:10:56]OFD Sender: Processing packet 187493 [packets to send 49, broken 48] [22:10:56]ProducePacketName [22:10:56]name=ofd_packets/00187493 [22:10:56]OFD Sender: To server: pG, [22:10:56]CommunicateWithHost lk.salyk.kg:30040 [22:10:56]ConnectInit lk.salyk.kg [22:10:56]written 0, free lines is 4095 [22:10:56]Connected sock=10 [22:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 57 99 04 01 EB CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 EB 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 AC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 6F A8 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DC 02 00 35 04 06 00 3A 0A 5A A8 54 6D 75 47 BD E1 A8 44 AE FE [22:10:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 34 7B 47 00 1B 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DC 02 00 F4 03 04 00 BF 4E B7 67 B6 04 01 00 00 DF D2 ED 04 92 20 7D B9 [22:10:56]CommunicateWithHost err = 0 [22:10:56]CheckOFDResponse [22:10:56]1017 (14) - 77093643461234 [22:10:56]1041 (16) - 0000000000871826 [22:10:56]1040 (4) - 187493 [22:10:56]1012 (4) - 20.02.2025 15:48 [22:10:56]1206 (1) - 0 [22:10:56]OFD Sender: Remove packet 187493 [22:10:56]ProducePacketName [22:10:56]name=ofd_packets/00187493 [22:10:56]NVStorageDeleteData [22:10:56]Write to MH i2c: 01 00 00 61 0A 6B [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 61 0A 00 00 00 00 00 9F 0C 1D [22:10:56]RasterBufferAndPrint [22:10:56]line [22:10:56]line [22:10:56]line [22:10:56]line [22:10:56]line [22:10:56]written 0, free lines is 3237 [22:10:57]MH_Cut [22:10:57]Write to MH i2c: D1 01 00 68 0A 01 44 [22:10:57]Write i2c OK [22:10:57]MH_I2C_Read... [22:10:57]Read from MH i2c: D1 [22:10:57]MH_I2C_Read... [22:10:57]Read from MH i2c: D1 01 00 [22:10:57]MH_I2C_Read... [22:10:57]Read from MH i2c: D1 01 00 68 0A 00 43 [22:10:57]Write to MH i2c: 01 00 00 69 0A 73 [22:10:57]Write i2c OK [22:10:57]MH_I2C_Read... [22:10:57]OFD Sender: No OFD packet to send [22:10:57]*** Cut start [22:10:57]*** Partial cut [22:10:57]*** CUTSNS_PIN = 1 [22:10:57]*** CUTSNS_PIN = 0 [22:10:58]*** Brake cut motor [22:10:58]Read from MH i2c: 01 [22:10:58]MH_I2C_Read... [22:10:58]*** Stop cut motor [22:10:58]*** Cut end [22:10:58]Read from MH i2c: 01 07 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 FF 0F 88 [22:10:58]process_action close_receipt done [22:10:58]requested_data is exist [22:10:58]produce_requested_data [22:10:58]requested_item fm.sn is exist - process it [22:10:58]wFMCommunicate request_size=4 [22:10:58]MH_SAM_APDU [22:10:58]CAPDU: 80 11 00 00 [22:10:58]Write to MH i2c: E2 08 00 6A 0A 80 11 00 00 00 00 00 00 EE [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 17 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 17 00 6A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 41 [22:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:10:58]wFMCommunicate OK [22:10:58]requested_item fd.num is exist - process it [22:10:58]SAM_PROTO_GetFieldsCounters [22:10:58]wFMCommunicate request_size=4 [22:10:58]MH_SAM_APDU [22:10:58]CAPDU: 80 13 00 00 [22:10:58]Write to MH i2c: E2 08 00 6B 0A 80 13 00 00 00 00 00 00 F1 [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 62 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 62 00 6B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 65 DC 02 00 0E 04 04 00 88 02 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 59 [22:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 65 DC 02 00 0E 04 04 00 88 02 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 [22:10:58]wFMCommunicate OK [22:10:58]SAM_PROTO_GetFieldsCounters done [22:10:58]requested_item shift.num is exist - process it [22:10:58]requested_item shift.opened is exist - process it [22:10:58]req_shift_opened [22:10:58]FM_GetShiftState [22:10:58]SAM_PROTO_GetShiftState [22:10:58]wFMCommunicate request_size=4 [22:10:58]MH_SAM_APDU [22:10:58]CAPDU: 80 13 01 00 [22:10:58]Write to MH i2c: E2 08 00 6C 0A 80 13 01 00 00 00 00 00 F3 [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:58]Read from MH i2c: E2 0E 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 0E 00 6C 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 45 [22:10:58]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:10:58]wFMCommunicate OK [22:10:58]SAM_PROTO_GetShiftState done [22:10:58]FM_GetShiftState done [22:10:58]req_shift_opened done [22:10:58]requested_item shift.open_date is exist - process it [22:10:58]req_shift_open_date [22:10:58]req_shift_open_date done [22:10:58]produce_requested_data done [22:10:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187493,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [22:10:58]process_action_free close_receipt [22:10:58]json_value_free [22:10:58]json_value_free done [22:10:58]process_json_proto returns [22:10:58]Send response to host [22:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187493,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [22:10:58]free response buf [22:10:58]execute_script done [22:10:58]execute_script returns [22:10:58]free content buf [22:10:58]Sock 9.Close socket [22:10:58]Sock 9.Thread stoped [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:07]accept exits with 7 [22:30:07]New connection [22:30:07]New thread 3067080036 created [22:30:07]Thread 3067223396 joined [22:30:07]Waiting for new connection... [22:30:07] Sock 7.Parse request [22:30:07]Sock 7.Check first char [22:30:07]Sock 7.First char is OK [22:30:07]request: POST /json_proto HTTP/1.0 [22:30:07]Method: POST [22:30:07]URL: /json_proto [22:30:07]Method is POST - this is cgi request [22:30:07]url: /json_proto [22:30:07]query_string will be loaded in cgi processing [22:30:07]execute_cgi json_proto POST (null) [22:30:07]execute_cgi path=json_proto method=POST [22:30:07]POST find Content-Length [22:30:07]Host: 172.17.46.131:8080 [22:30:07]Content-Length: 677 [22:30:07]Content-Type: application/json [22:30:07] [22:30:07]POST finish read [22:30:07]Found Content-Length = 677 [22:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "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:30:07]execute_script... [22:30: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)412653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "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:30:07]POST & json_proto [22:30:07]process_json_proto [22:30:07]json parsed OK: [22:30:07]protocol is kg_v1.0 [22:30:07]action value=close_receipt [22:30:07]process_action close_receipt [22:30:07]cmd_close_receipt [22:30:07]MH_GetDate [22:30:07]Write to MH i2c: F0 00 00 6D 0A 66 [22:30:07]Write i2c OK [22:30:07]MH_I2C_Read... [22:30:07]Read from MH i2c: F0 [22:30:07]MH_I2C_Read... [22:30:07]Read from MH i2c: F0 09 00 [22:30:07]MH_I2C_Read... [22:30:07]Read from MH i2c: F0 09 00 6D 0A 00 F0 AC B7 67 7E 41 4F 65 9C [22:30:07]GetLastDocTimeStamp 1740089455 [22:30:07]current date 1740090608 [22:30:07]FM_GetShiftState [22:30:07]SAM_PROTO_GetShiftState [22:30:07]wFMCommunicate request_size=4 [22:30:07]MH_SAM_APDU [22:30:07]CAPDU: 80 13 01 00 [22:30:07]Write to MH i2c: E2 08 00 6E 0A 80 13 01 00 00 00 00 00 F5 [22:30:07]Write i2c OK [22:30:07]MH_I2C_Read... [22:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:07]Read from MH i2c: E2 [22:30:07]MH_I2C_Read... [22:30:07]Read from MH i2c: E2 0E 00 [22:30:07]MH_I2C_Read... [22:30:07]Read from MH i2c: E2 0E 00 6E 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 47 [22:30:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:30:07]wFMCommunicate OK [22:30:07]SAM_PROTO_GetShiftState done [22:30:07]FM_GetShiftState done [22:30:07]opened in 1740011697 [22:30:07]opened+sec_in_day 1740098097 [22:30:07]quantity*price = 40060 [22:30:07]sum+1 = 40062 [22:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 295 20.02.2025 22:30 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187494 ФПД: 162700598940492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T223008&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187494&fm=162700598940492&tin=02508201610067®Number=0000000000091857&sum=40000 [22:30:08]StoreToDocumentArchive [22:30:08]shift 648 fd 187494 [22:30:08]save to /storage/0648/doc_00187494 [22:30:08]save last doc name /storage/0648/doc_00187494 to /storage/kkm_last_doc_name [22:30:08]save OK [22:30:08]Clear old archive folders... [22:30:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:08]tlvbuf is 02008860 [22:30:08]SAM_PROTO_ClearQueue [22:30:08]wFMCommunicate request_size=4 [22:30:08]MH_SAM_APDU [22:30:08]CAPDU: 80 09 00 00 [22:30:08]Write to MH i2c: E2 08 00 7B 0A 80 09 00 00 00 00 00 00 F7 [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:08]OFD Sender: No OFD packet to send [22:30:08]Read from MH i2c: E2 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 03 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [22:30:08]RAPDU: 90 00 [22:30:08]wFMCommunicate OK [22:30:08]SAM_PROTO_ClearQueue done [22:30:08]KKMCreateOFDPacket [22:30:08]OFDProtocolAddRootSTLVToBuf [22:30:08]FM_MakeSignedData [22:30:08]FM_MakeSignedData [22:30:08]SAM_PROTO_SignData [22:30:08]wFMCommunicate request_size=4 [22:30:08]MH_SAM_APDU [22:30:08]CAPDU: 80 0D 01 02 [22:30:08]Write to MH i2c: E2 08 00 7C 0A 80 0D 01 02 00 00 00 00 FF [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:08]Read from MH i2c: E2 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 03 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 03 00 7C 0A 00 90 00 FA [22:30:08]RAPDU: 90 00 [22:30:08]wFMCommunicate OK [22:30:08]wFMCommunicate request_size=255 [22:30:08]MH_SAM_APDU [22:30: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 F0 AC B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DC 02 00 35 04 06 00 93 [22:30:08]Write to MH i2c: E2 02 01 7D 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 F0 AC B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DC 02 00 35 04 06 00 93 00 00 D5 [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:08]Read from MH i2c: E2 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 03 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [22:30:08]RAPDU: 90 00 [22:30:08]wFMCommunicate OK [22:30:08]wFMCommunicate request_size=10 [22:30:08]MH_SAM_APDU [22:30:08]CAPDU: 80 0D 02 02 05 F9 AF 67 93 4C [22:30:08]Write to MH i2c: E2 0D 00 7E 0A 80 0D 02 02 05 00 F9 AF 67 93 4C 00 00 FA [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:08]Read from MH i2c: E2 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 03 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 03 00 7E 0A 00 90 00 FC [22:30:08]RAPDU: 90 00 [22:30:08]wFMCommunicate OK [22:30:08]wFMCommunicate request_size=4 [22:30:08]MH_SAM_APDU [22:30:08]CAPDU: 80 0D 03 02 [22:30:08]Write to MH i2c: E2 08 00 7F 0A 80 0D 03 02 00 00 00 00 04 [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:08]Read from MH i2c: E2 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 0B 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 0B 00 7F 0A 00 97 A3 A6 A5 89 26 6D 23 90 00 C9 [22:30:08]RAPDU: 97 A3 A6 A5 89 26 6D 23 90 00 [22:30:08]wFMCommunicate OK [22:30:08]SAM_PROTO_SignData done [22:30:08]FM_MakeSignedData done [22:30:08]CreateOFDProtocolMessage [22:30:08]wFMCommunicate request_size=4 [22:30:08]MH_SAM_APDU [22:30:08]CAPDU: 80 11 00 00 [22:30:08]Write to MH i2c: E2 08 00 80 0A 80 11 00 00 00 00 00 00 04 [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:08]Read from MH i2c: E2 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 17 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 17 00 80 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 57 [22:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:30:08]wFMCommunicate OK [22:30:08]CreateOFDProtocolMessage done [22:30:08]OFDSenderStorePacket 187494 [22:30:08]StoreOFDPacket docnum=187494 [22:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 59 07 01 D0 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 F0 AC B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DC 02 00 35 04 06 00 93 F9 AF 67 93 4C 97 A3 A6 A5 89 26 6D 23 [22:30:08]CheckFolder [22:30:08]dirname=/storage/ofd_packets [22:30:08]CheckFolder done [22:30:08]ProducePacketName [22:30:08]name=ofd_packets/00187494 [22:30:08]NVStorageSaveData ofd_packets/00187494 [22:30:08]File name is /storage/ofd_packets/00187494 [22:30:08]Write 301 bytes [22:30:08]NVStorageSaveData done [22:30:08]OFDSenderStorePacket done [22:30:08]KKMCreateOFDPacket done [22:30:08]NVStorageSaveData kkm_last_timestamp [22:30:08]File name is /storage/kkm_last_timestamp [22:30:08]Write 4 bytes [22:30:08]NVStorageSaveData done [22:30:08]ExternCall_PrintAddStr [22:30:08]wPrintStart [22:30:08]Write to MH i2c: 01 00 00 81 0A 8B [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: 01 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: 01 07 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: 01 07 00 81 0A 00 00 00 00 00 FF 0F A0 [22:30:08]RasterBufferAndPrint [22:30:08]line Счет N : (1)412653 [22:30:08]line ИНН: 02508201610067 [22:30:08]line Контрольно-Кассовый Чек [22:30:08]line ПРОДАЖА [22:30:08]line ТРК (МРК, ГНК) : 22 [22:30:08]line Товар: 2710124130 [22:30:08]line Аи-92-К-2 [22:30:08]line 6.240 * 64.20 [22:30:08]line = 400.61 [22:30:08]line НДС 12% НСП 1% [22:30:08]line > о реализуемом товаре [22:30:08]line ОКРУГЛЕНИЕ: -0.61 [22:30:08]line ИТОГО: 400.00 [22:30:08]line Внесено: 400.00 [22:30:08]line СДАЧА: 0.00 [22:30:08]line НСП 1% : 3.54 [22:30:08]line НДС 12% : 42.54 [22:30:08]line Наличными: 400.00 [22:30:08]line Безнал.: 0.00 [22:30:08]line Место: АЗС № 92 "Партнер Нефть" [22:30:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:30:08]line СНО: Общий режим [22:30:08]line Чек 295 20.02.2025 22:30 [22:30:08]line Смена: 648 ФФД: 1.0 [22:30:08]line ЗНМ: 0300000118 [22:30:08]line РНМ: 0000000000091857 [22:30:08]line Версия ККМ: 001 [22:30:08]line ФМ: 0000000000871826 [22:30:08]line ФД: 187494 [22:30:08]line ФПД: 162700598940492 [22:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T223008&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187494&fm=162700598940492&tin=02508201610067®Number=0000000000091857&sum=40000 [22:30:09]OFD Sender: Processing packet 187494 [packets to send 49, broken 48] [22:30:09]ProducePacketName [22:30:09]name=ofd_packets/00187494 [22:30:09]OFD Sender: To server: pG, [22:30:09]CommunicateWithHost lk.salyk.kg:30040 [22:30:09]ConnectInit lk.salyk.kg [22:30:09]written 0, free lines is 4095 [22:30:09]Connected sock=10 [22:30:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 59 07 01 D0 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 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 F0 AC B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 DC 02 00 35 04 06 00 93 F9 AF 67 93 4C 97 A3 A6 A5 89 26 6D 23 [22:30:09]Write to MH i2c: 01 00 00 AC 0A B6 [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: 01 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: 01 07 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: 01 07 00 AC 0A 00 00 00 00 00 EB 0C B4 [22:30:09]RasterBufferAndPrint [22:30:09]line [22:30:09]line [22:30:09]line [22:30:09]line [22:30:09]line [22:30:09]written 0, free lines is 3313 [22:30:09]MH_Cut [22:30:09]Write to MH i2c: D1 01 00 B3 0A 01 8F [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: D1 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: D1 01 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: D1 01 00 B3 0A 00 8E [22:30:09]Write to MH i2c: 01 00 00 B4 0A BE [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 28 B6 47 00 E0 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 31 38 32 36 10 04 04 00 66 DC 02 00 F4 03 04 00 40 53 B7 67 B6 04 01 00 00 1C 47 A8 45 B9 71 92 F8 [22:30:09]CommunicateWithHost err = 0 [22:30:09]CheckOFDResponse [22:30:09]1017 (14) - 77093643461234 [22:30:09]1041 (16) - 0000000000871826 [22:30:09]1040 (4) - 187494 [22:30:09]1012 (4) - 20.02.2025 16:07 [22:30:09]1206 (1) - 0 [22:30:09]OFD Sender: Remove packet 187494 [22:30:09]ProducePacketName [22:30:09]name=ofd_packets/00187494 [22:30:09]NVStorageDeleteData [22:30:10]OFD Sender: No OFD packet to send [22:30:10]*** Cut start [22:30:10]*** Partial cut [22:30:10]*** CUTSNS_PIN = 1 [22:30:10]*** CUTSNS_PIN = 0 [22:30:10]*** Brake cut motor [22:30:11]Read from MH i2c: 01 [22:30:11]MH_I2C_Read... [22:30:11]*** Stop cut motor [22:30:11]*** Cut end [22:30:11]Read from MH i2c: 01 07 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: 01 07 00 B4 0A 00 00 00 00 00 FF 0F D3 [22:30:11]process_action close_receipt done [22:30:11]requested_data is exist [22:30:11]produce_requested_data [22:30:11]requested_item fm.sn is exist - process it [22:30:11]wFMCommunicate request_size=4 [22:30:11]MH_SAM_APDU [22:30:11]CAPDU: 80 11 00 00 [22:30:11]Write to MH i2c: E2 08 00 B5 0A 80 11 00 00 00 00 00 00 39 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:11]Read from MH i2c: E2 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 17 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 17 00 B5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [22:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:30:11]wFMCommunicate OK [22:30:11]requested_item fd.num is exist - process it [22:30:11]SAM_PROTO_GetFieldsCounters [22:30:11]wFMCommunicate request_size=4 [22:30:11]MH_SAM_APDU [22:30:11]CAPDU: 80 13 00 00 [22:30:11]Write to MH i2c: E2 08 00 B6 0A 80 13 00 00 00 00 00 00 3C [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:11]Read from MH i2c: E2 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 62 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 62 00 B6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 66 DC 02 00 0E 04 04 00 88 02 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 A8 [22:30:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 66 DC 02 00 0E 04 04 00 88 02 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 [22:30:11]wFMCommunicate OK [22:30:11]SAM_PROTO_GetFieldsCounters done [22:30:11]requested_item shift.num is exist - process it [22:30:11]requested_item shift.opened is exist - process it [22:30:11]req_shift_opened [22:30:11]FM_GetShiftState [22:30:11]SAM_PROTO_GetShiftState [22:30:11]wFMCommunicate request_size=4 [22:30:11]MH_SAM_APDU [22:30:11]CAPDU: 80 13 01 00 [22:30:11]Write to MH i2c: E2 08 00 B7 0A 80 13 01 00 00 00 00 00 3E [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:11]Read from MH i2c: E2 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 0E 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 0E 00 B7 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 90 [22:30:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:30:11]wFMCommunicate OK [22:30:11]SAM_PROTO_GetShiftState done [22:30:11]FM_GetShiftState done [22:30:11]req_shift_opened done [22:30:11]requested_item shift.open_date is exist - process it [22:30:11]req_shift_open_date [22:30:11]req_shift_open_date done [22:30:11]produce_requested_data done [22:30:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187494,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [22:30:11]process_action_free close_receipt [22:30:11]json_value_free [22:30:11]json_value_free done [22:30:11]process_json_proto returns [22:30:11]Send response to host [22:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187494,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [22:30:11]free response buf [22:30:11]execute_script done [22:30:11]execute_script returns [22:30:11]free content buf [22:30:11]Sock 7.Close socket [22:30:11]Sock 7.Thread stoped [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:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53: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]accept exits with 9 [22:54:11]New connection [22:54:11]New thread 3067223396 created [22:54:11]Thread 3067080036 joined [22:54:11]Waiting for new connection... [22:54:11] Sock 9.Parse request [22:54:11]Sock 9.Check first char [22:54:11]Sock 9.First char is OK [22:54:11]request: POST /json_proto HTTP/1.0 [22:54:11]Method: POST [22:54:11]URL: /json_proto [22:54:11]Method is POST - this is cgi request [22:54:11]url: /json_proto [22:54:11]query_string will be loaded in cgi processing [22:54:11]execute_cgi json_proto POST (null) [22:54:11]execute_cgi path=json_proto method=POST [22:54:11]POST find Content-Length [22:54:11]Host: 172.17.46.131:8080 [22:54:11]Content-Length: 677 [22:54:11]Content-Type: application/json [22:54:11] [22:54:11]POST finish read [22:54:11]Found Content-Length = 677 [22:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.010, "sum" : 450.04, "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" ] } } [22:54:11]execute_script... [22:54: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)412654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.010, "sum" : 450.04, "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" ] } } [22:54:11]POST & json_proto [22:54:11]process_json_proto [22:54:11]json parsed OK: [22:54:11]protocol is kg_v1.0 [22:54:11]action value=close_receipt [22:54:11]process_action close_receipt [22:54:11]cmd_close_receipt [22:54:11]MH_GetDate [22:54:11]Write to MH i2c: F0 00 00 B8 0A B1 [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: F0 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: F0 09 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: F0 09 00 B8 0A 00 94 B2 B7 67 7E 41 4F 65 91 [22:54:11]GetLastDocTimeStamp 1740090608 [22:54:11]current date 1740092052 [22:54:11]FM_GetShiftState [22:54:11]SAM_PROTO_GetShiftState [22:54:11]wFMCommunicate request_size=4 [22:54:11]MH_SAM_APDU [22:54:11]CAPDU: 80 13 01 00 [22:54:11]Write to MH i2c: E2 08 00 B9 0A 80 13 01 00 00 00 00 00 40 [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:11]Read from MH i2c: E2 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 0E 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 0E 00 B9 0A 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 92 [22:54:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:54:11]wFMCommunicate OK [22:54:11]SAM_PROTO_GetShiftState done [22:54:11]FM_GetShiftState done [22:54:11]opened in 1740011697 [22:54:11]opened+sec_in_day 1740098097 [22:54:11]quantity*price = 45004 [22:54:11]sum+1 = 45005 [22:54:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 296 20.02.2025 22:54 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187495 ФПД: 255756568559268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T225412&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187495&fm=255756568559268&tin=02508201610067®Number=0000000000091857&sum=45000 [22:54:12]StoreToDocumentArchive [22:54:12]shift 648 fd 187495 [22:54:12]save to /storage/0648/doc_00187495 [22:54:12]save last doc name /storage/0648/doc_00187495 to /storage/kkm_last_doc_name [22:54:12]save OK [22:54:12]Clear old archive folders... [22:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:12]tlvbuf is 0202EF00 [22:54:12]SAM_PROTO_ClearQueue [22:54:12]wFMCommunicate request_size=4 [22:54:12]MH_SAM_APDU [22:54:12]CAPDU: 80 09 00 00 [22:54:12]Write to MH i2c: E2 08 00 C6 0A 80 09 00 00 00 00 00 00 42 [22:54:12]Write i2c OK [22:54:12]MH_I2C_Read... [22:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:12]Read from MH i2c: E2 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 03 00 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 03 00 C6 0A 00 90 00 44 [22:54:12]RAPDU: 90 00 [22:54:12]wFMCommunicate OK [22:54:12]SAM_PROTO_ClearQueue done [22:54:12]KKMCreateOFDPacket [22:54:12]OFDProtocolAddRootSTLVToBuf [22:54:12]FM_MakeSignedData [22:54:12]FM_MakeSignedData [22:54:12]SAM_PROTO_SignData [22:54:12]wFMCommunicate request_size=4 [22:54:12]MH_SAM_APDU [22:54:12]CAPDU: 80 0D 01 02 [22:54:12]Write to MH i2c: E2 08 00 C7 0A 80 0D 01 02 00 00 00 00 4A [22:54:12]Write i2c OK [22:54:12]MH_I2C_Read... [22:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:12]Read from MH i2c: E2 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 03 00 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 03 00 C7 0A 00 90 00 45 [22:54:12]RAPDU: 90 00 [22:54:12]wFMCommunicate OK [22:54:12]wFMCommunicate request_size=255 [22:54:12]MH_SAM_APDU [22:54: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 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC 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 28 01 00 00 F4 03 04 00 94 B2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DC 02 00 35 04 06 00 E8 [22:54:12]Write to MH i2c: E2 02 01 C8 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 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC 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 28 01 00 00 F4 03 04 00 94 B2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DC 02 00 35 04 06 00 E8 00 00 F9 [22:54:12]Write i2c OK [22:54:12]MH_I2C_Read... [22:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:12]Read from MH i2c: E2 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 03 00 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 03 00 C8 0A 00 90 00 46 [22:54:12]RAPDU: 90 00 [22:54:12]wFMCommunicate OK [22:54:12]wFMCommunicate request_size=10 [22:54:12]MH_SAM_APDU [22:54:12]CAPDU: 80 0D 02 02 05 9B F7 6A FE A4 [22:54:12]Write to MH i2c: E2 0D 00 C9 0A 80 0D 02 02 05 00 9B F7 6A FE A4 00 00 F5 [22:54:12]Write i2c OK [22:54:12]MH_I2C_Read... [22:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:12]Read from MH i2c: E2 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 03 00 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 03 00 C9 0A 00 90 00 47 [22:54:12]RAPDU: 90 00 [22:54:12]wFMCommunicate OK [22:54:12]wFMCommunicate request_size=4 [22:54:12]MH_SAM_APDU [22:54:12]CAPDU: 80 0D 03 02 [22:54:12]Write to MH i2c: E2 08 00 CA 0A 80 0D 03 02 00 00 00 00 4F [22:54:12]Write i2c OK [22:54:12]MH_I2C_Read... [22:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:12]Read from MH i2c: E2 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 0B 00 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 0B 00 CA 0A 00 86 B8 62 1E 82 5D 44 90 90 00 C1 [22:54:12]RAPDU: 86 B8 62 1E 82 5D 44 90 90 00 [22:54:12]wFMCommunicate OK [22:54:12]SAM_PROTO_SignData done [22:54:12]FM_MakeSignedData done [22:54:12]CreateOFDProtocolMessage [22:54:12]wFMCommunicate request_size=4 [22:54:12]MH_SAM_APDU [22:54:12]CAPDU: 80 11 00 00 [22:54:12]Write to MH i2c: E2 08 00 CB 0A 80 11 00 00 00 00 00 00 4F [22:54:12]Write i2c OK [22:54:12]MH_I2C_Read... [22:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:12]Read from MH i2c: E2 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 17 00 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: E2 17 00 CB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [22:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:54:12]wFMCommunicate OK [22:54:12]CreateOFDProtocolMessage done [22:54:12]OFDSenderStorePacket 187495 [22:54:12]StoreOFDPacket docnum=187495 [22:54:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 01 8E 07 01 50 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 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC 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 28 01 00 00 F4 03 04 00 94 B2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DC 02 00 35 04 06 00 E8 9B F7 6A FE A4 86 B8 62 1E 82 5D 44 90 [22:54:12]CheckFolder [22:54:12]dirname=/storage/ofd_packets [22:54:12]CheckFolder done [22:54:12]ProducePacketName [22:54:12]name=ofd_packets/00187495 [22:54:12]NVStorageSaveData ofd_packets/00187495 [22:54:12]File name is /storage/ofd_packets/00187495 [22:54:12]Write 301 bytes [22:54:12]NVStorageSaveData done [22:54:12]OFDSenderStorePacket done [22:54:12]KKMCreateOFDPacket done [22:54:12]NVStorageSaveData kkm_last_timestamp [22:54:12]File name is /storage/kkm_last_timestamp [22:54:12]Write 4 bytes [22:54:12]NVStorageSaveData done [22:54:12]ExternCall_PrintAddStr [22:54:12]wPrintStart [22:54:12]Write to MH i2c: 01 00 00 CC 0A D6 [22:54:12]Write i2c OK [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: 01 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: 01 07 00 [22:54:12]MH_I2C_Read... [22:54:12]Read from MH i2c: 01 07 00 CC 0A 00 00 00 00 00 FF 0F EB [22:54:12]RasterBufferAndPrint [22:54:12]line Счет N : (1)412654 [22:54:12]line ИНН: 02508201610067 [22:54:12]line Контрольно-Кассовый Чек [22:54:12]line ПРОДАЖА [22:54:12]line ТРК (МРК, ГНК) : 32 [22:54:12]line Товар: 2710124130 [22:54:12]line Аи-92-К-2 [22:54:12]line 7.010 * 64.20 [22:54:12]line = 450.04 [22:54:12]line НДС 12% НСП 1% [22:54:12]line > о реализуемом товаре [22:54:12]line ОКРУГЛЕНИЕ: -0.04 [22:54:12]line ИТОГО: 450.00 [22:54:12]line Внесено: 450.00 [22:54:12]line СДАЧА: 0.00 [22:54:12]line НСП 1% : 3.98 [22:54:12]line НДС 12% : 47.79 [22:54:12]line Наличными: 450.00 [22:54:12]line Безнал.: 0.00 [22:54:12]line Место: АЗС № 92 "Партнер Нефть" [22:54:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:54:12]line СНО: Общий режим [22:54:12]line Чек 296 20.02.2025 22:54 [22:54:12]line Смена: 648 ФФД: 1.0 [22:54:12]line ЗНМ: 0300000118 [22:54:12]line РНМ: 0000000000091857 [22:54:12]line Версия ККМ: 001 [22:54:12]line ФМ: 0000000000871826 [22:54:12]line ФД: 187495 [22:54:12]line ФПД: 255756568559268 [22:54:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T225412&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187495&fm=255756568559268&tin=02508201610067®Number=0000000000091857&sum=45000 [22:54:13]written 0, free lines is 4095 [22:54:13]OFD Sender: Processing packet 187495 [packets to send 49, broken 48] [22:54:13]ProducePacketName [22:54:13]name=ofd_packets/00187495 [22:54:13]OFD Sender: To server: pG, [22:54:13]CommunicateWithHost lk.salyk.kg:30040 [22:54:13]ConnectInit lk.salyk.kg [22:54:13]Connected sock=11 [22:54:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 01 8E 07 01 50 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 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC 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 28 01 00 00 F4 03 04 00 94 B2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DC 02 00 35 04 06 00 E8 9B F7 6A FE A4 86 B8 62 1E 82 5D 44 90 [22:54:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A7 6C 47 00 DD 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 31 38 32 36 10 04 04 00 67 DC 02 00 F4 03 04 00 E4 58 B7 67 B6 04 01 00 00 99 C9 25 22 77 28 2E 33 [22:54:13]CommunicateWithHost err = 0 [22:54:13]CheckOFDResponse [22:54:13]1017 (14) - 77093643461234 [22:54:13]1041 (16) - 0000000000871826 [22:54:13]1040 (4) - 187495 [22:54:13]1012 (4) - 20.02.2025 16:31 [22:54:13]1206 (1) - 0 [22:54:13]OFD Sender: Remove packet 187495 [22:54:13]ProducePacketName [22:54:13]name=ofd_packets/00187495 [22:54:13]NVStorageDeleteData [22:54:13]Write to MH i2c: 01 00 00 F7 0A 01 [22:54:13]Write i2c OK [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: 01 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: 01 07 00 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: 01 07 00 F7 0A 00 00 00 00 00 FE 0C 12 [22:54:13]RasterBufferAndPrint [22:54:13]line [22:54:13]line [22:54:13]line [22:54:13]line [22:54:13]line [22:54:13]written 0, free lines is 3332 [22:54:13]MH_Cut [22:54:13]Write to MH i2c: D1 01 00 FE 0A 01 DA [22:54:13]Write i2c OK [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: D1 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: D1 01 00 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: D1 01 00 FE 0A 00 D9 [22:54:13]Write to MH i2c: 01 00 00 FF 0A 09 [22:54:13]Write i2c OK [22:54:13]MH_I2C_Read... [22:54:14]OFD Sender: No OFD packet to send [22:54:14]*** Cut start [22:54:14]*** Partial cut [22:54:14]*** CUTSNS_PIN = 1 [22:54:14]*** CUTSNS_PIN = 0 [22:54:14]*** Brake cut motor [22:54:15]Read from MH i2c: 01 [22:54:15]MH_I2C_Read... [22:54:15]*** Stop cut motor [22:54:15]*** Cut end [22:54:15]Read from MH i2c: 01 07 00 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: 01 07 00 FF 0A 00 00 00 00 00 FF 0F 1E [22:54:15]process_action close_receipt done [22:54:15]requested_data is exist [22:54:15]produce_requested_data [22:54:15]requested_item fm.sn is exist - process it [22:54:15]wFMCommunicate request_size=4 [22:54:15]MH_SAM_APDU [22:54:15]CAPDU: 80 11 00 00 [22:54:15]Write to MH i2c: E2 08 00 00 0B 80 11 00 00 00 00 00 00 85 [22:54:15]Write i2c OK [22:54:15]MH_I2C_Read... [22:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:15]Read from MH i2c: E2 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: E2 17 00 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: E2 17 00 00 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [22:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:54:15]wFMCommunicate OK [22:54:15]requested_item fd.num is exist - process it [22:54:15]SAM_PROTO_GetFieldsCounters [22:54:15]wFMCommunicate request_size=4 [22:54:15]MH_SAM_APDU [22:54:15]CAPDU: 80 13 00 00 [22:54:15]Write to MH i2c: E2 08 00 01 0B 80 13 00 00 00 00 00 00 88 [22:54:15]Write i2c OK [22:54:15]MH_I2C_Read... [22:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:15]Read from MH i2c: E2 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: E2 62 00 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: E2 62 00 01 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 67 DC 02 00 0E 04 04 00 88 02 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 F8 [22:54:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 67 DC 02 00 0E 04 04 00 88 02 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 [22:54:15]wFMCommunicate OK [22:54:15]SAM_PROTO_GetFieldsCounters done [22:54:15]requested_item shift.num is exist - process it [22:54:15]requested_item shift.opened is exist - process it [22:54:15]req_shift_opened [22:54:15]FM_GetShiftState [22:54:15]SAM_PROTO_GetShiftState [22:54:15]wFMCommunicate request_size=4 [22:54:15]MH_SAM_APDU [22:54:15]CAPDU: 80 13 01 00 [22:54:15]Write to MH i2c: E2 08 00 02 0B 80 13 01 00 00 00 00 00 8A [22:54:15]Write i2c OK [22:54:15]MH_I2C_Read... [22:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:15]Read from MH i2c: E2 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: E2 0E 00 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: E2 0E 00 02 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DC [22:54:15]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:54:15]wFMCommunicate OK [22:54:15]SAM_PROTO_GetShiftState done [22:54:15]FM_GetShiftState done [22:54:15]req_shift_opened done [22:54:15]requested_item shift.open_date is exist - process it [22:54:15]req_shift_open_date [22:54:15]req_shift_open_date done [22:54:15]produce_requested_data done [22:54:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187495,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [22:54:15]process_action_free close_receipt [22:54:15]json_value_free [22:54:15]json_value_free done [22:54:15]process_json_proto returns [22:54:15]Send response to host [22:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187495,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [22:54:15]free response buf [22:54:15]execute_script done [22:54:15]execute_script returns [22:54:15]free content buf [22:54:15]Sock 9.Close socket [22:54:15]Sock 9.Thread stoped [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:48]accept exits with 7 [22:55:48]New connection [22:55:48]New thread 3067080036 created [22:55:48]Thread 3067223396 joined [22:55:48]Waiting for new connection... [22:55:48] Sock 7.Parse request [22:55:48]Sock 7.Check first char [22:55:48]Sock 7.First char is OK [22:55:48]request: POST /json_proto HTTP/1.0 [22:55:48]Method: POST [22:55:48]URL: /json_proto [22:55:48]Method is POST - this is cgi request [22:55:48]url: /json_proto [22:55:48]query_string will be loaded in cgi processing [22:55:48]execute_cgi json_proto POST (null) [22:55:48]execute_cgi path=json_proto method=POST [22:55:48]POST find Content-Length [22:55:48]Host: 172.17.46.131:8080 [22:55:48]Content-Length: 803 [22:55:48]Content-Type: application/json [22:55:48] [22:55:48]POST finish read [22:55:48]Found Content-Length = 803 [22:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:48]execute_script... [22:55: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)412655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:48]POST & json_proto [22:55:48]process_json_proto [22:55:48]json parsed OK: [22:55:48]protocol is kg_v1.0 [22:55:48]action value=close_receipt [22:55:48]process_action close_receipt [22:55:48]cmd_close_receipt [22:55:48]MH_GetDate [22:55:48]Write to MH i2c: F0 00 00 03 0B FD [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: F0 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: F0 09 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: F0 09 00 03 0B 00 F6 B2 B7 67 7E 41 4F 65 3F [22:55:48]GetLastDocTimeStamp 1740092052 [22:55:48]current date 1740092150 [22:55:48]FM_GetShiftState [22:55:48]SAM_PROTO_GetShiftState [22:55:48]wFMCommunicate request_size=4 [22:55:48]MH_SAM_APDU [22:55:48]CAPDU: 80 13 01 00 [22:55:48]Write to MH i2c: E2 08 00 04 0B 80 13 01 00 00 00 00 00 8C [22:55:48]Write i2c OK [22:55:48]MH_I2C_Read... [22:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:48]Read from MH i2c: E2 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 0E 00 [22:55:48]MH_I2C_Read... [22:55:48]Read from MH i2c: E2 0E 00 04 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DE [22:55:48]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:55:48]wFMCommunicate OK [22:55:48]SAM_PROTO_GetShiftState done [22:55:48]FM_GetShiftState done [22:55:48]opened in 1740011697 [22:55:48]opened+sec_in_day 1740098097 [22:55:48]quantity*price = 100023 [22:55:48]sum+1 = 100025 [22:55:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 297 20.02.2025 22:55 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187496 ФПД: 168270961063242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T225550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187496&fm=168270961063242&tin=02508201610067®Number=0000000000091857&sum=100024 [22:55:49]StoreToDocumentArchive [22:55:49]shift 648 fd 187496 [22:55:49]save to /storage/0648/doc_00187496 [22:55:49]save last doc name /storage/0648/doc_00187496 to /storage/kkm_last_doc_name [22:55:49]save OK [22:55:49]Clear old archive folders... [22:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:55:49]tlvbuf is 02009810 [22:55:49]SAM_PROTO_ClearQueue [22:55:49]wFMCommunicate request_size=4 [22:55:49]MH_SAM_APDU [22:55:49]CAPDU: 80 09 00 00 [22:55:49]Write to MH i2c: E2 08 00 11 0B 80 09 00 00 00 00 00 00 8E [22:55:49]Write i2c OK [22:55:49]MH_I2C_Read... [22:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:49]Read from MH i2c: E2 [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: E2 03 00 [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: E2 03 00 11 0B 00 90 00 90 [22:55:49]RAPDU: 90 00 [22:55:49]wFMCommunicate OK [22:55:49]SAM_PROTO_ClearQueue done [22:55:49]KKMCreateOFDPacket [22:55:49]OFDProtocolAddRootSTLVToBuf [22:55:49]FM_MakeSignedData [22:55:49]FM_MakeSignedData [22:55:49]SAM_PROTO_SignData [22:55:49]wFMCommunicate request_size=4 [22:55:49]MH_SAM_APDU [22:55:49]CAPDU: 80 0D 01 02 [22:55:49]Write to MH i2c: E2 08 00 12 0B 80 0D 01 02 00 00 00 00 96 [22:55:49]Write i2c OK [22:55:49]MH_I2C_Read... [22:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:49]Read from MH i2c: E2 [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: E2 03 00 [22:55:49]MH_I2C_Read... [22:55:49]Read from MH i2c: E2 03 00 12 0B 00 90 00 91 [22:55:49]RAPDU: 90 00 [22:55:49]wFMCommunicate OK [22:55:49]wFMCommunicate request_size=255 [22:55:49]MH_SAM_APDU [22:55: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 F6 B2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DC 02 00 35 04 06 00 99 [22:55:49]Write to MH i2c: E2 02 01 13 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 F6 B2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DC 02 00 35 04 06 00 99 00 00 1C [22:55:49]Write i2c OK [22:55:49]MH_I2C_Read... [22:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:50]Read from MH i2c: E2 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: E2 03 00 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: E2 03 00 13 0B 00 90 00 92 [22:55:50]RAPDU: 90 00 [22:55:50]wFMCommunicate OK [22:55:50]wFMCommunicate request_size=10 [22:55:50]MH_SAM_APDU [22:55:50]CAPDU: 80 0D 02 02 05 0A A2 DC 35 4A [22:55:50]Write to MH i2c: E2 0D 00 14 0B 80 0D 02 02 05 00 0A A2 DC 35 4A 00 00 AA [22:55:50]Write i2c OK [22:55:50]MH_I2C_Read... [22:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:50]Read from MH i2c: E2 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: E2 03 00 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: E2 03 00 14 0B 00 90 00 93 [22:55:50]RAPDU: 90 00 [22:55:50]wFMCommunicate OK [22:55:50]wFMCommunicate request_size=4 [22:55:50]MH_SAM_APDU [22:55:50]CAPDU: 80 0D 03 02 [22:55:50]Write to MH i2c: E2 08 00 15 0B 80 0D 03 02 00 00 00 00 9B [22:55:50]Write i2c OK [22:55:50]MH_I2C_Read... [22:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:50]Read from MH i2c: E2 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: E2 0B 00 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: E2 0B 00 15 0B 00 1C 7A F6 91 22 06 DC 6C 90 00 29 [22:55:50]RAPDU: 1C 7A F6 91 22 06 DC 6C 90 00 [22:55:50]wFMCommunicate OK [22:55:50]SAM_PROTO_SignData done [22:55:50]FM_MakeSignedData done [22:55:50]CreateOFDProtocolMessage [22:55:50]wFMCommunicate request_size=4 [22:55:50]MH_SAM_APDU [22:55:50]CAPDU: 80 11 00 00 [22:55:50]Write to MH i2c: E2 08 00 16 0B 80 11 00 00 00 00 00 00 9B [22:55:50]Write i2c OK [22:55:50]MH_I2C_Read... [22:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:50]Read from MH i2c: E2 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: E2 17 00 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: E2 17 00 16 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [22:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:55:50]wFMCommunicate OK [22:55:50]CreateOFDProtocolMessage done [22:55:50]OFDSenderStorePacket 187496 [22:55:50]StoreOFDPacket docnum=187496 [22:55:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6F 57 07 01 5C 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 F6 B2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DC 02 00 35 04 06 00 99 0A A2 DC 35 4A 1C 7A F6 91 22 06 DC 6C [22:55:50]CheckFolder [22:55:50]dirname=/storage/ofd_packets [22:55:50]CheckFolder done [22:55:50]ProducePacketName [22:55:50]name=ofd_packets/00187496 [22:55:50]NVStorageSaveData ofd_packets/00187496 [22:55:50]File name is /storage/ofd_packets/00187496 [22:55:50]Write 301 bytes [22:55:50]NVStorageSaveData done [22:55:50]OFDSenderStorePacket done [22:55:50]KKMCreateOFDPacket done [22:55:50]NVStorageSaveData kkm_last_timestamp [22:55:50]File name is /storage/kkm_last_timestamp [22:55:50]Write 4 bytes [22:55:50]NVStorageSaveData done [22:55:50]ExternCall_PrintAddStr [22:55:50]wPrintStart [22:55:50]Write to MH i2c: 01 00 00 17 0B 22 [22:55:50]Write i2c OK [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: 01 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: 01 07 00 [22:55:50]MH_I2C_Read... [22:55:50]Read from MH i2c: 01 07 00 17 0B 00 00 00 00 00 FF 0F 37 [22:55:50]RasterBufferAndPrint [22:55:50]line Счет N : (1)412655 [22:55:50]line ИНН: 02508201610067 [22:55:50]line Контрольно-Кассовый Чек [22:55:50]line ПРОДАЖА [22:55:50]line ТРК (МРК, ГНК) : 12 [22:55:50]line Товар: 2710124130 [22:55:50]line Аи-92-К-2 [22:55:50]line 15.580 * 64.20 [22:55:50]line = 1000.24 [22:55:50]line НДС 12% НСП 1% [22:55:50]line > о реализуемом товаре [22:55:50]line ИТОГО: 1000.24 [22:55:50]line НСП 1% : 8.85 [22:55:50]line НДС 12% : 106.22 [22:55:50]line Наличными: 0.00 [22:55:50]line Безнал.: 1000.24 [22:55:50]line Место: АЗС № 92 "Партнер Нефть" [22:55:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:55:50]line СНО: Общий режим [22:55:50]line Чек 297 20.02.2025 22:55 [22:55:50]line Смена: 648 ФФД: 1.0 [22:55:50]line ЗНМ: 0300000118 [22:55:50]line РНМ: 0000000000091857 [22:55:50]line Версия ККМ: 001 [22:55:50]line Платежная система: O! деньги [22:55:50]line ФМ: 0000000000871826 [22:55:50]line ФД: 187496 [22:55:50]line ФПД: 168270961063242 [22:55:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T225550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187496&fm=168270961063242&tin=02508201610067®Number=0000000000091857&sum=100024 [22:55:50]written 0, free lines is 4095 [22:55:50]OFD Sender: Processing packet 187496 [packets to send 49, broken 48] [22:55:50]ProducePacketName [22:55:50]name=ofd_packets/00187496 [22:55:50]OFD Sender: To server: pG, [22:55:50]CommunicateWithHost lk.salyk.kg:30040 [22:55:50]ConnectInit lk.salyk.kg [22:55:50]Connected sock=10 [22:55:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6F 57 07 01 5C 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 F6 B2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DC 02 00 35 04 06 00 99 0A A2 DC 35 4A 1C 7A F6 91 22 06 DC 6C [22:55:51]Write to MH i2c: 01 00 00 41 0B 4C [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: 01 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: 01 07 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: 01 07 00 41 0B 00 00 00 00 00 FE 0C 5D [22:55:51]RasterBufferAndPrint [22:55:51]line [22:55:51]line [22:55:51]line [22:55:51]line [22:55:51]line [22:55:51]written 0, free lines is 3332 [22:55:51]MH_Cut [22:55:51]Write to MH i2c: D1 01 00 48 0B 01 25 [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EF 28 47 00 6D 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 DC 02 00 F4 03 04 00 45 59 B7 67 B6 04 01 00 00 CA 1A 81 2E CC 9E CC 3E [22:55:51]CommunicateWithHost err = 0 [22:55:51]CheckOFDResponse [22:55:51]1017 (14) - 77093643461234 [22:55:51]1041 (16) - 0000000000871826 [22:55:51]1040 (4) - 187496 [22:55:51]1012 (4) - 20.02.2025 16:33 [22:55:51]1206 (1) - 0 [22:55:51]OFD Sender: Remove packet 187496 [22:55:51]ProducePacketName [22:55:51]name=ofd_packets/00187496 [22:55:51]NVStorageDeleteData [22:55:51]Read from MH i2c: D1 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: D1 01 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: D1 01 00 48 0B 00 24 [22:55:51]Write to MH i2c: 01 00 00 49 0B 54 [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]OFD Sender: No OFD packet to send [22:55:51]*** Cut start [22:55:51]*** Partial cut [22:55:51]*** CUTSNS_PIN = 1 [22:55:51]*** CUTSNS_PIN = 0 [22:55:52]*** Brake cut motor [22:55:52]Read from MH i2c: 01 [22:55:52]MH_I2C_Read... [22:55:52]*** Stop cut motor [22:55:52]*** Cut end [22:55:52]Read from MH i2c: 01 07 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 FF 0F 69 [22:55:52]process_action close_receipt done [22:55:52]requested_data is exist [22:55:52]produce_requested_data [22:55:52]requested_item fm.sn is exist - process it [22:55:52]wFMCommunicate request_size=4 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 11 00 00 [22:55:52]Write to MH i2c: E2 08 00 4A 0B 80 11 00 00 00 00 00 00 CF [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 17 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 17 00 4A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 22 [22:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:55:52]wFMCommunicate OK [22:55:52]requested_item fd.num is exist - process it [22:55:52]SAM_PROTO_GetFieldsCounters [22:55:52]wFMCommunicate request_size=4 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 13 00 00 [22:55:52]Write to MH i2c: E2 08 00 4B 0B 80 13 00 00 00 00 00 00 D2 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 62 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 62 00 4B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 68 DC 02 00 0E 04 04 00 88 02 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 46 [22:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 68 DC 02 00 0E 04 04 00 88 02 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 [22:55:52]wFMCommunicate OK [22:55:52]SAM_PROTO_GetFieldsCounters done [22:55:52]requested_item shift.num is exist - process it [22:55:52]requested_item shift.opened is exist - process it [22:55:52]req_shift_opened [22:55:52]FM_GetShiftState [22:55:52]SAM_PROTO_GetShiftState [22:55:52]wFMCommunicate request_size=4 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 13 01 00 [22:55:52]Write to MH i2c: E2 08 00 4C 0B 80 13 01 00 00 00 00 00 D4 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 0E 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 0E 00 4C 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 26 [22:55:52]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:55:52]wFMCommunicate OK [22:55:52]SAM_PROTO_GetShiftState done [22:55:52]FM_GetShiftState done [22:55:52]req_shift_opened done [22:55:52]requested_item shift.open_date is exist - process it [22:55:52]req_shift_open_date [22:55:52]req_shift_open_date done [22:55:52]produce_requested_data done [22:55:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187496,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [22:55:52]process_action_free close_receipt [22:55:52]json_value_free [22:55:52]json_value_free done [22:55:52]process_json_proto returns [22:55:52]Send response to host [22:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187496,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [22:55:52]free response buf [22:55:52]execute_script done [22:55:52]execute_script returns [22:55:52]free content buf [22:55:52]Sock 7.Close socket [22:55:52]Sock 7.Thread stoped [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]accept exits with 9 [22:56:56]New connection [22:56:56]New thread 3067223396 created [22:56:56]Thread 3067080036 joined [22:56:56]Waiting for new connection... [22:56:56] Sock 9.Parse request [22:56:56]Sock 9.Check first char [22:56:56]Sock 9.First char is OK [22:56:56]request: POST /json_proto HTTP/1.0 [22:56:56]Method: POST [22:56:56]URL: /json_proto [22:56:56]Method is POST - this is cgi request [22:56:56]url: /json_proto [22:56:56]query_string will be loaded in cgi processing [22:56:56]execute_cgi json_proto POST (null) [22:56:56]execute_cgi path=json_proto method=POST [22:56:56]POST find Content-Length [22:56:56]Host: 172.17.46.131:8080 [22:56:56]Content-Length: 677 [22:56:56]Content-Type: application/json [22:56:56] [22:56:56]POST finish read [22:56:56]Found Content-Length = 677 [22:56:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "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:56:56]execute_script... [22: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)412656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "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:56:56]POST & json_proto [22:56:56]process_json_proto [22:56:56]json parsed OK: [22:56:56]protocol is kg_v1.0 [22:56:56]action value=close_receipt [22:56:56]process_action close_receipt [22:56:56]cmd_close_receipt [22:56:56]MH_GetDate [22:56:56]Write to MH i2c: F0 00 00 4D 0B 47 [22:56:56]Write i2c OK [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: F0 [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: F0 09 00 [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: F0 09 00 4D 0B 00 39 B3 B7 67 7E 41 4F 65 CD [22:56:56]GetLastDocTimeStamp 1740092150 [22:56:56]current date 1740092217 [22:56:56]FM_GetShiftState [22:56:56]SAM_PROTO_GetShiftState [22:56:56]wFMCommunicate request_size=4 [22:56:56]MH_SAM_APDU [22:56:56]CAPDU: 80 13 01 00 [22:56:56]Write to MH i2c: E2 08 00 4E 0B 80 13 01 00 00 00 00 00 D6 [22:56:56]Write i2c OK [22:56:56]MH_I2C_Read... [22:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:56]Read from MH i2c: E2 [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: E2 0E 00 [22:56:56]MH_I2C_Read... [22:56:56]Read from MH i2c: E2 0E 00 4E 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 28 [22:56:56]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:56:56]wFMCommunicate OK [22:56:56]SAM_PROTO_GetShiftState done [22:56:56]FM_GetShiftState done [22:56:56]opened in 1740011697 [22:56:56]opened+sec_in_day 1740098097 [22:56:56]quantity*price = 40060 [22:56:56]sum+1 = 40062 [22:56:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 298 20.02.2025 22:56 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187497 ФПД: 89347702076219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T225657&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187497&fm=89347702076219&tin=02508201610067®Number=0000000000091857&sum=40000 [22:56:57]StoreToDocumentArchive [22:56:57]shift 648 fd 187497 [22:56:57]save to /storage/0648/doc_00187497 [22:56:57]save last doc name /storage/0648/doc_00187497 to /storage/kkm_last_doc_name [22:56:57]save OK [22:56:57]Clear old archive folders... [22:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:57]tlvbuf is 020351B0 [22:56:57]SAM_PROTO_ClearQueue [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 09 00 00 [22:56:57]Write to MH i2c: E2 08 00 5B 0B 80 09 00 00 00 00 00 00 D8 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 5B 0B 00 90 00 DA [22:56:57]RAPDU: 90 00 [22:56:57]wFMCommunicate OK [22:56:57]SAM_PROTO_ClearQueue done [22:56:57]KKMCreateOFDPacket [22:56:57]OFDProtocolAddRootSTLVToBuf [22:56:57]FM_MakeSignedData [22:56:57]FM_MakeSignedData [22:56:57]SAM_PROTO_SignData [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 0D 01 02 [22:56:57]Write to MH i2c: E2 08 00 5C 0B 80 0D 01 02 00 00 00 00 E0 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 5C 0B 00 90 00 DB [22:56:57]RAPDU: 90 00 [22:56:57]wFMCommunicate OK [22:56:57]wFMCommunicate request_size=255 [22:56:57]MH_SAM_APDU [22: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 39 B3 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 DC 02 00 35 04 06 00 51 [22:56:57]Write to MH i2c: E2 02 01 5D 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 39 B3 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 DC 02 00 35 04 06 00 51 00 00 CA [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 5D 0B 00 90 00 DC [22:56:57]RAPDU: 90 00 [22:56:57]wFMCommunicate OK [22:56:57]wFMCommunicate request_size=10 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 0D 02 02 05 42 E2 0B 33 3B [22:56:57]Write to MH i2c: E2 0D 00 5E 0B 80 0D 02 02 05 00 42 E2 0B 33 3B 00 00 8A [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 03 00 5E 0B 00 90 00 DD [22:56:57]RAPDU: 90 00 [22:56:57]wFMCommunicate OK [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 0D 03 02 [22:56:57]Write to MH i2c: E2 08 00 5F 0B 80 0D 03 02 00 00 00 00 E5 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 0B 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 0B 00 5F 0B 00 1B F4 0F 92 7E EA FB 0B 90 00 04 [22:56:57]RAPDU: 1B F4 0F 92 7E EA FB 0B 90 00 [22:56:57]wFMCommunicate OK [22:56:57]SAM_PROTO_SignData done [22:56:57]FM_MakeSignedData done [22:56:57]CreateOFDProtocolMessage [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 11 00 00 [22:56:57]Write to MH i2c: E2 08 00 60 0B 80 11 00 00 00 00 00 00 E5 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 17 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 17 00 60 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [22:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:56:57]wFMCommunicate OK [22:56:57]CreateOFDProtocolMessage done [22:56:57]OFDSenderStorePacket 187497 [22:56:57]StoreOFDPacket docnum=187497 [22:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0B 11 07 01 14 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 39 B3 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 DC 02 00 35 04 06 00 51 42 E2 0B 33 3B 1B F4 0F 92 7E EA FB 0B [22:56:57]CheckFolder [22:56:57]dirname=/storage/ofd_packets [22:56:57]CheckFolder done [22:56:57]ProducePacketName [22:56:57]name=ofd_packets/00187497 [22:56:57]NVStorageSaveData ofd_packets/00187497 [22:56:57]File name is /storage/ofd_packets/00187497 [22:56:57]Write 301 bytes [22:56:57]NVStorageSaveData done [22:56:57]OFDSenderStorePacket done [22:56:57]KKMCreateOFDPacket done [22:56:57]NVStorageSaveData kkm_last_timestamp [22:56:57]File name is /storage/kkm_last_timestamp [22:56:57]Write 4 bytes [22:56:57]NVStorageSaveData done [22:56:57]ExternCall_PrintAddStr [22:56:57]wPrintStart [22:56:57]Write to MH i2c: 01 00 00 61 0B 6C [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 07 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 07 00 61 0B 00 00 00 00 00 FF 0F 81 [22:56:57]RasterBufferAndPrint [22:56:57]line Счет N : (1)412656 [22:56:57]line ИНН: 02508201610067 [22:56:57]line Контрольно-Кассовый Чек [22:56:57]line ПРОДАЖА [22:56:57]line ТРК (МРК, ГНК) : 32 [22:56:57]line Товар: 2710124130 [22:56:57]line Аи-92-К-2 [22:56:57]line 6.240 * 64.20 [22:56:57]line = 400.61 [22:56:57]line НДС 12% НСП 1% [22:56:57]line > о реализуемом товаре [22:56:57]line ОКРУГЛЕНИЕ: -0.61 [22:56:57]line ИТОГО: 400.00 [22:56:57]line Внесено: 400.00 [22:56:57]line СДАЧА: 0.00 [22:56:57]line НСП 1% : 3.54 [22:56:57]line НДС 12% : 42.54 [22:56:57]line Наличными: 400.00 [22:56:57]line Безнал.: 0.00 [22:56:57]line Место: АЗС № 92 "Партнер Нефть" [22:56:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:56:57]line СНО: Общий режим [22:56:57]line Чек 298 20.02.2025 22:56 [22:56:57]line Смена: 648 ФФД: 1.0 [22:56:57]line ЗНМ: 0300000118 [22:56:57]line РНМ: 0000000000091857 [22:56:57]line Версия ККМ: 001 [22:56:57]line ФМ: 0000000000871826 [22:56:57]line ФД: 187497 [22:56:57]line ФПД: 89347702076219 [22:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T225657&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187497&fm=89347702076219&tin=02508201610067®Number=0000000000091857&sum=40000 [22:56:58]written 0, free lines is 4095 [22:56:58]OFD Sender: Processing packet 187497 [packets to send 49, broken 48] [22:56:58]ProducePacketName [22:56:58]name=ofd_packets/00187497 [22:56:58]OFD Sender: To server: pG, [22:56:58]CommunicateWithHost lk.salyk.kg:30040 [22:56:58]ConnectInit lk.salyk.kg [22:56:58]Connected sock=10 [22: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 31 38 32 36 0F 01 00 00 0B 11 07 01 14 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 39 B3 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 DC 02 00 35 04 06 00 51 42 E2 0B 33 3B 1B F4 0F 92 7E EA FB 0B [22:56:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 64 D1 47 00 63 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 31 38 32 36 10 04 04 00 69 DC 02 00 F4 03 04 00 89 59 B7 67 B6 04 01 00 00 61 D9 E3 CB E8 49 36 DD [22:56:58]CommunicateWithHost err = 0 [22:56:58]CheckOFDResponse [22:56:58]1017 (14) - 77093643461234 [22:56:58]1041 (16) - 0000000000871826 [22:56:58]1040 (4) - 187497 [22:56:58]1012 (4) - 20.02.2025 16:34 [22:56:58]1206 (1) - 0 [22:56:58]OFD Sender: Remove packet 187497 [22:56:58]ProducePacketName [22:56:58]name=ofd_packets/00187497 [22:56:58]NVStorageDeleteData [22:56:58]Write to MH i2c: 01 00 00 8C 0B 97 [22:56:58]Write i2c OK [22:56:58]MH_I2C_Read... [22:56:58]Read from MH i2c: 01 [22:56:58]MH_I2C_Read... [22:56:58]Read from MH i2c: 01 07 00 [22:56:58]MH_I2C_Read... [22:56:58]Read from MH i2c: 01 07 00 8C 0B 00 00 00 00 00 FD 0C A7 [22:56:58]RasterBufferAndPrint [22:56:58]line [22:56:58]line [22:56:58]line [22:56:58]line [22:56:58]line [22:56:58]written 0, free lines is 3331 [22:56:58]MH_Cut [22:56:58]Write to MH i2c: D1 01 00 93 0B 01 70 [22:56:58]Write i2c OK [22:56:58]MH_I2C_Read... [22:56:58]Read from MH i2c: D1 [22:56:58]MH_I2C_Read... [22:56:58]Read from MH i2c: D1 01 00 [22:56:58]MH_I2C_Read... [22:56:58]Read from MH i2c: D1 01 00 93 0B 00 6F [22:56:58]Write to MH i2c: 01 00 00 94 0B 9F [22:56:58]Write i2c OK [22:56:58]MH_I2C_Read... [22:56:59]OFD Sender: No OFD packet to send [22:56:59]*** Cut start [22:56:59]*** Partial cut [22:56:59]*** CUTSNS_PIN = 1 [22:56:59]*** CUTSNS_PIN = 0 [22:56:59]*** Brake cut motor [22:56:59]Read from MH i2c: 01 [22:57:00]MH_I2C_Read... [22:57:00]*** Stop cut motor [22:57:00]*** Cut end [22:57:00]Read from MH i2c: 01 07 00 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [22:57:00]process_action close_receipt done [22:57:00]requested_data is exist [22:57:00]produce_requested_data [22:57:00]requested_item fm.sn is exist - process it [22:57:00]wFMCommunicate request_size=4 [22:57:00]MH_SAM_APDU [22:57:00]CAPDU: 80 11 00 00 [22:57:00]Write to MH i2c: E2 08 00 95 0B 80 11 00 00 00 00 00 00 1A [22:57:00]Write i2c OK [22:57:00]MH_I2C_Read... [22:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:00]Read from MH i2c: E2 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: E2 17 00 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: E2 17 00 95 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [22:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:57:00]wFMCommunicate OK [22:57:00]requested_item fd.num is exist - process it [22:57:00]SAM_PROTO_GetFieldsCounters [22:57:00]wFMCommunicate request_size=4 [22:57:00]MH_SAM_APDU [22:57:00]CAPDU: 80 13 00 00 [22:57:00]Write to MH i2c: E2 08 00 96 0B 80 13 00 00 00 00 00 00 1D [22:57:00]Write i2c OK [22:57:00]MH_I2C_Read... [22:57:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:00]Read from MH i2c: E2 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: E2 62 00 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: E2 62 00 96 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 69 DC 02 00 0E 04 04 00 88 02 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 95 [22: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 69 DC 02 00 0E 04 04 00 88 02 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 [22:57:00]wFMCommunicate OK [22:57:00]SAM_PROTO_GetFieldsCounters done [22:57:00]requested_item shift.num is exist - process it [22:57:00]requested_item shift.opened is exist - process it [22:57:00]req_shift_opened [22:57:00]FM_GetShiftState [22:57:00]SAM_PROTO_GetShiftState [22:57:00]wFMCommunicate request_size=4 [22:57:00]MH_SAM_APDU [22:57:00]CAPDU: 80 13 01 00 [22:57:00]Write to MH i2c: E2 08 00 97 0B 80 13 01 00 00 00 00 00 1F [22:57:00]Write i2c OK [22:57:00]MH_I2C_Read... [22:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:00]Read from MH i2c: E2 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: E2 0E 00 [22:57:00]MH_I2C_Read... [22:57:00]Read from MH i2c: E2 0E 00 97 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 71 [22:57:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [22:57:00]wFMCommunicate OK [22:57:00]SAM_PROTO_GetShiftState done [22:57:00]FM_GetShiftState done [22:57:00]req_shift_opened done [22:57:00]requested_item shift.open_date is exist - process it [22:57:00]req_shift_open_date [22:57:00]req_shift_open_date done [22:57:00]produce_requested_data done [22:57:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187497,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [22:57:00]process_action_free close_receipt [22:57:00]json_value_free [22:57:00]json_value_free done [22:57:00]process_json_proto returns [22:57:00]Send response to host [22:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187497,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [22:57:00]free response buf [22:57:00]execute_script done [22:57:00]execute_script returns [22:57:00]free content buf [22:57:00]Sock 9.Close socket [22:57:00]Sock 9.Thread stoped [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:45]accept exits with 7 [23:12:45]New connection [23:12:45]New thread 3067080036 created [23:12:45]Thread 3067223396 joined [23:12:45]Waiting for new connection... [23:12:45] Sock 7.Parse request [23:12:45]Sock 7.Check first char [23:12:45]Sock 7.First char is OK [23:12:45]request: POST /json_proto HTTP/1.0 [23:12:45]Method: POST [23:12:45]URL: /json_proto [23:12:45]Method is POST - this is cgi request [23:12:45]url: /json_proto [23:12:45]query_string will be loaded in cgi processing [23:12:45]execute_cgi json_proto POST (null) [23:12:45]execute_cgi path=json_proto method=POST [23:12:45]POST find Content-Length [23:12:45]Host: 172.17.46.131:8080 [23:12:45]Content-Length: 800 [23:12:45]Content-Type: application/json [23:12:45] [23:12:45]POST finish read [23:12:45]Found Content-Length = 800 [23:12:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:45]execute_script... [23: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)412657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:45]POST & json_proto [23:12:45]process_json_proto [23:12:45]json parsed OK: [23:12:45]protocol is kg_v1.0 [23:12:45]action value=close_receipt [23:12:45]process_action close_receipt [23:12:45]cmd_close_receipt [23:12:45]MH_GetDate [23:12:45]Write to MH i2c: F0 00 00 98 0B 92 [23:12:45]Write i2c OK [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: F0 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: F0 09 00 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: F0 09 00 98 0B 00 EF B6 B7 67 7E 41 4F 65 D1 [23:12:45]GetLastDocTimeStamp 1740092217 [23:12:45]current date 1740093167 [23:12:45]FM_GetShiftState [23:12:45]SAM_PROTO_GetShiftState [23:12:45]wFMCommunicate request_size=4 [23:12:45]MH_SAM_APDU [23:12:45]CAPDU: 80 13 01 00 [23:12:45]Write to MH i2c: E2 08 00 99 0B 80 13 01 00 00 00 00 00 21 [23:12:45]Write i2c OK [23:12:45]MH_I2C_Read... [23:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:45]Read from MH i2c: E2 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: E2 0E 00 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: E2 0E 00 99 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 73 [23:12:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:12:45]wFMCommunicate OK [23:12:45]SAM_PROTO_GetShiftState done [23:12:45]FM_GetShiftState done [23:12:45]opened in 1740011697 [23:12:45]opened+sec_in_day 1740098097 [23:12:45]quantity*price = 35053 [23:12:45]sum+1 = 35054 [23:12:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.53 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 0.00 Безнал.: 350.53 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 299 20.02.2025 23:12 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187498 ФПД: 191460828747464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T231247&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187498&fm=191460828747464&tin=02508201610067®Number=0000000000091857&sum=35053 [23:12:46]StoreToDocumentArchive [23:12:46]shift 648 fd 187498 [23:12:46]save to /storage/0648/doc_00187498 [23:12:46]save last doc name /storage/0648/doc_00187498 to /storage/kkm_last_doc_name [23:12:46]save OK [23:12:46]Clear old archive folders... [23:12:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:46]tlvbuf is B6F1C7E0 [23:12:46]SAM_PROTO_ClearQueue [23:12:46]wFMCommunicate request_size=4 [23:12:46]MH_SAM_APDU [23:12:46]CAPDU: 80 09 00 00 [23:12:46]Write to MH i2c: E2 08 00 A6 0B 80 09 00 00 00 00 00 00 23 [23:12:46]Write i2c OK [23:12:46]MH_I2C_Read... [23:12:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:46]Read from MH i2c: E2 [23:12:46]MH_I2C_Read... [23:12:46]Read from MH i2c: E2 03 00 [23:12:46]MH_I2C_Read... [23:12:46]Read from MH i2c: E2 03 00 A6 0B 00 90 00 25 [23:12:46]RAPDU: 90 00 [23:12:46]wFMCommunicate OK [23:12:46]SAM_PROTO_ClearQueue done [23:12:46]KKMCreateOFDPacket [23:12:46]OFDProtocolAddRootSTLVToBuf [23:12:46]FM_MakeSignedData [23:12:46]FM_MakeSignedData [23:12:46]SAM_PROTO_SignData [23:12:46]wFMCommunicate request_size=4 [23:12:46]MH_SAM_APDU [23:12:46]CAPDU: 80 0D 01 02 [23:12:46]Write to MH i2c: E2 08 00 A7 0B 80 0D 01 02 00 00 00 00 2B [23:12:46]Write i2c OK [23:12:46]MH_I2C_Read... [23:12:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:46]Read from MH i2c: E2 [23:12:46]MH_I2C_Read... [23:12:46]Read from MH i2c: E2 03 00 [23:12:46]MH_I2C_Read... [23:12:46]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [23:12:46]RAPDU: 90 00 [23:12:46]wFMCommunicate OK [23:12:46]wFMCommunicate request_size=255 [23:12:46]MH_SAM_APDU [23: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 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 ED 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 EF B6 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DC 02 00 35 04 06 00 AE [23:12:46]Write to MH i2c: E2 02 01 A8 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 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 ED 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 EF B6 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DC 02 00 35 04 06 00 AE 00 00 6A [23:12:46]Write i2c OK [23:12:46]MH_I2C_Read... [23:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:47]Read from MH i2c: E2 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: E2 03 00 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [23:12:47]RAPDU: 90 00 [23:12:47]wFMCommunicate OK [23:12:47]wFMCommunicate request_size=10 [23:12:47]MH_SAM_APDU [23:12:47]CAPDU: 80 0D 02 02 05 21 F2 AF 96 C8 [23:12:47]Write to MH i2c: E2 0D 00 A9 0B 80 0D 02 02 05 00 21 F2 AF 96 C8 00 00 58 [23:12:47]Write i2c OK [23:12:47]MH_I2C_Read... [23:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:47]Read from MH i2c: E2 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: E2 03 00 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [23:12:47]RAPDU: 90 00 [23:12:47]wFMCommunicate OK [23:12:47]wFMCommunicate request_size=4 [23:12:47]MH_SAM_APDU [23:12:47]CAPDU: 80 0D 03 02 [23:12:47]Write to MH i2c: E2 08 00 AA 0B 80 0D 03 02 00 00 00 00 30 [23:12:47]Write i2c OK [23:12:47]MH_I2C_Read... [23:12:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:47]Read from MH i2c: E2 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: E2 0B 00 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: E2 0B 00 AA 0B 00 11 CC 7E 41 0F A8 E5 4A 90 00 B3 [23:12:47]RAPDU: 11 CC 7E 41 0F A8 E5 4A 90 00 [23:12:47]wFMCommunicate OK [23:12:47]SAM_PROTO_SignData done [23:12:47]FM_MakeSignedData done [23:12:47]CreateOFDProtocolMessage [23:12:47]wFMCommunicate request_size=4 [23:12:47]MH_SAM_APDU [23:12:47]CAPDU: 80 11 00 00 [23:12:47]Write to MH i2c: E2 08 00 AB 0B 80 11 00 00 00 00 00 00 30 [23:12:47]Write i2c OK [23:12:47]MH_I2C_Read... [23:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:47]Read from MH i2c: E2 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: E2 17 00 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: E2 17 00 AB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 83 [23:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:12:47]wFMCommunicate OK [23:12:47]CreateOFDProtocolMessage done [23:12:47]OFDSenderStorePacket 187498 [23:12:47]StoreOFDPacket docnum=187498 [23:12:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 88 3E 07 01 06 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 ED 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 EF B6 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DC 02 00 35 04 06 00 AE 21 F2 AF 96 C8 11 CC 7E 41 0F A8 E5 4A [23:12:47]CheckFolder [23:12:47]dirname=/storage/ofd_packets [23:12:47]CheckFolder done [23:12:47]ProducePacketName [23:12:47]name=ofd_packets/00187498 [23:12:47]NVStorageSaveData ofd_packets/00187498 [23:12:47]File name is /storage/ofd_packets/00187498 [23:12:47]Write 301 bytes [23:12:47]NVStorageSaveData done [23:12:47]OFDSenderStorePacket done [23:12:47]KKMCreateOFDPacket done [23:12:47]NVStorageSaveData kkm_last_timestamp [23:12:47]File name is /storage/kkm_last_timestamp [23:12:47]Write 4 bytes [23:12:47]NVStorageSaveData done [23:12:47]ExternCall_PrintAddStr [23:12:47]wPrintStart [23:12:47]Write to MH i2c: 01 00 00 AC 0B B7 [23:12:47]Write i2c OK [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: 01 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: 01 07 00 [23:12:47]MH_I2C_Read... [23:12:47]Read from MH i2c: 01 07 00 AC 0B 00 00 00 00 00 FF 0F CC [23:12:47]RasterBufferAndPrint [23:12:47]line Счет N : (1)412657 [23:12:47]line ИНН: 02508201610067 [23:12:47]line Контрольно-Кассовый Чек [23:12:47]line ПРОДАЖА [23:12:47]line ТРК (МРК, ГНК) : 22 [23:12:47]line Товар: 2710124130 [23:12:47]line Аи-92-К-2 [23:12:47]line 5.460 * 64.20 [23:12:47]line = 350.53 [23:12:47]line НДС 12% НСП 1% [23:12:47]line > о реализуемом товаре [23:12:47]line ИТОГО: 350.53 [23:12:47]line НСП 1% : 3.10 [23:12:47]line НДС 12% : 37.22 [23:12:47]line Наличными: 0.00 [23:12:47]line Безнал.: 350.53 [23:12:47]line Место: АЗС № 92 "Партнер Нефть" [23:12:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:12:47]line СНО: Общий режим [23:12:47]line Чек 299 20.02.2025 23:12 [23:12:47]line Смена: 648 ФФД: 1.0 [23:12:47]line ЗНМ: 0300000118 [23:12:47]line РНМ: 0000000000091857 [23:12:47]line Версия ККМ: 001 [23:12:47]line Платежная система: O! деньги [23:12:47]line ФМ: 0000000000871826 [23:12:47]line ФД: 187498 [23:12:47]line ФПД: 191460828747464 [23:12:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T231247&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187498&fm=191460828747464&tin=02508201610067®Number=0000000000091857&sum=35053 [23:12:47]OFD Sender: Processing packet 187498 [packets to send 49, broken 48] [23:12:47]ProducePacketName [23:12:47]name=ofd_packets/00187498 [23:12:47]OFD Sender: To server: pG, [23:12:47]CommunicateWithHost lk.salyk.kg:30040 [23:12:47]ConnectInit lk.salyk.kg [23:12:47]written 0, free lines is 4095 [23:12:47]Connected sock=10 [23: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 31 38 32 36 0F 01 00 00 88 3E 07 01 06 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 ED 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 EF B6 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DC 02 00 35 04 06 00 AE 21 F2 AF 96 C8 11 CC 7E 41 0F A8 E5 4A [23:12:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C5 91 47 00 10 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DC 02 00 F4 03 04 00 3E 5D B7 67 B6 04 01 00 00 8C 37 CE B0 72 8E 66 EE [23:12:48]CommunicateWithHost err = 0 [23:12:48]CheckOFDResponse [23:12:48]1017 (14) - 77093643461234 [23:12:48]1041 (16) - 0000000000871826 [23:12:48]1040 (4) - 187498 [23:12:48]1012 (4) - 20.02.2025 16:50 [23:12:48]1206 (1) - 0 [23:12:48]OFD Sender: Remove packet 187498 [23:12:48]ProducePacketName [23:12:48]name=ofd_packets/00187498 [23:12:48]NVStorageDeleteData [23:12:48]Write to MH i2c: 01 00 00 D6 0B E1 [23:12:48]Write i2c OK [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: 01 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: 01 07 00 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 0A 0D FF [23:12:48]RasterBufferAndPrint [23:12:48]line [23:12:48]line [23:12:48]line [23:12:48]line [23:12:48]line [23:12:48]written 0, free lines is 3345 [23:12:48]MH_Cut [23:12:48]Write to MH i2c: D1 01 00 DD 0B 01 BA [23:12:48]Write i2c OK [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: D1 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: D1 01 00 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: D1 01 00 DD 0B 00 B9 [23:12:48]Write to MH i2c: 01 00 00 DE 0B E9 [23:12:48]Write i2c OK [23:12:48]MH_I2C_Read... [23:12:48]OFD Sender: No OFD packet to send [23:12:48]*** Cut start [23:12:48]*** Partial cut [23:12:48]*** CUTSNS_PIN = 1 [23:12:48]*** CUTSNS_PIN = 0 [23:12:49]*** Brake cut motor [23:12:49]Read from MH i2c: 01 [23:12:49]MH_I2C_Read... [23:12:49]*** Stop cut motor [23:12:49]*** Cut end [23:12:49]Read from MH i2c: 01 07 00 [23:12:49]MH_I2C_Read... [23:12:49]Read from MH i2c: 01 07 00 DE 0B 00 00 00 00 00 FF 0F FE [23:12:49]process_action close_receipt done [23:12:49]requested_data is exist [23:12:49]produce_requested_data [23:12:49]requested_item fm.sn is exist - process it [23:12:49]wFMCommunicate request_size=4 [23:12:49]MH_SAM_APDU [23:12:49]CAPDU: 80 11 00 00 [23:12:49]Write to MH i2c: E2 08 00 DF 0B 80 11 00 00 00 00 00 00 64 [23:12:49]Write i2c OK [23:12:49]MH_I2C_Read... [23:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:49]Read from MH i2c: E2 [23:12:49]MH_I2C_Read... [23:12:49]Read from MH i2c: E2 17 00 [23:12:49]MH_I2C_Read... [23:12:49]Read from MH i2c: E2 17 00 DF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B7 [23:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:12:49]wFMCommunicate OK [23:12:49]requested_item fd.num is exist - process it [23:12:49]SAM_PROTO_GetFieldsCounters [23:12:49]wFMCommunicate request_size=4 [23:12:49]MH_SAM_APDU [23:12:49]CAPDU: 80 13 00 00 [23:12:49]Write to MH i2c: E2 08 00 E0 0B 80 13 00 00 00 00 00 00 67 [23:12:49]Write i2c OK [23:12:49]MH_I2C_Read... [23:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:49]Read from MH i2c: E2 [23:12:49]MH_I2C_Read... [23:12:49]Read from MH i2c: E2 62 00 [23:12:49]MH_I2C_Read... [23:12:49]Read from MH i2c: E2 62 00 E0 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6A DC 02 00 0E 04 04 00 88 02 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 E3 [23: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6A DC 02 00 0E 04 04 00 88 02 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 [23:12:49]wFMCommunicate OK [23:12:49]SAM_PROTO_GetFieldsCounters done [23:12:49]requested_item shift.num is exist - process it [23:12:49]requested_item shift.opened is exist - process it [23:12:49]req_shift_opened [23:12:49]FM_GetShiftState [23:12:49]SAM_PROTO_GetShiftState [23:12:49]wFMCommunicate request_size=4 [23:12:49]MH_SAM_APDU [23:12:49]CAPDU: 80 13 01 00 [23:12:49]Write to MH i2c: E2 08 00 E1 0B 80 13 01 00 00 00 00 00 69 [23:12:49]Write i2c OK [23:12:49]MH_I2C_Read... [23:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:49]Read from MH i2c: E2 [23:12:49]MH_I2C_Read... [23:12:49]Read from MH i2c: E2 0E 00 [23:12:49]MH_I2C_Read... [23:12:49]Read from MH i2c: E2 0E 00 E1 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BB [23:12:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:12:49]wFMCommunicate OK [23:12:49]SAM_PROTO_GetShiftState done [23:12:49]FM_GetShiftState done [23:12:49]req_shift_opened done [23:12:49]requested_item shift.open_date is exist - process it [23:12:49]req_shift_open_date [23:12:49]req_shift_open_date done [23:12:49]produce_requested_data done [23:12:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187498,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [23:12:49]process_action_free close_receipt [23:12:49]json_value_free [23:12:49]json_value_free done [23:12:49]process_json_proto returns [23:12:49]Send response to host [23:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187498,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [23:12:49]free response buf [23:12:49]execute_script done [23:12:49]execute_script returns [23:12:49]free content buf [23:12:49]Sock 7.Close socket [23:12:49]Sock 7.Thread stoped [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:06]accept exits with 9 [23:14:06]New connection [23:14:06]New thread 3067223396 created [23:14:06]Thread 3067080036 joined [23:14:06]Waiting for new connection... [23:14:06] Sock 9.Parse request [23:14:06]Sock 9.Check first char [23:14:06]Sock 9.First char is OK [23:14:06]request: POST /json_proto HTTP/1.0 [23:14:06]Method: POST [23:14:06]URL: /json_proto [23:14:06]Method is POST - this is cgi request [23:14:06]url: /json_proto [23:14:06]query_string will be loaded in cgi processing [23:14:06]execute_cgi json_proto POST (null) [23:14:06]execute_cgi path=json_proto method=POST [23:14:06]POST find Content-Length [23:14:06]Host: 172.17.46.131:8080 [23:14:06]Content-Length: 800 [23:14:06]Content-Type: application/json [23:14:06] [23:14:06]POST finish read [23:14:06]Found Content-Length = 800 [23:14:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:06]execute_script... [23:14: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)412658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:06]POST & json_proto [23:14:06]process_json_proto [23:14:06]json parsed OK: [23:14:06]protocol is kg_v1.0 [23:14:06]action value=close_receipt [23:14:06]process_action close_receipt [23:14:06]cmd_close_receipt [23:14:06]MH_GetDate [23:14:06]Write to MH i2c: F0 00 00 E2 0B DC [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: F0 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: F0 09 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: F0 09 00 E2 0B 00 3F B7 B7 67 7E 41 4F 65 6C [23:14:06]GetLastDocTimeStamp 1740093167 [23:14:06]current date 1740093247 [23:14:06]FM_GetShiftState [23:14:06]SAM_PROTO_GetShiftState [23:14:06]wFMCommunicate request_size=4 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 13 01 00 [23:14:06]Write to MH i2c: E2 08 00 E3 0B 80 13 01 00 00 00 00 00 6B [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:06]Read from MH i2c: E2 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 0E 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 0E 00 E3 0B 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BD [23:14:06]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:14:06]wFMCommunicate OK [23:14:06]SAM_PROTO_GetShiftState done [23:14:06]FM_GetShiftState done [23:14:06]opened in 1740011697 [23:14:06]opened+sec_in_day 1740098097 [23:14:06]quantity*price = 50011 [23:14:06]sum+1 = 50013 [23:14:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 300 20.02.2025 23:14 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187499 ФПД: 79097055348406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T231407&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187499&fm=79097055348406&tin=02508201610067®Number=0000000000091857&sum=50012 [23:14:07]StoreToDocumentArchive [23:14:07]shift 648 fd 187499 [23:14:07]save to /storage/0648/doc_00187499 [23:14:07]save last doc name /storage/0648/doc_00187499 to /storage/kkm_last_doc_name [23:14:07]save OK [23:14:07]Clear old archive folders... [23:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:07]tlvbuf is 0203AED0 [23:14:07]SAM_PROTO_ClearQueue [23:14:07]wFMCommunicate request_size=4 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 09 00 00 [23:14:07]Write to MH i2c: E2 08 00 F0 0B 80 09 00 00 00 00 00 00 6D [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 F0 0B 00 90 00 6F [23:14:07]RAPDU: 90 00 [23:14:07]wFMCommunicate OK [23:14:07]SAM_PROTO_ClearQueue done [23:14:07]KKMCreateOFDPacket [23:14:07]OFDProtocolAddRootSTLVToBuf [23:14:07]FM_MakeSignedData [23:14:07]FM_MakeSignedData [23:14:07]SAM_PROTO_SignData [23:14:07]wFMCommunicate request_size=4 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 0D 01 02 [23:14:07]Write to MH i2c: E2 08 00 F1 0B 80 0D 01 02 00 00 00 00 75 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 F1 0B 00 90 00 70 [23:14:07]RAPDU: 90 00 [23:14:07]wFMCommunicate OK [23:14:07]wFMCommunicate request_size=255 [23:14:07]MH_SAM_APDU [23:14: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 3F B7 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DC 02 00 35 04 06 00 47 [23:14:07]Write to MH i2c: E2 02 01 F2 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 3F B7 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DC 02 00 35 04 06 00 47 00 00 81 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 F2 0B 00 90 00 71 [23:14:07]RAPDU: 90 00 [23:14:07]wFMCommunicate OK [23:14:07]wFMCommunicate request_size=10 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 0D 02 02 05 F0 37 E3 06 B6 [23:14:07]Write to MH i2c: E2 0D 00 F3 0B 80 0D 02 02 05 00 F0 37 E3 06 B6 00 00 48 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 F3 0B 00 90 00 72 [23:14:08]RAPDU: 90 00 [23:14:08]wFMCommunicate OK [23:14:08]wFMCommunicate request_size=4 [23:14:08]MH_SAM_APDU [23:14:08]CAPDU: 80 0D 03 02 [23:14:08]Write to MH i2c: E2 08 00 F4 0B 80 0D 03 02 00 00 00 00 7A [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 0B 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 0B 00 F4 0B 00 7F 83 58 33 1D 61 DB E0 90 00 41 [23:14:08]RAPDU: 7F 83 58 33 1D 61 DB E0 90 00 [23:14:08]wFMCommunicate OK [23:14:08]SAM_PROTO_SignData done [23:14:08]FM_MakeSignedData done [23:14:08]CreateOFDProtocolMessage [23:14:08]wFMCommunicate request_size=4 [23:14:08]MH_SAM_APDU [23:14:08]CAPDU: 80 11 00 00 [23:14:08]Write to MH i2c: E2 08 00 F5 0B 80 11 00 00 00 00 00 00 7A [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 17 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 17 00 F5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [23:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:14:08]wFMCommunicate OK [23:14:08]CreateOFDProtocolMessage done [23:14:08]OFDSenderStorePacket 187499 [23:14:08]StoreOFDPacket docnum=187499 [23:14:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 02 0A 07 01 5F 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 3F B7 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DC 02 00 35 04 06 00 47 F0 37 E3 06 B6 7F 83 58 33 1D 61 DB E0 [23:14:08]CheckFolder [23:14:08]dirname=/storage/ofd_packets [23:14:08]CheckFolder done [23:14:08]ProducePacketName [23:14:08]name=ofd_packets/00187499 [23:14:08]NVStorageSaveData ofd_packets/00187499 [23:14:08]File name is /storage/ofd_packets/00187499 [23:14:08]Write 301 bytes [23:14:08]NVStorageSaveData done [23:14:08]OFDSenderStorePacket done [23:14:08]KKMCreateOFDPacket done [23:14:08]NVStorageSaveData kkm_last_timestamp [23:14:08]File name is /storage/kkm_last_timestamp [23:14:08]Write 4 bytes [23:14:08]NVStorageSaveData done [23:14:08]ExternCall_PrintAddStr [23:14:08]wPrintStart [23:14:08]Write to MH i2c: 01 00 00 F6 0B 01 [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 07 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 07 00 F6 0B 00 00 00 00 00 FF 0F 16 [23:14:08]RasterBufferAndPrint [23:14:08]line Счет N : (1)412658 [23:14:08]line ИНН: 02508201610067 [23:14:08]line Контрольно-Кассовый Чек [23:14:08]line ПРОДАЖА [23:14:08]line ТРК (МРК, ГНК) : 22 [23:14:08]line Товар: 2710124130 [23:14:08]line Аи-92-К-2 [23:14:08]line 7.790 * 64.20 [23:14:08]line = 500.12 [23:14:08]line НДС 12% НСП 1% [23:14:08]line > о реализуемом товаре [23:14:08]line ИТОГО: 500.12 [23:14:08]line НСП 1% : 4.43 [23:14:08]line НДС 12% : 53.11 [23:14:08]line Наличными: 0.00 [23:14:08]line Безнал.: 500.12 [23:14:08]line Место: АЗС № 92 "Партнер Нефть" [23:14:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:14:08]line СНО: Общий режим [23:14:08]line Чек 300 20.02.2025 23:14 [23:14:08]line Смена: 648 ФФД: 1.0 [23:14:08]line ЗНМ: 0300000118 [23:14:08]line РНМ: 0000000000091857 [23:14:08]line Версия ККМ: 001 [23:14:08]line Платежная система: O! деньги [23:14:08]line ФМ: 0000000000871826 [23:14:08]line ФД: 187499 [23:14:08]line ФПД: 79097055348406 [23:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T231407&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187499&fm=79097055348406&tin=02508201610067®Number=0000000000091857&sum=50012 [23:14:08]OFD Sender: Processing packet 187499 [packets to send 49, broken 48] [23:14:08]ProducePacketName [23:14:08]name=ofd_packets/00187499 [23:14:08]OFD Sender: To server: pG, [23:14:08]CommunicateWithHost lk.salyk.kg:30040 [23:14:08]ConnectInit lk.salyk.kg [23:14:08]written 0, free lines is 4095 [23:14:08]Connected sock=10 [23:14:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 02 0A 07 01 5F 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 3F B7 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DC 02 00 35 04 06 00 47 F0 37 E3 06 B6 7F 83 58 33 1D 61 DB E0 [23:14:08]Write to MH i2c: 01 00 00 20 0C 2C [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 07 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 07 00 20 0C 00 00 00 00 00 02 0D 42 [23:14:08]RasterBufferAndPrint [23:14:08]line [23:14:08]line [23:14:08]line [23:14:08]line [23:14:08]line [23:14:08]written 0, free lines is 3336 [23:14:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 47 67 47 00 E9 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DC 02 00 F4 03 04 00 8F 5D B7 67 B6 04 01 00 00 96 08 38 DC 53 2E 94 61 [23:14:08]CommunicateWithHost err = 0 [23:14:08]CheckOFDResponse [23:14:08]1017 (14) - 77093643461234 [23:14:08]1041 (16) - 0000000000871826 [23:14:08]1040 (4) - 187499 [23:14:08]1012 (4) - 20.02.2025 16:51 [23:14:08]1206 (1) - 0 [23:14:08]OFD Sender: Remove packet 187499 [23:14:08]ProducePacketName [23:14:08]name=ofd_packets/00187499 [23:14:08]NVStorageDeleteData [23:14:08]MH_Cut [23:14:08]Write to MH i2c: D1 01 00 27 0C 01 05 [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: D1 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: D1 01 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: D1 01 00 27 0C 00 04 [23:14:08]Write to MH i2c: 01 00 00 28 0C 34 [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:09]OFD Sender: No OFD packet to send [23:14:09]*** Cut start [23:14:09]*** Partial cut [23:14:09]*** CUTSNS_PIN = 1 [23:14:09]*** CUTSNS_PIN = 0 [23:14:09]*** Brake cut motor [23:14:10]Read from MH i2c: 01 [23:14:10]MH_I2C_Read... [23:14:10]*** Stop cut motor [23:14:10]*** Cut end [23:14:10]Read from MH i2c: 01 07 00 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: 01 07 00 28 0C 00 00 00 00 00 FF 0F 49 [23:14:10]process_action close_receipt done [23:14:10]requested_data is exist [23:14:10]produce_requested_data [23:14:10]requested_item fm.sn is exist - process it [23:14:10]wFMCommunicate request_size=4 [23:14:10]MH_SAM_APDU [23:14:10]CAPDU: 80 11 00 00 [23:14:10]Write to MH i2c: E2 08 00 29 0C 80 11 00 00 00 00 00 00 AF [23:14:10]Write i2c OK [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 [23:14:10]MH_I2C_Read... [23:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:10]Read from MH i2c: E2 17 00 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 17 00 29 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [23:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:14:10]wFMCommunicate OK [23:14:10]requested_item fd.num is exist - process it [23:14:10]SAM_PROTO_GetFieldsCounters [23:14:10]wFMCommunicate request_size=4 [23:14:10]MH_SAM_APDU [23:14:10]CAPDU: 80 13 00 00 [23:14:10]Write to MH i2c: E2 08 00 2A 0C 80 13 00 00 00 00 00 00 B2 [23:14:10]Write i2c OK [23:14:10]MH_I2C_Read... [23:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:10]Read from MH i2c: E2 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 62 00 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 62 00 2A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6B DC 02 00 0E 04 04 00 88 02 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 32 [23:14:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6B DC 02 00 0E 04 04 00 88 02 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 [23:14:10]wFMCommunicate OK [23:14:10]SAM_PROTO_GetFieldsCounters done [23:14:10]requested_item shift.num is exist - process it [23:14:10]requested_item shift.opened is exist - process it [23:14:10]req_shift_opened [23:14:10]FM_GetShiftState [23:14:10]SAM_PROTO_GetShiftState [23:14:10]wFMCommunicate request_size=4 [23:14:10]MH_SAM_APDU [23:14:10]CAPDU: 80 13 01 00 [23:14:10]Write to MH i2c: E2 08 00 2B 0C 80 13 01 00 00 00 00 00 B4 [23:14:10]Write i2c OK [23:14:10]MH_I2C_Read... [23:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:10]Read from MH i2c: E2 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 0E 00 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 0E 00 2B 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 06 [23:14:10]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:14:10]wFMCommunicate OK [23:14:10]SAM_PROTO_GetShiftState done [23:14:10]FM_GetShiftState done [23:14:10]req_shift_opened done [23:14:10]requested_item shift.open_date is exist - process it [23:14:10]req_shift_open_date [23:14:10]req_shift_open_date done [23:14:10]produce_requested_data done [23:14:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187499,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [23:14:10]process_action_free close_receipt [23:14:10]json_value_free [23:14:10]json_value_free done [23:14:10]process_json_proto returns [23:14:10]Send response to host [23:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187499,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [23:14:10]free response buf [23:14:10]execute_script done [23:14:10]execute_script returns [23:14:10]free content buf [23:14:10]Sock 9.Close socket [23:14:10]Sock 9.Thread stoped [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:07]accept exits with 7 [23:16:07]New connection [23:16:07]New thread 3067080036 created [23:16:07]Thread 3067223396 joined [23:16:07]Waiting for new connection... [23:16:07] Sock 7.Parse request [23:16:07]Sock 7.Check first char [23:16:07]Sock 7.First char is OK [23:16:07]request: POST /json_proto HTTP/1.0 [23:16:07]Method: POST [23:16:07]URL: /json_proto [23:16:07]Method is POST - this is cgi request [23:16:07]url: /json_proto [23:16:07]query_string will be loaded in cgi processing [23:16:07]execute_cgi json_proto POST (null) [23:16:07]execute_cgi path=json_proto method=POST [23:16:07]POST find Content-Length [23:16:07]Host: 172.17.46.131:8080 [23:16:07]Content-Length: 803 [23:16:07]Content-Type: application/json [23:16:07] [23:16:07]POST finish read [23:16:07]Found Content-Length = 803 [23:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:07]execute_script... [23:16: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)412659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:07]POST & json_proto [23:16:07]process_json_proto [23:16:07]json parsed OK: [23:16:07]protocol is kg_v1.0 [23:16:07]action value=close_receipt [23:16:07]process_action close_receipt [23:16:07]cmd_close_receipt [23:16:07]MH_GetDate [23:16:07]Write to MH i2c: F0 00 00 2C 0C 27 [23:16:07]Write i2c OK [23:16:07]MH_I2C_Read... [23:16:07]Read from MH i2c: F0 [23:16:07]MH_I2C_Read... [23:16:07]Read from MH i2c: F0 09 00 [23:16:07]MH_I2C_Read... [23:16:07]Read from MH i2c: F0 09 00 2C 0C 00 B9 B7 B7 67 7E 41 4F 65 31 [23:16:07]GetLastDocTimeStamp 1740093247 [23:16:07]current date 1740093369 [23:16:07]FM_GetShiftState [23:16:07]SAM_PROTO_GetShiftState [23:16:07]wFMCommunicate request_size=4 [23:16:07]MH_SAM_APDU [23:16:07]CAPDU: 80 13 01 00 [23:16:07]Write to MH i2c: E2 08 00 2D 0C 80 13 01 00 00 00 00 00 B6 [23:16:07]Write i2c OK [23:16:07]MH_I2C_Read... [23:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:07]Read from MH i2c: E2 [23:16:07]MH_I2C_Read... [23:16:07]Read from MH i2c: E2 0E 00 [23:16:07]MH_I2C_Read... [23:16:07]Read from MH i2c: E2 0E 00 2D 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 08 [23:16:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:16:07]wFMCommunicate OK [23:16:07]SAM_PROTO_GetShiftState done [23:16:07]FM_GetShiftState done [23:16:07]opened in 1740011697 [23:16:07]opened+sec_in_day 1740098097 [23:16:07]quantity*price = 150055 [23:16:07]sum+1 = 150056 [23:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.55 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.55 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 301 20.02.2025 23:16 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187500 ФПД: 261266157214483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T231609&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187500&fm=261266157214483&tin=02508201610067®Number=0000000000091857&sum=150055 [23:16:08]StoreToDocumentArchive [23:16:08]shift 648 fd 187500 [23:16:08]save to /storage/0648/doc_00187500 [23:16:08]save last doc name /storage/0648/doc_00187500 to /storage/kkm_last_doc_name [23:16:08]save OK [23:16:08]Clear old archive folders... [23:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:08]tlvbuf is 0203D150 [23:16:08]SAM_PROTO_ClearQueue [23:16:08]wFMCommunicate request_size=4 [23:16:08]MH_SAM_APDU [23:16:08]CAPDU: 80 09 00 00 [23:16:08]Write to MH i2c: E2 08 00 3A 0C 80 09 00 00 00 00 00 00 B8 [23:16:08]Write i2c OK [23:16:08]MH_I2C_Read... [23:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:08]Read from MH i2c: E2 [23:16:08]MH_I2C_Read... [23:16:08]Read from MH i2c: E2 03 00 [23:16:08]MH_I2C_Read... [23:16:08]Read from MH i2c: E2 03 00 3A 0C 00 90 00 BA [23:16:08]RAPDU: 90 00 [23:16:08]wFMCommunicate OK [23:16:08]SAM_PROTO_ClearQueue done [23:16:08]KKMCreateOFDPacket [23:16:08]OFDProtocolAddRootSTLVToBuf [23:16:08]FM_MakeSignedData [23:16:08]FM_MakeSignedData [23:16:08]SAM_PROTO_SignData [23:16:08]wFMCommunicate request_size=4 [23:16:08]MH_SAM_APDU [23:16:08]CAPDU: 80 0D 01 02 [23:16:08]Write to MH i2c: E2 08 00 3B 0C 80 0D 01 02 00 00 00 00 C0 [23:16:08]Write i2c OK [23:16:08]MH_I2C_Read... [23:16:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:08]Read from MH i2c: E2 [23:16:08]MH_I2C_Read... [23:16:08]Read from MH i2c: E2 03 00 [23:16:08]MH_I2C_Read... [23:16:08]Read from MH i2c: E2 03 00 3B 0C 00 90 00 BB [23:16:08]RAPDU: 90 00 [23:16:08]wFMCommunicate OK [23:16:08]wFMCommunicate request_size=255 [23:16:08]MH_SAM_APDU [23:16:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 27 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 B9 B7 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DC 02 00 35 04 06 00 ED [23:16:08]Write to MH i2c: E2 02 01 3C 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 27 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 B9 B7 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DC 02 00 35 04 06 00 ED 00 00 64 [23:16:08]Write i2c OK [23:16:08]MH_I2C_Read... [23:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:09]Read from MH i2c: E2 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 03 00 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [23:16:09]RAPDU: 90 00 [23:16:09]wFMCommunicate OK [23:16:09]wFMCommunicate request_size=10 [23:16:09]MH_SAM_APDU [23:16:09]CAPDU: 80 0D 02 02 05 9E C4 7E 1B 13 [23:16:09]Write to MH i2c: E2 0D 00 3D 0C 80 0D 02 02 05 00 9E C4 7E 1B 13 00 00 DB [23:16:09]Write i2c OK [23:16:09]MH_I2C_Read... [23:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:09]Read from MH i2c: E2 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 03 00 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [23:16:09]RAPDU: 90 00 [23:16:09]wFMCommunicate OK [23:16:09]wFMCommunicate request_size=4 [23:16:09]MH_SAM_APDU [23:16:09]CAPDU: 80 0D 03 02 [23:16:09]Write to MH i2c: E2 08 00 3E 0C 80 0D 03 02 00 00 00 00 C5 [23:16:09]Write i2c OK [23:16:09]MH_I2C_Read... [23:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:09]Read from MH i2c: E2 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 0B 00 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 0B 00 3E 0C 00 6E 04 75 50 50 F4 5C 98 90 00 35 [23:16:09]RAPDU: 6E 04 75 50 50 F4 5C 98 90 00 [23:16:09]wFMCommunicate OK [23:16:09]SAM_PROTO_SignData done [23:16:09]FM_MakeSignedData done [23:16:09]CreateOFDProtocolMessage [23:16:09]wFMCommunicate request_size=4 [23:16:09]MH_SAM_APDU [23:16:09]CAPDU: 80 11 00 00 [23:16:09]Write to MH i2c: E2 08 00 3F 0C 80 11 00 00 00 00 00 00 C5 [23:16:09]Write i2c OK [23:16:09]MH_I2C_Read... [23:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:09]Read from MH i2c: E2 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 17 00 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 17 00 3F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 18 [23:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:16:09]wFMCommunicate OK [23:16:09]CreateOFDProtocolMessage done [23:16:09]OFDSenderStorePacket 187500 [23:16:09]StoreOFDPacket docnum=187500 [23:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 2B 07 01 D8 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 27 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 B9 B7 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DC 02 00 35 04 06 00 ED 9E C4 7E 1B 13 6E 04 75 50 50 F4 5C 98 [23:16:09]CheckFolder [23:16:09]dirname=/storage/ofd_packets [23:16:09]CheckFolder done [23:16:09]ProducePacketName [23:16:09]name=ofd_packets/00187500 [23:16:09]NVStorageSaveData ofd_packets/00187500 [23:16:09]File name is /storage/ofd_packets/00187500 [23:16:09]Write 301 bytes [23:16:09]NVStorageSaveData done [23:16:09]OFDSenderStorePacket done [23:16:09]KKMCreateOFDPacket done [23:16:09]NVStorageSaveData kkm_last_timestamp [23:16:09]File name is /storage/kkm_last_timestamp [23:16:09]Write 4 bytes [23:16:09]NVStorageSaveData done [23:16:09]ExternCall_PrintAddStr [23:16:09]wPrintStart [23:16:09]Write to MH i2c: 01 00 00 40 0C 4C [23:16:09]Write i2c OK [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: 01 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: 01 07 00 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 FF 0F 61 [23:16:09]RasterBufferAndPrint [23:16:09]line Счет N : (1)412659 [23:16:09]line ИНН: 02508201610067 [23:16:09]line Контрольно-Кассовый Чек [23:16:09]line ПРОДАЖА [23:16:09]line ТРК (МРК, ГНК) : 43 [23:16:09]line Товар: 2710124500 [23:16:09]line Аи-95-К-5 [23:16:09]line 20.870 * 71.90 [23:16:09]line = 1500.55 [23:16:09]line НДС 12% НСП 1% [23:16:09]line > о реализуемом товаре [23:16:09]line ИТОГО: 1500.55 [23:16:09]line НСП 1% : 13.28 [23:16:09]line НДС 12% : 159.35 [23:16:09]line Наличными: 0.00 [23:16:09]line Безнал.: 1500.55 [23:16:09]line Место: АЗС № 92 "Партнер Нефть" [23:16:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:16:09]line СНО: Общий режим [23:16:09]line Чек 301 20.02.2025 23:16 [23:16:09]line Смена: 648 ФФД: 1.0 [23:16:09]line ЗНМ: 0300000118 [23:16:09]line РНМ: 0000000000091857 [23:16:09]line Версия ККМ: 001 [23:16:09]line Платежная система: O! деньги [23:16:09]line ФМ: 0000000000871826 [23:16:09]line ФД: 187500 [23:16:09]line ФПД: 261266157214483 [23:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T231609&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187500&fm=261266157214483&tin=02508201610067®Number=0000000000091857&sum=150055 [23:16:09]written 0, free lines is 4095 [23:16:09]OFD Sender: Processing packet 187500 [packets to send 49, broken 48] [23:16:09]ProducePacketName [23:16:09]name=ofd_packets/00187500 [23:16:09]OFD Sender: To server: pG, [23:16:09]CommunicateWithHost lk.salyk.kg:30040 [23:16:09]ConnectInit lk.salyk.kg [23:16:09]Connected sock=10 [23:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 2B 07 01 D8 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 27 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 B9 B7 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DC 02 00 35 04 06 00 ED 9E C4 7E 1B 13 6E 04 75 50 50 F4 5C 98 [23:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CC 85 47 00 25 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DC 02 00 F4 03 04 00 08 5E B7 67 B6 04 01 00 00 93 A4 95 9F 95 8D C5 D4 [23:16:10]CommunicateWithHost err = 0 [23:16:10]CheckOFDResponse [23:16:10]1017 (14) - 77093643461234 [23:16:10]1041 (16) - 0000000000871826 [23:16:10]1040 (4) - 187500 [23:16:10]1012 (4) - 20.02.2025 16:53 [23:16:10]1206 (1) - 0 [23:16:10]OFD Sender: Remove packet 187500 [23:16:10]ProducePacketName [23:16:10]name=ofd_packets/00187500 [23:16:10]NVStorageDeleteData [23:16:10]Write to MH i2c: 01 00 00 6A 0C 76 [23:16:10]Write i2c OK [23:16:10]MH_I2C_Read... [23:16:10]Read from MH i2c: 01 [23:16:10]MH_I2C_Read... [23:16:10]Read from MH i2c: 01 07 00 [23:16:10]MH_I2C_Read... [23:16:10]Read from MH i2c: 01 07 00 6A 0C 00 00 00 00 00 FE 0C 87 [23:16:10]RasterBufferAndPrint [23:16:10]line [23:16:10]line [23:16:10]line [23:16:10]line [23:16:10]line [23:16:10]written 0, free lines is 3332 [23:16:10]MH_Cut [23:16:10]Write to MH i2c: D1 01 00 71 0C 01 4F [23:16:10]Write i2c OK [23:16:10]MH_I2C_Read... [23:16:10]Read from MH i2c: D1 [23:16:10]MH_I2C_Read... [23:16:10]Read from MH i2c: D1 01 00 [23:16:10]MH_I2C_Read... [23:16:10]Read from MH i2c: D1 01 00 71 0C 00 4E [23:16:10]Write to MH i2c: 01 00 00 72 0C 7E [23:16:10]Write i2c OK [23:16:10]MH_I2C_Read... [23:16:10]OFD Sender: No OFD packet to send [23:16:10]*** Cut start [23:16:10]*** Partial cut [23:16:10]*** CUTSNS_PIN = 1 [23:16:10]*** CUTSNS_PIN = 0 [23:16:11]*** Brake cut motor [23:16:11]Read from MH i2c: 01 [23:16:11]MH_I2C_Read... [23:16:11]*** Stop cut motor [23:16:11]*** Cut end [23:16:11]Read from MH i2c: 01 07 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: 01 07 00 72 0C 00 00 00 00 00 FF 0F 93 [23:16:11]process_action close_receipt done [23:16:11]requested_data is exist [23:16:11]produce_requested_data [23:16:11]requested_item fm.sn is exist - process it [23:16:11]wFMCommunicate request_size=4 [23:16:11]MH_SAM_APDU [23:16:11]CAPDU: 80 11 00 00 [23:16:11]Write to MH i2c: E2 08 00 73 0C 80 11 00 00 00 00 00 00 F9 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 17 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 17 00 73 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4C [23:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:16:11]wFMCommunicate OK [23:16:11]requested_item fd.num is exist - process it [23:16:11]SAM_PROTO_GetFieldsCounters [23:16:11]wFMCommunicate request_size=4 [23:16:11]MH_SAM_APDU [23:16:11]CAPDU: 80 13 00 00 [23:16:11]Write to MH i2c: E2 08 00 74 0C 80 13 00 00 00 00 00 00 FC [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 62 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 62 00 74 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6C DC 02 00 0E 04 04 00 88 02 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 80 [23:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6C DC 02 00 0E 04 04 00 88 02 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 [23:16:11]wFMCommunicate OK [23:16:11]SAM_PROTO_GetFieldsCounters done [23:16:11]requested_item shift.num is exist - process it [23:16:11]requested_item shift.opened is exist - process it [23:16:11]req_shift_opened [23:16:11]FM_GetShiftState [23:16:11]SAM_PROTO_GetShiftState [23:16:11]wFMCommunicate request_size=4 [23:16:11]MH_SAM_APDU [23:16:11]CAPDU: 80 13 01 00 [23:16:11]Write to MH i2c: E2 08 00 75 0C 80 13 01 00 00 00 00 00 FE [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:11]Read from MH i2c: E2 0E 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 0E 00 75 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 50 [23:16:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:16:11]wFMCommunicate OK [23:16:11]SAM_PROTO_GetShiftState done [23:16:11]FM_GetShiftState done [23:16:11]req_shift_opened done [23:16:11]requested_item shift.open_date is exist - process it [23:16:11]req_shift_open_date [23:16:11]req_shift_open_date done [23:16:11]produce_requested_data done [23:16:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187500,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [23:16:11]process_action_free close_receipt [23:16:11]json_value_free [23:16:11]json_value_free done [23:16:11]process_json_proto returns [23:16:11]Send response to host [23:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187500,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [23:16:11]free response buf [23:16:11]execute_script done [23:16:11]execute_script returns [23:16:11]free content buf [23:16:11]Sock 7.Close socket [23:16:11]Sock 7.Thread stoped [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]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:56]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [23:38:07]accept exits with 9 [23:38:07]New connection [23:38:07]New thread 3067223396 created [23:38:07]Thread 3067080036 joined [23:38:07]Waiting for new connection... [23:38:07] Sock 9.Parse request [23:38:07]Sock 9.Check first char [23:38:07]Sock 9.First char is OK [23:38:07]request: POST /json_proto HTTP/1.0 [23:38:07]Method: POST [23:38:07]URL: /json_proto [23:38:07]Method is POST - this is cgi request [23:38:07]url: /json_proto [23:38:07]query_string will be loaded in cgi processing [23:38:07]execute_cgi json_proto POST (null) [23:38:07]execute_cgi path=json_proto method=POST [23:38:07]POST find Content-Length [23:38:07]Host: 172.17.46.131:8080 [23:38:07]Content-Length: 800 [23:38:07]Content-Type: application/json [23:38:07] [23:38:07]POST finish read [23:38:07]Found Content-Length = 800 [23:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:07]execute_script... [23:38: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)412660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:07]POST & json_proto [23:38:07]process_json_proto [23:38:07]json parsed OK: [23:38:07]protocol is kg_v1.0 [23:38:07]action value=close_receipt [23:38:07]process_action close_receipt [23:38:07]cmd_close_receipt [23:38:07]MH_GetDate [23:38:07]Write to MH i2c: F0 00 00 76 0C 71 [23:38:07]Write i2c OK [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: F0 [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: F0 09 00 [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: F0 09 00 76 0C 00 E1 BC B7 67 7E 41 4F 65 A8 [23:38:07]GetLastDocTimeStamp 1740093369 [23:38:07]current date 1740094689 [23:38:07]FM_GetShiftState [23:38:07]SAM_PROTO_GetShiftState [23:38:07]wFMCommunicate request_size=4 [23:38:07]MH_SAM_APDU [23:38:07]CAPDU: 80 13 01 00 [23:38:07]Write to MH i2c: E2 08 00 77 0C 80 13 01 00 00 00 00 00 00 [23:38:07]Write i2c OK [23:38:07]MH_I2C_Read... [23:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:07]Read from MH i2c: E2 [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: E2 0E 00 [23:38:07]MH_I2C_Read... [23:38:07]Read from MH i2c: E2 0E 00 77 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 52 [23:38:07]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:38:07]wFMCommunicate OK [23:38:07]SAM_PROTO_GetShiftState done [23:38:07]FM_GetShiftState done [23:38:07]opened in 1740011697 [23:38:07]opened+sec_in_day 1740098097 [23:38:07]quantity*price = 60027 [23:38:07]sum+1 = 60028 [23:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.27 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.27 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 302 20.02.2025 23:38 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187501 ФПД: 237539898150861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T233809&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187501&fm=237539898150861&tin=02508201610067®Number=0000000000091857&sum=60027 [23:38:08]StoreToDocumentArchive [23:38:08]shift 648 fd 187501 [23:38:08]save to /storage/0648/doc_00187501 [23:38:08]save last doc name /storage/0648/doc_00187501 to /storage/kkm_last_doc_name [23:38:08]save OK [23:38:08]Clear old archive folders... [23:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:38:08]tlvbuf is 02031F70 [23:38:08]SAM_PROTO_ClearQueue [23:38:08]wFMCommunicate request_size=4 [23:38:08]MH_SAM_APDU [23:38:08]CAPDU: 80 09 00 00 [23:38:08]Write to MH i2c: E2 08 00 84 0C 80 09 00 00 00 00 00 00 02 [23:38:08]Write i2c OK [23:38:08]MH_I2C_Read... [23:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:08]Read from MH i2c: E2 [23:38:08]MH_I2C_Read... [23:38:08]Read from MH i2c: E2 03 00 [23:38:08]MH_I2C_Read... [23:38:08]Read from MH i2c: E2 03 00 84 0C 00 90 00 04 [23:38:08]RAPDU: 90 00 [23:38:08]wFMCommunicate OK [23:38:08]SAM_PROTO_ClearQueue done [23:38:08]KKMCreateOFDPacket [23:38:08]OFDProtocolAddRootSTLVToBuf [23:38:08]FM_MakeSignedData [23:38:08]FM_MakeSignedData [23:38:08]SAM_PROTO_SignData [23:38:08]wFMCommunicate request_size=4 [23:38:08]MH_SAM_APDU [23:38:08]CAPDU: 80 0D 01 02 [23:38:08]Write to MH i2c: E2 08 00 85 0C 80 0D 01 02 00 00 00 00 0A [23:38:08]Write i2c OK [23:38:08]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 85 0C 00 90 00 05 [23:38:09]RAPDU: 90 00 [23:38:09]wFMCommunicate OK [23:38:09]wFMCommunicate request_size=255 [23:38:09]MH_SAM_APDU [23:38: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E1 BC B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DC 02 00 35 04 06 00 D8 [23:38:09]Write to MH i2c: E2 02 01 86 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E1 BC B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DC 02 00 35 04 06 00 D8 00 00 C6 [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 86 0C 00 90 00 06 [23:38:09]RAPDU: 90 00 [23:38:09]wFMCommunicate OK [23:38:09]wFMCommunicate request_size=10 [23:38:09]MH_SAM_APDU [23:38:09]CAPDU: 80 0D 02 02 05 0A 91 3F CF CD [23:38:09]Write to MH i2c: E2 0D 00 87 0C 80 0D 02 02 05 00 0A 91 3F CF CD 00 00 8D [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [23:38:09]RAPDU: 90 00 [23:38:09]wFMCommunicate OK [23:38:09]wFMCommunicate request_size=4 [23:38:09]MH_SAM_APDU [23:38:09]CAPDU: 80 0D 03 02 [23:38:09]Write to MH i2c: E2 08 00 88 0C 80 0D 03 02 00 00 00 00 0F [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 0B 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 0B 00 88 0C 00 DE AC 22 66 EE 95 69 0D 90 00 1B [23:38:09]RAPDU: DE AC 22 66 EE 95 69 0D 90 00 [23:38:09]wFMCommunicate OK [23:38:09]SAM_PROTO_SignData done [23:38:09]FM_MakeSignedData done [23:38:09]CreateOFDProtocolMessage [23:38:09]wFMCommunicate request_size=4 [23:38:09]MH_SAM_APDU [23:38:09]CAPDU: 80 11 00 00 [23:38:09]Write to MH i2c: E2 08 00 89 0C 80 11 00 00 00 00 00 00 0F [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:09]Read from MH i2c: E2 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 17 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: E2 17 00 89 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [23:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:38:09]wFMCommunicate OK [23:38:09]CreateOFDProtocolMessage done [23:38:09]OFDSenderStorePacket 187501 [23:38:09]StoreOFDPacket docnum=187501 [23:38:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 18 07 01 7F 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E1 BC B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DC 02 00 35 04 06 00 D8 0A 91 3F CF CD DE AC 22 66 EE 95 69 0D [23:38:09]CheckFolder [23:38:09]dirname=/storage/ofd_packets [23:38:09]CheckFolder done [23:38:09]ProducePacketName [23:38:09]name=ofd_packets/00187501 [23:38:09]NVStorageSaveData ofd_packets/00187501 [23:38:09]File name is /storage/ofd_packets/00187501 [23:38:09]Write 301 bytes [23:38:09]NVStorageSaveData done [23:38:09]OFDSenderStorePacket done [23:38:09]KKMCreateOFDPacket done [23:38:09]NVStorageSaveData kkm_last_timestamp [23:38:09]File name is /storage/kkm_last_timestamp [23:38:09]Write 4 bytes [23:38:09]NVStorageSaveData done [23:38:09]ExternCall_PrintAddStr [23:38:09]wPrintStart [23:38:09]Write to MH i2c: 01 00 00 8A 0C 96 [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 07 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 07 00 8A 0C 00 00 00 00 00 FF 0F AB [23:38:09]RasterBufferAndPrint [23:38:09]line Счет N : (1)412660 [23:38:09]line ИНН: 02508201610067 [23:38:09]line Контрольно-Кассовый Чек [23:38:09]line ПРОДАЖА [23:38:09]line ТРК (МРК, ГНК) : 22 [23:38:09]line Товар: 2710124130 [23:38:09]line Аи-92-К-2 [23:38:09]line 9.350 * 64.20 [23:38:09]line = 600.27 [23:38:09]line НДС 12% НСП 1% [23:38:09]line > о реализуемом товаре [23:38:09]line ИТОГО: 600.27 [23:38:09]line НСП 1% : 5.31 [23:38:09]line НДС 12% : 63.74 [23:38:09]line Наличными: 0.00 [23:38:09]line Безнал.: 600.27 [23:38:09]line Место: АЗС № 92 "Партнер Нефть" [23:38:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:38:09]line СНО: Общий режим [23:38:09]line Чек 302 20.02.2025 23:38 [23:38:09]line Смена: 648 ФФД: 1.0 [23:38:09]line ЗНМ: 0300000118 [23:38:09]line РНМ: 0000000000091857 [23:38:09]line Версия ККМ: 001 [23:38:09]line Платежная система: O! деньги [23:38:09]line ФМ: 0000000000871826 [23:38:09]line ФД: 187501 [23:38:09]line ФПД: 237539898150861 [23:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T233809&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187501&fm=237539898150861&tin=02508201610067®Number=0000000000091857&sum=60027 [23:38:09]written 0, free lines is 4095 [23:38:09]OFD Sender: Processing packet 187501 [packets to send 49, broken 48] [23:38:09]ProducePacketName [23:38:09]name=ofd_packets/00187501 [23:38:09]OFD Sender: To server: pG, [23:38:09]CommunicateWithHost lk.salyk.kg:30040 [23:38:09]ConnectInit lk.salyk.kg [23:38:09]Connected sock=10 [23:38:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 18 07 01 7F 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E1 BC B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DC 02 00 35 04 06 00 D8 0A 91 3F CF CD DE AC 22 66 EE 95 69 0D [23:38:09]Write to MH i2c: 01 00 00 B4 0C C0 [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 07 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 F9 0C CC [23:38:09]RasterBufferAndPrint [23:38:09]line [23:38:09]line [23:38:09]line [23:38:09]line [23:38:09]line [23:38:09]written 0, free lines is 3328 [23:38:09]MH_Cut [23:38:09]Write to MH i2c: D1 01 00 BB 0C 01 99 [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: D1 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: D1 01 00 [23:38:09]MH_I2C_Read... [23:38:09]Read from MH i2c: D1 01 00 BB 0C 00 98 [23:38:09]Write to MH i2c: 01 00 00 BC 0C C8 [23:38:09]Write i2c OK [23:38:09]MH_I2C_Read... [23:38:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 74 62 47 00 2C 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D DC 02 00 F4 03 04 00 30 63 B7 67 B6 04 01 00 00 07 A1 FC 4C E8 CE 22 AE [23:38:09]CommunicateWithHost err = 0 [23:38:09]CheckOFDResponse [23:38:09]1017 (14) - 77093643461234 [23:38:09]1041 (16) - 0000000000871826 [23:38:09]1040 (4) - 187501 [23:38:09]1012 (4) - 20.02.2025 17:15 [23:38:09]1206 (1) - 0 [23:38:09]OFD Sender: Remove packet 187501 [23:38:09]ProducePacketName [23:38:09]name=ofd_packets/00187501 [23:38:09]NVStorageDeleteData [23:38:10]OFD Sender: No OFD packet to send [23:38:10]*** Cut start [23:38:10]*** Partial cut [23:38:10]*** CUTSNS_PIN = 1 [23:38:10]*** CUTSNS_PIN = 0 [23:38:10]*** Brake cut motor [23:38:11]Read from MH i2c: 01 [23:38:11]MH_I2C_Read... [23:38:11]*** Stop cut motor [23:38:11]*** Cut end [23:38:11]Read from MH i2c: 01 07 00 [23:38:11]MH_I2C_Read... [23:38:11]Read from MH i2c: 01 07 00 BC 0C 00 00 00 00 00 FF 0F DD [23:38:11]process_action close_receipt done [23:38:11]requested_data is exist [23:38:11]produce_requested_data [23:38:11]requested_item fm.sn is exist - process it [23:38:11]wFMCommunicate request_size=4 [23:38:11]MH_SAM_APDU [23:38:11]CAPDU: 80 11 00 00 [23:38:11]Write to MH i2c: E2 08 00 BD 0C 80 11 00 00 00 00 00 00 43 [23:38:11]Write i2c OK [23:38:11]MH_I2C_Read... [23:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:11]Read from MH i2c: E2 [23:38:11]MH_I2C_Read... [23:38:11]Read from MH i2c: E2 17 00 [23:38:11]MH_I2C_Read... [23:38:11]Read from MH i2c: E2 17 00 BD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [23:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:38:11]wFMCommunicate OK [23:38:11]requested_item fd.num is exist - process it [23:38:11]SAM_PROTO_GetFieldsCounters [23:38:11]wFMCommunicate request_size=4 [23:38:11]MH_SAM_APDU [23:38:11]CAPDU: 80 13 00 00 [23:38:11]Write to MH i2c: E2 08 00 BE 0C 80 13 00 00 00 00 00 00 46 [23:38:11]Write i2c OK [23:38:11]MH_I2C_Read... [23:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:11]Read from MH i2c: E2 [23:38:11]MH_I2C_Read... [23:38:11]Read from MH i2c: E2 62 00 [23:38:11]MH_I2C_Read... [23:38:11]Read from MH i2c: E2 62 00 BE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6D DC 02 00 0E 04 04 00 88 02 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 CE [23:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6D DC 02 00 0E 04 04 00 88 02 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 [23:38:11]wFMCommunicate OK [23:38:11]SAM_PROTO_GetFieldsCounters done [23:38:11]requested_item shift.num is exist - process it [23:38:11]requested_item shift.opened is exist - process it [23:38:11]req_shift_opened [23:38:11]FM_GetShiftState [23:38:11]SAM_PROTO_GetShiftState [23:38:11]wFMCommunicate request_size=4 [23:38:11]MH_SAM_APDU [23:38:11]CAPDU: 80 13 01 00 [23:38:11]Write to MH i2c: E2 08 00 BF 0C 80 13 01 00 00 00 00 00 48 [23:38:11]Write i2c OK [23:38:11]MH_I2C_Read... [23:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:11]Read from MH i2c: E2 [23:38:11]MH_I2C_Read... [23:38:11]Read from MH i2c: E2 0E 00 [23:38:11]MH_I2C_Read... [23:38:11]Read from MH i2c: E2 0E 00 BF 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9A [23:38:11]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:38:11]wFMCommunicate OK [23:38:11]SAM_PROTO_GetShiftState done [23:38:11]FM_GetShiftState done [23:38:11]req_shift_opened done [23:38:11]requested_item shift.open_date is exist - process it [23:38:11]req_shift_open_date [23:38:11]req_shift_open_date done [23:38:11]produce_requested_data done [23:38:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187501,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [23:38:11]process_action_free close_receipt [23:38:11]json_value_free [23:38:11]json_value_free done [23:38:11]process_json_proto returns [23:38:11]Send response to host [23:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187501,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [23:38:11]free response buf [23:38:11]execute_script done [23:38:11]execute_script returns [23:38:11]free content buf [23:38:11]Sock 9.Close socket [23:38:11]Sock 9.Thread stoped [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:32]accept exits with 7 [23:41:32]New connection [23:41:32]New thread 3067080036 created [23:41:32]Thread 3067223396 joined [23:41:32]Waiting for new connection... [23:41:32] Sock 7.Parse request [23:41:32]Sock 7.Check first char [23:41:32]Sock 7.First char is OK [23:41:32]request: POST /json_proto HTTP/1.0 [23:41:32]Method: POST [23:41:32]URL: /json_proto [23:41:32]Method is POST - this is cgi request [23:41:32]url: /json_proto [23:41:32]query_string will be loaded in cgi processing [23:41:32]execute_cgi json_proto POST (null) [23:41:32]execute_cgi path=json_proto method=POST [23:41:32]POST find Content-Length [23:41:32]Host: 172.17.46.131:8080 [23:41:32]Content-Length: 678 [23:41:32]Content-Type: application/json [23:41:32] [23:41:32]POST finish read [23:41:32]Found Content-Length = 678 [23:41:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:32]execute_script... [23:41: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)412661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:32]POST & json_proto [23:41:32]process_json_proto [23:41:32]json parsed OK: [23:41:32]protocol is kg_v1.0 [23:41:32]action value=close_receipt [23:41:32]process_action close_receipt [23:41:32]cmd_close_receipt [23:41:32]MH_GetDate [23:41:32]Write to MH i2c: F0 00 00 C0 0C BB [23:41:32]Write i2c OK [23:41:32]MH_I2C_Read... [23:41:32]Read from MH i2c: F0 [23:41:32]MH_I2C_Read... [23:41:32]Read from MH i2c: F0 09 00 [23:41:32]MH_I2C_Read... [23:41:32]Read from MH i2c: F0 09 00 C0 0C 00 AE BD B7 67 7E 41 4F 65 C0 [23:41:32]GetLastDocTimeStamp 1740094689 [23:41:32]current date 1740094894 [23:41:32]FM_GetShiftState [23:41:32]SAM_PROTO_GetShiftState [23:41:32]wFMCommunicate request_size=4 [23:41:32]MH_SAM_APDU [23:41:32]CAPDU: 80 13 01 00 [23:41:32]Write to MH i2c: E2 08 00 C1 0C 80 13 01 00 00 00 00 00 4A [23:41:32]Write i2c OK [23:41:32]MH_I2C_Read... [23:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:32]Read from MH i2c: E2 [23:41:32]MH_I2C_Read... [23:41:32]Read from MH i2c: E2 0E 00 [23:41:32]MH_I2C_Read... [23:41:32]Read from MH i2c: E2 0E 00 C1 0C 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 9C [23:41:32]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:41:32]wFMCommunicate OK [23:41:32]SAM_PROTO_GetShiftState done [23:41:32]FM_GetShiftState done [23:41:32]opened in 1740011697 [23:41:32]opened+sec_in_day 1740098097 [23:41:32]quantity*price = 100042 [23:41:32]sum+1 = 100044 [23:41:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 303 20.02.2025 23:41 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187502 ФПД: 85912110877312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T234134&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187502&fm=85912110877312&tin=02508201610067®Number=0000000000091857&sum=100000 [23:41:33]StoreToDocumentArchive [23:41:33]shift 648 fd 187502 [23:41:33]save to /storage/0648/doc_00187502 [23:41:33]save last doc name /storage/0648/doc_00187502 to /storage/kkm_last_doc_name [23:41:33]save OK [23:41:33]Clear old archive folders... [23:41:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:41:33]tlvbuf is 02090600 [23:41:33]SAM_PROTO_ClearQueue [23:41:33]wFMCommunicate request_size=4 [23:41:33]MH_SAM_APDU [23:41:33]CAPDU: 80 09 00 00 [23:41:33]Write to MH i2c: E2 08 00 CE 0C 80 09 00 00 00 00 00 00 4C [23:41:33]Write i2c OK [23:41:33]MH_I2C_Read... [23:41:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:33]Read from MH i2c: E2 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 03 00 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 03 00 CE 0C 00 90 00 4E [23:41:33]RAPDU: 90 00 [23:41:33]wFMCommunicate OK [23:41:33]SAM_PROTO_ClearQueue done [23:41:33]KKMCreateOFDPacket [23:41:33]OFDProtocolAddRootSTLVToBuf [23:41:33]FM_MakeSignedData [23:41:33]FM_MakeSignedData [23:41:33]SAM_PROTO_SignData [23:41:33]wFMCommunicate request_size=4 [23:41:33]MH_SAM_APDU [23:41:33]CAPDU: 80 0D 01 02 [23:41:33]Write to MH i2c: E2 08 00 CF 0C 80 0D 01 02 00 00 00 00 54 [23:41:33]Write i2c OK [23:41:33]MH_I2C_Read... [23:41:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:33]Read from MH i2c: E2 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 03 00 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 03 00 CF 0C 00 90 00 4F [23:41:33]RAPDU: 90 00 [23:41:33]wFMCommunicate OK [23:41:33]wFMCommunicate request_size=255 [23:41:33]MH_SAM_APDU [23:41: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 AE BD B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DC 02 00 35 04 06 00 4E 22 F8 D9 [23:41:33]Write to MH i2c: E2 02 01 D0 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 AE BD B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DC 02 00 35 04 06 00 4E 22 F8 D9 00 00 C8 [23:41:33]Write i2c OK [23:41:33]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 03 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [23:41:34]RAPDU: 90 00 [23:41:34]wFMCommunicate OK [23:41:34]wFMCommunicate request_size=7 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 0D 02 02 02 CA 80 [23:41:34]Write to MH i2c: E2 0A 00 D1 0C 80 0D 02 02 02 00 CA 80 00 00 A5 [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 03 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [23:41:34]RAPDU: 90 00 [23:41:34]wFMCommunicate OK [23:41:34]wFMCommunicate request_size=4 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 0D 03 02 [23:41:34]Write to MH i2c: E2 08 00 D2 0C 80 0D 03 02 00 00 00 00 59 [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 0B 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 0B 00 D2 0C 00 F3 EE B2 D6 AF B7 F9 C2 90 00 E4 [23:41:34]RAPDU: F3 EE B2 D6 AF B7 F9 C2 90 00 [23:41:34]wFMCommunicate OK [23:41:34]SAM_PROTO_SignData done [23:41:34]FM_MakeSignedData done [23:41:34]CreateOFDProtocolMessage [23:41:34]wFMCommunicate request_size=4 [23:41:34]MH_SAM_APDU [23:41:34]CAPDU: 80 11 00 00 [23:41:34]Write to MH i2c: E2 08 00 D3 0C 80 11 00 00 00 00 00 00 59 [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:34]Read from MH i2c: E2 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 17 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: E2 17 00 D3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AC [23:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:41:34]wFMCommunicate OK [23:41:34]CreateOFDProtocolMessage done [23:41:34]OFDSenderStorePacket 187502 [23:41:34]StoreOFDPacket docnum=187502 [23:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 24 A2 04 01 5E 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 AE BD B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DC 02 00 35 04 06 00 4E 22 F8 D9 CA 80 F3 EE B2 D6 AF B7 F9 C2 [23:41:34]CheckFolder [23:41:34]dirname=/storage/ofd_packets [23:41:34]CheckFolder done [23:41:34]ProducePacketName [23:41:34]name=ofd_packets/00187502 [23:41:34]NVStorageSaveData ofd_packets/00187502 [23:41:34]File name is /storage/ofd_packets/00187502 [23:41:34]Write 298 bytes [23:41:34]NVStorageSaveData done [23:41:34]OFDSenderStorePacket done [23:41:34]KKMCreateOFDPacket done [23:41:34]NVStorageSaveData kkm_last_timestamp [23:41:34]File name is /storage/kkm_last_timestamp [23:41:34]Write 4 bytes [23:41:34]NVStorageSaveData done [23:41:34]ExternCall_PrintAddStr [23:41:34]wPrintStart [23:41:34]Write to MH i2c: 01 00 00 D4 0C E0 [23:41:34]Write i2c OK [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: 01 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: 01 07 00 [23:41:34]MH_I2C_Read... [23:41:34]Read from MH i2c: 01 07 00 D4 0C 00 00 00 00 00 FF 0F F5 [23:41:34]RasterBufferAndPrint [23:41:34]line Счет N : (1)412661 [23:41:34]line ИНН: 02508201610067 [23:41:34]line Контрольно-Кассовый Чек [23:41:34]line ПРОДАЖА [23:41:34]line ТРК (МРК, ГНК) : 5 [23:41:34]line Товар: 2710194210 [23:41:34]line ДТ-К-5 [23:41:34]line 13.780 * 72.60 [23:41:34]line = 1000.43 [23:41:34]line НДС 12% НСП 1% [23:41:34]line > о реализуемом товаре [23:41:34]line ОКРУГЛЕНИЕ: -0.43 [23:41:34]line ИТОГО: 1000.00 [23:41:34]line Внесено: 1000.00 [23:41:34]line СДАЧА: 0.00 [23:41:34]line НСП 1% : 8.85 [23:41:34]line НДС 12% : 106.24 [23:41:34]line Наличными: 1000.00 [23:41:34]line Безнал.: 0.00 [23:41:34]line Место: АЗС № 92 "Партнер Нефть" [23:41:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:41:34]line СНО: Общий режим [23:41:34]line Чек 303 20.02.2025 23:41 [23:41:34]line Смена: 648 ФФД: 1.0 [23:41:34]line ЗНМ: 0300000118 [23:41:34]line РНМ: 0000000000091857 [23:41:34]line Версия ККМ: 001 [23:41:34]line ФМ: 0000000000871826 [23:41:34]line ФД: 187502 [23:41:34]line ФПД: 85912110877312 [23:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T234134&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187502&fm=85912110877312&tin=02508201610067®Number=0000000000091857&sum=100000 [23:41:34]OFD Sender: Processing packet 187502 [packets to send 49, broken 48] [23:41:34]ProducePacketName [23:41:34]name=ofd_packets/00187502 [23:41:34]OFD Sender: To server: pG, [23:41:34]CommunicateWithHost lk.salyk.kg:30040 [23:41:34]ConnectInit lk.salyk.kg [23:41:34]written 0, free lines is 4095 [23:41:34]Connected sock=10 [23:41:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 24 A2 04 01 5E 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 86 01 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 AE BD B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DC 02 00 35 04 06 00 4E 22 F8 D9 CA 80 F3 EE B2 D6 AF B7 F9 C2 [23:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E2 34 47 00 83 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E DC 02 00 F4 03 04 00 FD 63 B7 67 B6 04 01 00 00 E3 DC BD F1 AC 2E 97 86 [23:41:35]CommunicateWithHost err = 0 [23:41:35]CheckOFDResponse [23:41:35]1017 (14) - 77093643461234 [23:41:35]1041 (16) - 0000000000871826 [23:41:35]1040 (4) - 187502 [23:41:35]1012 (4) - 20.02.2025 17:18 [23:41:35]1206 (1) - 0 [23:41:35]OFD Sender: Remove packet 187502 [23:41:35]ProducePacketName [23:41:35]name=ofd_packets/00187502 [23:41:35]NVStorageDeleteData [23:41:35]Write to MH i2c: 01 00 00 FF 0C 0B [23:41:35]Write i2c OK [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: 01 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: 01 07 00 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: 01 07 00 FF 0C 00 00 00 00 00 F3 0C 11 [23:41:35]RasterBufferAndPrint [23:41:35]line [23:41:35]line [23:41:35]line [23:41:35]line [23:41:35]line [23:41:35]written 0, free lines is 3321 [23:41:35]MH_Cut [23:41:35]Write to MH i2c: D1 01 00 06 0D 01 E5 [23:41:35]Write i2c OK [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: D1 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: D1 01 00 [23:41:35]MH_I2C_Read... [23:41:35]Read from MH i2c: D1 01 00 06 0D 00 E4 [23:41:35]Write to MH i2c: 01 00 00 07 0D 14 [23:41:35]Write i2c OK [23:41:35]MH_I2C_Read... [23:41:35]OFD Sender: No OFD packet to send [23:41:35]*** Cut start [23:41:35]*** Partial cut [23:41:35]*** CUTSNS_PIN = 1 [23:41:35]*** CUTSNS_PIN = 0 [23:41:36]*** Brake cut motor [23:41:36]Read from MH i2c: 01 [23:41:36]MH_I2C_Read... [23:41:36]*** Stop cut motor [23:41:36]*** Cut end [23:41:36]Read from MH i2c: 01 07 00 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: 01 07 00 07 0D 00 00 00 00 00 FF 0F 29 [23:41:36]process_action close_receipt done [23:41:36]requested_data is exist [23:41:36]produce_requested_data [23:41:36]requested_item fm.sn is exist - process it [23:41:36]wFMCommunicate request_size=4 [23:41:36]MH_SAM_APDU [23:41:36]CAPDU: 80 11 00 00 [23:41:36]Write to MH i2c: E2 08 00 08 0D 80 11 00 00 00 00 00 00 8F [23:41:36]Write i2c OK [23:41:36]MH_I2C_Read... [23:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:36]Read from MH i2c: E2 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: E2 17 00 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: E2 17 00 08 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [23:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:41:36]wFMCommunicate OK [23:41:36]requested_item fd.num is exist - process it [23:41:36]SAM_PROTO_GetFieldsCounters [23:41:36]wFMCommunicate request_size=4 [23:41:36]MH_SAM_APDU [23:41:36]CAPDU: 80 13 00 00 [23:41:36]Write to MH i2c: E2 08 00 09 0D 80 13 00 00 00 00 00 00 92 [23:41:36]Write i2c OK [23:41:36]MH_I2C_Read... [23:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:36]Read from MH i2c: E2 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: E2 62 00 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: E2 62 00 09 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6E DC 02 00 0E 04 04 00 88 02 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 1E [23:41:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6E DC 02 00 0E 04 04 00 88 02 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 [23:41:36]wFMCommunicate OK [23:41:36]SAM_PROTO_GetFieldsCounters done [23:41:36]requested_item shift.num is exist - process it [23:41:36]requested_item shift.opened is exist - process it [23:41:36]req_shift_opened [23:41:36]FM_GetShiftState [23:41:36]SAM_PROTO_GetShiftState [23:41:36]wFMCommunicate request_size=4 [23:41:36]MH_SAM_APDU [23:41:36]CAPDU: 80 13 01 00 [23:41:36]Write to MH i2c: E2 08 00 0A 0D 80 13 01 00 00 00 00 00 94 [23:41:36]Write i2c OK [23:41:36]MH_I2C_Read... [23:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:36]Read from MH i2c: E2 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: E2 0E 00 [23:41:36]MH_I2C_Read... [23:41:36]Read from MH i2c: E2 0E 00 0A 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E6 [23:41:36]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [23:41:36]wFMCommunicate OK [23:41:36]SAM_PROTO_GetShiftState done [23:41:36]FM_GetShiftState done [23:41:36]req_shift_opened done [23:41:36]requested_item shift.open_date is exist - process it [23:41:36]req_shift_open_date [23:41:36]req_shift_open_date done [23:41:36]produce_requested_data done [23:41:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187502,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [23:41:36]process_action_free close_receipt [23:41:36]json_value_free [23:41:36]json_value_free done [23:41:36]process_json_proto returns [23:41:36]Send response to host [23:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187502,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [23:41:36]free response buf [23:41:36]execute_script done [23:41:36]execute_script returns [23:41:36]free content buf [23:41:36]Sock 7.Close socket [23:41:36]Sock 7.Thread stoped [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:08]accept exits with 9 [00:03:08]New connection [00:03:08]New thread 3067223396 created [00:03:08]Thread 3067080036 joined [00:03:08]Waiting for new connection... [00:03:08] Sock 9.Parse request [00:03:08]Sock 9.Check first char [00:03:08]Sock 9.First char is OK [00:03:08]request: POST /json_proto HTTP/1.0 [00:03:08]Method: POST [00:03:08]URL: /json_proto [00:03:08]Method is POST - this is cgi request [00:03:08]url: /json_proto [00:03:08]query_string will be loaded in cgi processing [00:03:08]execute_cgi json_proto POST (null) [00:03:08]execute_cgi path=json_proto method=POST [00:03:08]POST find Content-Length [00:03:08]Host: 172.17.46.131:8080 [00:03:08]Content-Length: 674 [00:03:08]Content-Type: application/json [00:03:08] [00:03:08]POST finish read [00:03:08]Found Content-Length = 674 [00:03:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "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" ] } } [00:03:08]execute_script... [00:03: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)412662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "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" ] } } [00:03:08]POST & json_proto [00:03:08]process_json_proto [00:03:08]json parsed OK: [00:03:08]protocol is kg_v1.0 [00:03:08]action value=close_receipt [00:03:08]process_action close_receipt [00:03:08]cmd_close_receipt [00:03:08]MH_GetDate [00:03:08]Write to MH i2c: F0 00 00 0B 0D 07 [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 09 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 09 00 0B 0D 00 BE C2 B7 67 7E 41 4F 65 21 [00:03:08]GetLastDocTimeStamp 1740094894 [00:03:08]current date 1740096190 [00:03:08]FM_GetShiftState [00:03:08]SAM_PROTO_GetShiftState [00:03:08]wFMCommunicate request_size=4 [00:03:08]MH_SAM_APDU [00:03:08]CAPDU: 80 13 01 00 [00:03:08]Write to MH i2c: E2 08 00 0C 0D 80 13 01 00 00 00 00 00 96 [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:08]Read from MH i2c: E2 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 0E 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 0E 00 0C 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 E8 [00:03:08]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:03:08]wFMCommunicate OK [00:03:08]SAM_PROTO_GetShiftState done [00:03:08]FM_GetShiftState done [00:03:08]opened in 1740011697 [00:03:08]opened+sec_in_day 1740098097 [00:03:08]quantity*price = 80005 [00:03:08]sum+1 = 80006 [00:03:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 304 21.02.2025 00:03 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187503 ФПД: 131829053646226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T000310&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187503&fm=131829053646226&tin=02508201610067®Number=0000000000091857&sum=80000 [00:03:09]StoreToDocumentArchive [00:03:09]shift 648 fd 187503 [00:03:09]save to /storage/0648/doc_00187503 [00:03:09]save last doc name /storage/0648/doc_00187503 to /storage/kkm_last_doc_name [00:03:09]save OK [00:03:09]Clear old archive folders... [00:03:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:03:09]tlvbuf is 0202EED0 [00:03:09]SAM_PROTO_ClearQueue [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 09 00 00 [00:03:09]Write to MH i2c: E2 08 00 19 0D 80 09 00 00 00 00 00 00 98 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 19 0D 00 90 00 9A [00:03:09]RAPDU: 90 00 [00:03:09]wFMCommunicate OK [00:03:09]SAM_PROTO_ClearQueue done [00:03:09]KKMCreateOFDPacket [00:03:09]OFDProtocolAddRootSTLVToBuf [00:03:09]FM_MakeSignedData [00:03:09]FM_MakeSignedData [00:03:09]SAM_PROTO_SignData [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 0D 01 02 [00:03:09]Write to MH i2c: E2 08 00 1A 0D 80 0D 01 02 00 00 00 00 A0 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 1A 0D 00 90 00 9B [00:03:09]RAPDU: 90 00 [00:03:09]wFMCommunicate OK [00:03:09]wFMCommunicate request_size=255 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 30 01 00 00 F4 03 04 00 BE C2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F DC 02 00 35 04 06 00 77 E5 D7 E9 [00:03:09]Write to MH i2c: E2 02 01 1B 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 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 30 01 00 00 F4 03 04 00 BE C2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F DC 02 00 35 04 06 00 77 E5 D7 E9 00 00 BA [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 1B 0D 00 90 00 9C [00:03:10]RAPDU: 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=7 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 0D 02 02 02 E5 92 [00:03:10]Write to MH i2c: E2 0A 00 1C 0D 80 0D 02 02 02 00 E5 92 00 00 1E [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 1C 0D 00 90 00 9D [00:03:10]RAPDU: 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 0D 03 02 [00:03:10]Write to MH i2c: E2 08 00 1D 0D 80 0D 03 02 00 00 00 00 A5 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0B 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0B 00 1D 0D 00 87 43 34 0F 75 78 C0 38 90 00 98 [00:03:10]RAPDU: 87 43 34 0F 75 78 C0 38 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_SignData done [00:03:10]FM_MakeSignedData done [00:03:10]CreateOFDProtocolMessage [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 11 00 00 [00:03:10]Write to MH i2c: E2 08 00 1E 0D 80 11 00 00 00 00 00 00 A5 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 17 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 17 00 1E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [00:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:03:10]wFMCommunicate OK [00:03:10]CreateOFDProtocolMessage done [00:03:10]OFDSenderStorePacket 187503 [00:03:10]StoreOFDPacket docnum=187503 [00:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 55 54 04 01 80 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 30 01 00 00 F4 03 04 00 BE C2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F DC 02 00 35 04 06 00 77 E5 D7 E9 E5 92 87 43 34 0F 75 78 C0 38 [00:03:10]CheckFolder [00:03:10]dirname=/storage/ofd_packets [00:03:10]CheckFolder done [00:03:10]ProducePacketName [00:03:10]name=ofd_packets/00187503 [00:03:10]NVStorageSaveData ofd_packets/00187503 [00:03:10]File name is /storage/ofd_packets/00187503 [00:03:10]Write 298 bytes [00:03:10]NVStorageSaveData done [00:03:10]OFDSenderStorePacket done [00:03:10]KKMCreateOFDPacket done [00:03:10]NVStorageSaveData kkm_last_timestamp [00:03:10]File name is /storage/kkm_last_timestamp [00:03:10]Write 4 bytes [00:03:10]NVStorageSaveData done [00:03:10]ExternCall_PrintAddStr [00:03:10]wPrintStart [00:03:10]Write to MH i2c: 01 00 00 1F 0D 2C [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: 01 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: 01 07 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 FF 0F 41 [00:03:10]RasterBufferAndPrint [00:03:10]line Счет N : (1)412662 [00:03:10]line ИНН: 02508201610067 [00:03:10]line Контрольно-Кассовый Чек [00:03:10]line ПРОДАЖА [00:03:10]line ТРК (МРК, ГНК) : 5 [00:03:10]line Товар: 2710194210 [00:03:10]line ДТ-К-5 [00:03:10]line 11.020 * 72.60 [00:03:10]line = 800.05 [00:03:10]line НДС 12% НСП 1% [00:03:10]line > о реализуемом товаре [00:03:10]line ОКРУГЛЕНИЕ: -0.05 [00:03:10]line ИТОГО: 800.00 [00:03:10]line Внесено: 800.00 [00:03:10]line СДАЧА: 0.00 [00:03:10]line НСП 1% : 7.08 [00:03:10]line НДС 12% : 84.96 [00:03:10]line Наличными: 800.00 [00:03:10]line Безнал.: 0.00 [00:03:10]line Место: АЗС № 92 "Партнер Нефть" [00:03:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:03:10]line СНО: Общий режим [00:03:10]line Чек 304 21.02.2025 00:03 [00:03:10]line Смена: 648 ФФД: 1.0 [00:03:10]line ЗНМ: 0300000118 [00:03:10]line РНМ: 0000000000091857 [00:03:10]line Версия ККМ: 001 [00:03:10]line ФМ: 0000000000871826 [00:03:10]line ФД: 187503 [00:03:10]line ФПД: 131829053646226 [00:03:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T000310&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187503&fm=131829053646226&tin=02508201610067®Number=0000000000091857&sum=80000 [00:03:10]OFD Sender: Processing packet 187503 [packets to send 49, broken 48] [00:03:10]ProducePacketName [00:03:10]name=ofd_packets/00187503 [00:03:10]OFD Sender: To server: pG, [00:03:10]CommunicateWithHost lk.salyk.kg:30040 [00:03:10]ConnectInit lk.salyk.kg [00:03:10]written 0, free lines is 4095 [00:03:10]Connected sock=10 [00:03:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 55 54 04 01 80 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 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 30 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 30 01 00 00 F4 03 04 00 BE C2 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F DC 02 00 35 04 06 00 77 E5 D7 E9 E5 92 87 43 34 0F 75 78 C0 38 [00:03:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 33 7F 47 00 39 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 31 38 32 36 10 04 04 00 6F DC 02 00 F4 03 04 00 0D 69 B7 67 B6 04 01 00 00 9C F9 23 86 35 68 AE AB [00:03:11]CommunicateWithHost err = 0 [00:03:11]CheckOFDResponse [00:03:11]1017 (14) - 77093643461234 [00:03:11]1041 (16) - 0000000000871826 [00:03:11]1040 (4) - 187503 [00:03:11]1012 (4) - 20.02.2025 17:40 [00:03:11]1206 (1) - 0 [00:03:11]OFD Sender: Remove packet 187503 [00:03:11]ProducePacketName [00:03:11]name=ofd_packets/00187503 [00:03:11]NVStorageDeleteData [00:03:11]Write to MH i2c: 01 00 00 4A 0D 57 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 4A 0D 00 00 00 00 00 F7 0C 61 [00:03:11]RasterBufferAndPrint [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]written 0, free lines is 3326 [00:03:11]MH_Cut [00:03:11]Write to MH i2c: D1 01 00 51 0D 01 30 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: D1 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: D1 01 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: D1 01 00 51 0D 00 2F [00:03:11]Write to MH i2c: 01 00 00 52 0D 5F [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]OFD Sender: No OFD packet to send [00:03:11]*** Cut start [00:03:11]*** Partial cut [00:03:11]*** CUTSNS_PIN = 1 [00:03:11]*** CUTSNS_PIN = 0 [00:03:12]*** Brake cut motor [00:03:12]Read from MH i2c: 01 [00:03:12]MH_I2C_Read... [00:03:12]*** Stop cut motor [00:03:12]*** Cut end [00:03:12]Read from MH i2c: 01 07 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: 01 07 00 52 0D 00 00 00 00 00 FF 0F 74 [00:03:12]process_action close_receipt done [00:03:12]requested_data is exist [00:03:12]produce_requested_data [00:03:12]requested_item fm.sn is exist - process it [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 11 00 00 [00:03:12]Write to MH i2c: E2 08 00 53 0D 80 11 00 00 00 00 00 00 DA [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 17 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 17 00 53 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2D [00:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:03:12]wFMCommunicate OK [00:03:12]requested_item fd.num is exist - process it [00:03:12]SAM_PROTO_GetFieldsCounters [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 13 00 00 [00:03:12]Write to MH i2c: E2 08 00 54 0D 80 13 00 00 00 00 00 00 DD [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 62 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 62 00 54 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6F DC 02 00 0E 04 04 00 88 02 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 6D [00:03:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6F DC 02 00 0E 04 04 00 88 02 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 [00:03:12]wFMCommunicate OK [00:03:12]SAM_PROTO_GetFieldsCounters done [00:03:12]requested_item shift.num is exist - process it [00:03:12]requested_item shift.opened is exist - process it [00:03:12]req_shift_opened [00:03:12]FM_GetShiftState [00:03:12]SAM_PROTO_GetShiftState [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 13 01 00 [00:03:12]Write to MH i2c: E2 08 00 55 0D 80 13 01 00 00 00 00 00 DF [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 0E 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 0E 00 55 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 31 [00:03:12]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:03:12]wFMCommunicate OK [00:03:12]SAM_PROTO_GetShiftState done [00:03:12]FM_GetShiftState done [00:03:12]req_shift_opened done [00:03:12]requested_item shift.open_date is exist - process it [00:03:12]req_shift_open_date [00:03:12]req_shift_open_date done [00:03:12]produce_requested_data done [00:03:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187503,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [00:03:12]process_action_free close_receipt [00:03:12]json_value_free [00:03:12]json_value_free done [00:03:12]process_json_proto returns [00:03:12]Send response to host [00:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187503,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [00:03:12]free response buf [00:03:12]execute_script done [00:03:12]execute_script returns [00:03:12]free content buf [00:03:12]Sock 9.Close socket [00:03:12]Sock 9.Thread stoped [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [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]accept exits with 7 [00:07:41]New connection [00:07:41]New thread 3067080036 created [00:07:41]Thread 3067223396 joined [00:07:41]Waiting for new connection... [00:07:41] Sock 7.Parse request [00:07:41]Sock 7.Check first char [00:07:41]Sock 7.First char is OK [00:07:41]request: POST /json_proto HTTP/1.0 [00:07:41]Method: POST [00:07:41]URL: /json_proto [00:07:41]Method is POST - this is cgi request [00:07:41]url: /json_proto [00:07:41]query_string will be loaded in cgi processing [00:07:41]execute_cgi json_proto POST (null) [00:07:41]execute_cgi path=json_proto method=POST [00:07:41]POST find Content-Length [00:07:41]Host: 172.17.46.131:8080 [00:07:41]Content-Length: 800 [00:07:41]Content-Type: application/json [00:07:41] [00:07:41]POST finish read [00:07:41]Found Content-Length = 800 [00:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:41]execute_script... [00:07: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)412663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:41]POST & json_proto [00:07:41]process_json_proto [00:07:41]json parsed OK: [00:07:41]protocol is kg_v1.0 [00:07:41]action value=close_receipt [00:07:41]process_action close_receipt [00:07:41]cmd_close_receipt [00:07:41]MH_GetDate [00:07:41]Write to MH i2c: F0 00 00 56 0D 52 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 09 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: F0 09 00 56 0D 00 CE C3 B7 67 7E 41 4F 65 7D [00:07:41]GetLastDocTimeStamp 1740096190 [00:07:41]current date 1740096462 [00:07:41]FM_GetShiftState [00:07:41]SAM_PROTO_GetShiftState [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 13 01 00 [00:07:41]Write to MH i2c: E2 08 00 57 0D 80 13 01 00 00 00 00 00 E1 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 0E 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 0E 00 57 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 33 [00:07:41]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:07:41]wFMCommunicate OK [00:07:41]SAM_PROTO_GetShiftState done [00:07:41]FM_GetShiftState done [00:07:41]opened in 1740011697 [00:07:41]opened+sec_in_day 1740098097 [00:07:41]quantity*price = 50042 [00:07:41]sum+1 = 50043 [00:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 305 21.02.2025 00:07 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187504 ФПД: 48871533116900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T000742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187504&fm=48871533116900&tin=02508201610067®Number=0000000000091857&sum=50042 [00:07:42]StoreToDocumentArchive [00:07:42]shift 648 fd 187504 [00:07:42]save to /storage/0648/doc_00187504 [00:07:42]save last doc name /storage/0648/doc_00187504 to /storage/kkm_last_doc_name [00:07:42]save OK [00:07:42]Clear old archive folders... [00:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:07:42]tlvbuf is 0202E9A0 [00:07:42]SAM_PROTO_ClearQueue [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 09 00 00 [00:07:42]Write to MH i2c: E2 08 00 64 0D 80 09 00 00 00 00 00 00 E3 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 64 0D 00 90 00 E5 [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_ClearQueue done [00:07:42]KKMCreateOFDPacket [00:07:42]OFDProtocolAddRootSTLVToBuf [00:07:42]FM_MakeSignedData [00:07:42]FM_MakeSignedData [00:07:42]SAM_PROTO_SignData [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 0D 01 02 [00:07:42]Write to MH i2c: E2 08 00 65 0D 80 0D 01 02 00 00 00 00 EB [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 65 0D 00 90 00 E6 [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=255 [00:07:42]MH_SAM_APDU [00:07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 CE C3 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DC 02 00 35 04 06 00 2C [00:07:42]Write to MH i2c: E2 02 01 66 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 CE C3 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DC 02 00 35 04 06 00 2C 00 00 A9 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 66 0D 00 90 00 E7 [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=10 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 0D 02 02 05 72 CA 5E FD E4 [00:07:42]Write to MH i2c: E2 0D 00 67 0D 80 0D 02 02 05 00 72 CA 5E FD E4 00 00 73 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 03 00 67 0D 00 90 00 E8 [00:07:42]RAPDU: 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 0D 03 02 [00:07:42]Write to MH i2c: E2 08 00 68 0D 80 0D 03 02 00 00 00 00 F0 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 0B 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 0B 00 68 0D 00 EA 4B 65 79 BE 78 C4 69 90 00 67 [00:07:42]RAPDU: EA 4B 65 79 BE 78 C4 69 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_SignData done [00:07:42]FM_MakeSignedData done [00:07:42]CreateOFDProtocolMessage [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 11 00 00 [00:07:42]Write to MH i2c: E2 08 00 69 0D 80 11 00 00 00 00 00 00 F0 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 17 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 17 00 69 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 43 [00:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:07:42]wFMCommunicate OK [00:07:42]CreateOFDProtocolMessage done [00:07:42]OFDSenderStorePacket 187504 [00:07:42]StoreOFDPacket docnum=187504 [00:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 3F 07 01 45 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 CE C3 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DC 02 00 35 04 06 00 2C 72 CA 5E FD E4 EA 4B 65 79 BE 78 C4 69 [00:07:42]CheckFolder [00:07:42]dirname=/storage/ofd_packets [00:07:42]CheckFolder done [00:07:42]ProducePacketName [00:07:42]name=ofd_packets/00187504 [00:07:42]NVStorageSaveData ofd_packets/00187504 [00:07:42]File name is /storage/ofd_packets/00187504 [00:07:42]Write 301 bytes [00:07:42]NVStorageSaveData done [00:07:42]OFDSenderStorePacket done [00:07:42]KKMCreateOFDPacket done [00:07:42]NVStorageSaveData kkm_last_timestamp [00:07:42]File name is /storage/kkm_last_timestamp [00:07:42]Write 4 bytes [00:07:42]NVStorageSaveData done [00:07:42]ExternCall_PrintAddStr [00:07:42]wPrintStart [00:07:42]Write to MH i2c: 01 00 00 6A 0D 77 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: 01 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: 01 07 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: 01 07 00 6A 0D 00 00 00 00 00 FF 0F 8C [00:07:42]RasterBufferAndPrint [00:07:42]line Счет N : (1)412663 [00:07:42]line ИНН: 02508201610067 [00:07:42]line Контрольно-Кассовый Чек [00:07:42]line ПРОДАЖА [00:07:42]line ТРК (МРК, ГНК) : 33 [00:07:42]line Товар: 2710124500 [00:07:42]line Аи-95-К-5 [00:07:42]line 6.960 * 71.90 [00:07:42]line = 500.42 [00:07:42]line НДС 12% НСП 1% [00:07:42]line > о реализуемом товаре [00:07:42]line ИТОГО: 500.42 [00:07:42]line НСП 1% : 4.43 [00:07:42]line НДС 12% : 53.14 [00:07:42]line Наличными: 0.00 [00:07:42]line Безнал.: 500.42 [00:07:42]line Место: АЗС № 92 "Партнер Нефть" [00:07:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:07:42]line СНО: Общий режим [00:07:42]line Чек 305 21.02.2025 00:07 [00:07:42]line Смена: 648 ФФД: 1.0 [00:07:42]line ЗНМ: 0300000118 [00:07:42]line РНМ: 0000000000091857 [00:07:42]line Версия ККМ: 001 [00:07:42]line Платежная система: O! деньги [00:07:42]line ФМ: 0000000000871826 [00:07:42]line ФД: 187504 [00:07:42]line ФПД: 48871533116900 [00:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T000742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187504&fm=48871533116900&tin=02508201610067®Number=0000000000091857&sum=50042 [00:07:43]OFD Sender: Processing packet 187504 [packets to send 49, broken 48] [00:07:43]ProducePacketName [00:07:43]name=ofd_packets/00187504 [00:07:43]OFD Sender: To server: pG, [00:07:43]CommunicateWithHost lk.salyk.kg:30040 [00:07:43]ConnectInit lk.salyk.kg [00:07:43]written 0, free lines is 4095 [00:07:43]Connected sock=9 [00:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 3F 07 01 45 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 CE C3 B7 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DC 02 00 35 04 06 00 2C 72 CA 5E FD E4 EA 4B 65 79 BE 78 C4 69 [00:07:43]Write to MH i2c: 01 00 00 94 0D A1 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: 01 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: 01 07 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: 01 07 00 94 0D 00 00 00 00 00 FA 0C AE [00:07:43]RasterBufferAndPrint [00:07:43]line [00:07:43]line [00:07:43]line [00:07:43]line [00:07:43]line [00:07:43]written 0, free lines is 3328 [00:07:43]MH_Cut [00:07:43]Write to MH i2c: D1 01 00 9B 0D 01 7A [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: D1 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: D1 01 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: D1 01 00 9B 0D 00 79 [00:07:43]Write to MH i2c: 01 00 00 9C 0D A9 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2C B2 47 00 20 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DC 02 00 F4 03 04 00 1E 6A B7 67 B6 04 01 00 00 AA A0 CE A1 83 CA D1 D0 [00:07:43]CommunicateWithHost err = 0 [00:07:43]CheckOFDResponse [00:07:43]1017 (14) - 77093643461234 [00:07:43]1041 (16) - 0000000000871826 [00:07:43]1040 (4) - 187504 [00:07:43]1012 (4) - 20.02.2025 17:45 [00:07:43]1206 (1) - 0 [00:07:43]OFD Sender: Remove packet 187504 [00:07:43]ProducePacketName [00:07:43]name=ofd_packets/00187504 [00:07:43]NVStorageDeleteData [00:07:44]OFD Sender: No OFD packet to send [00:07:44]*** Cut start [00:07:44]*** Partial cut [00:07:44]*** CUTSNS_PIN = 1 [00:07:44]*** CUTSNS_PIN = 0 [00:07:44]*** Brake cut motor [00:07:45]Read from MH i2c: 01 [00:07:45]MH_I2C_Read... [00:07:45]*** Stop cut motor [00:07:45]*** Cut end [00:07:45]Read from MH i2c: 01 07 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: 01 07 00 9C 0D 00 00 00 00 00 FF 0F BE [00:07:45]process_action close_receipt done [00:07:45]requested_data is exist [00:07:45]produce_requested_data [00:07:45]requested_item fm.sn is exist - process it [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 11 00 00 [00:07:45]Write to MH i2c: E2 08 00 9D 0D 80 11 00 00 00 00 00 00 24 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 17 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 17 00 9D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 77 [00:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:07:45]wFMCommunicate OK [00:07:45]requested_item fd.num is exist - process it [00:07:45]SAM_PROTO_GetFieldsCounters [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 13 00 00 [00:07:45]Write to MH i2c: E2 08 00 9E 0D 80 13 00 00 00 00 00 00 27 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 62 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 62 00 9E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 BB [00:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 [00:07:45]wFMCommunicate OK [00:07:45]SAM_PROTO_GetFieldsCounters done [00:07:45]requested_item shift.num is exist - process it [00:07:45]requested_item shift.opened is exist - process it [00:07:45]req_shift_opened [00:07:45]FM_GetShiftState [00:07:45]SAM_PROTO_GetShiftState [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 13 01 00 [00:07:45]Write to MH i2c: E2 08 00 9F 0D 80 13 01 00 00 00 00 00 29 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 0E 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 0E 00 9F 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7B [00:07:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:07:45]wFMCommunicate OK [00:07:45]SAM_PROTO_GetShiftState done [00:07:45]FM_GetShiftState done [00:07:45]req_shift_opened done [00:07:45]requested_item shift.open_date is exist - process it [00:07:45]req_shift_open_date [00:07:45]req_shift_open_date done [00:07:45]produce_requested_data done [00:07:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187504,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [00:07:45]process_action_free close_receipt [00:07:45]json_value_free [00:07:45]json_value_free done [00:07:45]process_json_proto returns [00:07:45]Send response to host [00:07:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187504,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [00:07:45]free response buf [00:07:45]execute_script done [00:07:45]execute_script returns [00:07:45]free content buf [00:07:45]Sock 7.Close socket [00:07:45]Sock 7.Thread stoped [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:46]accept exits with 10 [00:19:46]New connection [00:19:46]New thread 3067223396 created [00:19:46]Thread 3067080036 joined [00:19:46]Waiting for new connection... [00:19:46] Sock 10.Parse request [00:19:46]Sock 10.Check first char [00:19:46]Sock 10.First char is OK [00:19:46]request: POST /json_proto HTTP/1.0 [00:19:46]Method: POST [00:19:46]URL: /json_proto [00:19:46]Method is POST - this is cgi request [00:19:46]url: /json_proto [00:19:46]query_string will be loaded in cgi processing [00:19:46]execute_cgi json_proto POST (null) [00:19:46]execute_cgi path=json_proto method=POST [00:19:46]POST find Content-Length [00:19:46]Host: 172.17.46.131:8080 [00:19:46]Content-Length: 215 [00:19:46]Content-Type: application/json [00:19:46] [00:19:46]POST finish read [00:19:46]Found Content-Length = 215 [00:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:46]execute_script... [00:19:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:46]POST & json_proto [00:19:46]process_json_proto [00:19:46]json parsed OK: [00:19:46]protocol is kg_v1.0 [00:19:46]action value=get_value [00:19:46]process_action get_value [00:19:46]cmd_get_value [00:19:46]process_action get_value done [00:19:46]requested_data is exist [00:19:46]produce_requested_data [00:19:46]requested_item kkm.sn is exist - process it [00:19:46]requested_item kkm.ver is exist - process it [00:19:46]requested_item fm.sn is exist - process it [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 11 00 00 [00:19:46]Write to MH i2c: E2 08 00 A0 0D 80 11 00 00 00 00 00 00 27 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 17 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 17 00 A0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [00:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:19:46]wFMCommunicate OK [00:19:46]requested_item fd.num is exist - process it [00:19:46]SAM_PROTO_GetFieldsCounters [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 13 00 00 [00:19:46]Write to MH i2c: E2 08 00 A1 0D 80 13 00 00 00 00 00 00 2A [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 62 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 62 00 A1 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 BE [00:19:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 [00:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_GetFieldsCounters done [00:19:46]requested_item shift.num is exist - process it [00:19:46]requested_item shift.opened is exist - process it [00:19:46]req_shift_opened [00:19:46]FM_GetShiftState [00:19:46]SAM_PROTO_GetShiftState [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 13 01 00 [00:19:46]Write to MH i2c: E2 08 00 A2 0D 80 13 01 00 00 00 00 00 2C [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0E 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0E 00 A2 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 7E [00:19:46]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_GetShiftState done [00:19:46]FM_GetShiftState done [00:19:46]req_shift_opened done [00:19:46]requested_item shift.open_date is exist - process it [00:19:46]req_shift_open_date [00:19:46]req_shift_open_date done [00:19:46]produce_requested_data done [00:19:46]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187504,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [00:19:46]process_action_free get_value [00:19:46]json_value_free [00:19:46]json_value_free done [00:19:46]process_json_proto returns [00:19:46]Send response to host [00:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187504,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [00:19:46]free response buf [00:19:46]execute_script done [00:19:46]execute_script returns [00:19:46]free content buf [00:19:46]Sock 10.Close socket [00:19:46]Sock 10.Thread stoped [00:19:46]accept exits with 7 [00:19:46]New connection [00:19:46]New thread 3067080036 created [00:19:46]Thread 3067223396 joined [00:19:46]Waiting for new connection... [00:19:46] Sock 7.Parse request [00:19:46]Sock 7.Check first char [00:19:46]Sock 7.First char is OK [00:19:46]request: POST /json_proto HTTP/1.0 [00:19:46]Method: POST [00:19:46]URL: /json_proto [00:19:46]Method is POST - this is cgi request [00:19:46]url: /json_proto [00:19:46]query_string will be loaded in cgi processing [00:19:46]execute_cgi json_proto POST (null) [00:19:46]execute_cgi path=json_proto method=POST [00:19:46]POST find Content-Length [00:19:46]Host: 172.17.46.131:8080 [00:19:46]Content-Length: 331 [00:19:46]Content-Type: application/json [00:19:46] [00:19:46]POST finish read [00:19:46]Found Content-Length = 331 [00:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:46]execute_script... [00:19:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:46]POST & json_proto [00:19:46]process_json_proto [00:19:46]json parsed OK: [00:19:46]protocol is kg_v1.0 [00:19:46]action value=get_value [00:19:46]process_action get_value [00:19:46]cmd_get_value [00:19:46]process_action get_value done [00:19:46]requested_data is exist [00:19:46]produce_requested_data [00:19:46]requested_item fm.sale.total is exist - process it [00:19:46]SAM_PROTO_GetFMData [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 13 03 00 [00:19:46]Write to MH i2c: E2 08 00 A3 0D 80 13 03 00 00 00 00 00 2F [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 A3 0D 00 C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 09 [00:19:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 17 00 00 [00:19:47]Write to MH i2c: E2 08 00 A4 0D 80 17 00 00 00 00 00 00 31 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 A4 0D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [00:19:47]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 17 00 00 [00:19:47]Write to MH i2c: E2 08 00 A5 0D 80 17 00 00 00 00 00 00 32 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 A5 0D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D2 [00:19:47]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 17 00 00 [00:19:47]Write to MH i2c: E2 08 00 A6 0D 80 17 00 00 00 00 00 00 33 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 A6 0D 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [00:19:47]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 17 00 00 [00:19:47]Write to MH i2c: E2 08 00 A7 0D 80 17 00 00 00 00 00 00 34 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 DE 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 DE 00 A7 0D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 13 [00:19:48]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:48]wFMCommunicate OK [00:19:48]SAM_PROTO_GetFMData done [00:19:48]requested_item fm.sale_refund.total is exist - process it [00:19:48]requested_item fm.buy.total is exist - process it [00:19:48]requested_item shift.sale.total is exist - process it [00:19:48]SAM_PROTO_GetShiftData [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 13 02 00 [00:19:48]Write to MH i2c: E2 08 00 A8 0D 80 13 02 00 00 00 00 00 33 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 A8 0D 00 B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 84 [00:19:48]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 17 00 00 [00:19:48]Write to MH i2c: E2 08 00 A9 0D 80 17 00 00 00 00 00 00 36 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 A9 0D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 4F [00:19:48]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 17 00 00 [00:19:48]Write to MH i2c: E2 08 00 AA 0D 80 17 00 00 00 00 00 00 37 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 FD 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 FD 00 AA 0D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F0 [00:19:49]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:19:49]wFMCommunicate OK [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 17 00 00 [00:19:49]Write to MH i2c: E2 08 00 AB 0D 80 17 00 00 00 00 00 00 38 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 FD 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 FD 00 AB 0D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B0 [00:19:49]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:49]wFMCommunicate OK [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 17 00 00 [00:19:49]Write to MH i2c: E2 08 00 AC 0D 80 17 00 00 00 00 00 00 39 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 CE 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 CE 00 AC 0D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1E [00:19:49]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:49]wFMCommunicate OK [00:19:49]SAM_PROTO_GetShiftData done [00:19:49]requested_item shift.sale.total_cash is exist - process it [00:19:49]requested_item shift.sale_refund.total is exist - process it [00:19:49]requested_item shift.sale_refund.total_cash is exist - process it [00:19:49]requested_item shift.buy.total is exist - process it [00:19:49]requested_item shift.buy.total_cash is exist - process it [00:19:49]produce_requested_data done [00:19:49]produce_requested_data return {"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:49]process_action_free get_value [00:19:49]json_value_free [00:19:49]json_value_free done [00:19:49]process_json_proto returns [00:19:49]Send response to host [00:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:49]free response buf [00:19:49]execute_script done [00:19:49]execute_script returns [00:19:49]free content buf [00:19:49]Sock 7.Close socket [00:19:49]Sock 7.Thread stoped [00:19:49]accept exits with 9 [00:19:49]New connection [00:19:49]New thread 3067223396 created [00:19:49]Thread 3067080036 joined [00:19:49]Waiting for new connection... [00:19:49] Sock 9.Parse request [00:19:49]Sock 9.Check first char [00:19:49]Sock 9.First char is OK [00:19:49]request: POST /json_proto HTTP/1.0 [00:19:49]Method: POST [00:19:49]URL: /json_proto [00:19:49]Method is POST - this is cgi request [00:19:49]url: /json_proto [00:19:49]query_string will be loaded in cgi processing [00:19:49]execute_cgi json_proto POST (null) [00:19:49]execute_cgi path=json_proto method=POST [00:19:49]POST find Content-Length [00:19:49]Host: 172.17.46.131:8080 [00:19:49]Content-Length: 331 [00:19:49]Content-Type: application/json [00:19:49] [00:19:49]POST finish read [00:19:49]Found Content-Length = 331 [00:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:49]execute_script... [00:19:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:49]POST & json_proto [00:19:49]process_json_proto [00:19:49]json parsed OK: [00:19:49]protocol is kg_v1.0 [00:19:49]action value=get_value [00:19:49]process_action get_value [00:19:49]cmd_get_value [00:19:49]process_action get_value done [00:19:49]requested_data is exist [00:19:49]produce_requested_data [00:19:49]requested_item fm.sale.total is exist - process it [00:19:49]SAM_PROTO_GetFMData [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 13 03 00 [00:19:49]Write to MH i2c: E2 08 00 AD 0D 80 13 03 00 00 00 00 00 39 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]OFD Sender: No OFD packet to send [00:19:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 AD 0D 00 C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 13 [00:19:50]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 17 00 00 [00:19:50]Write to MH i2c: E2 08 00 AE 0D 80 17 00 00 00 00 00 00 3B [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 AE 0D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 04 [00:19:50]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 17 00 00 [00:19:50]Write to MH i2c: E2 08 00 AF 0D 80 17 00 00 00 00 00 00 3C [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 AF 0D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 DC [00:19:50]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 17 00 00 [00:19:51]Write to MH i2c: E2 08 00 B0 0D 80 17 00 00 00 00 00 00 3D [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 FD 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 FD 00 B0 0D 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [00:19:51]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 17 00 00 [00:19:51]Write to MH i2c: E2 08 00 B1 0D 80 17 00 00 00 00 00 00 3E [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 DE 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 DE 00 B1 0D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1D [00:19:51]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:51]wFMCommunicate OK [00:19:51]SAM_PROTO_GetFMData done [00:19:51]requested_item fm.sale_refund.total is exist - process it [00:19:51]requested_item fm.buy.total is exist - process it [00:19:51]requested_item shift.sale.total is exist - process it [00:19:51]SAM_PROTO_GetShiftData [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 13 02 00 [00:19:51]Write to MH i2c: E2 08 00 B2 0D 80 13 02 00 00 00 00 00 3D [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:52]Read from MH i2c: E2 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 B2 0D 00 B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 8E [00:19:52]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:52]wFMCommunicate OK [00:19:52]wFMCommunicate request_size=4 [00:19:52]MH_SAM_APDU [00:19:52]CAPDU: 80 17 00 00 [00:19:52]Write to MH i2c: E2 08 00 B3 0D 80 17 00 00 00 00 00 00 40 [00:19:52]Write i2c OK [00:19:52]MH_I2C_Read... [00:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:52]Read from MH i2c: E2 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 B3 0D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 59 [00:19:52]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:19:52]wFMCommunicate OK [00:19:52]wFMCommunicate request_size=4 [00:19:52]MH_SAM_APDU [00:19:52]CAPDU: 80 17 00 00 [00:19:52]Write to MH i2c: E2 08 00 B4 0D 80 17 00 00 00 00 00 00 41 [00:19:52]Write i2c OK [00:19:52]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 B4 0D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 FA [00:19:53]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:19:53]wFMCommunicate OK [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 17 00 00 [00:19:53]Write to MH i2c: E2 08 00 B5 0D 80 17 00 00 00 00 00 00 42 [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 B5 0D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 BA [00:19:53]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:53]wFMCommunicate OK [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 17 00 00 [00:19:53]Write to MH i2c: E2 08 00 B6 0D 80 17 00 00 00 00 00 00 43 [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 CE 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 CE 00 B6 0D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 28 [00:19:53]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_GetShiftData done [00:19:54]requested_item shift.sale.total_cash is exist - process it [00:19:54]requested_item shift.sale_refund.total is exist - process it [00:19:54]requested_item shift.sale_refund.total_cash is exist - process it [00:19:54]requested_item shift.buy.total is exist - process it [00:19:54]requested_item shift.buy.total_cash is exist - process it [00:19:54]produce_requested_data done [00:19:54]produce_requested_data return {"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:54]process_action_free get_value [00:19:54]json_value_free [00:19:54]json_value_free done [00:19:54]process_json_proto returns [00:19:54]Send response to host [00:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:54]free response buf [00:19:54]execute_script done [00:19:54]execute_script returns [00:19:54]free content buf [00:19:54]Sock 9.Close socket [00:19:54]Sock 9.Thread stoped [00:19:54]accept exits with 7 [00:19:54]New connection [00:19:54]New thread 3067080036 created [00:19:54]Thread 3067223396 joined [00:19:54]Waiting for new connection... [00:19:54] Sock 7.Parse request [00:19:54]Sock 7.Check first char [00:19:54]Sock 7.First char is OK [00:19:54]request: POST /json_proto HTTP/1.0 [00:19:54]Method: POST [00:19:54]URL: /json_proto [00:19:54]Method is POST - this is cgi request [00:19:54]url: /json_proto [00:19:54]query_string will be loaded in cgi processing [00:19:54]execute_cgi json_proto POST (null) [00:19:54]execute_cgi path=json_proto method=POST [00:19:54]POST find Content-Length [00:19:54]Host: 172.17.46.131:8080 [00:19:54]Content-Length: 245 [00:19:54]Content-Type: application/json [00:19:54] [00:19:54]POST finish read [00:19:54]Found Content-Length = 245 [00:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:54]execute_script... [00:19:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:54]POST & json_proto [00:19:54]process_json_proto [00:19:54]json parsed OK: [00:19:54]protocol is kg_v1.0 [00:19:54]action value=x_report [00:19:54]process_action x_report [00:19:54]cmd_x_report [00:19:54]MH_GetDate [00:19:54]Write to MH i2c: F0 00 00 B7 0D B3 [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: F0 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: F0 09 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: F0 09 00 B7 0D 00 AB C6 B7 67 7E 41 4F 65 BE [00:19:54]GetLastDocTimeStamp 1740096462 [00:19:54]current date 1740097195 [00:19:54]FM_GetShiftState [00:19:54]SAM_PROTO_GetShiftState [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 13 01 00 [00:19:54]Write to MH i2c: E2 08 00 B8 0D 80 13 01 00 00 00 00 00 42 [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 0E 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 0E 00 B8 0D 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 94 [00:19:54]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_GetShiftState done [00:19:54]FM_GetShiftState done [00:19:54]KKMCreateXReportDocument [00:19:54]Load OK [00:19:54]Malloc new data [00:19:54]MH_GetDate [00:19:54]Write to MH i2c: F0 00 00 B9 0D B5 [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: F0 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: F0 09 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: F0 09 00 B9 0D 00 AB C6 B7 67 7E 41 4F 65 C0 [00:19:54]Malloc new data [00:19:54]Malloc new data [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 11 00 00 [00:19:54]Write to MH i2c: E2 08 00 BA 0D 80 11 00 00 00 00 00 00 41 [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 17 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 17 00 BA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 94 [00:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_GetFieldsCounters [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 13 00 00 [00:19:54]Write to MH i2c: E2 08 00 BB 0D 80 13 00 00 00 00 00 00 44 [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 62 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 62 00 BB 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 D8 [00:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_GetFieldsCounters done [00:19:54]Malloc new data [00:19:54]Malloc new data [00:19:54]Malloc new data [00:19:54]KKMCreateXReportDocument OK [00:19:54]KKMSetXReportData OK [00:19:54]KKMPrepareXReportFMData [00:19:54]SAM_PROTO_GetShiftData [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 13 02 00 [00:19:54]Write to MH i2c: E2 08 00 BC 0D 80 13 02 00 00 00 00 00 47 [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 FD 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 FD 00 BC 0D 00 B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 98 [00:19:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:55]wFMCommunicate OK [00:19:55]wFMCommunicate request_size=4 [00:19:55]MH_SAM_APDU [00:19:55]CAPDU: 80 17 00 00 [00:19:55]Write to MH i2c: E2 08 00 BD 0D 80 17 00 00 00 00 00 00 4A [00:19:55]OFD Sender: No OFD packet to send [00:19:55]Write i2c OK [00:19:55]MH_I2C_Read... [00:19:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:55]Read from MH i2c: E2 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 FD 00 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 FD 00 BD 0D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 63 [00:19:55]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:19:55]wFMCommunicate OK [00:19:55]wFMCommunicate request_size=4 [00:19:55]MH_SAM_APDU [00:19:55]CAPDU: 80 17 00 00 [00:19:55]Write to MH i2c: E2 08 00 BE 0D 80 17 00 00 00 00 00 00 4B [00:19:55]Write i2c OK [00:19:55]MH_I2C_Read... [00:19:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:55]Read from MH i2c: E2 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 FD 00 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 FD 00 BE 0D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 04 [00:19:55]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:19:56]wFMCommunicate OK [00:19:56]wFMCommunicate request_size=4 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 17 00 00 [00:19:56]Write to MH i2c: E2 08 00 BF 0D 80 17 00 00 00 00 00 00 4C [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 FD 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 FD 00 BF 0D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C4 [00:19:56]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:56]wFMCommunicate OK [00:19:56]wFMCommunicate request_size=4 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 17 00 00 [00:19:56]Write to MH i2c: E2 08 00 C0 0D 80 17 00 00 00 00 00 00 4D [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 CE 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 CE 00 C0 0D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 32 [00:19:56]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:56]wFMCommunicate OK [00:19:56]SAM_PROTO_GetShiftData done [00:19:56]1194 (1197) - счетчики итогов смены [00:19:56] 1134 (4) - 305 - количество чеков со всеми признаками расчетов [00:19:56] 1129 (158) - счетчики операций «приход» [00:19:56] 1135 (4) - 305 - количество чеков по признаку расчетов [00:19:56] 1201 (4) - 285216.92 - общая итоговая сумма в чеках [00:19:56] 1136 (4) - 225563.00 - итоговая сумма в чеках наличными [00:19:56] 1138 (3) - 59653.92 - итоговая сумма в чеках безналичными [00:19:56] 1024 (123) - суммы налогов [00:19:56] 1006 (9) - суммы НДС [00:19:56] 1010 (1) - 0% - код ставки НДС [00:19:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:56] 1006 (12) - суммы НДС [00:19:56] 1010 (1) - 12% - код ставки НДС [00:19:56] 1011 (3) - 30295.39 - сумма НДС по ставке [00:19:56] 1007 (9) - суммы НСП [00:19:56] 1014 (1) - 0% - код ставки НСП [00:19:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:56] 1007 (12) - суммы НСП [00:19:56] 1014 (1) - 1% - код ставки НСП [00:19:56] 1015 (3) - 2524.54 - сумма НСП по ставке [00:19:56] 1007 (9) - суммы НСП [00:19:56] 1014 (1) - 2% - код ставки НСП [00:19:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:56] 1007 (9) - суммы НСП [00:19:56] 1014 (1) - 3% - код ставки НСП [00:19:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:56] 1007 (9) - суммы НСП [00:19:56] 1014 (1) - 5% - код ставки НСП [00:19:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:56] 1007 (9) - суммы НСП [00:19:56] 1014 (1) - 0,50% - код ставки НСП [00:19:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:56] 1007 (9) - суммы НСП [00:19:56] 1014 (1) - 1,50% - код ставки НСП [00:19:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:56] 1130 (141) - счетчики операций «возврат прихода» [00:19:56] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:56] 1024 (117) - суммы налогов [00:19:56] 1006 (9) - суммы НДС [00:19:56] 1010 (1) - 0% - код ставки НДС [00:19:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:56] 1006 (9) - суммы НДС [00:19:56] 1010 (1) - 12% - код ставки НДС [00:19:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:56] 1007 (9) - суммы НСП [00:19:56] 1014 (1) - 0% - код ставки НСП [00:19:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 1% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 2% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 3% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 5% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 0,50% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 1,50% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1131 (141) - счетчики операций «расход» [00:19:57] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:57] 1024 (117) - суммы налогов [00:19:57] 1006 (9) - суммы НДС [00:19:57] 1010 (1) - 0% - код ставки НДС [00:19:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:57] 1006 (9) - суммы НДС [00:19:57] 1010 (1) - 12% - код ставки НДС [00:19:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 0% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 1% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 2% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 3% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 5% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 0,50% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 1,50% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1132 (141) - счетчики операций «возврат расхода» [00:19:57] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:57] 1024 (117) - суммы налогов [00:19:57] 1006 (9) - суммы НДС [00:19:57] 1010 (1) - 0% - код ставки НДС [00:19:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:57] 1006 (9) - суммы НДС [00:19:57] 1010 (1) - 12% - код ставки НДС [00:19:57] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 0% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 1% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 2% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 3% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 5% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 0,50% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1007 (9) - суммы НСП [00:19:57] 1014 (1) - 1,50% - код ставки НСП [00:19:57] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:57] 1133 (588) - - счетчики коррекции - не используются [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1194 (04AA) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1134 (046E) [00:19:57]Malloc new data [00:19:57]Processing tag 1129 (0469) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1135 (046F) [00:19:57]Malloc new data [00:19:57]Processing tag 1201 (04B1) [00:19:57]Malloc new data [00:19:57]Processing tag 1136 (0470) [00:19:57]Malloc new data [00:19:57]Processing tag 1138 (0472) [00:19:57]Malloc new data [00:19:57]Processing tag 1024 (0400) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1006 (03EE) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1010 (03F2) [00:19:57]Malloc new data [00:19:57]Processing tag 1011 (03F3) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1006 (03EE) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1010 (03F2) [00:19:57]Malloc new data [00:19:57]Processing tag 1011 (03F3) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]SetTLVBufToDocument err=0 [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1130 (046A) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1135 (046F) [00:19:57]Malloc new data [00:19:57]Processing tag 1201 (04B1) [00:19:57]Malloc new data [00:19:57]Processing tag 1136 (0470) [00:19:57]Malloc new data [00:19:57]Processing tag 1138 (0472) [00:19:57]Malloc new data [00:19:57]Processing tag 1024 (0400) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1006 (03EE) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1010 (03F2) [00:19:57]Malloc new data [00:19:57]Processing tag 1011 (03F3) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1006 (03EE) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1010 (03F2) [00:19:57]Malloc new data [00:19:57]Processing tag 1011 (03F3) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]SetTLVBufToDocument err=0 [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1131 (046B) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1135 (046F) [00:19:57]Malloc new data [00:19:57]Processing tag 1201 (04B1) [00:19:57]Malloc new data [00:19:57]Processing tag 1136 (0470) [00:19:57]Malloc new data [00:19:57]Processing tag 1138 (0472) [00:19:57]Malloc new data [00:19:57]Processing tag 1024 (0400) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1006 (03EE) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1010 (03F2) [00:19:57]Malloc new data [00:19:57]Processing tag 1011 (03F3) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1006 (03EE) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1010 (03F2) [00:19:57]Malloc new data [00:19:57]Processing tag 1011 (03F3) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1007 (03EF) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1014 (03F6) [00:19:57]Malloc new data [00:19:57]Processing tag 1015 (03F7) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]SetTLVBufToDocument err=0 [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1132 (046C) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1135 (046F) [00:19:57]Malloc new data [00:19:57]Processing tag 1201 (04B1) [00:19:57]Malloc new data [00:19:57]Processing tag 1136 (0470) [00:19:57]Malloc new data [00:19:57]Processing tag 1138 (0472) [00:19:57]Malloc new data [00:19:57]Processing tag 1024 (0400) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1006 (03EE) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1010 (03F2) [00:19:57]Malloc new data [00:19:57]Processing tag 1011 (03F3) [00:19:57]Malloc new data [00:19:57]SetTLVBufToDocument err=0 [00:19:57]Processing tag 1006 (03EE) [00:19:57]Load OK [00:19:57]SetTLVBufToDocument [00:19:57]Processing tag 1010 (03F2) [00:19:58]Malloc new data [00:19:58]Processing tag 1011 (03F3) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Processing tag 1007 (03EF) [00:19:58]Load OK [00:19:58]SetTLVBufToDocument [00:19:58]Processing tag 1014 (03F6) [00:19:58]Malloc new data [00:19:58]Processing tag 1015 (03F7) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Processing tag 1007 (03EF) [00:19:58]Load OK [00:19:58]SetTLVBufToDocument [00:19:58]Processing tag 1014 (03F6) [00:19:58]Malloc new data [00:19:58]Processing tag 1015 (03F7) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Processing tag 1007 (03EF) [00:19:58]Load OK [00:19:58]SetTLVBufToDocument [00:19:58]Processing tag 1014 (03F6) [00:19:58]Malloc new data [00:19:58]Processing tag 1015 (03F7) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Processing tag 1007 (03EF) [00:19:58]Load OK [00:19:58]SetTLVBufToDocument [00:19:58]Processing tag 1014 (03F6) [00:19:58]Malloc new data [00:19:58]Processing tag 1015 (03F7) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Processing tag 1007 (03EF) [00:19:58]Load OK [00:19:58]SetTLVBufToDocument [00:19:58]Processing tag 1014 (03F6) [00:19:58]Malloc new data [00:19:58]Processing tag 1015 (03F7) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Processing tag 1007 (03EF) [00:19:58]Load OK [00:19:58]SetTLVBufToDocument [00:19:58]Processing tag 1014 (03F6) [00:19:58]Malloc new data [00:19:58]Processing tag 1015 (03F7) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Processing tag 1007 (03EF) [00:19:58]Load OK [00:19:58]SetTLVBufToDocument [00:19:58]Processing tag 1014 (03F6) [00:19:58]Malloc new data [00:19:58]Processing tag 1015 (03F7) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]SetTLVBufToDocument err=0 [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Processing tag 1133 (046D) [00:19:58]Malloc new data [00:19:58]SetTLVBufToDocument err=0 [00:19:58]SetTLVBufToDocument err=0 [00:19:58]Malloc new data [00:19:58]SAM_PROTO_GetFMData [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 13 03 00 [00:19:58]Write to MH i2c: E2 08 00 C1 0D 80 13 03 00 00 00 00 00 4D [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:58]Read from MH i2c: E2 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 C1 0D 00 C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 27 [00:19:58]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:19:58]wFMCommunicate OK [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 17 00 00 [00:19:58]Write to MH i2c: E2 08 00 C2 0D 80 17 00 00 00 00 00 00 4F [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:58]Read from MH i2c: E2 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 C2 0D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 18 [00:19:59]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:59]wFMCommunicate OK [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 17 00 00 [00:19:59]Write to MH i2c: E2 08 00 C3 0D 80 17 00 00 00 00 00 00 50 [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 FD 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 FD 00 C3 0D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F0 [00:19:59]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:59]wFMCommunicate OK [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 17 00 00 [00:19:59]Write to MH i2c: E2 08 00 C4 0D 80 17 00 00 00 00 00 00 51 [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 C4 0D 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [00:20:00]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:00]wFMCommunicate OK [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 17 00 00 [00:20:00]Write to MH i2c: E2 08 00 C5 0D 80 17 00 00 00 00 00 00 52 [00:20:00]OFD Sender: No OFD packet to send [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 DE 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 DE 00 C5 0D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 31 [00:20:00]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:00]wFMCommunicate OK [00:20:00]SAM_PROTO_GetFMData done [00:20:00]FM_GetFMData:85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 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 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:01]oper:6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:01]total:6B AA 74 1D 04 [00:20:01]Malloc new data [00:20:01]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 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 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:01]total:9C 8A 38 [00:20:01]Malloc new data [00:20:01]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:01]total: [00:20:01]Malloc new data [00:20:01]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:01]total: [00:20:01]Malloc new data [00:20:01]KKMPrepareXReportFMData err=0 [00:20:01]Х отчет ИНН: 02508201610067 Кассир: Арапов Н. 21.02.2025 00:19 Смена: 522 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Всего чеков: 305 ИТОГИ ПРИХОД Чеков: 305 Общий итог: 285216.92 Итого наличными: 225563.00 Итого безнал.: 59653.92 НДС 0% : 0.00 НДС 12% : 30295.39 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2524.54 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 225563.00 НС Приход: 176740542.51 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871826 [00:20:01]StoreToDocumentArchive [00:20:01]MH_GetDate [00:20:01]Write to MH i2c: F0 00 00 C6 0D C2 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: F0 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: F0 09 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: F0 09 00 C6 0D 00 B3 C6 B7 67 7E 41 4F 65 D5 [00:20:01]shift 522 fd 1740097203 [00:20:01]Create dir for shift 0522 [00:20:01]save to /storage/0522/doc_1740097203 [00:20:01]save last doc name /storage/0522/doc_1740097203 to /storage/kkm_last_doc_name [00:20:01]save OK [00:20:01]Clear old archive folders... [00:20:01]NVStorageSaveData kkm_last_timestamp [00:20:01]File name is /storage/kkm_last_timestamp [00:20:01]Write 4 bytes [00:20:01]NVStorageSaveData done [00:20:01]ExternCall_PrintAddStr [00:20:01]wPrintStart [00:20:01]Write to MH i2c: 01 00 00 C7 0D D4 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: 01 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: 01 07 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 FF 0F E9 [00:20:01]RasterBufferAndPrint [00:20:01]line Х отчет [00:20:01]line ИНН: 02508201610067 [00:20:01]line Кассир: Арапов Н. [00:20:01]line 21.02.2025 00:19 [00:20:01]line Смена: 522 [00:20:01]line РНМ: 0000000000091857 [00:20:01]line ЗНМ: 0300000118 [00:20:01]line СНО: Общий режим [00:20:01]line Всего чеков: 305 [00:20:01]line ИТОГИ ПРИХОД [00:20:01]line Чеков: 305 [00:20:01]line Общий итог: 285216.92 [00:20:01]line Итого наличными: 225563.00 [00:20:01]line Итого безнал.: 59653.92 [00:20:01]line НДС 0% : 0.00 [00:20:01]line НДС 12% : 30295.39 [00:20:01]line НСП 0% : 0.00 [00:20:01]line НСП 1,50% : 0.00 [00:20:01]line НСП 0,50% : 0.00 [00:20:01]line НСП 5% : 0.00 [00:20:01]line НСП 3% : 0.00 [00:20:01]line НСП 2% : 0.00 [00:20:01]line НСП 1% : 2524.54 [00:20:01]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:20:01]line Чеков: 0 [00:20:01]line Общий итог: 0.00 [00:20:01]line Итого наличными: 0.00 [00:20:01]line Итого безнал.: 0.00 [00:20:01]line НДС 0% : 0.00 [00:20:01]line НДС 12% : 0.00 [00:20:01]line НСП 0% : 0.00 [00:20:01]line НСП 1,50% : 0.00 [00:20:01]line НСП 0,50% : 0.00 [00:20:01]line НСП 5% : 0.00 [00:20:01]line НСП 3% : 0.00 [00:20:01]line НСП 2% : 0.00 [00:20:01]line НСП 1% : 0.00 [00:20:01]line ИТОГИ РАСХОД [00:20:01]line Чеков: 0 [00:20:01]line Общий итог: 0.00 [00:20:01]line Итого наличными: 0.00 [00:20:01]line Итого безнал.: 0.00 [00:20:01]line НДС 0% : 0.00 [00:20:01]line НДС 12% : 0.00 [00:20:01]line НСП 0% : 0.00 [00:20:01]line НСП 1,50% : 0.00 [00:20:01]line НСП 0,50% : 0.00 [00:20:01]line НСП 5% : 0.00 [00:20:01]line НСП 3% : 0.00 [00:20:01]line НСП 2% : 0.00 [00:20:01]line НСП 1% : 0.00 [00:20:01]line ИТОГИ ВОЗВРАТ РАСХОДА [00:20:01]line Чеков: 0 [00:20:01]line Общий итог: 0.00 [00:20:01]line Итого наличными: 0.00 [00:20:01]line Итого безнал.: 0.00 [00:20:01]line НДС 0% : 0.00 [00:20:01]line НДС 12% : 0.00 [00:20:01]line НСП 0% : 0.00 [00:20:01]line НСП 1,50% : 0.00 [00:20:01]line НСП 0,50% : 0.00 [00:20:01]line НСП 5% : 0.00 [00:20:01]line НСП 3% : 0.00 [00:20:01]line НСП 2% : 0.00 [00:20:01]line НСП 1% : 0.00 [00:20:01]line Сумма внесений: 0.00 [00:20:01]line Сумма выплат: 0.00 [00:20:01]line Нал. в кассе: 225563.00 [00:20:01]line НС Приход: 176740542.51 [00:20:01]line НС Возвр.Прихода: 37055.00 [00:20:01]line НС Расход: 0.00 [00:20:01]line НС Возвр.Расхода: 0.00 [00:20:01]line ФМ: 0000000000871826 [00:20:01]written 0, free lines is 4095 [00:20:02]Write to MH i2c: 01 00 00 12 0E 20 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 07 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: 01 07 00 12 0E 00 00 00 00 00 0B 0B 3D [00:20:02]RasterBufferAndPrint [00:20:02]line [00:20:02]line [00:20:02]line [00:20:02]line [00:20:02]line [00:20:02]written 0, free lines is 2863 [00:20:02]MH_Cut [00:20:02]Write to MH i2c: D1 01 00 19 0E 01 F9 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: D1 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: D1 01 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: D1 01 00 19 0E 00 F8 [00:20:02]Write to MH i2c: 01 00 00 1A 0E 28 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:03]*** Cut start [00:20:03]*** Partial cut [00:20:03]*** CUTSNS_PIN = 1 [00:20:03]*** CUTSNS_PIN = 0 [00:20:03]*** Brake cut motor [00:20:04]Read from MH i2c: 01 [00:20:04]MH_I2C_Read... [00:20:04]*** Stop cut motor [00:20:04]*** Cut end [00:20:04]Read from MH i2c: 01 07 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: 01 07 00 1A 0E 00 00 00 00 00 FF 0F 3D [00:20:04]process_action x_report done [00:20:04]requested_data is exist [00:20:04]produce_requested_data [00:20:04]requested_item fd.num is exist - process it [00:20:04]SAM_PROTO_GetFieldsCounters [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 13 00 00 [00:20:04]Write to MH i2c: E2 08 00 1B 0E 80 13 00 00 00 00 00 00 A5 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 62 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 62 00 1B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 39 [00:20:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 [00:20:04]wFMCommunicate OK [00:20:04]SAM_PROTO_GetFieldsCounters done [00:20:04]requested_item shift.num is exist - process it [00:20:04]requested_item shift.opened is exist - process it [00:20:04]req_shift_opened [00:20:04]FM_GetShiftState [00:20:04]SAM_PROTO_GetShiftState [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 13 01 00 [00:20:04]Write to MH i2c: E2 08 00 1C 0E 80 13 01 00 00 00 00 00 A7 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 0E 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 0E 00 1C 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 F9 [00:20:04]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:20:04]wFMCommunicate OK [00:20:04]SAM_PROTO_GetShiftState done [00:20:04]FM_GetShiftState done [00:20:04]req_shift_opened done [00:20:04]requested_item shift.open_date is exist - process it [00:20:04]req_shift_open_date [00:20:04]req_shift_open_date done [00:20:04]produce_requested_data done [00:20:04]produce_requested_data return {"fd.num":187504,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [00:20:04]process_action_free x_report [00:20:04]json_value_free [00:20:04]json_value_free done [00:20:04]process_json_proto returns [00:20:04]Send response to host [00:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187504,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [00:20:04]free response buf [00:20:04]execute_script done [00:20:04]execute_script returns [00:20:04]free content buf [00:20:04]Sock 7.Close socket [00:20:04]Sock 7.Thread stoped [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:36]accept exits with 9 [00:20:36]New connection [00:20:36]New thread 3067223396 created [00:20:36]Thread 3067080036 joined [00:20:36]Waiting for new connection... [00:20:36] Sock 9.Parse request [00:20:36]Sock 9.Check first char [00:20:36]Sock 9.First char is OK [00:20:36]request: POST /json_proto HTTP/1.0 [00:20:36]Method: POST [00:20:36]URL: /json_proto [00:20:36]Method is POST - this is cgi request [00:20:36]url: /json_proto [00:20:36]query_string will be loaded in cgi processing [00:20:36]execute_cgi json_proto POST (null) [00:20:36]execute_cgi path=json_proto method=POST [00:20:36]POST find Content-Length [00:20:36]Host: 172.17.46.131:8080 [00:20:36]Content-Length: 215 [00:20:36]Content-Type: application/json [00:20:36] [00:20:36]POST finish read [00:20:36]Found Content-Length = 215 [00:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:36]execute_script... [00:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:36]POST & json_proto [00:20:36]process_json_proto [00:20:36]json parsed OK: [00:20:36]protocol is kg_v1.0 [00:20:36]action value=get_value [00:20:36]process_action get_value [00:20:36]cmd_get_value [00:20:36]process_action get_value done [00:20:36]requested_data is exist [00:20:36]produce_requested_data [00:20:36]requested_item kkm.sn is exist - process it [00:20:36]requested_item kkm.ver is exist - process it [00:20:36]requested_item fm.sn is exist - process it [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 11 00 00 [00:20:36]Write to MH i2c: E2 08 00 1D 0E 80 11 00 00 00 00 00 00 A5 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 17 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 17 00 1D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [00:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:20:36]wFMCommunicate OK [00:20:36]requested_item fd.num is exist - process it [00:20:36]SAM_PROTO_GetFieldsCounters [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 13 00 00 [00:20:36]Write to MH i2c: E2 08 00 1E 0E 80 13 00 00 00 00 00 00 A8 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 62 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 62 00 1E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 3C [00:20:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 DC 02 00 0E 04 04 00 88 02 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 [00:20:36]wFMCommunicate OK [00:20:36]SAM_PROTO_GetFieldsCounters done [00:20:36]requested_item shift.num is exist - process it [00:20:36]requested_item shift.opened is exist - process it [00:20:36]req_shift_opened [00:20:36]FM_GetShiftState [00:20:36]SAM_PROTO_GetShiftState [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 13 01 00 [00:20:36]Write to MH i2c: E2 08 00 1F 0E 80 13 01 00 00 00 00 00 AA [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 0E 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 0E 00 1F 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 FC [00:20:36]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:20:36]wFMCommunicate OK [00:20:36]SAM_PROTO_GetShiftState done [00:20:36]FM_GetShiftState done [00:20:36]req_shift_opened done [00:20:36]requested_item shift.open_date is exist - process it [00:20:36]req_shift_open_date [00:20:36]req_shift_open_date done [00:20:36]produce_requested_data done [00:20:36]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187504,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [00:20:36]process_action_free get_value [00:20:36]json_value_free [00:20:36]json_value_free done [00:20:36]process_json_proto returns [00:20:36]Send response to host [00:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187504,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [00:20:36]free response buf [00:20:36]execute_script done [00:20:36]execute_script returns [00:20:36]free content buf [00:20:36]Sock 9.Close socket [00:20:36]Sock 9.Thread stoped [00:20:36]accept exits with 7 [00:20:36]New connection [00:20:36]New thread 3067080036 created [00:20:36]Thread 3067223396 joined [00:20:36]Waiting for new connection... [00:20:36] Sock 7.Parse request [00:20:36]Sock 7.Check first char [00:20:36]Sock 7.First char is OK [00:20:36]request: POST /json_proto HTTP/1.0 [00:20:36]Method: POST [00:20:36]URL: /json_proto [00:20:36]Method is POST - this is cgi request [00:20:36]url: /json_proto [00:20:36]query_string will be loaded in cgi processing [00:20:36]execute_cgi json_proto POST (null) [00:20:36]execute_cgi path=json_proto method=POST [00:20:36]POST find Content-Length [00:20:36]Host: 172.17.46.131:8080 [00:20:36]Content-Length: 331 [00:20:36]Content-Type: application/json [00:20:36] [00:20:36]POST finish read [00:20:36]Found Content-Length = 331 [00:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:36]execute_script... [00:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:36]POST & json_proto [00:20:36]process_json_proto [00:20:36]json parsed OK: [00:20:36]protocol is kg_v1.0 [00:20:36]action value=get_value [00:20:36]process_action get_value [00:20:36]cmd_get_value [00:20:36]process_action get_value done [00:20:36]requested_data is exist [00:20:36]produce_requested_data [00:20:36]requested_item fm.sale.total is exist - process it [00:20:36]SAM_PROTO_GetFMData [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 13 03 00 [00:20:36]Write to MH i2c: E2 08 00 20 0E 80 13 03 00 00 00 00 00 AD [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:37]Read from MH i2c: E2 FD 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 20 0E 00 C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 87 [00:20:37]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:20:37]wFMCommunicate OK [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 17 00 00 [00:20:37]Write to MH i2c: E2 08 00 21 0E 80 17 00 00 00 00 00 00 AF [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 21 0E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 78 [00:20:37]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:37]wFMCommunicate OK [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 17 00 00 [00:20:37]Write to MH i2c: E2 08 00 22 0E 80 17 00 00 00 00 00 00 B0 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 22 0E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 50 [00:20:38]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 23 0E 80 17 00 00 00 00 00 00 B1 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 23 0E 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 36 [00:20:38]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 24 0E 80 17 00 00 00 00 00 00 B2 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 DE 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 DE 00 24 0E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 [00:20:38]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:38]wFMCommunicate OK [00:20:38]SAM_PROTO_GetFMData done [00:20:38]requested_item fm.sale_refund.total is exist - process it [00:20:38]requested_item fm.buy.total is exist - process it [00:20:38]requested_item shift.sale.total is exist - process it [00:20:38]SAM_PROTO_GetShiftData [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 13 02 00 [00:20:38]Write to MH i2c: E2 08 00 25 0E 80 13 02 00 00 00 00 00 B1 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 25 0E 00 B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 02 [00:20:39]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 26 0E 80 17 00 00 00 00 00 00 B4 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 26 0E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 CD [00:20:39]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:20:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 27 0E 80 17 00 00 00 00 00 00 B5 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 27 0E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 6E [00:20:39]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 28 0E 80 17 00 00 00 00 00 00 B6 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 28 0E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 2E [00:20:40]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:40]wFMCommunicate OK [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 17 00 00 [00:20:40]Write to MH i2c: E2 08 00 29 0E 80 17 00 00 00 00 00 00 B7 [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:40]OFD Sender: No OFD packet to send [00:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 CE 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 CE 00 29 0E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [00:20:40]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:40]wFMCommunicate OK [00:20:40]SAM_PROTO_GetShiftData done [00:20:40]requested_item shift.sale.total_cash is exist - process it [00:20:40]requested_item shift.sale_refund.total is exist - process it [00:20:40]requested_item shift.sale_refund.total_cash is exist - process it [00:20:40]requested_item shift.buy.total is exist - process it [00:20:40]requested_item shift.buy.total_cash is exist - process it [00:20:40]produce_requested_data done [00:20:40]produce_requested_data return {"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:40]process_action_free get_value [00:20:40]json_value_free [00:20:40]json_value_free done [00:20:40]process_json_proto returns [00:20:40]Send response to host [00:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:40]free response buf [00:20:40]execute_script done [00:20:40]execute_script returns [00:20:40]free content buf [00:20:40]Sock 7.Close socket [00:20:40]Sock 7.Thread stoped [00:20:40]accept exits with 9 [00:20:40]New connection [00:20:40]New thread 3067223396 created [00:20:40]Thread 3067080036 joined [00:20:40]Waiting for new connection... [00:20:40] Sock 9.Parse request [00:20:40]Sock 9.Check first char [00:20:40]Sock 9.First char is OK [00:20:40]request: POST /json_proto HTTP/1.0 [00:20:40]Method: POST [00:20:40]URL: /json_proto [00:20:40]Method is POST - this is cgi request [00:20:40]url: /json_proto [00:20:40]query_string will be loaded in cgi processing [00:20:40]execute_cgi json_proto POST (null) [00:20:40]execute_cgi path=json_proto method=POST [00:20:40]POST find Content-Length [00:20:40]Host: 172.17.46.131:8080 [00:20:40]Content-Length: 331 [00:20:40]Content-Type: application/json [00:20:40] [00:20:40]POST finish read [00:20:40]Found Content-Length = 331 [00:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:40]execute_script... [00:20:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:40]POST & json_proto [00:20:40]process_json_proto [00:20:40]json parsed OK: [00:20:40]protocol is kg_v1.0 [00:20:40]action value=get_value [00:20:40]process_action get_value [00:20:40]cmd_get_value [00:20:40]process_action get_value done [00:20:40]requested_data is exist [00:20:40]produce_requested_data [00:20:40]requested_item fm.sale.total is exist - process it [00:20:40]SAM_PROTO_GetFMData [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 13 03 00 [00:20:40]Write to MH i2c: E2 08 00 2A 0E 80 13 03 00 00 00 00 00 B7 [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 2A 0E 00 C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 91 [00:20:41]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 17 00 00 [00:20:41]Write to MH i2c: E2 08 00 2B 0E 80 17 00 00 00 00 00 00 B9 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 2B 0E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [00:20:41]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 17 00 00 [00:20:41]Write to MH i2c: E2 08 00 2C 0E 80 17 00 00 00 00 00 00 BA [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:42]Read from MH i2c: E2 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 2C 0E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 5A [00:20:42]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:20:42]wFMCommunicate OK [00:20:42]wFMCommunicate request_size=4 [00:20:42]MH_SAM_APDU [00:20:42]CAPDU: 80 17 00 00 [00:20:42]Write to MH i2c: E2 08 00 2D 0E 80 17 00 00 00 00 00 00 BB [00:20:42]Write i2c OK [00:20:42]MH_I2C_Read... [00:20:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:42]Read from MH i2c: E2 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 2D 0E 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [00:20:42]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:42]wFMCommunicate OK [00:20:42]wFMCommunicate request_size=4 [00:20:42]MH_SAM_APDU [00:20:42]CAPDU: 80 17 00 00 [00:20:42]Write to MH i2c: E2 08 00 2E 0E 80 17 00 00 00 00 00 00 BC [00:20:42]Write i2c OK [00:20:42]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 [00:20:43]MH_I2C_Read... [00:20:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:43]Read from MH i2c: E2 DE 00 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 DE 00 2E 0E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B [00:20:43]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:43]wFMCommunicate OK [00:20:43]SAM_PROTO_GetFMData done [00:20:43]requested_item fm.sale_refund.total is exist - process it [00:20:43]requested_item fm.buy.total is exist - process it [00:20:43]requested_item shift.sale.total is exist - process it [00:20:43]SAM_PROTO_GetShiftData [00:20:43]wFMCommunicate request_size=4 [00:20:43]MH_SAM_APDU [00:20:43]CAPDU: 80 13 02 00 [00:20:43]Write to MH i2c: E2 08 00 2F 0E 80 13 02 00 00 00 00 00 BB [00:20:43]Write i2c OK [00:20:43]MH_I2C_Read... [00:20:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:43]Read from MH i2c: E2 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 FD 00 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 FD 00 2F 0E 00 B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 0C [00:20:43]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:43]wFMCommunicate OK [00:20:43]wFMCommunicate request_size=4 [00:20:43]MH_SAM_APDU [00:20:43]CAPDU: 80 17 00 00 [00:20:43]Write to MH i2c: E2 08 00 30 0E 80 17 00 00 00 00 00 00 BE [00:20:43]Write i2c OK [00:20:43]MH_I2C_Read... [00:20:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:44]Read from MH i2c: E2 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 FD 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 FD 00 30 0E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 D7 [00:20:44]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:20:44]wFMCommunicate OK [00:20:44]wFMCommunicate request_size=4 [00:20:44]MH_SAM_APDU [00:20:44]CAPDU: 80 17 00 00 [00:20:44]Write to MH i2c: E2 08 00 31 0E 80 17 00 00 00 00 00 00 BF [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:44]Read from MH i2c: E2 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 FD 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 FD 00 31 0E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 78 [00:20:44]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:44]wFMCommunicate OK [00:20:44]wFMCommunicate request_size=4 [00:20:44]MH_SAM_APDU [00:20:44]CAPDU: 80 17 00 00 [00:20:44]Write to MH i2c: E2 08 00 32 0E 80 17 00 00 00 00 00 00 C0 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:45]Read from MH i2c: E2 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: E2 FD 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: E2 FD 00 32 0E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 38 [00:20:45]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:45]wFMCommunicate OK [00:20:45]wFMCommunicate request_size=4 [00:20:45]MH_SAM_APDU [00:20:45]CAPDU: 80 17 00 00 [00:20:45]Write to MH i2c: E2 08 00 33 0E 80 17 00 00 00 00 00 00 C1 [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:45]OFD Sender: No OFD packet to send [00:20:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:20:45]Read from MH i2c: E2 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: E2 CE 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: E2 CE 00 33 0E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A6 [00:20:45]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:45]wFMCommunicate OK [00:20:45]SAM_PROTO_GetShiftData done [00:20:45]requested_item shift.sale.total_cash is exist - process it [00:20:45]requested_item shift.sale_refund.total is exist - process it [00:20:45]requested_item shift.sale_refund.total_cash is exist - process it [00:20:45]requested_item shift.buy.total is exist - process it [00:20:45]requested_item shift.buy.total_cash is exist - process it [00:20:45]produce_requested_data done [00:20:45]produce_requested_data return {"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:45]process_action_free get_value [00:20:45]json_value_free [00:20:45]json_value_free done [00:20:45]process_json_proto returns [00:20:45]Send response to host [00:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:45]free response buf [00:20:45]execute_script done [00:20:45]execute_script returns [00:20:45]free content buf [00:20:45]Sock 9.Close socket [00:20:45]Sock 9.Thread stoped [00:20:45]accept exits with 7 [00:20:45]New connection [00:20:45]New thread 3067080036 created [00:20:45]Thread 3067223396 joined [00:20:45]Waiting for new connection... [00:20:45] Sock 7.Parse request [00:20:45]Sock 7.Check first char [00:20:45]Sock 7.First char is OK [00:20:45]request: POST /json_proto HTTP/1.0 [00:20:45]Method: POST [00:20:45]URL: /json_proto [00:20:45]Method is POST - this is cgi request [00:20:45]url: /json_proto [00:20:45]query_string will be loaded in cgi processing [00:20:45]execute_cgi json_proto POST (null) [00:20:45]execute_cgi path=json_proto method=POST [00:20:45]POST find Content-Length [00:20:45]Host: 172.17.46.131:8080 [00:20:45]Content-Length: 248 [00:20:45]Content-Type: application/json [00:20:45] [00:20:45]POST finish read [00:20:45]Found Content-Length = 248 [00:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:45]execute_script... [00:20:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:45]POST & json_proto [00:20:45]process_json_proto [00:20:45]json parsed OK: [00:20:45]protocol is kg_v1.0 [00:20:45]action value=close_shift [00:20:45]process_action close_shift [00:20:45]cmd_close_shift [00:20:45]MH_GetDate [00:20:45]Write to MH i2c: F0 00 00 34 0E 31 [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: F0 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: F0 09 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: F0 09 00 34 0E 00 DF C6 B7 67 7E 41 4F 65 70 [00:20:45]GetLastDocTimeStamp 1740097195 [00:20:45]current date 1740097247 [00:20:45]FM_GetShiftState [00:20:45]SAM_PROTO_GetShiftState [00:20:45]wFMCommunicate request_size=4 [00:20:45]MH_SAM_APDU [00:20:45]CAPDU: 80 13 01 00 [00:20:45]Write to MH i2c: E2 08 00 35 0E 80 13 01 00 00 00 00 00 C0 [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:45]Read from MH i2c: E2 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: E2 0E 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: E2 0E 00 35 0E 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 12 [00:20:45]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:20:45]wFMCommunicate OK [00:20:45]SAM_PROTO_GetShiftState done [00:20:45]FM_GetShiftState done [00:20:45]KKMCreateCloseShiftDocument [00:20:45]Load OK [00:20:45]Malloc new data [00:20:45]MH_GetDate [00:20:45]Write to MH i2c: F0 00 00 36 0E 33 [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: F0 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: F0 09 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: F0 09 00 36 0E 00 DF C6 B7 67 7E 41 4F 65 72 [00:20:45]Malloc new data [00:20:45]Malloc new data [00:20:45]Malloc new data [00:20:45]Malloc new data [00:20:45]KKMCreateCloseShiftDocument OK [00:20:45]KKMSetCloseShiftData OK [00:20:45]ProcessDocumentItem done err = 0, tmpTLVsize=67 [00:20:45]tlvbuf is 0209FA00 [00:20:45]KKMLoadAndSignCloseShiftData [00:20:45]SAM_PROTO_ProcessDocument [00:20:45]wFMCommunicate request_size=9 [00:20:45]MH_SAM_APDU [00:20:45]CAPDU: 80 15 01 00 04 05 00 43 00 [00:20:45]Write to MH i2c: E2 0C 00 37 0E 80 15 01 00 04 00 05 00 43 00 00 00 14 [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:45]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [00:20:46]RAPDU: 90 00 [00:20:46]wFMCommunicate OK [00:20:46]wFMCommunicate request_size=23 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:20:46]Write to MH i2c: E2 1A 00 38 0E 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 BB [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 38 0E 00 90 00 BA [00:20:46]RAPDU: 90 00 [00:20:46]wFMCommunicate OK [00:20:46]wFMCommunicate request_size=26 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 [00:20:46]Write to MH i2c: E2 1D 00 39 0E 80 15 02 00 15 00 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 00 00 AD [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 39 0E 00 90 00 BB [00:20:46]RAPDU: 90 00 [00:20:46]wFMCommunicate OK [00:20:46]wFMCommunicate request_size=13 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 15 02 00 08 F4 03 04 00 DF C6 B7 67 [00:20:46]Write to MH i2c: E2 10 00 3A 0E 80 15 02 00 08 00 F4 03 04 00 DF C6 B7 67 00 00 96 [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 3A 0E 00 90 00 BC [00:20:46]RAPDU: 90 00 [00:20:46]wFMCommunicate OK [00:20:46]wFMCommunicate request_size=25 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [00:20:46]Write to MH i2c: E2 1C 00 3B 0E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 30 [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 03 00 3B 0E 00 90 00 BD [00:20:46]RAPDU: 90 00 [00:20:46]wFMCommunicate OK [00:20:46]wFMCommunicate request_size=4 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 15 03 00 [00:20:46]Write to MH i2c: E2 08 00 3C 0E 80 15 03 00 00 00 00 00 CB [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 FD 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 FD 00 3C 0E 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 DC 02 00 0E 04 04 00 88 02 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 EE [00:20:47]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 DC 02 00 0E 04 04 00 88 02 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:20:47]wFMCommunicate OK [00:20:47]SAM_PROTO_ProcessDocument answer len = 1268 [00:20:47]SAM_PROTO_ProcessDocument remain to read = 1020 [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 17 00 00 [00:20:47]Write to MH i2c: E2 08 00 3D 0E 80 17 00 00 00 00 00 00 CB [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 3D 0E 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [00:20:47]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:47]wFMCommunicate OK [00:20:47]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:47]SAM_PROTO_ProcessDocument remain to read = 770 [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 17 00 00 [00:20:47]Write to MH i2c: E2 08 00 3E 0E 80 17 00 00 00 00 00 00 CC [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 3E 0E 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 2E [00:20:48]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:20:48]wFMCommunicate OK [00:20:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:48]SAM_PROTO_ProcessDocument remain to read = 520 [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 17 00 00 [00:20:48]Write to MH i2c: E2 08 00 3F 0E 80 17 00 00 00 00 00 00 CD [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 3F 0E 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 55 [00:20:48]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:48]wFMCommunicate OK [00:20:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:48]SAM_PROTO_ProcessDocument remain to read = 270 [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 17 00 00 [00:20:48]Write to MH i2c: E2 08 00 40 0E 80 17 00 00 00 00 00 00 CE [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 FD 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 FD 00 40 0E 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 98 [00:20:49]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:49]wFMCommunicate OK [00:20:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:49]SAM_PROTO_ProcessDocument remain to read = 20 [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 17 00 00 [00:20:49]Write to MH i2c: E2 08 00 41 0E 80 17 00 00 00 00 00 00 CF [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:20:49]E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 17 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 17 00 41 0E 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 51 B5 FF 39 56 ED 90 00 91 [00:20:49]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 51 B5 FF 39 56 ED 90 00 [00:20:49]wFMCommunicate OK [00:20:49]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:20:49]SAM_PROTO_ProcessDocument done [00:20:49]1209 (1) - 1.0 - номер версии ФФД [00:20:49]1041 (16) - 0000000000871826 - номер ФМ [00:20:49]1040 (4) - 187505 - номер ФД [00:20:49]1038 (4) - 648 - номер смены [00:20:49]1118 (4) - 305 - количество кассовых чеков за смену [00:20:49]1111 (4) - 307 - общее количество ФД за смену [00:20:49]1194 (1197) - счетчики итогов смены [00:20:49] 1134 (4) - 305 - количество чеков со всеми признаками расчетов [00:20:49] 1129 (158) - счетчики операций «приход» [00:20:49] 1135 (4) - 305 - количество чеков по признаку расчетов [00:20:49] 1201 (4) - 285216.92 - общая итоговая сумма в чеках [00:20:49] 1136 (4) - 225563.00 - итоговая сумма в чеках наличными [00:20:49] 1138 (3) - 59653.92 - итоговая сумма в чеках безналичными [00:20:49] 1024 (123) - суммы налогов [00:20:49] 1006 (9) - суммы НДС [00:20:49] 1010 (1) - 0% - код ставки НДС [00:20:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:49] 1006 (12) - суммы НДС [00:20:49] 1010 (1) - 12% - код ставки НДС [00:20:49] 1011 (3) - 30295.39 - сумма НДС по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 0% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (12) - суммы НСП [00:20:49] 1014 (1) - 1% - код ставки НСП [00:20:49] 1015 (3) - 2524.54 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 2% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 3% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 5% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 0,50% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 1,50% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1130 (141) - счетчики операций «возврат прихода» [00:20:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:49] 1024 (117) - суммы налогов [00:20:49] 1006 (9) - суммы НДС [00:20:49] 1010 (1) - 0% - код ставки НДС [00:20:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:49] 1006 (9) - суммы НДС [00:20:49] 1010 (1) - 12% - код ставки НДС [00:20:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 0% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 1% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 2% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 3% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 5% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 0,50% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 1,50% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1131 (141) - счетчики операций «расход» [00:20:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:49] 1024 (117) - суммы налогов [00:20:49] 1006 (9) - суммы НДС [00:20:49] 1010 (1) - 0% - код ставки НДС [00:20:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:49] 1006 (9) - суммы НДС [00:20:49] 1010 (1) - 12% - код ставки НДС [00:20:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 0% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 1% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 2% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 3% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 5% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 0,50% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 1,50% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1132 (141) - счетчики операций «возврат расхода» [00:20:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:49] 1024 (117) - суммы налогов [00:20:49] 1006 (9) - суммы НДС [00:20:49] 1010 (1) - 0% - код ставки НДС [00:20:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:49] 1006 (9) - суммы НДС [00:20:49] 1010 (1) - 12% - код ставки НДС [00:20:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 0% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 1% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 2% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 3% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 5% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 0,50% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1007 (9) - суммы НСП [00:20:49] 1014 (1) - 1,50% - код ставки НСП [00:20:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:49] 1133 (588) - - счетчики коррекции - не используются [00:20:49]1077 (6) - 89842112878317 - ФПД [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1209 (04B9) [00:20:49]Malloc new data [00:20:49]Processing tag 1041 (0411) [00:20:49]Processing tag 1040 (0410) [00:20:49]Malloc new data [00:20:49]Processing tag 1038 (040E) [00:20:49]Malloc new data [00:20:49]Processing tag 1118 (045E) [00:20:49]Malloc new data [00:20:49]Processing tag 1111 (0457) [00:20:49]Malloc new data [00:20:49]Processing tag 1194 (04AA) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1134 (046E) [00:20:49]Malloc new data [00:20:49]Processing tag 1129 (0469) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1135 (046F) [00:20:49]Malloc new data [00:20:49]Processing tag 1201 (04B1) [00:20:49]Malloc new data [00:20:49]Processing tag 1136 (0470) [00:20:49]Malloc new data [00:20:49]Processing tag 1138 (0472) [00:20:49]Malloc new data [00:20:49]Processing tag 1024 (0400) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1006 (03EE) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1010 (03F2) [00:20:49]Malloc new data [00:20:49]Processing tag 1011 (03F3) [00:20:49]Malloc new data [00:20:49]SetTLVBufToDocument err=0 [00:20:49]Processing tag 1006 (03EE) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1010 (03F2) [00:20:49]Malloc new data [00:20:49]Processing tag 1011 (03F3) [00:20:49]Malloc new data [00:20:49]SetTLVBufToDocument err=0 [00:20:49]Processing tag 1007 (03EF) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1014 (03F6) [00:20:49]Malloc new data [00:20:49]Processing tag 1015 (03F7) [00:20:49]Malloc new data [00:20:49]SetTLVBufToDocument err=0 [00:20:49]Processing tag 1007 (03EF) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1014 (03F6) [00:20:49]Malloc new data [00:20:49]Processing tag 1015 (03F7) [00:20:49]Malloc new data [00:20:49]SetTLVBufToDocument err=0 [00:20:49]Processing tag 1007 (03EF) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1014 (03F6) [00:20:49]Malloc new data [00:20:49]Processing tag 1015 (03F7) [00:20:49]Malloc new data [00:20:49]SetTLVBufToDocument err=0 [00:20:49]Processing tag 1007 (03EF) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1014 (03F6) [00:20:49]Malloc new data [00:20:49]Processing tag 1015 (03F7) [00:20:49]Malloc new data [00:20:49]SetTLVBufToDocument err=0 [00:20:49]Processing tag 1007 (03EF) [00:20:49]Load OK [00:20:49]SetTLVBufToDocument [00:20:49]Processing tag 1014 (03F6) [00:20:49]Malloc new data [00:20:49]Processing tag 1015 (03F7) [00:20:49]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]SetTLVBufToDocument err=0 [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1130 (046A) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1135 (046F) [00:20:50]Malloc new data [00:20:50]Processing tag 1201 (04B1) [00:20:50]Malloc new data [00:20:50]Processing tag 1136 (0470) [00:20:50]Malloc new data [00:20:50]Processing tag 1138 (0472) [00:20:50]Malloc new data [00:20:50]Processing tag 1024 (0400) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1006 (03EE) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1010 (03F2) [00:20:50]Malloc new data [00:20:50]Processing tag 1011 (03F3) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1006 (03EE) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1010 (03F2) [00:20:50]Malloc new data [00:20:50]Processing tag 1011 (03F3) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]SetTLVBufToDocument err=0 [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1131 (046B) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1135 (046F) [00:20:50]Malloc new data [00:20:50]Processing tag 1201 (04B1) [00:20:50]Malloc new data [00:20:50]Processing tag 1136 (0470) [00:20:50]Malloc new data [00:20:50]Processing tag 1138 (0472) [00:20:50]Malloc new data [00:20:50]Processing tag 1024 (0400) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1006 (03EE) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1010 (03F2) [00:20:50]Malloc new data [00:20:50]Processing tag 1011 (03F3) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1006 (03EE) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1010 (03F2) [00:20:50]Malloc new data [00:20:50]Processing tag 1011 (03F3) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]SetTLVBufToDocument err=0 [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1132 (046C) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1135 (046F) [00:20:50]Malloc new data [00:20:50]Processing tag 1201 (04B1) [00:20:50]Malloc new data [00:20:50]Processing tag 1136 (0470) [00:20:50]Malloc new data [00:20:50]Processing tag 1138 (0472) [00:20:50]Malloc new data [00:20:50]Processing tag 1024 (0400) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1006 (03EE) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1010 (03F2) [00:20:50]Malloc new data [00:20:50]Processing tag 1011 (03F3) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1006 (03EE) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1010 (03F2) [00:20:50]Malloc new data [00:20:50]Processing tag 1011 (03F3) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1007 (03EF) [00:20:50]Load OK [00:20:50]SetTLVBufToDocument [00:20:50]Processing tag 1014 (03F6) [00:20:50]Malloc new data [00:20:50]Processing tag 1015 (03F7) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]SetTLVBufToDocument err=0 [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1133 (046D) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Processing tag 1077 (0435) [00:20:50]Malloc new data [00:20:50]SetTLVBufToDocument err=0 [00:20:50]Malloc new data [00:20:50]SAM_PROTO_GetFMData [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 13 03 00 [00:20:50]Write to MH i2c: E2 08 00 42 0E 80 13 03 00 00 00 00 00 CF [00:20:50]OFD Sender: No OFD packet to send [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:51]Read from MH i2c: E2 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 42 0E 00 C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 A9 [00:20:51]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:20:51]wFMCommunicate OK [00:20:51]wFMCommunicate request_size=4 [00:20:51]MH_SAM_APDU [00:20:51]CAPDU: 80 17 00 00 [00:20:51]Write to MH i2c: E2 08 00 43 0E 80 17 00 00 00 00 00 00 D1 [00:20:51]Write i2c OK [00:20:51]MH_I2C_Read... [00:20:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:51]Read from MH i2c: E2 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 43 0E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [00:20:51]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:52]wFMCommunicate OK [00:20:52]wFMCommunicate request_size=4 [00:20:52]MH_SAM_APDU [00:20:52]CAPDU: 80 17 00 00 [00:20:52]Write to MH i2c: E2 08 00 44 0E 80 17 00 00 00 00 00 00 D2 [00:20:52]Write i2c OK [00:20:52]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:52]Read from MH i2c: E2 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 44 0E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 72 [00:20:52]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:20:52]wFMCommunicate OK [00:20:52]wFMCommunicate request_size=4 [00:20:52]MH_SAM_APDU [00:20:52]CAPDU: 80 17 00 00 [00:20:52]Write to MH i2c: E2 08 00 45 0E 80 17 00 00 00 00 00 00 D3 [00:20:52]Write i2c OK [00:20:52]MH_I2C_Read... [00:20:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:53]Read from MH i2c: E2 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 45 0E 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 58 [00:20:53]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:53]wFMCommunicate OK [00:20:53]wFMCommunicate request_size=4 [00:20:53]MH_SAM_APDU [00:20:53]CAPDU: 80 17 00 00 [00:20:53]Write to MH i2c: E2 08 00 46 0E 80 17 00 00 00 00 00 00 D4 [00:20:53]Write i2c OK [00:20:53]MH_I2C_Read... [00:20:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:53]Read from MH i2c: E2 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 DE 00 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 DE 00 46 0E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B3 [00:20:53]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:53]wFMCommunicate OK [00:20:53]SAM_PROTO_GetFMData done [00:20:53]Malloc new data [00:20:53]Malloc new data [00:20:53]Malloc new data [00:20:53]Malloc new data [00:20:53]KKMLoadAndSignCloseShiftData err=0 [00:20:53]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арапов Н. 21.02.2025 00:20 Смена: 648 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Чеков за смену: 305 ФД за смену: 307 Всего чеков: 305 ИТОГИ ПРИХОД Чеков: 305 Общий итог: 285216.92 Итого наличными: 225563.00 Итого безнал.: 59653.92 НДС 0% : 0.00 НДС 12% : 30295.39 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2524.54 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 225563.00 НС Приход: 176740542.51 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 187505 ФМ: 0000000000871826 ФПД: 89842112878317 [00:20:53]StoreToDocumentArchive [00:20:53]shift 648 fd 187505 [00:20:53]save to /storage/0648/doc_00187505 [00:20:53]save last doc name /storage/0648/doc_00187505 to /storage/kkm_last_doc_name [00:20:53]save OK [00:20:53]Clear old archive folders... [00:20:53]Remove dir /storage/0522 [00:20:53]opendir ok [00:20:53]file . [00:20:53]file .. [00:20:53]file doc_1740097203 [00:20:53]remove file /storage/0522/doc_1740097203 [00:20:53]remove dir /storage/0522 [00:20:53]NVStorageSaveData kkm_registers [00:20:53]File name is /storage/kkm_registers [00:20:53]Write 24 bytes [00:20:53]NVStorageSaveData done [00:20:53]NVStorageSaveData kkm_registers [00:20:53]File name is /storage/kkm_registers [00:20:53]Write 24 bytes [00:20:53]NVStorageSaveData done [00:20:53]ProcessDocumentItem done err = 0, tmpTLVsize=1378 [00:20:53]tlvbuf is 020DA220 [00:20:53]SAM_PROTO_ClearQueue [00:20:53]wFMCommunicate request_size=4 [00:20:53]MH_SAM_APDU [00:20:53]CAPDU: 80 09 00 00 [00:20:53]Write to MH i2c: E2 08 00 47 0E 80 09 00 00 00 00 00 00 C7 [00:20:54]Write i2c OK [00:20:54]MH_I2C_Read... [00:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:54]Read from MH i2c: E2 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 03 00 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [00:20:54]RAPDU: 90 00 [00:20:54]wFMCommunicate OK [00:20:54]SAM_PROTO_ClearQueue done [00:20:54]KKMCreateOFDPacket [00:20:54]OFDProtocolAddRootSTLVToBuf [00:20:54]FM_MakeSignedData [00:20:54]FM_MakeSignedData [00:20:54]SAM_PROTO_SignData [00:20:54]wFMCommunicate request_size=4 [00:20:54]MH_SAM_APDU [00:20:54]CAPDU: 80 0D 01 02 [00:20:54]Write to MH i2c: E2 08 00 48 0E 80 0D 01 02 00 00 00 00 CF [00:20:54]Write i2c OK [00:20:54]MH_I2C_Read... [00:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:54]Read from MH i2c: E2 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 03 00 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 03 00 48 0E 00 90 00 CA [00:20:54]RAPDU: 90 00 [00:20:54]wFMCommunicate OK [00:20:54]wFMCommunicate request_size=255 [00:20:54]MH_SAM_APDU [00:20:54]CAPDU: 80 0D 02 02 FA 05 00 62 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 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 DF C6 B7 67 0E 04 04 00 88 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 AA 04 D8 04 6E 04 04 00 31 01 00 00 69 04 A5 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 23 3A 2E 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:20:54]Write to MH i2c: E2 02 01 49 0E 80 0D 02 02 FA 00 05 00 62 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 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 DF C6 B7 67 0E 04 04 00 88 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 AA 04 D8 04 6E 04 04 00 31 01 00 00 69 04 A5 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 23 3A 2E 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 00 12 [00:20:54]Write i2c OK [00:20:54]MH_I2C_Read... [00:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:54]Read from MH i2c: E2 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 03 00 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [00:20:54]RAPDU: 90 00 [00:20:54]wFMCommunicate OK [00:20:54]wFMCommunicate request_size=255 [00:20:54]MH_SAM_APDU [00:20:54]CAPDU: 80 0D 02 02 FA 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 26 DA 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A [00:20:54]Write to MH i2c: E2 02 01 4A 0E 80 0D 02 02 FA 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 26 DA 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 00 42 [00:20:55]Write i2c OK [00:20:55]MH_I2C_Read... [00:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:55]Read from MH i2c: E2 [00:20:55]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 03 00 [00:20:55]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 03 00 4A 0E 00 90 00 CC [00:20:55]RAPDU: 90 00 [00:20:55]wFMCommunicate OK [00:20:55]wFMCommunicate request_size=255 [00:20:55]MH_SAM_APDU [00:20:55]CAPDU: 80 0D 02 02 FA 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:20:55]Write to MH i2c: E2 02 01 4B 0E 80 0D 02 02 FA 00 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 99 [00:20:55]Write i2c OK [00:20:55]MH_I2C_Read... [00:20:55]OFD Sender: No OFD packet to send [00:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 03 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 03 00 4B 0E 00 90 00 CD [00:20:56]RAPDU: 90 00 [00:20:56]wFMCommunicate OK [00:20:56]wFMCommunicate request_size=255 [00:20:56]MH_SAM_APDU [00:20:56]CAPDU: 80 0D 02 02 FA 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:20:56]Write to MH i2c: E2 02 01 4C 0E 80 0D 02 02 FA 00 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 99 [00:20:56]Write i2c OK [00:20:56]MH_I2C_Read... [00:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 03 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 03 00 4C 0E 00 90 00 CE [00:20:56]RAPDU: 90 00 [00:20:56]wFMCommunicate OK [00:20:56]wFMCommunicate request_size=255 [00:20:56]MH_SAM_APDU [00:20:56]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:20:56]Write to MH i2c: E2 02 01 4D 0E 80 0D 02 02 FA 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 58 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 4D 0E 00 90 00 CF [00:20:57]RAPDU: 90 00 [00:20:57]wFMCommunicate OK [00:20:57]wFMCommunicate request_size=137 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 0D 02 02 84 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 51 B5 FF 39 56 ED [00:20:57]Write to MH i2c: E2 8C 00 4E 0E 80 0D 02 02 84 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 71 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 51 B5 FF 39 56 ED 00 00 EB [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [00:20:57]RAPDU: 90 00 [00:20:57]wFMCommunicate OK [00:20:57]wFMCommunicate request_size=4 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 0D 03 02 [00:20:57]Write to MH i2c: E2 08 00 4F 0E 80 0D 03 02 00 00 00 00 D8 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 0B 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 0B 00 4F 0E 00 D4 7F B7 65 68 09 86 E1 90 00 20 [00:20:57]RAPDU: D4 7F B7 65 68 09 86 E1 90 00 [00:20:57]wFMCommunicate OK [00:20:57]SAM_PROTO_SignData done [00:20:57]FM_MakeSignedData done [00:20:57]CreateOFDProtocolMessage [00:20:57]wFMCommunicate request_size=4 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 11 00 00 [00:20:57]Write to MH i2c: E2 08 00 50 0E 80 11 00 00 00 00 00 00 D8 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 17 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 17 00 50 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2B [00:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:20:57]wFMCommunicate OK [00:20:57]CreateOFDProtocolMessage done [00:20:57]OFDSenderStorePacket 187505 [00:20:57]StoreOFDPacket docnum=187505 [00:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 76 05 00 00 C0 54 6E 05 96 16 5A 05 01 00 05 00 62 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 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 DF C6 B7 67 0E 04 04 00 88 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 AA 04 D8 04 6E 04 04 00 31 01 00 00 69 04 A5 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 23 3A 2E 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 26 DA 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 71 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 51 B5 FF 39 56 ED D4 7F B7 65 68 09 86 E1 [00:20:58]CheckFolder [00:20:58]dirname=/storage/ofd_packets [00:20:58]CheckFolder done [00:20:58]ProducePacketName [00:20:58]name=ofd_packets/00187505 [00:20:58]NVStorageSaveData ofd_packets/00187505 [00:20:58]File name is /storage/ofd_packets/00187505 [00:20:58]Write 1428 bytes [00:20:58]NVStorageSaveData done [00:20:58]OFDSenderStorePacket done [00:20:58]KKMCreateOFDPacket done [00:20:58]NVStorageSaveData kkm_last_timestamp [00:20:58]File name is /storage/kkm_last_timestamp [00:20:58]Write 4 bytes [00:20:58]NVStorageSaveData done [00:20:58]ExternCall_PrintAddStr [00:20:58]wPrintStart [00:20:58]Write to MH i2c: 01 00 00 51 0E 5F [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: 01 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: 01 07 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: 01 07 00 51 0E 00 00 00 00 00 FF 0F 74 [00:20:58]RasterBufferAndPrint [00:20:58]line Отчет о закрытии смены [00:20:58]line ФФД: 1.0 [00:20:58]line ИНН: 02508201610067 [00:20:58]line Кассир: Арапов Н. [00:20:58]line 21.02.2025 00:20 [00:20:58]line Смена: 648 [00:20:58]line РНМ: 0000000000091857 [00:20:58]line ЗНМ: 0300000118 [00:20:58]line СНО: Общий режим [00:20:58]line Чеков за смену: 305 [00:20:58]line ФД за смену: 307 [00:20:58]line Всего чеков: 305 [00:20:58]line ИТОГИ ПРИХОД [00:20:58]line Чеков: 305 [00:20:58]line Общий итог: 285216.92 [00:20:58]line Итого наличными: 225563.00 [00:20:58]line Итого безнал.: 59653.92 [00:20:58]line НДС 0% : 0.00 [00:20:58]line НДС 12% : 30295.39 [00:20:58]line НСП 0% : 0.00 [00:20:58]line НСП 1,50% : 0.00 [00:20:58]line НСП 0,50% : 0.00 [00:20:58]line НСП 5% : 0.00 [00:20:58]line НСП 3% : 0.00 [00:20:58]line НСП 2% : 0.00 [00:20:58]line НСП 1% : 2524.54 [00:20:58]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:20:58]line Чеков: 0 [00:20:58]line Общий итог: 0.00 [00:20:58]line Итого наличными: 0.00 [00:20:58]OFD Sender: Processing packet 187505 [packets to send 49, broken 48] [00:20:58]ProducePacketName [00:20:58]name=ofd_packets/00187505 [00:20:58]OFD Sender: To server: pG, [00:20:58]CommunicateWithHost lk.salyk.kg:30040 [00:20:58]ConnectInit lk.salyk.kg [00:20:58]line Итого безнал.: 0.00 [00:20:58]line НДС 0% : 0.00 [00:20:58]line НДС 12% : 0.00 [00:20:58]line НСП 0% : 0.00 [00:20:58]line НСП 1,50% : 0.00 [00:20:58]line НСП 0,50% : 0.00 [00:20:58]line НСП 5% : 0.00 [00:20:58]line НСП 3% : 0.00 [00:20:58]line НСП 2% : 0.00 [00:20:58]line НСП 1% : 0.00 [00:20:58]line ИТОГИ РАСХОД [00:20:58]line Чеков: 0 [00:20:58]line Общий итог: 0.00 [00:20:58]line Итого наличными: 0.00 [00:20:58]line Итого безнал.: 0.00 [00:20:58]line НДС 0% : 0.00 [00:20:58]line НДС 12% : 0.00 [00:20:58]line НСП 0% : 0.00 [00:20:58]line НСП 1,50% : 0.00 [00:20:58]line НСП 0,50% : 0.00 [00:20:58]line НСП 5% : 0.00 [00:20:58]line НСП 3% : 0.00 [00:20:58]line НСП 2% : 0.00 [00:20:58]line НСП 1% : 0.00 [00:20:58]line ИТОГИ ВОЗВРАТ РАСХОДА [00:20:58]line Чеков: 0 [00:20:58]line Общий итог: 0.00 [00:20:58]line Итого наличными: 0.00 [00:20:58]line Итого безнал.: 0.00 [00:20:58]line НДС 0% : 0.00 [00:20:58]line НДС 12% : 0.00 [00:20:58]line НСП 0% : 0.00 [00:20:58]line НСП 1,50% : 0.00 [00:20:58]line НСП 0,50% : 0.00 [00:20:58]line НСП 5% : 0.00 [00:20:58]line НСП 3% : 0.00 [00:20:58]line НСП 2% : 0.00 [00:20:58]line НСП 1% : 0.00 [00:20:58]line Сумма внесений: 0.00 [00:20:58]line Сумма выплат: 0.00 [00:20:58]line Нал. в кассе: 225563.00 [00:20:58]line НС Приход: 176740542.51 [00:20:58]line НС Возвр.Прихода: 37055.00 [00:20:58]line НС Расход: 0.00 [00:20:58]line НС Возвр.Расхода: 0.00 [00:20:58]line ФД: 187505 [00:20:58]line ФМ: 0000000000871826 [00:20:58]line ФПД: 89842112878317 [00:20:58]written 0, free lines is 4095 [00:20:58]Connected sock=10 [00:20:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 76 05 00 00 C0 54 6E 05 96 16 5A 05 01 00 05 00 62 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 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 DF C6 B7 67 0E 04 04 00 88 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 AA 04 D8 04 6E 04 04 00 31 01 00 00 69 04 A5 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 23 3A 2E 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 26 DA 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 Write to MH i2c: 0A 01 00 00 F6 00 03 A1 01 0E 00 AF 01 [00:20:59]F7 Write i2c OK [00:20:59]03 MH_I2C_Read... [00:20:59]01 Read from MH i2c: 00 01 00 [00:20:59]6D MH_I2C_Read... [00:20:59]04 4C 02 78 04 04 00 00 00 00 Read from MH i2c: 00 01 79 07 04 00 8D [00:20:59]MH_I2C_Read... [00:20:59]00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 Read from MH i2c: 00 01 00 07 72 00 04 A1 00 0E 00 00 00 00 04 00 75 00 00 00 EE A7 03 0B 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 68 09 [00:20:59]00 RasterBufferAndPrint [00:20:59]F2 line [00:20:59]03 line [00:20:59]01 line [00:20:59]00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 line [00:20:59]00 line [00:20:59]F7 03 written 0, free lines is 3147 [00:20:59]00 00 EF 03 09 00 F6 03 01 00 01 F7 MH_Cut [00:20:59]03 Write to MH i2c: 00 D1 00 01 EF 00 03 A8 09 0E 00 01 F6 88 03 [00:20:59]01 00 02 F7 03 00 00 EF 03 Write i2c OK [00:20:59]09 MH_I2C_Read... [00:20:59]00 Read from MH i2c: F6 D1 03 [00:20:59]01 MH_I2C_Read... [00:20:59]00 03 F7 03 00 00 EF 03 09 00 F6 03 01 Read from MH i2c: 00 D1 04 01 F7 00 03 [00:20:59]00 MH_I2C_Read... [00:20:59]00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 A8 F6 0E 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 00 04 87 00 [00:20:59]00 Write to MH i2c: 00 01 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 00 04 A9 75 0E 00 B7 EE [00:20:59]03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 Write i2c OK [00:20:59]F2 MH_I2C_Read... [00:20:59]03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [00:21:00]00 *** Partial cut [00:21:00]00 *** CUTSNS_PIN = 1 [00:21:00]10 04 04 00 71 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 51 B5 FF 39 56 ED D4 7F B7 65 68 09 86 E1 [00:21:00]*** CUTSNS_PIN = 0 [00:21:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 36 01 47 00 95 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 31 38 32 36 10 04 04 00 71 DC 02 00 F4 03 04 00 3B 6D B7 67 B6 04 01 00 00 FD F1 71 7F 64 77 44 FC [00:21:00]CommunicateWithHost err = 0 [00:21:00]CheckOFDResponse [00:21:00]1017 (14) - 77093643461234 [00:21:00]1041 (16) - 0000000000871826 [00:21:00]1040 (4) - 187505 [00:21:00]1012 (4) - 20.02.2025 17:58 [00:21:00]1206 (1) - 0 [00:21:00]OFD Sender: Remove packet 187505 [00:21:00]ProducePacketName [00:21:00]name=ofd_packets/00187505 [00:21:00]NVStorageDeleteData [00:21:00]*** Brake cut motor [00:21:01]Read from MH i2c: 01 [00:21:01]MH_I2C_Read... [00:21:01]*** Stop cut motor [00:21:01]*** Cut end [00:21:01]Read from MH i2c: 01 07 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [00:21:01]process_action close_shift done [00:21:01]requested_data is exist [00:21:01]produce_requested_data [00:21:01]requested_item fd.num is exist - process it [00:21:01]SAM_PROTO_GetFieldsCounters [00:21:01]wFMCommunicate request_size=4 [00:21:01]MH_SAM_APDU [00:21:01]CAPDU: 80 13 00 00 [00:21:01]Write to MH i2c: E2 08 00 AA 0E 80 13 00 00 00 00 00 00 34 [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:01]Read from MH i2c: E2 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 62 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 62 00 AA 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 DC 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [00:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 DC 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:01]wFMCommunicate OK [00:21:01]SAM_PROTO_GetFieldsCounters done [00:21:01]requested_item shift.num is exist - process it [00:21:01]requested_item shift.opened is exist - process it [00:21:01]req_shift_opened [00:21:01]FM_GetShiftState [00:21:01]SAM_PROTO_GetShiftState [00:21:01]wFMCommunicate request_size=4 [00:21:01]MH_SAM_APDU [00:21:01]CAPDU: 80 13 01 00 [00:21:01]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [00:21:01]OFD Sender: No OFD packet to send [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:01]Read from MH i2c: E2 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 0E 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 41 [00:21:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:01]wFMCommunicate OK [00:21:01]SAM_PROTO_GetShiftState done [00:21:01]FM_GetShiftState done [00:21:01]req_shift_opened done [00:21:01]requested_item shift.open_date is exist - process it [00:21:01]req_shift_open_date [00:21:01]FM_GetShiftState [00:21:01]SAM_PROTO_GetShiftState [00:21:01]wFMCommunicate request_size=4 [00:21:01]MH_SAM_APDU [00:21:01]CAPDU: 80 13 01 00 [00:21:01]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:01]Read from MH i2c: E2 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 0E 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 42 [00:21:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:01]wFMCommunicate OK [00:21:01]SAM_PROTO_GetShiftState done [00:21:01]FM_GetShiftState done [00:21:01]req_shift_open_date done [00:21:01]produce_requested_data done [00:21:01]produce_requested_data return {"fd.num":187505,"shift.num":648,"shift.opened":0,"shift.open_date":0} [00:21:01]process_action_free close_shift [00:21:01]json_value_free [00:21:01]json_value_free done [00:21:01]process_json_proto returns [00:21:01]Send response to host [00:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187505,"shift.num":648,"shift.opened":0,"shift.open_date":0}}} [00:21:01]free response buf [00:21:01]execute_script done [00:21:01]execute_script returns [00:21:01]free content buf [00:21:01]Sock 7.Close socket [00:21:01]Sock 7.Thread stoped [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:33:57]accept exits with 9 [00:33:57]New connection [00:33:57]New thread 3067223396 created [00:33:57]Thread 3067080036 joined [00:33:57]Waiting for new connection... [00:33:57] Sock 9.Parse request [00:33:57]Sock 9.Check first char [00:33:57]Sock 9.First char is OK [00:33:57]request: POST /json_proto HTTP/1.0 [00:33:57]Method: POST [00:33:57]URL: /json_proto [00:33:57]Method is POST - this is cgi request [00:33:57]url: /json_proto [00:33:57]query_string will be loaded in cgi processing [00:33:57]execute_cgi json_proto POST (null) [00:33:57]execute_cgi path=json_proto method=POST [00:33:57]POST find Content-Length [00:33:57]Host: 172.17.46.131:8080 [00:33:57]Content-Length: 215 [00:33:57]Content-Type: application/json [00:33:57] [00:33:57]POST finish read [00:33:57]Found Content-Length = 215 [00:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:57]execute_script... [00:33:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:57]POST & json_proto [00:33:57]process_json_proto [00:33:57]json parsed OK: [00:33:57]protocol is kg_v1.0 [00:33:57]action value=get_value [00:33:57]process_action get_value [00:33:57]cmd_get_value [00:33:57]process_action get_value done [00:33:57]requested_data is exist [00:33:57]produce_requested_data [00:33:57]requested_item kkm.sn is exist - process it [00:33:57]requested_item kkm.ver is exist - process it [00:33:57]requested_item fm.sn is exist - process it [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 11 00 00 [00:33:57]Write to MH i2c: E2 08 00 AD 0E 80 11 00 00 00 00 00 00 35 [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 17 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 17 00 AD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 88 [00:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:33:57]wFMCommunicate OK [00:33:57]requested_item fd.num is exist - process it [00:33:57]SAM_PROTO_GetFieldsCounters [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 13 00 00 [00:33:57]Write to MH i2c: E2 08 00 AE 0E 80 13 00 00 00 00 00 00 38 [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 62 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 62 00 AE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 DC 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [00:33: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 DC 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:57]wFMCommunicate OK [00:33:57]SAM_PROTO_GetFieldsCounters done [00:33:57]requested_item shift.num is exist - process it [00:33:57]requested_item shift.opened is exist - process it [00:33:57]req_shift_opened [00:33:57]FM_GetShiftState [00:33:57]SAM_PROTO_GetShiftState [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 13 01 00 [00:33:57]Write to MH i2c: E2 08 00 AF 0E 80 13 01 00 00 00 00 00 3A [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 0E 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 0E 00 AF 0E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 45 [00:33:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:57]wFMCommunicate OK [00:33:57]SAM_PROTO_GetShiftState done [00:33:57]FM_GetShiftState done [00:33:57]req_shift_opened done [00:33:57]requested_item shift.open_date is exist - process it [00:33:57]req_shift_open_date [00:33:57]FM_GetShiftState [00:33:57]SAM_PROTO_GetShiftState [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 13 01 00 [00:33:57]Write to MH i2c: E2 08 00 B0 0E 80 13 01 00 00 00 00 00 3B [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 0E 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 0E 00 B0 0E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 46 [00:33:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:57]wFMCommunicate OK [00:33:57]SAM_PROTO_GetShiftState done [00:33:57]FM_GetShiftState done [00:33:57]req_shift_open_date done [00:33:57]produce_requested_data done [00:33:57]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187505,"shift.num":648,"shift.opened":0,"shift.open_date":0} [00:33:57]process_action_free get_value [00:33:57]json_value_free [00:33:57]json_value_free done [00:33:57]process_json_proto returns [00:33:57]Send response to host [00:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187505,"shift.num":648,"shift.opened":0,"shift.open_date":0}}} [00:33:57]free response buf [00:33:57]execute_script done [00:33:57]execute_script returns [00:33:57]free content buf [00:33:57]Sock 9.Close socket [00:33:57]Sock 9.Thread stoped [00:33:57]accept exits with 7 [00:33:57]New connection [00:33:57]New thread 3067080036 created [00:33:57]Thread 3067223396 joined [00:33:57]Waiting for new connection... [00:33:57] Sock 7.Parse request [00:33:57]Sock 7.Check first char [00:33:57]Sock 7.First char is OK [00:33:57]request: POST /json_proto HTTP/1.0 [00:33:57]Method: POST [00:33:57]URL: /json_proto [00:33:57]Method is POST - this is cgi request [00:33:57]url: /json_proto [00:33:57]query_string will be loaded in cgi processing [00:33:57]execute_cgi json_proto POST (null) [00:33:57]execute_cgi path=json_proto method=POST [00:33:57]POST find Content-Length [00:33:57]Host: 172.17.46.131:8080 [00:33:57]Content-Length: 331 [00:33:57]Content-Type: application/json [00:33:57] [00:33:57]POST finish read [00:33:57]Found Content-Length = 331 [00:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:57]execute_script... [00:33:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:58]POST & json_proto [00:33:58]process_json_proto [00:33:58]json parsed OK: [00:33:58]protocol is kg_v1.0 [00:33:58]action value=get_value [00:33:58]process_action get_value [00:33:58]cmd_get_value [00:33:58]process_action get_value done [00:33:58]requested_data is exist [00:33:58]produce_requested_data [00:33:58]requested_item fm.sale.total is exist - process it [00:33:58]SAM_PROTO_GetFMData [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 13 03 00 [00:33:58]Write to MH i2c: E2 08 00 B1 0E 80 13 03 00 00 00 00 00 3E [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:58]Read from MH i2c: E2 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 FD 00 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 FD 00 B1 0E 00 C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 18 [00:33:58]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:33:58]wFMCommunicate OK [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 17 00 00 [00:33:58]Write to MH i2c: E2 08 00 B2 0E 80 17 00 00 00 00 00 00 40 [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:58]Read from MH i2c: E2 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 FD 00 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 FD 00 B2 0E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 09 [00:33:58]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:58]wFMCommunicate OK [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 17 00 00 [00:33:58]Write to MH i2c: E2 08 00 B3 0E 80 17 00 00 00 00 00 00 41 [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 B3 0E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 E1 [00:33:59]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:33:59]wFMCommunicate OK [00:33:59]wFMCommunicate request_size=4 [00:33:59]MH_SAM_APDU [00:33:59]CAPDU: 80 17 00 00 [00:33:59]Write to MH i2c: E2 08 00 B4 0E 80 17 00 00 00 00 00 00 42 [00:33:59]Write i2c OK [00:33:59]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 B4 0E 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [00:33:59]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:59]wFMCommunicate OK [00:33:59]wFMCommunicate request_size=4 [00:33:59]MH_SAM_APDU [00:33:59]CAPDU: 80 17 00 00 [00:33:59]Write to MH i2c: E2 08 00 B5 0E 80 17 00 00 00 00 00 00 43 [00:33:59]Write i2c OK [00:33:59]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 DE 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 DE 00 B5 0E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 22 [00:33:59]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:33:59]wFMCommunicate OK [00:33:59]SAM_PROTO_GetFMData done [00:33:59]requested_item fm.sale_refund.total is exist - process it [00:33:59]requested_item fm.buy.total is exist - process it [00:33:59]requested_item shift.sale.total is exist - process it [00:33:59]SAM_PROTO_GetShiftData [00:33:59]wFMCommunicate request_size=4 [00:33:59]MH_SAM_APDU [00:33:59]CAPDU: 80 13 02 00 [00:33:59]Write to MH i2c: E2 08 00 B6 0E 80 13 02 00 00 00 00 00 42 [00:33:59]Write i2c OK [00:33:59]MH_I2C_Read... [00:34:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:00]Read from MH i2c: E2 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 B6 0E 00 B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 93 [00:34:00]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 31 01 00 00 69 04 9E 00 6F 04 04 00 31 01 00 00 B1 04 04 00 DC 34 B3 01 70 04 04 00 8C 2E 58 01 72 04 03 00 50 06 5B 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 3A 2E 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 26 DA 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:34:00]wFMCommunicate OK [00:34:00]wFMCommunicate request_size=4 [00:34:00]MH_SAM_APDU [00:34:00]CAPDU: 80 17 00 00 [00:34:00]Write to MH i2c: E2 08 00 B7 0E 80 17 00 00 00 00 00 00 45 [00:34:00]Write i2c OK [00:34:00]MH_I2C_Read... [00:34:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:00]Read from MH i2c: E2 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 B7 0E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 5E [00:34:00]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:34:00]wFMCommunicate OK [00:34:00]wFMCommunicate request_size=4 [00:34:00]MH_SAM_APDU [00:34:00]CAPDU: 80 17 00 00 [00:34:00]Write to MH i2c: E2 08 00 B8 0E 80 17 00 00 00 00 00 00 46 [00:34:00]Write i2c OK [00:34:00]MH_I2C_Read... [00:34:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:00]Read from MH i2c: E2 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 B8 0E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 FF [00:34:00]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:34:00]wFMCommunicate OK [00:34:00]wFMCommunicate request_size=4 [00:34:00]MH_SAM_APDU [00:34:00]CAPDU: 80 17 00 00 [00:34:00]Write to MH i2c: E2 08 00 B9 0E 80 17 00 00 00 00 00 00 47 [00:34:00]Write i2c OK [00:34:00]MH_I2C_Read... [00:34:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:01]Read from MH i2c: E2 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 FD 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 FD 00 B9 0E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 BF [00:34:01]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:34:01]wFMCommunicate OK [00:34:01]wFMCommunicate request_size=4 [00:34:01]MH_SAM_APDU [00:34:01]CAPDU: 80 17 00 00 [00:34:01]Write to MH i2c: E2 08 00 BA 0E 80 17 00 00 00 00 00 00 48 [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:34:01]Read from MH i2c: E2 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 CE 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 CE 00 BA 0E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2D [00:34:01]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:01]wFMCommunicate OK [00:34:01]SAM_PROTO_GetShiftData done [00:34:01]requested_item shift.sale.total_cash is exist - process it [00:34:01]requested_item shift.sale_refund.total is exist - process it [00:34:01]requested_item shift.sale_refund.total_cash is exist - process it [00:34:01]requested_item shift.buy.total is exist - process it [00:34:01]requested_item shift.buy.total_cash is exist - process it [00:34:01]produce_requested_data done [00:34:01]produce_requested_data return {"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:34:01]process_action_free get_value [00:34:01]json_value_free [00:34:01]json_value_free done [00:34:01]process_json_proto returns [00:34:01]Send response to host [00:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":285216.92,"shift.sale.total_cash":225563.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:34:01]free response buf [00:34:01]execute_script done [00:34:01]execute_script returns [00:34:01]free content buf [00:34:01]Sock 7.Close socket [00:34:01]Sock 7.Thread stoped [00:34:01]accept exits with 9 [00:34:01]New connection [00:34:01]New thread 3067223396 created [00:34:01]Thread 3067080036 joined [00:34:01]Waiting for new connection... [00:34:01] Sock 9.Parse request [00:34:01]Sock 9.Check first char [00:34:01]Sock 9.First char is OK [00:34:01]request: POST /json_proto HTTP/1.0 [00:34:01]Method: POST [00:34:01]URL: /json_proto [00:34:01]Method is POST - this is cgi request [00:34:01]url: /json_proto [00:34:01]query_string will be loaded in cgi processing [00:34:01]execute_cgi json_proto POST (null) [00:34:01]execute_cgi path=json_proto method=POST [00:34:01]POST find Content-Length [00:34:01]Host: 172.17.46.131:8080 [00:34:01]Content-Length: 259 [00:34:01]Content-Type: application/json [00:34:01] [00:34:01]POST finish read [00:34:01]Found Content-Length = 259 [00:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u043C\u0430\u0442\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:01]execute_script... [00:34:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u043C\u0430\u0442\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:01]POST & json_proto [00:34:01]process_json_proto [00:34:01]json parsed OK: [00:34:01]protocol is kg_v1.0 [00:34:01]action value=open_shift [00:34:01]process_action open_shift [00:34:01]cmd_open_shift [00:34:01]MH_GetDate [00:34:01]Write to MH i2c: F0 00 00 BB 0E B8 [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: F0 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: F0 09 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: F0 09 00 BB 0E 00 FB C9 B7 67 7E 41 4F 65 16 [00:34:01]GetLastDocTimeStamp 1740097247 [00:34:01]current date 1740098043 [00:34:01]FM_GetShiftState [00:34:01]SAM_PROTO_GetShiftState [00:34:01]wFMCommunicate request_size=4 [00:34:01]MH_SAM_APDU [00:34:01]CAPDU: 80 13 01 00 [00:34:01]Write to MH i2c: E2 08 00 BC 0E 80 13 01 00 00 00 00 00 47 [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:01]Read from MH i2c: E2 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 0E 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 0E 00 BC 0E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 52 [00:34:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:34:01]wFMCommunicate OK [00:34:01]SAM_PROTO_GetShiftState done [00:34:01]FM_GetShiftState done [00:34:01]KKMCreateOpenShiftDocument [00:34:01]Load OK [00:34:01]Malloc new data [00:34:01]MH_GetDate [00:34:01]Write to MH i2c: F0 00 00 BD 0E BA [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: F0 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: F0 09 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: F0 09 00 BD 0E 00 FB C9 B7 67 7E 41 4F 65 18 [00:34:01]Malloc new data [00:34:01]KKMCreateOpenShiftDocument OK [00:34:01]KKMSetOpenShiftData OK [00:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=195 [00:34:01]tlvbuf is 020B72D0 [00:34:01]KKMLoadAndSignOpenShiftData [00:34:01]SAM_PROTO_ProcessDocument [00:34:01]wFMCommunicate request_size=9 [00:34:01]MH_SAM_APDU [00:34:01]CAPDU: 80 15 01 00 04 02 00 C3 00 [00:34:01]Write to MH i2c: E2 0C 00 BE 0E 80 15 01 00 04 00 02 00 C3 00 00 00 18 [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:34:01]Read from MH i2c: E2 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 03 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [00:34:01]RAPDU: 90 00 [00:34:01]wFMCommunicate OK [00:34:01]wFMCommunicate request_size=23 [00:34:01]MH_SAM_APDU [00:34:01]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:34:01]Write to MH i2c: E2 1A 00 BF 0E 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 42 [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:01]Read from MH i2c: E2 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 03 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [00:34:01]RAPDU: 90 00 [00:34:01]wFMCommunicate OK [00:34:01]wFMCommunicate request_size=30 [00:34:01]MH_SAM_APDU [00:34:01]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 [00:34:01]Write to MH i2c: E2 21 00 C0 0E 80 15 02 00 19 00 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 00 00 4D [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:01]Read from MH i2c: E2 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 03 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [00:34:01]RAPDU: 90 00 [00:34:01]wFMCommunicate OK [00:34:01]wFMCommunicate request_size=84 [00:34:01]MH_SAM_APDU [00:34:01]CAPDU: 80 15 02 00 4F F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 [00:34:01]Write to MH i2c: E2 57 00 C1 0E 80 15 02 00 4F 00 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 00 00 88 [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:01]Read from MH i2c: E2 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 03 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [00:34:01]RAPDU: 90 00 [00:34:01]wFMCommunicate OK [00:34:01]wFMCommunicate request_size=50 [00:34:01]MH_SAM_APDU [00:34:01]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 [00:34:01]Write to MH i2c: E2 35 00 C2 0E 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 00 00 CA [00:34:01]Write i2c OK [00:34:01]MH_I2C_Read... [00:34:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:02]Read from MH i2c: E2 [00:34:02]MH_I2C_Read... [00:34:02]Read from MH i2c: E2 03 00 [00:34:02]MH_I2C_Read... [00:34:02]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [00:34:02]RAPDU: 90 00 [00:34:02]wFMCommunicate OK [00:34:02]wFMCommunicate request_size=13 [00:34:02]MH_SAM_APDU [00:34:02]CAPDU: 80 15 02 00 08 F4 03 04 00 FB C9 B7 67 [00:34:02]Write to MH i2c: E2 10 00 C3 0E 80 15 02 00 08 00 F4 03 04 00 FB C9 B7 67 00 00 3E [00:34:02]Write i2c OK [00:34:02]MH_I2C_Read... [00:34:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:02]Read from MH i2c: E2 [00:34:02]MH_I2C_Read... [00:34:02]Read from MH i2c: E2 03 00 [00:34:02]MH_I2C_Read... [00:34:02]Read from MH i2c: E2 03 00 C3 0E 00 90 00 45 [00:34:02]RAPDU: 90 00 [00:34:02]wFMCommunicate OK [00:34:02]wFMCommunicate request_size=25 [00:34:02]MH_SAM_APDU [00:34:02]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [00:34:02]Write to MH i2c: E2 1C 00 C4 0E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 B9 [00:34:02]Write i2c OK [00:34:02]MH_I2C_Read... [00:34:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:02]Read from MH i2c: E2 [00:34:02]MH_I2C_Read... [00:34:02]Read from MH i2c: E2 03 00 [00:34:02]MH_I2C_Read... [00:34:02]Read from MH i2c: E2 03 00 C4 0E 00 90 00 46 [00:34:02]RAPDU: 90 00 [00:34:02]wFMCommunicate OK [00:34:02]wFMCommunicate request_size=4 [00:34:02]MH_SAM_APDU [00:34:02]CAPDU: 80 15 03 00 [00:34:02]Write to MH i2c: E2 08 00 C5 0E 80 15 03 00 00 00 00 00 54 [00:34:02]Write i2c OK [00:34:02]MH_I2C_Read... [00:34:02]OFD Sender: No OFD packet to send [00:34:02]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:34:02]Read from MH i2c: E2 [00:34:02]MH_I2C_Read... [00:34:02]Read from MH i2c: E2 38 00 [00:34:02]MH_I2C_Read... [00:34:02]Read from MH i2c: E2 38 00 C5 0E 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 DC 02 00 0E 04 04 00 89 02 00 00 35 04 06 00 43 39 A8 4A 2B B8 90 00 4C [00:34:02]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 DC 02 00 0E 04 04 00 89 02 00 00 35 04 06 00 43 39 A8 4A 2B B8 90 00 [00:34:02]wFMCommunicate OK [00:34:02]SAM_PROTO_ProcessDocument answer len = 51 [00:34:02]SAM_PROTO_ProcessDocument done [00:34:02]SetTLVBufToDocument [00:34:02]Processing tag 1209 (04B9) [00:34:02]Malloc new data [00:34:02]Processing tag 1041 (0411) [00:34:02]Processing tag 1040 (0410) [00:34:02]Malloc new data [00:34:02]Processing tag 1038 (040E) [00:34:02]Malloc new data [00:34:02]Processing tag 1077 (0435) [00:34:02]Malloc new data [00:34:02]SetTLVBufToDocument err=0 [00:34:02]KKMLoadAndSignOpenShiftData store KKM data [00:34:02]KKMLoadAndSignOpenShiftData err=0 [00:34:02]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Байматов С. Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 Место: АЗС № 92 "Партнер Нефть" 21.02.2025 00:34 Смена: 649 РНМ: 0000000000091857 ЗНМ: 0300000118 ФД: 187506 ФМ: 0000000000871826 ФПД: 73914915630008 [00:34:02]StoreToDocumentArchive [00:34:02]shift 649 fd 187506 [00:34:02]Create dir for shift 0649 [00:34:02]save to /storage/0649/doc_00187506 [00:34:02]save last doc name /storage/0649/doc_00187506 to /storage/kkm_last_doc_name [00:34:02]save OK [00:34:02]Clear old archive folders... [00:34:02]Remove dir /storage/0648 [00:34:02]opendir ok [00:34:02]file . [00:34:02]file .. [00:34:02]file doc_00187199 [00:34:02]remove file /storage/0648/doc_00187199 [00:34:02]file doc_00187200 [00:34:02]remove file /storage/0648/doc_00187200 [00:34:02]file doc_00187201 [00:34:02]remove file /storage/0648/doc_00187201 [00:34:02]file doc_00187202 [00:34:02]remove file /storage/0648/doc_00187202 [00:34:02]file doc_00187203 [00:34:02]remove file /storage/0648/doc_00187203 [00:34:02]file doc_00187204 [00:34:02]remove file /storage/0648/doc_00187204 [00:34:02]file doc_00187205 [00:34:02]remove file /storage/0648/doc_00187205 [00:34:02]file doc_00187206 [00:34:02]remove file /storage/0648/doc_00187206 [00:34:02]file doc_00187207 [00:34:02]remove file /storage/0648/doc_00187207 [00:34:02]file doc_00187208 [00:34:02]remove file /storage/0648/doc_00187208 [00:34:02]file doc_00187209 [00:34:02]remove file /storage/0648/doc_00187209 [00:34:02]file doc_00187210 [00:34:02]remove file /storage/0648/doc_00187210 [00:34:02]file doc_00187211 [00:34:02]remove file /storage/0648/doc_00187211 [00:34:02]file doc_00187212 [00:34:02]remove file /storage/0648/doc_00187212 [00:34:02]file doc_00187213 [00:34:02]remove file /storage/0648/doc_00187213 [00:34:02]file doc_00187214 [00:34:02]remove file /storage/0648/doc_00187214 [00:34:02]file doc_00187215 [00:34:02]remove file /storage/0648/doc_00187215 [00:34:02]file doc_00187216 [00:34:02]remove file /storage/0648/doc_00187216 [00:34:02]file doc_00187217 [00:34:02]remove file /storage/0648/doc_00187217 [00:34:02]file doc_00187218 [00:34:02]remove file /storage/0648/doc_00187218 [00:34:02]file doc_00187219 [00:34:02]remove file /storage/0648/doc_00187219 [00:34:02]file doc_00187220 [00:34:02]remove file /storage/0648/doc_00187220 [00:34:02]file doc_00187221 [00:34:02]remove file /storage/0648/doc_00187221 [00:34:02]file doc_00187222 [00:34:02]remove file /storage/0648/doc_00187222 [00:34:02]file doc_00187223 [00:34:02]remove file /storage/0648/doc_00187223 [00:34:02]file doc_00187224 [00:34:02]remove file /storage/0648/doc_00187224 [00:34:02]file doc_00187225 [00:34:02]remove file /storage/0648/doc_00187225 [00:34:02]file doc_00187226 [00:34:02]remove file /storage/0648/doc_00187226 [00:34:02]file doc_00187227 [00:34:02]remove file /storage/0648/doc_00187227 [00:34:02]file doc_00187228 [00:34:02]remove file /storage/0648/doc_00187228 [00:34:02]file doc_00187229 [00:34:02]remove file /storage/0648/doc_00187229 [00:34:02]file doc_00187230 [00:34:02]remove file /storage/0648/doc_00187230 [00:34:02]file doc_00187231 [00:34:02]remove file /storage/0648/doc_00187231 [00:34:02]file doc_00187232 [00:34:02]remove file /storage/0648/doc_00187232 [00:34:02]file doc_00187233 [00:34:02]remove file /storage/0648/doc_00187233 [00:34:02]file doc_00187234 [00:34:02]remove file /storage/0648/doc_00187234 [00:34:02]file doc_00187235 [00:34:02]remove file /storage/0648/doc_00187235 [00:34:02]file doc_00187236 [00:34:02]remove file /storage/0648/doc_00187236 [00:34:02]file doc_00187237 [00:34:02]remove file /storage/0648/doc_00187237 [00:34:02]file doc_00187238 [00:34:02]remove file /storage/0648/doc_00187238 [00:34:02]file doc_00187239 [00:34:02]remove file /storage/0648/doc_00187239 [00:34:02]file doc_00187240 [00:34:02]remove file /storage/0648/doc_00187240 [00:34:02]file doc_00187241 [00:34:02]remove file /storage/0648/doc_00187241 [00:34:02]file doc_00187242 [00:34:02]remove file /storage/0648/doc_00187242 [00:34:02]file doc_00187243 [00:34:02]remove file /storage/0648/doc_00187243 [00:34:02]file doc_00187244 [00:34:02]remove file /storage/0648/doc_00187244 [00:34:02]file doc_00187245 [00:34:02]remove file /storage/0648/doc_00187245 [00:34:02]file doc_00187246 [00:34:02]remove file /storage/0648/doc_00187246 [00:34:02]file doc_00187247 [00:34:02]remove file /storage/0648/doc_00187247 [00:34:02]file doc_00187248 [00:34:02]remove file /storage/0648/doc_00187248 [00:34:02]file doc_00187249 [00:34:02]remove file /storage/0648/doc_00187249 [00:34:02]file doc_00187250 [00:34:02]remove file /storage/0648/doc_00187250 [00:34:02]file doc_00187251 [00:34:02]remove file /storage/0648/doc_00187251 [00:34:02]file doc_00187252 [00:34:02]remove file /storage/0648/doc_00187252 [00:34:02]file doc_00187253 [00:34:02]remove file /storage/0648/doc_00187253 [00:34:02]file doc_00187254 [00:34:02]remove file /storage/0648/doc_00187254 [00:34:02]file doc_00187255 [00:34:02]remove file /storage/0648/doc_00187255 [00:34:02]file doc_00187256 [00:34:02]remove file /storage/0648/doc_00187256 [00:34:02]file doc_00187257 [00:34:02]remove file /storage/0648/doc_00187257 [00:34:02]file doc_00187258 [00:34:02]remove file /storage/0648/doc_00187258 [00:34:02]file doc_00187259 [00:34:02]remove file /storage/0648/doc_00187259 [00:34:02]file doc_00187260 [00:34:02]remove file /storage/0648/doc_00187260 [00:34:02]file doc_00187261 [00:34:02]remove file /storage/0648/doc_00187261 [00:34:02]file doc_00187262 [00:34:02]remove file /storage/0648/doc_00187262 [00:34:02]file doc_00187263 [00:34:02]remove file /storage/0648/doc_00187263 [00:34:02]file doc_00187264 [00:34:02]remove file /storage/0648/doc_00187264 [00:34:02]file doc_00187265 [00:34:02]remove file /storage/0648/doc_00187265 [00:34:02]file doc_00187266 [00:34:02]remove file /storage/0648/doc_00187266 [00:34:02]file doc_00187267 [00:34:02]remove file /storage/0648/doc_00187267 [00:34:02]file doc_00187268 [00:34:02]remove file /storage/0648/doc_00187268 [00:34:02]file doc_00187269 [00:34:02]remove file /storage/0648/doc_00187269 [00:34:02]file doc_00187270 [00:34:02]remove file /storage/0648/doc_00187270 [00:34:02]file doc_00187271 [00:34:02]remove file /storage/0648/doc_00187271 [00:34:02]file doc_00187272 [00:34:02]remove file /storage/0648/doc_00187272 [00:34:02]file doc_00187273 [00:34:02]remove file /storage/0648/doc_00187273 [00:34:02]file doc_00187274 [00:34:02]remove file /storage/0648/doc_00187274 [00:34:02]file doc_00187275 [00:34:02]remove file /storage/0648/doc_00187275 [00:34:02]file doc_00187276 [00:34:02]remove file /storage/0648/doc_00187276 [00:34:02]file doc_00187277 [00:34:02]remove file /storage/0648/doc_00187277 [00:34:02]file doc_00187278 [00:34:02]remove file /storage/0648/doc_00187278 [00:34:02]file doc_00187279 [00:34:02]remove file /storage/0648/doc_00187279 [00:34:02]file doc_00187280 [00:34:02]remove file /storage/0648/doc_00187280 [00:34:02]file doc_00187281 [00:34:02]remove file /storage/0648/doc_00187281 [00:34:02]file doc_00187282 [00:34:02]remove file /storage/0648/doc_00187282 [00:34:02]file doc_00187283 [00:34:02]remove file /storage/0648/doc_00187283 [00:34:02]file doc_00187284 [00:34:02]remove file /storage/0648/doc_00187284 [00:34:02]file doc_00187285 [00:34:02]remove file /storage/0648/doc_00187285 [00:34:02]file doc_00187286 [00:34:02]remove file /storage/0648/doc_00187286 [00:34:02]file doc_00187287 [00:34:02]remove file /storage/0648/doc_00187287 [00:34:02]file doc_00187288 [00:34:02]remove file /storage/0648/doc_00187288 [00:34:02]file doc_00187289 [00:34:02]remove file /storage/0648/doc_00187289 [00:34:02]file doc_00187290 [00:34:02]remove file /storage/0648/doc_00187290 [00:34:03]file doc_00187291 [00:34:03]remove file /storage/0648/doc_00187291 [00:34:03]file doc_00187292 [00:34:03]remove file /storage/0648/doc_00187292 [00:34:03]file doc_00187293 [00:34:03]remove file /storage/0648/doc_00187293 [00:34:03]file doc_00187294 [00:34:03]remove file /storage/0648/doc_00187294 [00:34:03]file doc_00187295 [00:34:03]remove file /storage/0648/doc_00187295 [00:34:03]file doc_00187296 [00:34:03]remove file /storage/0648/doc_00187296 [00:34:03]file doc_00187297 [00:34:03]remove file /storage/0648/doc_00187297 [00:34:03]file doc_00187298 [00:34:03]remove file /storage/0648/doc_00187298 [00:34:03]file doc_00187299 [00:34:03]remove file /storage/0648/doc_00187299 [00:34:03]file doc_00187300 [00:34:03]remove file /storage/0648/doc_00187300 [00:34:03]file doc_00187301 [00:34:03]remove file /storage/0648/doc_00187301 [00:34:03]file doc_00187302 [00:34:03]remove file /storage/0648/doc_00187302 [00:34:03]file doc_00187303 [00:34:03]remove file /storage/0648/doc_00187303 [00:34:03]file doc_00187304 [00:34:03]remove file /storage/0648/doc_00187304 [00:34:03]file doc_00187305 [00:34:03]remove file /storage/0648/doc_00187305 [00:34:03]file doc_00187306 [00:34:03]remove file /storage/0648/doc_00187306 [00:34:03]file doc_00187307 [00:34:03]remove file /storage/0648/doc_00187307 [00:34:03]file doc_00187308 [00:34:03]remove file /storage/0648/doc_00187308 [00:34:03]file doc_00187309 [00:34:03]remove file /storage/0648/doc_00187309 [00:34:03]file doc_00187310 [00:34:03]remove file /storage/0648/doc_00187310 [00:34:03]file doc_00187311 [00:34:03]remove file /storage/0648/doc_00187311 [00:34:03]file doc_00187312 [00:34:03]remove file /storage/0648/doc_00187312 [00:34:03]file doc_00187313 [00:34:03]remove file /storage/0648/doc_00187313 [00:34:03]file doc_00187314 [00:34:03]remove file /storage/0648/doc_00187314 [00:34:03]file doc_00187315 [00:34:03]remove file /storage/0648/doc_00187315 [00:34:03]file doc_00187316 [00:34:03]remove file /storage/0648/doc_00187316 [00:34:03]file doc_00187317 [00:34:03]remove file /storage/0648/doc_00187317 [00:34:03]file doc_00187318 [00:34:03]remove file /storage/0648/doc_00187318 [00:34:03]file doc_00187319 [00:34:03]remove file /storage/0648/doc_00187319 [00:34:03]file doc_00187320 [00:34:03]remove file /storage/0648/doc_00187320 [00:34:03]file doc_00187321 [00:34:03]remove file /storage/0648/doc_00187321 [00:34:03]file doc_00187322 [00:34:03]remove file /storage/0648/doc_00187322 [00:34:03]file doc_00187323 [00:34:03]remove file /storage/0648/doc_00187323 [00:34:03]file doc_00187324 [00:34:03]remove file /storage/0648/doc_00187324 [00:34:03]file doc_00187325 [00:34:03]remove file /storage/0648/doc_00187325 [00:34:03]file doc_00187326 [00:34:03]remove file /storage/0648/doc_00187326 [00:34:03]file doc_00187327 [00:34:03]remove file /storage/0648/doc_00187327 [00:34:03]file doc_00187329 [00:34:03]remove file /storage/0648/doc_00187329 [00:34:03]file doc_00187330 [00:34:03]remove file /storage/0648/doc_00187330 [00:34:03]file doc_00187331 [00:34:03]remove file /storage/0648/doc_00187331 [00:34:03]file doc_00187332 [00:34:03]remove file /storage/0648/doc_00187332 [00:34:03]file doc_00187333 [00:34:03]remove file /storage/0648/doc_00187333 [00:34:03]file doc_00187334 [00:34:03]remove file /storage/0648/doc_00187334 [00:34:03]file doc_00187335 [00:34:03]remove file /storage/0648/doc_00187335 [00:34:03]file doc_00187336 [00:34:03]remove file /storage/0648/doc_00187336 [00:34:03]file doc_00187337 [00:34:03]remove file /storage/0648/doc_00187337 [00:34:03]file doc_00187338 [00:34:03]remove file /storage/0648/doc_00187338 [00:34:03]file doc_00187339 [00:34:03]remove file /storage/0648/doc_00187339 [00:34:03]file doc_00187340 [00:34:03]remove file /storage/0648/doc_00187340 [00:34:03]file doc_00187341 [00:34:03]remove file /storage/0648/doc_00187341 [00:34:03]file doc_00187342 [00:34:03]remove file /storage/0648/doc_00187342 [00:34:03]file doc_00187343 [00:34:03]remove file /storage/0648/doc_00187343 [00:34:03]file doc_00187344 [00:34:03]remove file /storage/0648/doc_00187344 [00:34:03]file doc_00187345 [00:34:03]remove file /storage/0648/doc_00187345 [00:34:03]file doc_00187346 [00:34:03]remove file /storage/0648/doc_00187346 [00:34:03]file doc_00187347 [00:34:03]remove file /storage/0648/doc_00187347 [00:34:03]file doc_00187348 [00:34:03]remove file /storage/0648/doc_00187348 [00:34:03]file doc_00187349 [00:34:03]remove file /storage/0648/doc_00187349 [00:34:03]file doc_00187350 [00:34:03]remove file /storage/0648/doc_00187350 [00:34:03]file doc_00187351 [00:34:03]remove file /storage/0648/doc_00187351 [00:34:03]file doc_00187352 [00:34:03]remove file /storage/0648/doc_00187352 [00:34:03]file doc_00187353 [00:34:03]remove file /storage/0648/doc_00187353 [00:34:03]file doc_00187354 [00:34:03]remove file /storage/0648/doc_00187354 [00:34:03]file doc_00187355 [00:34:03]remove file /storage/0648/doc_00187355 [00:34:03]file doc_00187356 [00:34:03]remove file /storage/0648/doc_00187356 [00:34:03]file doc_00187357 [00:34:03]remove file /storage/0648/doc_00187357 [00:34:03]file doc_00187358 [00:34:03]remove file /storage/0648/doc_00187358 [00:34:03]file doc_00187359 [00:34:03]remove file /storage/0648/doc_00187359 [00:34:03]file doc_00187360 [00:34:03]remove file /storage/0648/doc_00187360 [00:34:03]file doc_00187361 [00:34:03]remove file /storage/0648/doc_00187361 [00:34:03]file doc_00187362 [00:34:03]remove file /storage/0648/doc_00187362 [00:34:03]file doc_00187363 [00:34:03]remove file /storage/0648/doc_00187363 [00:34:03]file doc_00187364 [00:34:03]remove file /storage/0648/doc_00187364 [00:34:03]file doc_00187365 [00:34:03]remove file /storage/0648/doc_00187365 [00:34:03]file doc_00187366 [00:34:03]remove file /storage/0648/doc_00187366 [00:34:03]file doc_00187367 [00:34:03]remove file /storage/0648/doc_00187367 [00:34:03]file doc_00187368 [00:34:03]remove file /storage/0648/doc_00187368 [00:34:03]file doc_00187369 [00:34:03]remove file /storage/0648/doc_00187369 [00:34:03]file doc_00187370 [00:34:03]remove file /storage/0648/doc_00187370 [00:34:03]file doc_00187371 [00:34:03]remove file /storage/0648/doc_00187371 [00:34:03]file doc_00187372 [00:34:03]remove file /storage/0648/doc_00187372 [00:34:03]file doc_00187373 [00:34:03]remove file /storage/0648/doc_00187373 [00:34:03]file doc_00187374 [00:34:03]remove file /storage/0648/doc_00187374 [00:34:03]file doc_00187375 [00:34:03]remove file /storage/0648/doc_00187375 [00:34:03]file doc_00187376 [00:34:03]remove file /storage/0648/doc_00187376 [00:34:03]file doc_00187377 [00:34:03]remove file /storage/0648/doc_00187377 [00:34:03]file doc_00187378 [00:34:03]remove file /storage/0648/doc_00187378 [00:34:03]file doc_00187379 [00:34:03]remove file /storage/0648/doc_00187379 [00:34:03]file doc_00187380 [00:34:03]remove file /storage/0648/doc_00187380 [00:34:03]file doc_00187381 [00:34:03]remove file /storage/0648/doc_00187381 [00:34:03]file doc_00187382 [00:34:03]remove file /storage/0648/doc_00187382 [00:34:03]file doc_00187383 [00:34:03]remove file /storage/0648/doc_00187383 [00:34:03]file doc_00187384 [00:34:03]remove file /storage/0648/doc_00187384 [00:34:03]file doc_00187385 [00:34:03]remove file /storage/0648/doc_00187385 [00:34:03]file doc_00187386 [00:34:03]remove file /storage/0648/doc_00187386 [00:34:03]file doc_00187387 [00:34:03]remove file /storage/0648/doc_00187387 [00:34:03]file doc_00187388 [00:34:03]remove file /storage/0648/doc_00187388 [00:34:03]file doc_00187389 [00:34:03]remove file /storage/0648/doc_00187389 [00:34:03]file doc_00187390 [00:34:03]remove file /storage/0648/doc_00187390 [00:34:03]file doc_00187391 [00:34:03]remove file /storage/0648/doc_00187391 [00:34:03]file doc_00187392 [00:34:03]remove file /storage/0648/doc_00187392 [00:34:03]file doc_00187393 [00:34:03]remove file /storage/0648/doc_00187393 [00:34:03]file doc_00187394 [00:34:03]remove file /storage/0648/doc_00187394 [00:34:03]file doc_00187395 [00:34:03]remove file /storage/0648/doc_00187395 [00:34:03]file doc_00187396 [00:34:03]remove file /storage/0648/doc_00187396 [00:34:03]file doc_00187397 [00:34:03]remove file /storage/0648/doc_00187397 [00:34:03]file doc_00187398 [00:34:03]remove file /storage/0648/doc_00187398 [00:34:03]file doc_00187399 [00:34:03]remove file /storage/0648/doc_00187399 [00:34:03]file doc_00187400 [00:34:03]remove file /storage/0648/doc_00187400 [00:34:03]file doc_00187401 [00:34:03]remove file /storage/0648/doc_00187401 [00:34:03]file doc_00187402 [00:34:03]remove file /storage/0648/doc_00187402 [00:34:03]file doc_00187403 [00:34:03]remove file /storage/0648/doc_00187403 [00:34:03]file doc_00187404 [00:34:03]remove file /storage/0648/doc_00187404 [00:34:03]file doc_00187405 [00:34:03]remove file /storage/0648/doc_00187405 [00:34:03]file doc_00187406 [00:34:03]remove file /storage/0648/doc_00187406 [00:34:03]file doc_00187407 [00:34:03]remove file /storage/0648/doc_00187407 [00:34:03]file doc_00187408 [00:34:03]remove file /storage/0648/doc_00187408 [00:34:03]file doc_00187409 [00:34:03]remove file /storage/0648/doc_00187409 [00:34:03]file doc_00187410 [00:34:03]remove file /storage/0648/doc_00187410 [00:34:03]file doc_00187411 [00:34:03]remove file /storage/0648/doc_00187411 [00:34:03]file doc_00187412 [00:34:03]remove file /storage/0648/doc_00187412 [00:34:03]file doc_00187413 [00:34:03]remove file /storage/0648/doc_00187413 [00:34:03]file doc_00187414 [00:34:03]remove file /storage/0648/doc_00187414 [00:34:03]file doc_00187415 [00:34:03]remove file /storage/0648/doc_00187415 [00:34:03]file doc_00187416 [00:34:03]remove file /storage/0648/doc_00187416 [00:34:03]file doc_00187417 [00:34:03]remove file /storage/0648/doc_00187417 [00:34:03]file doc_00187418 [00:34:03]remove file /storage/0648/doc_00187418 [00:34:03]file doc_00187419 [00:34:03]remove file /storage/0648/doc_00187419 [00:34:03]file doc_00187420 [00:34:03]remove file /storage/0648/doc_00187420 [00:34:03]file doc_00187421 [00:34:03]remove file /storage/0648/doc_00187421 [00:34:03]file doc_00187422 [00:34:03]remove file /storage/0648/doc_00187422 [00:34:03]file doc_00187423 [00:34:03]remove file /storage/0648/doc_00187423 [00:34:03]file doc_00187424 [00:34:03]remove file /storage/0648/doc_00187424 [00:34:03]file doc_00187425 [00:34:03]remove file /storage/0648/doc_00187425 [00:34:03]file doc_00187426 [00:34:03]remove file /storage/0648/doc_00187426 [00:34:03]file doc_00187427 [00:34:03]remove file /storage/0648/doc_00187427 [00:34:03]file doc_00187428 [00:34:03]remove file /storage/0648/doc_00187428 [00:34:03]file doc_00187429 [00:34:03]remove file /storage/0648/doc_00187429 [00:34:03]file doc_00187430 [00:34:03]remove file /storage/0648/doc_00187430 [00:34:03]file doc_00187431 [00:34:03]remove file /storage/0648/doc_00187431 [00:34:03]file doc_00187432 [00:34:03]remove file /storage/0648/doc_00187432 [00:34:03]file doc_00187433 [00:34:03]remove file /storage/0648/doc_00187433 [00:34:03]file doc_00187434 [00:34:03]remove file /storage/0648/doc_00187434 [00:34:03]file doc_00187435 [00:34:03]remove file /storage/0648/doc_00187435 [00:34:03]file doc_00187436 [00:34:03]remove file /storage/0648/doc_00187436 [00:34:03]file doc_00187437 [00:34:03]remove file /storage/0648/doc_00187437 [00:34:03]file doc_00187438 [00:34:03]remove file /storage/0648/doc_00187438 [00:34:03]file doc_00187439 [00:34:03]remove file /storage/0648/doc_00187439 [00:34:03]file doc_00187440 [00:34:03]remove file /storage/0648/doc_00187440 [00:34:03]file doc_00187441 [00:34:03]remove file /storage/0648/doc_00187441 [00:34:03]file doc_00187442 [00:34:03]remove file /storage/0648/doc_00187442 [00:34:03]file doc_00187443 [00:34:03]remove file /storage/0648/doc_00187443 [00:34:03]file doc_00187444 [00:34:03]remove file /storage/0648/doc_00187444 [00:34:03]file doc_00187445 [00:34:03]remove file /storage/0648/doc_00187445 [00:34:03]file doc_00187446 [00:34:03]remove file /storage/0648/doc_00187446 [00:34:03]file doc_00187447 [00:34:03]remove file /storage/0648/doc_00187447 [00:34:03]file doc_00187448 [00:34:03]remove file /storage/0648/doc_00187448 [00:34:03]file doc_00187449 [00:34:03]remove file /storage/0648/doc_00187449 [00:34:03]file doc_00187450 [00:34:03]remove file /storage/0648/doc_00187450 [00:34:03]file doc_00187451 [00:34:03]remove file /storage/0648/doc_00187451 [00:34:03]file doc_00187452 [00:34:03]remove file /storage/0648/doc_00187452 [00:34:03]file doc_00187453 [00:34:03]remove file /storage/0648/doc_00187453 [00:34:03]file doc_00187454 [00:34:03]remove file /storage/0648/doc_00187454 [00:34:03]file doc_00187455 [00:34:03]remove file /storage/0648/doc_00187455 [00:34:03]file doc_00187456 [00:34:03]remove file /storage/0648/doc_00187456 [00:34:03]file doc_00187457 [00:34:03]remove file /storage/0648/doc_00187457 [00:34:03]file doc_00187458 [00:34:03]remove file /storage/0648/doc_00187458 [00:34:03]file doc_00187459 [00:34:03]remove file /storage/0648/doc_00187459 [00:34:03]file doc_00187460 [00:34:03]remove file /storage/0648/doc_00187460 [00:34:03]file doc_00187461 [00:34:03]remove file /storage/0648/doc_00187461 [00:34:03]file doc_00187462 [00:34:03]remove file /storage/0648/doc_00187462 [00:34:03]file doc_00187463 [00:34:03]remove file /storage/0648/doc_00187463 [00:34:03]file doc_00187464 [00:34:03]remove file /storage/0648/doc_00187464 [00:34:03]file doc_00187465 [00:34:03]remove file /storage/0648/doc_00187465 [00:34:03]file doc_00187466 [00:34:03]remove file /storage/0648/doc_00187466 [00:34:03]file doc_00187467 [00:34:04]remove file /storage/0648/doc_00187467 [00:34:04]file doc_00187468 [00:34:04]remove file /storage/0648/doc_00187468 [00:34:04]file doc_00187469 [00:34:04]remove file /storage/0648/doc_00187469 [00:34:04]file doc_00187470 [00:34:04]remove file /storage/0648/doc_00187470 [00:34:04]file doc_00187471 [00:34:04]remove file /storage/0648/doc_00187471 [00:34:04]file doc_00187472 [00:34:04]remove file /storage/0648/doc_00187472 [00:34:04]file doc_00187473 [00:34:04]remove file /storage/0648/doc_00187473 [00:34:04]file doc_00187474 [00:34:04]remove file /storage/0648/doc_00187474 [00:34:04]file doc_00187475 [00:34:04]remove file /storage/0648/doc_00187475 [00:34:04]file doc_00187476 [00:34:04]remove file /storage/0648/doc_00187476 [00:34:04]file doc_00187477 [00:34:04]remove file /storage/0648/doc_00187477 [00:34:04]file doc_00187478 [00:34:04]remove file /storage/0648/doc_00187478 [00:34:04]file doc_00187479 [00:34:04]remove file /storage/0648/doc_00187479 [00:34:04]file doc_00187480 [00:34:04]remove file /storage/0648/doc_00187480 [00:34:04]file doc_00187481 [00:34:04]remove file /storage/0648/doc_00187481 [00:34:04]file doc_00187482 [00:34:04]remove file /storage/0648/doc_00187482 [00:34:04]file doc_00187483 [00:34:04]remove file /storage/0648/doc_00187483 [00:34:04]file doc_00187484 [00:34:04]remove file /storage/0648/doc_00187484 [00:34:04]file doc_00187485 [00:34:04]remove file /storage/0648/doc_00187485 [00:34:04]file doc_00187486 [00:34:04]remove file /storage/0648/doc_00187486 [00:34:04]file doc_00187487 [00:34:04]remove file /storage/0648/doc_00187487 [00:34:04]file doc_00187488 [00:34:04]remove file /storage/0648/doc_00187488 [00:34:04]file doc_00187489 [00:34:04]remove file /storage/0648/doc_00187489 [00:34:04]file doc_00187490 [00:34:04]remove file /storage/0648/doc_00187490 [00:34:04]file doc_00187491 [00:34:04]remove file /storage/0648/doc_00187491 [00:34:04]file doc_00187492 [00:34:04]remove file /storage/0648/doc_00187492 [00:34:04]file doc_00187493 [00:34:04]remove file /storage/0648/doc_00187493 [00:34:04]file doc_00187494 [00:34:04]remove file /storage/0648/doc_00187494 [00:34:04]file doc_00187495 [00:34:04]remove file /storage/0648/doc_00187495 [00:34:04]file doc_00187496 [00:34:04]remove file /storage/0648/doc_00187496 [00:34:04]file doc_00187497 [00:34:04]remove file /storage/0648/doc_00187497 [00:34:04]file doc_00187498 [00:34:04]remove file /storage/0648/doc_00187498 [00:34:04]file doc_00187499 [00:34:04]remove file /storage/0648/doc_00187499 [00:34:04]file doc_00187500 [00:34:04]remove file /storage/0648/doc_00187500 [00:34:04]file doc_00187501 [00:34:04]remove file /storage/0648/doc_00187501 [00:34:04]file doc_00187502 [00:34:04]remove file /storage/0648/doc_00187502 [00:34:04]file doc_00187503 [00:34:04]remove file /storage/0648/doc_00187503 [00:34:04]file doc_00187504 [00:34:04]remove file /storage/0648/doc_00187504 [00:34:04]file doc_00187505 [00:34:04]remove file /storage/0648/doc_00187505 [00:34:04]remove dir /storage/0648 [00:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=246 [00:34:04]tlvbuf is 02026370 [00:34:04]SAM_PROTO_ClearQueue [00:34:04]wFMCommunicate request_size=4 [00:34:04]MH_SAM_APDU [00:34:04]CAPDU: 80 09 00 00 [00:34:04]Write to MH i2c: E2 08 00 C6 0E 80 09 00 00 00 00 00 00 46 [00:34:04]Write i2c OK [00:34:04]MH_I2C_Read... [00:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:04]Read from MH i2c: E2 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 03 00 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 03 00 C6 0E 00 90 00 48 [00:34:04]RAPDU: 90 00 [00:34:04]wFMCommunicate OK [00:34:04]SAM_PROTO_ClearQueue done [00:34:04]KKMCreateOFDPacket [00:34:04]OFDProtocolAddRootSTLVToBuf [00:34:04]FM_MakeSignedData [00:34:04]FM_MakeSignedData [00:34:04]SAM_PROTO_SignData [00:34:04]wFMCommunicate request_size=4 [00:34:04]MH_SAM_APDU [00:34:04]CAPDU: 80 0D 01 02 [00:34:04]Write to MH i2c: E2 08 00 C7 0E 80 0D 01 02 00 00 00 00 4E [00:34:04]Write i2c OK [00:34:04]MH_I2C_Read... [00:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:04]Read from MH i2c: E2 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 03 00 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [00:34:04]RAPDU: 90 00 [00:34:04]wFMCommunicate OK [00:34:04]wFMCommunicate request_size=255 [00:34:04]MH_SAM_APDU [00:34:04]CAPDU: 80 0D 02 02 FA 02 00 F6 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 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 FB C9 B7 67 0E 04 04 00 89 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 43 39 A8 4A 2B B8 [00:34:04]Write to MH i2c: E2 02 01 C8 0E 80 0D 02 02 FA 00 02 00 F6 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 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 FB C9 B7 67 0E 04 04 00 89 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 43 39 A8 4A 2B B8 00 00 4F [00:34:04]Write i2c OK [00:34:04]MH_I2C_Read... [00:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:04]Read from MH i2c: E2 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 03 00 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [00:34:04]RAPDU: 90 00 [00:34:04]wFMCommunicate OK [00:34:04]wFMCommunicate request_size=4 [00:34:04]MH_SAM_APDU [00:34:04]CAPDU: 80 0D 03 02 [00:34:04]Write to MH i2c: E2 08 00 C9 0E 80 0D 03 02 00 00 00 00 52 [00:34:04]Write i2c OK [00:34:04]MH_I2C_Read... [00:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:04]Read from MH i2c: E2 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 0B 00 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 0B 00 C9 0E 00 22 C2 A8 00 56 A5 E8 C1 90 00 83 [00:34:04]RAPDU: 22 C2 A8 00 56 A5 E8 C1 90 00 [00:34:04]wFMCommunicate OK [00:34:04]SAM_PROTO_SignData done [00:34:04]FM_MakeSignedData done [00:34:04]CreateOFDProtocolMessage [00:34:04]wFMCommunicate request_size=4 [00:34:04]MH_SAM_APDU [00:34:04]CAPDU: 80 11 00 00 [00:34:04]Write to MH i2c: E2 08 00 CA 0E 80 11 00 00 00 00 00 00 52 [00:34:04]Write i2c OK [00:34:04]MH_I2C_Read... [00:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:04]Read from MH i2c: E2 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 17 00 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: E2 17 00 CA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [00:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:34:04]wFMCommunicate OK [00:34:04]CreateOFDProtocolMessage done [00:34:04]OFDSenderStorePacket 187506 [00:34:04]StoreOFDPacket docnum=187506 [00:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0A 01 00 00 C6 16 02 01 EE 12 5A 02 01 00 02 00 F6 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 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 FB C9 B7 67 0E 04 04 00 89 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 43 39 A8 4A 2B B8 22 C2 A8 00 56 A5 E8 C1 [00:34:04]CheckFolder [00:34:04]dirname=/storage/ofd_packets [00:34:04]CheckFolder done [00:34:04]ProducePacketName [00:34:04]name=ofd_packets/00187506 [00:34:04]NVStorageSaveData ofd_packets/00187506 [00:34:04]File name is /storage/ofd_packets/00187506 [00:34:04]Write 296 bytes [00:34:04]NVStorageSaveData done [00:34:04]OFDSenderStorePacket done [00:34:04]KKMCreateOFDPacket done [00:34:04]NVStorageSaveData kkm_last_timestamp [00:34:04]File name is /storage/kkm_last_timestamp [00:34:04]Write 4 bytes [00:34:04]NVStorageSaveData done [00:34:04]ExternCall_PrintAddStr [00:34:04]wPrintStart [00:34:04]Write to MH i2c: 01 00 00 CB 0E D9 [00:34:04]Write i2c OK [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: 01 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: 01 07 00 [00:34:04]MH_I2C_Read... [00:34:04]Read from MH i2c: 01 07 00 CB 0E 00 00 00 00 00 FF 0F EE [00:34:04]RasterBufferAndPrint [00:34:04]line Отчет об открытии смены [00:34:04]line ФФД: 1.0 [00:34:04]line ИНН: 02508201610067 [00:34:04]line Кассир: Байматов С. [00:34:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:34:04]line Место: АЗС № 92 "Партнер Нефть" [00:34:04]line 21.02.2025 00:34 [00:34:04]line Смена: 649 [00:34:04]line РНМ: 0000000000091857 [00:34:04]line ЗНМ: 0300000118 [00:34:04]line ФД: 187506 [00:34:04]line ФМ: 0000000000871826 [00:34:04]line ФПД: 73914915630008 [00:34:04]written 0, free lines is 4095 [00:34:04]OFD Sender: Processing packet 187506 [packets to send 49, broken 48] [00:34:04]ProducePacketName [00:34:04]name=ofd_packets/00187506 [00:34:04]OFD Sender: To server: pG, [00:34:04]CommunicateWithHost lk.salyk.kg:30040 [00:34:04]ConnectInit lk.salyk.kg [00:34:05]Connected sock=10 [00: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 31 38 32 36 0A 01 00 00 C6 16 02 01 EE 12 5A 02 01 00 02 00 F6 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 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 FB C9 B7 67 0E 04 04 00 89 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 43 39 A8 4A 2B B8 22 C2 A8 00 56 A5 E8 C1 [00:34:05]Write to MH i2c: 01 00 00 DD 0E EB [00:34:05]Write i2c OK [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: 01 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: 01 07 00 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: 01 07 00 DD 0E 00 00 00 00 00 4D 0F 4E [00:34:05]RasterBufferAndPrint [00:34:05]line [00:34:05]line [00:34:05]line [00:34:05]line [00:34:05]line [00:34:05]written 0, free lines is 3938 [00:34:05]MH_Cut [00:34:05]Write to MH i2c: D1 01 00 E4 0E 01 C4 [00:34:05]Write i2c OK [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: D1 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: D1 01 00 [00:34:05]MH_I2C_Read... [00:34:05]Read from MH i2c: D1 01 00 E4 0E 00 C3 [00:34:05]Write to MH i2c: 01 00 00 E5 0E F3 [00:34:05]Write i2c OK [00:34:05]MH_I2C_Read... [00:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9A 97 47 00 68 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 31 38 32 36 10 04 04 00 72 DC 02 00 F4 03 04 00 4C 70 B7 67 B6 04 01 00 00 5A 27 B7 79 7E F5 2A 78 [00:34:05]CommunicateWithHost err = 0 [00:34:05]CheckOFDResponse [00:34:05]1017 (14) - 77093643461234 [00:34:05]1041 (16) - 0000000000871826 [00:34:05]1040 (4) - 187506 [00:34:05]1012 (4) - 20.02.2025 18:11 [00:34:05]1206 (1) - 0 [00:34:05]OFD Sender: Remove packet 187506 [00:34:05]ProducePacketName [00:34:05]name=ofd_packets/00187506 [00:34:05]NVStorageDeleteData [00:34:05]*** Cut start [00:34:05]*** Partial cut [00:34:05]*** CUTSNS_PIN = 1 [00:34:05]*** CUTSNS_PIN = 0 [00:34:05]*** Brake cut motor [00:34:05]OFD Sender: No OFD packet to send [00:34:06]Read from MH i2c: 01 [00:34:06]MH_I2C_Read... [00:34:06]*** Stop cut motor [00:34:06]*** Cut end [00:34:06]Read from MH i2c: 01 07 00 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [00:34:06]process_action open_shift done [00:34:06]requested_data is exist [00:34:06]produce_requested_data [00:34:06]requested_item fd.num is exist - process it [00:34:06]SAM_PROTO_GetFieldsCounters [00:34:06]wFMCommunicate request_size=4 [00:34:06]MH_SAM_APDU [00:34:06]CAPDU: 80 13 00 00 [00:34:06]Write to MH i2c: E2 08 00 E6 0E 80 13 00 00 00 00 00 00 70 [00:34:06]Write i2c OK [00:34:06]MH_I2C_Read... [00:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:06]Read from MH i2c: E2 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 62 00 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 62 00 E6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [00: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:06]wFMCommunicate OK [00:34:06]SAM_PROTO_GetFieldsCounters done [00:34:06]requested_item shift.num is exist - process it [00:34:06]requested_item shift.opened is exist - process it [00:34:06]req_shift_opened [00:34:06]FM_GetShiftState [00:34:06]SAM_PROTO_GetShiftState [00:34:06]wFMCommunicate request_size=4 [00:34:06]MH_SAM_APDU [00:34:06]CAPDU: 80 13 01 00 [00:34:06]Write to MH i2c: E2 08 00 E7 0E 80 13 01 00 00 00 00 00 72 [00:34:06]Write i2c OK [00:34:06]MH_I2C_Read... [00:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:06]Read from MH i2c: E2 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 0E 00 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 0E 00 E7 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 60 [00:34:06]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [00:34:06]wFMCommunicate OK [00:34:06]SAM_PROTO_GetShiftState done [00:34:06]FM_GetShiftState done [00:34:06]req_shift_opened done [00:34:06]requested_item shift.open_date is exist - process it [00:34:06]req_shift_open_date [00:34:06]req_shift_open_date done [00:34:06]produce_requested_data done [00:34:06]produce_requested_data return {"fd.num":187506,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [00:34:06]process_action_free open_shift [00:34:06]json_value_free [00:34:06]json_value_free done [00:34:06]process_json_proto returns [00:34:06]Send response to host [00:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187506,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [00:34:06]free response buf [00:34:06]execute_script done [00:34:06]execute_script returns [00:34:06]free content buf [00:34:06]Sock 9.Close socket [00:34:06]Sock 9.Thread stoped [00:34:06]accept exits with 7 [00:34:06]New connection [00:34:06]New thread 3067080036 created [00:34:06]Thread 3067223396 joined [00:34:06]Waiting for new connection... [00:34:06] Sock 7.Parse request [00:34:06]Sock 7.Check first char [00:34:06]Sock 7.First char is OK [00:34:06]request: POST /json_proto HTTP/1.0 [00:34:06]Method: POST [00:34:06]URL: /json_proto [00:34:06]Method is POST - this is cgi request [00:34:06]url: /json_proto [00:34:06]query_string will be loaded in cgi processing [00:34:06]execute_cgi json_proto POST (null) [00:34:06]execute_cgi path=json_proto method=POST [00:34:06]POST find Content-Length [00:34:06]Host: 172.17.46.131:8080 [00:34:06]Content-Length: 331 [00:34:06]Content-Type: application/json [00:34:06] [00:34:06]POST finish read [00:34:06]Found Content-Length = 331 [00:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:34:06]execute_script... [00:34:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:34:06]POST & json_proto [00:34:06]process_json_proto [00:34:06]json parsed OK: [00:34:06]protocol is kg_v1.0 [00:34:06]action value=get_value [00:34:06]process_action get_value [00:34:06]cmd_get_value [00:34:06]process_action get_value done [00:34:06]requested_data is exist [00:34:06]produce_requested_data [00:34:06]requested_item fm.sale.total is exist - process it [00:34:06]SAM_PROTO_GetFMData [00:34:06]wFMCommunicate request_size=4 [00:34:06]MH_SAM_APDU [00:34:06]CAPDU: 80 13 03 00 [00:34:06]Write to MH i2c: E2 08 00 E8 0E 80 13 03 00 00 00 00 00 75 [00:34:06]Write i2c OK [00:34:06]MH_I2C_Read... [00:34:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:34:06]Read from MH i2c: E2 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 [00:34:06]MH_I2C_Read... [00:34:06]Read from MH i2c: E2 FD 00 E8 0E 00 C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 4F [00:34:07]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 60 D7 02 00 69 04 A3 00 6F 04 04 00 4D D7 02 00 B1 04 05 00 6B AA 74 1D 04 70 04 05 00 1C 7A E3 9B 03 72 04 04 00 4F 30 91 81 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 22 C6 E7 6F 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 3D 1D 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:34:07]wFMCommunicate OK [00:34:07]wFMCommunicate request_size=4 [00:34:07]MH_SAM_APDU [00:34:07]CAPDU: 80 17 00 00 [00:34:07]Write to MH i2c: E2 08 00 E9 0E 80 17 00 00 00 00 00 00 77 [00:34:07]Write i2c OK [00:34:07]MH_I2C_Read... [00:34:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:07]Read from MH i2c: E2 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 FD 00 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 FD 00 E9 0E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [00:34:07]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:07]wFMCommunicate OK [00:34:07]wFMCommunicate request_size=4 [00:34:07]MH_SAM_APDU [00:34:07]CAPDU: 80 17 00 00 [00:34:07]Write to MH i2c: E2 08 00 EA 0E 80 17 00 00 00 00 00 00 78 [00:34:07]Write i2c OK [00:34:07]MH_I2C_Read... [00:34:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:07]Read from MH i2c: E2 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 FD 00 [00:34:07]MH_I2C_Read... [00:34:07]Read from MH i2c: E2 FD 00 EA 0E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 18 [00:34:07]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:34:08]wFMCommunicate OK [00:34:08]wFMCommunicate request_size=4 [00:34:08]MH_SAM_APDU [00:34:08]CAPDU: 80 17 00 00 [00:34:08]Write to MH i2c: E2 08 00 EB 0E 80 17 00 00 00 00 00 00 79 [00:34:08]Write i2c OK [00:34:08]MH_I2C_Read... [00:34:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:08]Read from MH i2c: E2 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 FD 00 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 FD 00 EB 0E 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [00:34:08]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:34:08]wFMCommunicate OK [00:34:08]wFMCommunicate request_size=4 [00:34:08]MH_SAM_APDU [00:34:08]CAPDU: 80 17 00 00 [00:34:08]Write to MH i2c: E2 08 00 EC 0E 80 17 00 00 00 00 00 00 7A [00:34:08]Write i2c OK [00:34:08]MH_I2C_Read... [00:34:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:34:08]Read from MH i2c: E2 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 DE 00 [00:34:08]MH_I2C_Read... [00:34:08]Read from MH i2c: E2 DE 00 EC 0E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [00:34:08]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:08]wFMCommunicate OK [00:34:08]SAM_PROTO_GetFMData done [00:34:08]requested_item fm.sale_refund.total is exist - process it [00:34:08]requested_item fm.buy.total is exist - process it [00:34:08]requested_item shift.sale.total is exist - process it [00:34:08]SAM_PROTO_GetShiftData [00:34:08]wFMCommunicate request_size=4 [00:34:08]MH_SAM_APDU [00:34:08]CAPDU: 80 13 02 00 [00:34:08]Write to MH i2c: E2 08 00 ED 0E 80 13 02 00 00 00 00 00 79 [00:34:08]Write i2c OK [00:34:08]MH_I2C_Read... [00:34:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:09]Read from MH i2c: E2 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 ED 0E 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 EC [00:34:09]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:34:09]wFMCommunicate OK [00:34:09]wFMCommunicate request_size=4 [00:34:09]MH_SAM_APDU [00:34:09]CAPDU: 80 17 00 00 [00:34:09]Write to MH i2c: E2 08 00 EE 0E 80 17 00 00 00 00 00 00 7C [00:34:09]Write i2c OK [00:34:09]MH_I2C_Read... [00:34:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:09]Read from MH i2c: E2 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 [00:34:09]MH_I2C_Read... [00:34:09]Read from MH i2c: E2 FD 00 EE 0E 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 84 [00:34:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:34:10]wFMCommunicate OK [00:34:10]wFMCommunicate request_size=4 [00:34:10]MH_SAM_APDU [00:34:10]CAPDU: 80 17 00 00 [00:34:10]Write to MH i2c: E2 08 00 EF 0E 80 17 00 00 00 00 00 00 7D [00:34:10]Write i2c OK [00:34:10]MH_I2C_Read... [00:34:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:10]Read from MH i2c: E2 [00:34:10]MH_I2C_Read... [00:34:10]Read from MH i2c: E2 FD 00 [00:34:10]MH_I2C_Read... [00:34:10]Read from MH i2c: E2 FD 00 EF 0E 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 4F [00:34:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:34:10]wFMCommunicate OK [00:34:10]wFMCommunicate request_size=4 [00:34:10]MH_SAM_APDU [00:34:10]CAPDU: 80 17 00 00 [00:34:10]Write to MH i2c: E2 08 00 F0 0E 80 17 00 00 00 00 00 00 7E [00:34:10]Write i2c OK [00:34:10]MH_I2C_Read... [00:34:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:10]Read from MH i2c: E2 [00:34:10]MH_I2C_Read... [00:34:10]Read from MH i2c: E2 FD 00 [00:34:10]MH_I2C_Read... [00:34:10]Read from MH i2c: E2 FD 00 F0 0E 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 F0 [00:34:10]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:34:10]wFMCommunicate OK [00:34:10]wFMCommunicate request_size=4 [00:34:10]MH_SAM_APDU [00:34:10]CAPDU: 80 17 00 00 [00:34:10]Write to MH i2c: E2 08 00 F1 0E 80 17 00 00 00 00 00 00 7F [00:34:10]Write i2c OK [00:34:10]MH_I2C_Read... [00:34:11]OFD Sender: No OFD packet to send [00:34:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:34:11]Read from MH i2c: E2 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: E2 BD 00 [00:34:11]MH_I2C_Read... [00:34:11]Read from MH i2c: E2 BD 00 F1 0E 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [00:34:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:11]wFMCommunicate OK [00:34:11]SAM_PROTO_GetShiftData done [00:34:11]requested_item shift.sale.total_cash is exist - process it [00:34:11]requested_item shift.sale_refund.total is exist - process it [00:34:11]requested_item shift.sale_refund.total_cash is exist - process it [00:34:11]requested_item shift.buy.total is exist - process it [00:34:11]requested_item shift.buy.total_cash is exist - process it [00:34:11]produce_requested_data done [00:34:11]produce_requested_data return {"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:34:11]process_action_free get_value [00:34:11]json_value_free [00:34:11]json_value_free done [00:34:11]process_json_proto returns [00:34:11]Send response to host [00:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176740542.51,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:34:11]free response buf [00:34:11]execute_script done [00:34:11]execute_script returns [00:34:11]free content buf [00:34:11]Sock 7.Close socket [00:34:11]Sock 7.Thread stoped [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:54]accept exits with 9 [00:35:54]New connection [00:35:54]New thread 3067223396 created [00:35:54]Thread 3067080036 joined [00:35:54]Waiting for new connection... [00:35:54] Sock 9.Parse request [00:35:54]Sock 9.Check first char [00:35:54]Sock 9.First char is OK [00:35:54]request: POST /json_proto HTTP/1.0 [00:35:54]Method: POST [00:35:54]URL: /json_proto [00:35:54]Method is POST - this is cgi request [00:35:54]url: /json_proto [00:35:54]query_string will be loaded in cgi processing [00:35:54]execute_cgi json_proto POST (null) [00:35:54]execute_cgi path=json_proto method=POST [00:35:54]POST find Content-Length [00:35:54]Host: 172.17.46.131:8080 [00:35:54]Content-Length: 677 [00:35:54]Content-Type: application/json [00:35:54] [00:35:54]POST finish read [00:35:54]Found Content-Length = 677 [00:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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" ] } } [00:35:54]execute_script... [00:35: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)412664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "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" ] } } [00:35:54]POST & json_proto [00:35:54]process_json_proto [00:35:54]json parsed OK: [00:35:54]protocol is kg_v1.0 [00:35:54]action value=close_receipt [00:35:54]process_action close_receipt [00:35:54]cmd_close_receipt [00:35:54]MH_GetDate [00:35:54]Write to MH i2c: F0 00 00 F2 0E EF [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: F0 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: F0 09 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: F0 09 00 F2 0E 00 6C CA B7 67 7E 41 4F 65 BF [00:35:54]GetLastDocTimeStamp 1740098043 [00:35:54]current date 1740098156 [00:35:54]FM_GetShiftState [00:35:54]SAM_PROTO_GetShiftState [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 13 01 00 [00:35:54]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 0E 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6C [00:35:54]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [00:35:54]wFMCommunicate OK [00:35:54]SAM_PROTO_GetShiftState done [00:35:54]FM_GetShiftState done [00:35:54]opened in 1740098043 [00:35:54]opened+sec_in_day 1740184443 [00:35:54]quantity*price = 50011 [00:35:54]sum+1 = 50013 [00:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 1 21.02.2025 00:35 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187507 ФПД: 164395340524091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T003556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187507&fm=164395340524091&tin=02508201610067®Number=0000000000091857&sum=50000 [00:35:55]StoreToDocumentArchive [00:35:55]shift 649 fd 187507 [00:35:55]save to /storage/0649/doc_00187507 [00:35:55]save last doc name /storage/0649/doc_00187507 to /storage/kkm_last_doc_name [00:35:55]save OK [00:35:55]Clear old archive folders... [00:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:35:55]tlvbuf is 0203A740 [00:35:55]SAM_PROTO_ClearQueue [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 09 00 00 [00:35:55]Write to MH i2c: E2 08 00 00 0F 80 09 00 00 00 00 00 00 81 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 00 0F 00 90 00 83 [00:35:55]RAPDU: 90 00 [00:35:55]wFMCommunicate OK [00:35:55]SAM_PROTO_ClearQueue done [00:35:55]KKMCreateOFDPacket [00:35:55]OFDProtocolAddRootSTLVToBuf [00:35:55]FM_MakeSignedData [00:35:55]FM_MakeSignedData [00:35:55]SAM_PROTO_SignData [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 0D 01 02 [00:35:55]Write to MH i2c: E2 08 00 01 0F 80 0D 01 02 00 00 00 00 89 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [00:35:55]RAPDU: 90 00 [00:35:55]wFMCommunicate OK [00:35:55]wFMCommunicate request_size=255 [00:35:55]MH_SAM_APDU [00:35: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6C CA B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DC 02 00 35 04 06 00 95 [00:35:55]Write to MH i2c: E2 02 01 02 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6C CA B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DC 02 00 35 04 06 00 95 00 00 E8 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 03 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [00:35:56]RAPDU: 90 00 [00:35:56]wFMCommunicate OK [00:35:56]wFMCommunicate request_size=10 [00:35:56]MH_SAM_APDU [00:35:56]CAPDU: 80 0D 02 02 05 84 45 DF EA 3B [00:35:56]Write to MH i2c: E2 0D 00 03 0F 80 0D 02 02 05 00 84 45 DF EA 3B 00 00 63 [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 03 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [00:35:56]RAPDU: 90 00 [00:35:56]wFMCommunicate OK [00:35:56]wFMCommunicate request_size=4 [00:35:56]MH_SAM_APDU [00:35:56]CAPDU: 80 0D 03 02 [00:35:56]Write to MH i2c: E2 08 00 04 0F 80 0D 03 02 00 00 00 00 8E [00:35:56]OFD Sender: No OFD packet to send [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 0B 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 0B 00 04 0F 00 91 8A DF C2 EE B4 A2 8C 90 00 1B [00:35:56]RAPDU: 91 8A DF C2 EE B4 A2 8C 90 00 [00:35:56]wFMCommunicate OK [00:35:56]SAM_PROTO_SignData done [00:35:56]FM_MakeSignedData done [00:35:56]CreateOFDProtocolMessage [00:35:56]wFMCommunicate request_size=4 [00:35:56]MH_SAM_APDU [00:35:56]CAPDU: 80 11 00 00 [00:35:56]Write to MH i2c: E2 08 00 05 0F 80 11 00 00 00 00 00 00 8E [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 17 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 17 00 05 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [00:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:35:56]wFMCommunicate OK [00:35:56]CreateOFDProtocolMessage done [00:35:56]OFDSenderStorePacket 187507 [00:35:56]StoreOFDPacket docnum=187507 [00:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8A D7 07 01 AF 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6C CA B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DC 02 00 35 04 06 00 95 84 45 DF EA 3B 91 8A DF C2 EE B4 A2 8C [00:35:56]CheckFolder [00:35:56]dirname=/storage/ofd_packets [00:35:56]CheckFolder done [00:35:56]ProducePacketName [00:35:56]name=ofd_packets/00187507 [00:35:56]NVStorageSaveData ofd_packets/00187507 [00:35:56]File name is /storage/ofd_packets/00187507 [00:35:56]Write 301 bytes [00:35:56]NVStorageSaveData done [00:35:56]OFDSenderStorePacket done [00:35:56]KKMCreateOFDPacket done [00:35:56]NVStorageSaveData kkm_last_timestamp [00:35:56]File name is /storage/kkm_last_timestamp [00:35:56]Write 4 bytes [00:35:56]NVStorageSaveData done [00:35:56]ExternCall_PrintAddStr [00:35:56]wPrintStart [00:35:56]Write to MH i2c: 01 00 00 06 0F 15 [00:35:56]OFD Sender: Processing packet 187507 [packets to send 49, broken 48] [00:35:56]ProducePacketName [00:35:56]name=ofd_packets/00187507 [00:35:56]OFD Sender: To server: pG, [00:35:56]CommunicateWithHost lk.salyk.kg:30040 [00:35:56]ConnectInit lk.salyk.kg [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 07 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: 01 07 00 06 0F 00 00 00 00 00 FF 0F 2A [00:35:56]RasterBufferAndPrint [00:35:56]line Счет N : (1)412664 [00:35:56]line ИНН: 02508201610067 [00:35:56]line Контрольно-Кассовый Чек [00:35:56]line ПРОДАЖА [00:35:56]line ТРК (МРК, ГНК) : 32 [00:35:56]line Товар: 2710124130 [00:35:56]line Аи-92-К-2 [00:35:56]line 7.790 * 64.20 [00:35:56]line = 500.12 [00:35:56]line НДС 12% НСП 1% [00:35:56]line > о реализуемом товаре [00:35:56]line ОКРУГЛЕНИЕ: -0.12 [00:35:56]line ИТОГО: 500.00 [00:35:56]line Внесено: 500.00 [00:35:56]line СДАЧА: 0.00 [00:35:56]line НСП 1% : 4.43 [00:35:56]line НДС 12% : 53.11 [00:35:56]line Наличными: 500.00 [00:35:56]line Безнал.: 0.00 [00:35:56]line Место: АЗС № 92 "Партнер Нефть" [00:35:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:35:56]line СНО: Общий режим [00:35:56]line Чек 1 21.02.2025 00:35 [00:35:56]line Смена: 649 ФФД: 1.0 [00:35:56]line ЗНМ: 0300000118 [00:35:56]line РНМ: 0000000000091857 [00:35:56]line Версия ККМ: 001 [00:35:56]line ФМ: 0000000000871826 [00:35:56]line ФД: 187507 [00:35:56]line ФПД: 164395340524091 [00:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T003556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187507&fm=164395340524091&tin=02508201610067®Number=0000000000091857&sum=50000 [00:35:56]Connected sock=10 [00:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8A D7 07 01 AF 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6C CA B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DC 02 00 35 04 06 00 95 84 45 DF EA 3B 91 8A DF C2 EE B4 A2 8C [00:35:56]written 0, free lines is 4095 [00:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 68 88 47 00 62 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DC 02 00 F4 03 04 00 BB 70 B7 67 B6 04 01 00 00 1A BE 1F A7 D8 1D D1 39 [00:35:56]CommunicateWithHost err = 0 [00:35:56]CheckOFDResponse [00:35:56]1017 (14) - 77093643461234 [00:35:56]1041 (16) - 0000000000871826 [00:35:56]1040 (4) - 187507 [00:35:56]1012 (4) - 20.02.2025 18:13 [00:35:56]1206 (1) - 0 [00:35:56]OFD Sender: Remove packet 187507 [00:35:56]ProducePacketName [00:35:56]name=ofd_packets/00187507 [00:35:56]NVStorageDeleteData [00:35:57]Write to MH i2c: 01 00 00 31 0F 40 [00:35:57]Write i2c OK [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: 01 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: 01 07 00 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: 01 07 00 31 0F 00 00 00 00 00 E3 0C 36 [00:35:57]RasterBufferAndPrint [00:35:57]line [00:35:57]line [00:35:57]line [00:35:57]line [00:35:57]line [00:35:57]written 0, free lines is 3305 [00:35:57]MH_Cut [00:35:57]Write to MH i2c: D1 01 00 38 0F 01 19 [00:35:57]Write i2c OK [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: D1 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: D1 01 00 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: D1 01 00 38 0F 00 18 [00:35:57]Write to MH i2c: 01 00 00 39 0F 48 [00:35:57]Write i2c OK [00:35:57]MH_I2C_Read... [00:35:57]OFD Sender: No OFD packet to send [00:35:57]*** Cut start [00:35:57]*** Partial cut [00:35:57]*** CUTSNS_PIN = 1 [00:35:57]*** CUTSNS_PIN = 0 [00:35:58]*** Brake cut motor [00:35:58]Read from MH i2c: 01 [00:35:58]MH_I2C_Read... [00:35:58]*** Stop cut motor [00:35:58]*** Cut end [00:35:58]Read from MH i2c: 01 07 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 FF 0F 5D [00:35:58]process_action close_receipt done [00:35:58]requested_data is exist [00:35:58]produce_requested_data [00:35:58]requested_item fm.sn is exist - process it [00:35:58]wFMCommunicate request_size=4 [00:35:58]MH_SAM_APDU [00:35:58]CAPDU: 80 11 00 00 [00:35:58]Write to MH i2c: E2 08 00 3A 0F 80 11 00 00 00 00 00 00 C3 [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 17 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 17 00 3A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 16 [00:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:35:58]wFMCommunicate OK [00:35:58]requested_item fd.num is exist - process it [00:35:58]SAM_PROTO_GetFieldsCounters [00:35:58]wFMCommunicate request_size=4 [00:35:58]MH_SAM_APDU [00:35:58]CAPDU: 80 13 00 00 [00:35:58]Write to MH i2c: E2 08 00 3B 0F 80 13 00 00 00 00 00 00 C6 [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 62 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 62 00 3B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 73 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [00:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 73 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:58]wFMCommunicate OK [00:35:58]SAM_PROTO_GetFieldsCounters done [00:35:58]requested_item shift.num is exist - process it [00:35:58]requested_item shift.opened is exist - process it [00:35:58]req_shift_opened [00:35:58]FM_GetShiftState [00:35:58]SAM_PROTO_GetShiftState [00:35:58]wFMCommunicate request_size=4 [00:35:58]MH_SAM_APDU [00:35:58]CAPDU: 80 13 01 00 [00:35:58]Write to MH i2c: E2 08 00 3C 0F 80 13 01 00 00 00 00 00 C8 [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 0E 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 0E 00 3C 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B6 [00:35:58]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [00:35:58]wFMCommunicate OK [00:35:58]SAM_PROTO_GetShiftState done [00:35:58]FM_GetShiftState done [00:35:58]req_shift_opened done [00:35:58]requested_item shift.open_date is exist - process it [00:35:58]req_shift_open_date [00:35:58]req_shift_open_date done [00:35:58]produce_requested_data done [00:35:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187507,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [00:35:58]process_action_free close_receipt [00:35:58]json_value_free [00:35:58]json_value_free done [00:35:58]process_json_proto returns [00:35:58]Send response to host [00:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187507,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [00:35:58]free response buf [00:35:58]execute_script done [00:35:58]execute_script returns [00:35:58]free content buf [00:35:58]Sock 9.Close socket [00:35:58]Sock 9.Thread stoped [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]accept exits with 7 [00:54:23]New connection [00:54:23]New thread 3067080036 created [00:54:23]Thread 3067223396 joined [00:54:23]Waiting for new connection... [00:54:23] Sock 7.Parse request [00:54:23]Sock 7.Check first char [00:54:23]Sock 7.First char is OK [00:54:23]request: POST /json_proto HTTP/1.0 [00:54:23]Method: POST [00:54:23]URL: /json_proto [00:54:23]Method is POST - this is cgi request [00:54:23]url: /json_proto [00:54:23]query_string will be loaded in cgi processing [00:54:23]execute_cgi json_proto POST (null) [00:54:23]execute_cgi path=json_proto method=POST [00:54:23]POST find Content-Length [00:54:23]Host: 172.17.46.131:8080 [00:54:23]Content-Length: 678 [00:54:23]Content-Type: application/json [00:54:23] [00:54:23]POST finish read [00:54:23]Found Content-Length = 678 [00:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.440, "sum" : 750.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:23]execute_script... [00:54: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)412665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.440, "sum" : 750.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:23]POST & json_proto [00:54:23]process_json_proto [00:54:23]json parsed OK: [00:54:23]protocol is kg_v1.0 [00:54:23]action value=close_receipt [00:54:23]process_action close_receipt [00:54:23]cmd_close_receipt [00:54:23]MH_GetDate [00:54:23]Write to MH i2c: F0 00 00 3D 0F 3B [00:54:23]Write i2c OK [00:54:23]MH_I2C_Read... [00:54:23]Read from MH i2c: F0 [00:54:23]MH_I2C_Read... [00:54:23]Read from MH i2c: F0 09 00 [00:54:23]MH_I2C_Read... [00:54:23]Read from MH i2c: F0 09 00 3D 0F 00 C0 CE B7 67 7E 41 4F 65 63 [00:54:23]GetLastDocTimeStamp 1740098156 [00:54:23]current date 1740099264 [00:54:23]FM_GetShiftState [00:54:23]SAM_PROTO_GetShiftState [00:54:23]wFMCommunicate request_size=4 [00:54:23]MH_SAM_APDU [00:54:23]CAPDU: 80 13 01 00 [00:54:23]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [00:54:23]Write i2c OK [00:54:23]MH_I2C_Read... [00:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:23]Read from MH i2c: E2 [00:54:23]MH_I2C_Read... [00:54:23]Read from MH i2c: E2 0E 00 [00:54:23]MH_I2C_Read... [00:54:23]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B8 [00:54:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [00:54:23]wFMCommunicate OK [00:54:23]SAM_PROTO_GetShiftState done [00:54:23]FM_GetShiftState done [00:54:23]opened in 1740098043 [00:54:23]opened+sec_in_day 1740184443 [00:54:23]quantity*price = 75063 [00:54:23]sum+1 = 75065 [00:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 2 21.02.2025 00:54 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187508 ФПД: 261740812993875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T005424&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187508&fm=261740812993875&tin=02508201610067®Number=0000000000091857&sum=75000 [00:54:24]StoreToDocumentArchive [00:54:24]shift 649 fd 187508 [00:54:24]save to /storage/0649/doc_00187508 [00:54:24]save last doc name /storage/0649/doc_00187508 to /storage/kkm_last_doc_name [00:54:24]save OK [00:54:24]Clear old archive folders... [00:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:54:24]tlvbuf is 0208E7C0 [00:54:24]SAM_PROTO_ClearQueue [00:54:24]wFMCommunicate request_size=4 [00:54:24]MH_SAM_APDU [00:54:24]CAPDU: 80 09 00 00 [00:54:24]Write to MH i2c: E2 08 00 4B 0F 80 09 00 00 00 00 00 00 CC [00:54:24]Write i2c OK [00:54:24]MH_I2C_Read... [00:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:24]Read from MH i2c: E2 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 03 00 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [00:54:24]RAPDU: 90 00 [00:54:24]wFMCommunicate OK [00:54:24]SAM_PROTO_ClearQueue done [00:54:24]KKMCreateOFDPacket [00:54:24]OFDProtocolAddRootSTLVToBuf [00:54:24]FM_MakeSignedData [00:54:24]FM_MakeSignedData [00:54:24]SAM_PROTO_SignData [00:54:24]wFMCommunicate request_size=4 [00:54:24]MH_SAM_APDU [00:54:24]CAPDU: 80 0D 01 02 [00:54:24]Write to MH i2c: E2 08 00 4C 0F 80 0D 01 02 00 00 00 00 D4 [00:54:24]Write i2c OK [00:54:24]MH_I2C_Read... [00:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:24]Read from MH i2c: E2 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 03 00 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [00:54:24]RAPDU: 90 00 [00:54:24]wFMCommunicate OK [00:54:24]wFMCommunicate request_size=255 [00:54:24]MH_SAM_APDU [00:54:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C0 CE B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DC 02 00 35 04 06 00 EE [00:54:24]Write to MH i2c: E2 02 01 4D 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C0 CE B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DC 02 00 35 04 06 00 EE 00 00 F6 [00:54:24]Write i2c OK [00:54:24]MH_I2C_Read... [00:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:24]Read from MH i2c: E2 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 03 00 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [00:54:24]RAPDU: 90 00 [00:54:24]wFMCommunicate OK [00:54:24]wFMCommunicate request_size=10 [00:54:24]MH_SAM_APDU [00:54:24]CAPDU: 80 0D 02 02 05 0D 48 2E 85 53 [00:54:24]Write to MH i2c: E2 0D 00 4E 0F 80 0D 02 02 05 00 0D 48 2E 85 53 00 00 3C [00:54:24]Write i2c OK [00:54:24]MH_I2C_Read... [00:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:24]Read from MH i2c: E2 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 03 00 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [00:54:24]RAPDU: 90 00 [00:54:24]wFMCommunicate OK [00:54:24]wFMCommunicate request_size=4 [00:54:24]MH_SAM_APDU [00:54:24]CAPDU: 80 0D 03 02 [00:54:24]Write to MH i2c: E2 08 00 4F 0F 80 0D 03 02 00 00 00 00 D9 [00:54:24]Write i2c OK [00:54:24]MH_I2C_Read... [00:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:24]Read from MH i2c: E2 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 0B 00 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 0B 00 4F 0F 00 11 DE B3 FA 7A EE 32 9C 90 00 AC [00:54:24]RAPDU: 11 DE B3 FA 7A EE 32 9C 90 00 [00:54:24]wFMCommunicate OK [00:54:24]SAM_PROTO_SignData done [00:54:24]FM_MakeSignedData done [00:54:24]CreateOFDProtocolMessage [00:54:24]wFMCommunicate request_size=4 [00:54:24]MH_SAM_APDU [00:54:24]CAPDU: 80 11 00 00 [00:54:24]Write to MH i2c: E2 08 00 50 0F 80 11 00 00 00 00 00 00 D9 [00:54:24]Write i2c OK [00:54:24]MH_I2C_Read... [00:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:24]Read from MH i2c: E2 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 17 00 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: E2 17 00 50 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [00:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:54:24]wFMCommunicate OK [00:54:24]CreateOFDProtocolMessage done [00:54:24]OFDSenderStorePacket 187508 [00:54:24]StoreOFDPacket docnum=187508 [00:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F4 28 07 01 81 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C0 CE B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DC 02 00 35 04 06 00 EE 0D 48 2E 85 53 11 DE B3 FA 7A EE 32 9C [00:54:24]CheckFolder [00:54:24]dirname=/storage/ofd_packets [00:54:24]CheckFolder done [00:54:24]ProducePacketName [00:54:24]name=ofd_packets/00187508 [00:54:24]NVStorageSaveData ofd_packets/00187508 [00:54:24]File name is /storage/ofd_packets/00187508 [00:54:24]Write 301 bytes [00:54:24]NVStorageSaveData done [00:54:24]OFDSenderStorePacket done [00:54:24]KKMCreateOFDPacket done [00:54:24]NVStorageSaveData kkm_last_timestamp [00:54:24]File name is /storage/kkm_last_timestamp [00:54:24]Write 4 bytes [00:54:24]NVStorageSaveData done [00:54:24]ExternCall_PrintAddStr [00:54:24]wPrintStart [00:54:24]Write to MH i2c: 01 00 00 51 0F 60 [00:54:24]Write i2c OK [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: 01 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: 01 07 00 [00:54:24]MH_I2C_Read... [00:54:24]Read from MH i2c: 01 07 00 51 0F 00 00 00 00 00 FF 0F 75 [00:54:24]RasterBufferAndPrint [00:54:24]line Счет N : (1)412665 [00:54:24]line ИНН: 02508201610067 [00:54:24]line Контрольно-Кассовый Чек [00:54:24]line ПРОДАЖА [00:54:24]line ТРК (МРК, ГНК) : 43 [00:54:24]line Товар: 2710124500 [00:54:24]line Аи-95-К-5 [00:54:24]line 10.440 * 71.90 [00:54:24]line = 750.64 [00:54:24]line НДС 12% НСП 1% [00:54:24]line > о реализуемом товаре [00:54:24]line ОКРУГЛЕНИЕ: -0.64 [00:54:24]line ИТОГО: 750.00 [00:54:24]line Внесено: 750.00 [00:54:24]line СДАЧА: 0.00 [00:54:24]line НСП 1% : 6.64 [00:54:24]line НДС 12% : 79.71 [00:54:24]line Наличными: 750.00 [00:54:24]line Безнал.: 0.00 [00:54:24]line Место: АЗС № 92 "Партнер Нефть" [00:54:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:54:24]line СНО: Общий режим [00:54:24]line Чек 2 21.02.2025 00:54 [00:54:24]line Смена: 649 ФФД: 1.0 [00:54:24]line ЗНМ: 0300000118 [00:54:24]line РНМ: 0000000000091857 [00:54:24]line Версия ККМ: 001 [00:54:24]line ФМ: 0000000000871826 [00:54:24]line ФД: 187508 [00:54:24]line ФПД: 261740812993875 [00:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T005424&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187508&fm=261740812993875&tin=02508201610067®Number=0000000000091857&sum=75000 [00:54:25]OFD Sender: Processing packet 187508 [packets to send 49, broken 48] [00:54:25]ProducePacketName [00:54:25]name=ofd_packets/00187508 [00:54:25]OFD Sender: To server: pG, [00:54:25]CommunicateWithHost lk.salyk.kg:30040 [00:54:25]ConnectInit lk.salyk.kg [00:54:25]written 0, free lines is 4095 [00:54:25]Connected sock=10 [00:54:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F4 28 07 01 81 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C0 CE B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DC 02 00 35 04 06 00 EE 0D 48 2E 85 53 11 DE B3 FA 7A EE 32 9C [00:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 32 59 47 00 FA 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 DC 02 00 F4 03 04 00 10 75 B7 67 B6 04 01 00 00 CB 26 9F 38 09 8C 00 07 [00:54:25]CommunicateWithHost err = 0 [00:54:25]CheckOFDResponse [00:54:25]1017 (14) - 77093643461234 [00:54:25]1041 (16) - 0000000000871826 [00:54:25]1040 (4) - 187508 [00:54:25]1012 (4) - 20.02.2025 18:31 [00:54:25]1206 (1) - 0 [00:54:25]OFD Sender: Remove packet 187508 [00:54:25]ProducePacketName [00:54:25]name=ofd_packets/00187508 [00:54:25]NVStorageDeleteData [00:54:25]Write to MH i2c: 01 00 00 7C 0F 8B [00:54:25]Write i2c OK [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: 01 [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: 01 07 00 [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: 01 07 00 7C 0F 00 00 00 00 00 F8 0C 96 [00:54:25]RasterBufferAndPrint [00:54:25]line [00:54:25]line [00:54:25]line [00:54:25]line [00:54:25]line [00:54:25]written 0, free lines is 3326 [00:54:25]MH_Cut [00:54:25]Write to MH i2c: D1 01 00 83 0F 01 64 [00:54:25]Write i2c OK [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: D1 [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: D1 01 00 [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: D1 01 00 83 0F 00 63 [00:54:25]Write to MH i2c: 01 00 00 84 0F 93 [00:54:25]Write i2c OK [00:54:25]MH_I2C_Read... [00:54:26]OFD Sender: No OFD packet to send [00:54:26]*** Cut start [00:54:26]*** Partial cut [00:54:26]*** CUTSNS_PIN = 1 [00:54:26]*** CUTSNS_PIN = 0 [00:54:26]*** Brake cut motor [00:54:26]Read from MH i2c: 01 [00:54:26]MH_I2C_Read... [00:54:26]*** Stop cut motor [00:54:26]*** Cut end [00:54:26]Read from MH i2c: 01 07 00 [00:54:26]MH_I2C_Read... [00:54:26]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [00:54:26]process_action close_receipt done [00:54:26]requested_data is exist [00:54:26]produce_requested_data [00:54:26]requested_item fm.sn is exist - process it [00:54:26]wFMCommunicate request_size=4 [00:54:26]MH_SAM_APDU [00:54:26]CAPDU: 80 11 00 00 [00:54:26]Write to MH i2c: E2 08 00 85 0F 80 11 00 00 00 00 00 00 0E [00:54:26]Write i2c OK [00:54:26]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 17 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 17 00 85 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [00:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:54:27]wFMCommunicate OK [00:54:27]requested_item fd.num is exist - process it [00:54:27]SAM_PROTO_GetFieldsCounters [00:54:27]wFMCommunicate request_size=4 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 13 00 00 [00:54:27]Write to MH i2c: E2 08 00 86 0F 80 13 00 00 00 00 00 00 11 [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 62 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 62 00 86 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 74 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [00:54:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 74 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:54:27]wFMCommunicate OK [00:54:27]SAM_PROTO_GetFieldsCounters done [00:54:27]requested_item shift.num is exist - process it [00:54:27]requested_item shift.opened is exist - process it [00:54:27]req_shift_opened [00:54:27]FM_GetShiftState [00:54:27]SAM_PROTO_GetShiftState [00:54:27]wFMCommunicate request_size=4 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 13 01 00 [00:54:27]Write to MH i2c: E2 08 00 87 0F 80 13 01 00 00 00 00 00 13 [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 0E 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 0E 00 87 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 01 [00:54:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [00:54:27]wFMCommunicate OK [00:54:27]SAM_PROTO_GetShiftState done [00:54:27]FM_GetShiftState done [00:54:27]req_shift_opened done [00:54:27]requested_item shift.open_date is exist - process it [00:54:27]req_shift_open_date [00:54:27]req_shift_open_date done [00:54:27]produce_requested_data done [00:54:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187508,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [00:54:27]process_action_free close_receipt [00:54:27]json_value_free [00:54:27]json_value_free done [00:54:27]process_json_proto returns [00:54:27]Send response to host [00:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187508,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [00:54:27]free response buf [00:54:27]execute_script done [00:54:27]execute_script returns [00:54:27]free content buf [00:54:27]Sock 7.Close socket [00:54:27]Sock 7.Thread stoped [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:15]accept exits with 9 [01:07:15]New connection [01:07:15]New thread 3067223396 created [01:07:15]Thread 3067080036 joined [01:07:15]Waiting for new connection... [01:07:15] Sock 9.Parse request [01:07:15]Sock 9.Check first char [01:07:15]Sock 9.First char is OK [01:07:15]request: POST /json_proto HTTP/1.0 [01:07:15]Method: POST [01:07:15]URL: /json_proto [01:07:15]Method is POST - this is cgi request [01:07:15]url: /json_proto [01:07:15]query_string will be loaded in cgi processing [01:07:15]execute_cgi json_proto POST (null) [01:07:15]execute_cgi path=json_proto method=POST [01:07:15]POST find Content-Length [01:07:15]Host: 172.17.46.131:8080 [01:07:15]Content-Length: 799 [01:07:15]Content-Type: application/json [01:07:15] [01:07:15]POST finish read [01:07:15]Found Content-Length = 799 [01:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:07:15]execute_script... [01: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)412666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:07:15]POST & json_proto [01:07:15]process_json_proto [01:07:15]json parsed OK: [01:07:15]protocol is kg_v1.0 [01:07:15]action value=close_receipt [01:07:15]process_action close_receipt [01:07:15]cmd_close_receipt [01:07:15]MH_GetDate [01:07:15]Write to MH i2c: F0 00 00 88 0F 86 [01:07:15]Write i2c OK [01:07:15]MH_I2C_Read... [01:07:15]Read from MH i2c: F0 [01:07:15]MH_I2C_Read... [01:07:15]Read from MH i2c: F0 09 00 [01:07:15]MH_I2C_Read... [01:07:15]Read from MH i2c: F0 09 00 88 0F 00 C4 D1 B7 67 7E 41 4F 65 B5 [01:07:15]GetLastDocTimeStamp 1740099264 [01:07:15]current date 1740100036 [01:07:15]FM_GetShiftState [01:07:15]SAM_PROTO_GetShiftState [01:07:15]wFMCommunicate request_size=4 [01:07:15]MH_SAM_APDU [01:07:15]CAPDU: 80 13 01 00 [01:07:15]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [01:07:15]Write i2c OK [01:07:15]MH_I2C_Read... [01:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:15]Read from MH i2c: E2 [01:07:15]MH_I2C_Read... [01:07:15]Read from MH i2c: E2 0E 00 [01:07:15]MH_I2C_Read... [01:07:15]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 03 [01:07:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:07:15]wFMCommunicate OK [01:07:15]SAM_PROTO_GetShiftState done [01:07:15]FM_GetShiftState done [01:07:15]opened in 1740098043 [01:07:15]opened+sec_in_day 1740184443 [01:07:15]quantity*price = 100042 [01:07:15]sum+1 = 100044 [01:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 3 21.02.2025 01:07 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187509 ФПД: 47467528674199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T010717&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187509&fm=47467528674199&tin=02508201610067®Number=0000000000091857&sum=100043 [01:07:16]StoreToDocumentArchive [01:07:16]shift 649 fd 187509 [01:07:16]save to /storage/0649/doc_00187509 [01:07:16]save last doc name /storage/0649/doc_00187509 to /storage/kkm_last_doc_name [01:07:16]save OK [01:07:16]Clear old archive folders... [01:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:07:16]tlvbuf is 0203A680 [01:07:16]SAM_PROTO_ClearQueue [01:07:16]wFMCommunicate request_size=4 [01:07:16]MH_SAM_APDU [01:07:16]CAPDU: 80 09 00 00 [01:07:16]Write to MH i2c: E2 08 00 96 0F 80 09 00 00 00 00 00 00 17 [01:07:16]Write i2c OK [01:07:16]MH_I2C_Read... [01:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:16]Read from MH i2c: E2 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 03 00 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [01:07:16]RAPDU: 90 00 [01:07:16]wFMCommunicate OK [01:07:16]SAM_PROTO_ClearQueue done [01:07:16]KKMCreateOFDPacket [01:07:16]OFDProtocolAddRootSTLVToBuf [01:07:16]FM_MakeSignedData [01:07:16]FM_MakeSignedData [01:07:16]SAM_PROTO_SignData [01:07:16]wFMCommunicate request_size=4 [01:07:16]MH_SAM_APDU [01:07:16]CAPDU: 80 0D 01 02 [01:07:16]Write to MH i2c: E2 08 00 97 0F 80 0D 01 02 00 00 00 00 1F [01:07:16]Write i2c OK [01:07:16]MH_I2C_Read... [01:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:16]Read from MH i2c: E2 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 03 00 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [01:07:16]RAPDU: 90 00 [01:07:16]wFMCommunicate OK [01:07:16]wFMCommunicate request_size=255 [01:07:16]MH_SAM_APDU [01:07: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C5 D1 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DC 02 00 35 04 06 00 2B 2B E5 2F [01:07:16]Write to MH i2c: E2 02 01 98 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C5 D1 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DC 02 00 35 04 06 00 2B 2B E5 2F 00 00 18 [01:07:16]Write i2c OK [01:07:16]MH_I2C_Read... [01:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:16]Read from MH i2c: E2 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 03 00 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [01:07:16]RAPDU: 90 00 [01:07:16]wFMCommunicate OK [01:07:16]wFMCommunicate request_size=7 [01:07:16]MH_SAM_APDU [01:07:16]CAPDU: 80 0D 02 02 02 5B 97 [01:07:16]Write to MH i2c: E2 0A 00 99 0F 80 0D 02 02 02 00 5B 97 00 00 18 [01:07:16]Write i2c OK [01:07:16]MH_I2C_Read... [01:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:16]Read from MH i2c: E2 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 03 00 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [01:07:16]RAPDU: 90 00 [01:07:16]wFMCommunicate OK [01:07:16]wFMCommunicate request_size=4 [01:07:16]MH_SAM_APDU [01:07:16]CAPDU: 80 0D 03 02 [01:07:16]Write to MH i2c: E2 08 00 9A 0F 80 0D 03 02 00 00 00 00 24 [01:07:16]Write i2c OK [01:07:16]MH_I2C_Read... [01:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:16]OFD Sender: No OFD packet to send [01:07:16]Read from MH i2c: E2 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 0B 00 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 0B 00 9A 0F 00 E3 56 12 23 34 31 AB 1B 90 00 BE [01:07:16]RAPDU: E3 56 12 23 34 31 AB 1B 90 00 [01:07:16]wFMCommunicate OK [01:07:16]SAM_PROTO_SignData done [01:07:16]FM_MakeSignedData done [01:07:16]CreateOFDProtocolMessage [01:07:16]wFMCommunicate request_size=4 [01:07:16]MH_SAM_APDU [01:07:16]CAPDU: 80 11 00 00 [01:07:16]Write to MH i2c: E2 08 00 9B 0F 80 11 00 00 00 00 00 00 24 [01:07:16]Write i2c OK [01:07:16]MH_I2C_Read... [01:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:16]Read from MH i2c: E2 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 17 00 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: E2 17 00 9B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 77 [01:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:07:16]wFMCommunicate OK [01:07:16]CreateOFDProtocolMessage done [01:07:16]OFDSenderStorePacket 187509 [01:07:16]StoreOFDPacket docnum=187509 [01:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 55 13 04 01 51 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C5 D1 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DC 02 00 35 04 06 00 2B 2B E5 2F 5B 97 E3 56 12 23 34 31 AB 1B [01:07:16]CheckFolder [01:07:16]dirname=/storage/ofd_packets [01:07:16]CheckFolder done [01:07:16]ProducePacketName [01:07:16]name=ofd_packets/00187509 [01:07:16]NVStorageSaveData ofd_packets/00187509 [01:07:16]File name is /storage/ofd_packets/00187509 [01:07:16]Write 298 bytes [01:07:16]NVStorageSaveData done [01:07:16]OFDSenderStorePacket done [01:07:16]KKMCreateOFDPacket done [01:07:16]NVStorageSaveData kkm_last_timestamp [01:07:16]File name is /storage/kkm_last_timestamp [01:07:16]Write 4 bytes [01:07:16]NVStorageSaveData done [01:07:16]ExternCall_PrintAddStr [01:07:16]wPrintStart [01:07:16]Write to MH i2c: 01 00 00 9C 0F AB [01:07:16]Write i2c OK [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: 01 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: 01 07 00 [01:07:16]MH_I2C_Read... [01:07:16]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [01:07:16]RasterBufferAndPrint [01:07:16]line Счет N : (1)412666 [01:07:16]line ИНН: 02508201610067 [01:07:16]line Контрольно-Кассовый Чек [01:07:16]line ПРОДАЖА [01:07:16]line ТРК (МРК, ГНК) : 5 [01:07:16]line Товар: 2710194210 [01:07:16]line ДТ-К-5 [01:07:16]line 13.780 * 72.60 [01:07:16]line = 1000.43 [01:07:16]line НДС 12% НСП 1% [01:07:16]line > о реализуемом товаре [01:07:16]line ИТОГО: 1000.43 [01:07:16]line НСП 1% : 8.85 [01:07:16]line НДС 12% : 106.24 [01:07:16]line Наличными: 0.00 [01:07:16]line Безнал.: 1000.43 [01:07:16]line Место: АЗС № 92 "Партнер Нефть" [01:07:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:07:16]line СНО: Общий режим [01:07:16]line Чек 3 21.02.2025 01:07 [01:07:16]line Смена: 649 ФФД: 1.0 [01:07:16]line ЗНМ: 0300000118 [01:07:16]line РНМ: 0000000000091857 [01:07:16]line Версия ККМ: 001 [01:07:16]line Платежная система: O! деньги [01:07:16]line ФМ: 0000000000871826 [01:07:16]line ФД: 187509 [01:07:16]line ФПД: 47467528674199 [01:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T010717&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187509&fm=47467528674199&tin=02508201610067®Number=0000000000091857&sum=100043 [01:07:17]OFD Sender: Processing packet 187509 [packets to send 49, broken 48] [01:07:17]ProducePacketName [01:07:17]name=ofd_packets/00187509 [01:07:17]OFD Sender: To server: pG, [01:07:17]CommunicateWithHost lk.salyk.kg:30040 [01:07:17]ConnectInit lk.salyk.kg [01:07:17]written 0, free lines is 4095 [01:07:17]Connected sock=10 [01: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 31 38 32 36 0C 01 00 00 55 13 04 01 51 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 C5 D1 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DC 02 00 35 04 06 00 2B 2B E5 2F 5B 97 E3 56 12 23 34 31 AB 1B [01:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0B 99 47 00 69 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DC 02 00 F4 03 04 00 14 78 B7 67 B6 04 01 00 00 72 78 0A 00 4E 7E 98 34 [01:07:17]CommunicateWithHost err = 0 [01:07:17]CheckOFDResponse [01:07:17]1017 (14) - 77093643461234 [01:07:17]1041 (16) - 0000000000871826 [01:07:17]1040 (4) - 187509 [01:07:17]1012 (4) - 20.02.2025 18:44 [01:07:17]1206 (1) - 0 [01:07:17]OFD Sender: Remove packet 187509 [01:07:17]ProducePacketName [01:07:17]name=ofd_packets/00187509 [01:07:17]NVStorageDeleteData [01:07:17]Write to MH i2c: 01 00 00 C6 0F D5 [01:07:17]Write i2c OK [01:07:17]MH_I2C_Read... [01:07:17]Read from MH i2c: 01 [01:07:17]MH_I2C_Read... [01:07:17]Read from MH i2c: 01 07 00 [01:07:17]MH_I2C_Read... [01:07:17]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 06 0D EF [01:07:17]RasterBufferAndPrint [01:07:17]line [01:07:17]line [01:07:17]line [01:07:17]line [01:07:17]line [01:07:17]written 0, free lines is 3340 [01:07:17]MH_Cut [01:07:17]Write to MH i2c: D1 01 00 CD 0F 01 AE [01:07:17]Write i2c OK [01:07:17]MH_I2C_Read... [01:07:17]Read from MH i2c: D1 [01:07:17]MH_I2C_Read... [01:07:17]Read from MH i2c: D1 01 00 [01:07:17]MH_I2C_Read... [01:07:17]Read from MH i2c: D1 01 00 CD 0F 00 AD [01:07:17]Write to MH i2c: 01 00 00 CE 0F DD [01:07:17]Write i2c OK [01:07:17]MH_I2C_Read... [01:07:18]OFD Sender: No OFD packet to send [01:07:18]*** Cut start [01:07:18]*** Partial cut [01:07:18]*** CUTSNS_PIN = 1 [01:07:18]*** CUTSNS_PIN = 0 [01:07:18]*** Brake cut motor [01:07:19]Read from MH i2c: 01 [01:07:19]MH_I2C_Read... [01:07:19]*** Stop cut motor [01:07:19]*** Cut end [01:07:19]Read from MH i2c: 01 07 00 [01:07:19]MH_I2C_Read... [01:07:19]Read from MH i2c: 01 07 00 CE 0F 00 00 00 00 00 FF 0F F2 [01:07:19]process_action close_receipt done [01:07:19]requested_data is exist [01:07:19]produce_requested_data [01:07:19]requested_item fm.sn is exist - process it [01:07:19]wFMCommunicate request_size=4 [01:07:19]MH_SAM_APDU [01:07:19]CAPDU: 80 11 00 00 [01:07:19]Write to MH i2c: E2 08 00 CF 0F 80 11 00 00 00 00 00 00 58 [01:07:19]Write i2c OK [01:07:19]MH_I2C_Read... [01:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:19]Read from MH i2c: E2 [01:07:19]MH_I2C_Read... [01:07:19]Read from MH i2c: E2 17 00 [01:07:19]MH_I2C_Read... [01:07:19]Read from MH i2c: E2 17 00 CF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AB [01:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:07:19]wFMCommunicate OK [01:07:19]requested_item fd.num is exist - process it [01:07:19]SAM_PROTO_GetFieldsCounters [01:07:19]wFMCommunicate request_size=4 [01:07:19]MH_SAM_APDU [01:07:19]CAPDU: 80 13 00 00 [01:07:19]Write to MH i2c: E2 08 00 D0 0F 80 13 00 00 00 00 00 00 5B [01:07:19]Write i2c OK [01:07:19]MH_I2C_Read... [01:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:19]Read from MH i2c: E2 [01:07:19]MH_I2C_Read... [01:07:19]Read from MH i2c: E2 62 00 [01:07:19]MH_I2C_Read... [01:07:19]Read from MH i2c: E2 62 00 D0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 75 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [01: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 75 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:19]wFMCommunicate OK [01:07:19]SAM_PROTO_GetFieldsCounters done [01:07:19]requested_item shift.num is exist - process it [01:07:19]requested_item shift.opened is exist - process it [01:07:19]req_shift_opened [01:07:19]FM_GetShiftState [01:07:19]SAM_PROTO_GetShiftState [01:07:19]wFMCommunicate request_size=4 [01:07:19]MH_SAM_APDU [01:07:19]CAPDU: 80 13 01 00 [01:07:19]Write to MH i2c: E2 08 00 D1 0F 80 13 01 00 00 00 00 00 5D [01:07:19]Write i2c OK [01:07:19]MH_I2C_Read... [01:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:19]Read from MH i2c: E2 [01:07:19]MH_I2C_Read... [01:07:19]Read from MH i2c: E2 0E 00 [01:07:19]MH_I2C_Read... [01:07:19]Read from MH i2c: E2 0E 00 D1 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4B [01:07:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:07:19]wFMCommunicate OK [01:07:19]SAM_PROTO_GetShiftState done [01:07:19]FM_GetShiftState done [01:07:19]req_shift_opened done [01:07:19]requested_item shift.open_date is exist - process it [01:07:19]req_shift_open_date [01:07:19]req_shift_open_date done [01:07:19]produce_requested_data done [01:07:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187509,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [01:07:19]process_action_free close_receipt [01:07:19]json_value_free [01:07:19]json_value_free done [01:07:19]process_json_proto returns [01:07:19]Send response to host [01:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187509,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [01:07:19]free response buf [01:07:19]execute_script done [01:07:19]execute_script returns [01:07:19]free content buf [01:07:19]Sock 9.Close socket [01:07:19]Sock 9.Thread stoped [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:03]accept exits with 7 [01:08:03]New connection [01:08:03]New thread 3067080036 created [01:08:03]Thread 3067223396 joined [01:08:03]Waiting for new connection... [01:08:03] Sock 7.Parse request [01:08:03]Sock 7.Check first char [01:08:03]Sock 7.First char is OK [01:08:03]request: POST /json_proto HTTP/1.0 [01:08:03]Method: POST [01:08:03]URL: /json_proto [01:08:03]Method is POST - this is cgi request [01:08:03]url: /json_proto [01:08:03]query_string will be loaded in cgi processing [01:08:03]execute_cgi json_proto POST (null) [01:08:03]execute_cgi path=json_proto method=POST [01:08:03]POST find Content-Length [01:08:03]Host: 172.17.46.131:8080 [01:08:03]Content-Length: 682 [01:08:03]Content-Type: application/json [01:08:03] [01:08:03]POST finish read [01:08:03]Found Content-Length = 682 [01:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [01:08:03]execute_script... [01:08: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)412667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [01:08:03]POST & json_proto [01:08:03]process_json_proto [01:08:03]json parsed OK: [01:08:03]protocol is kg_v1.0 [01:08:03]action value=close_receipt [01:08:03]process_action close_receipt [01:08:03]cmd_close_receipt [01:08:03]MH_GetDate [01:08:03]Write to MH i2c: F0 00 00 D2 0F D0 [01:08:03]Write i2c OK [01:08:03]MH_I2C_Read... [01:08:03]Read from MH i2c: F0 [01:08:03]MH_I2C_Read... [01:08:03]Read from MH i2c: F0 09 00 [01:08:03]MH_I2C_Read... [01:08:03]Read from MH i2c: F0 09 00 D2 0F 00 F5 D1 B7 67 7E 41 4F 65 30 [01:08:03]GetLastDocTimeStamp 1740100037 [01:08:03]current date 1740100085 [01:08:03]FM_GetShiftState [01:08:03]SAM_PROTO_GetShiftState [01:08:03]wFMCommunicate request_size=4 [01:08:03]MH_SAM_APDU [01:08:03]CAPDU: 80 13 01 00 [01:08:03]Write to MH i2c: E2 08 00 D3 0F 80 13 01 00 00 00 00 00 5F [01:08:03]Write i2c OK [01:08:03]MH_I2C_Read... [01:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:03]Read from MH i2c: E2 [01:08:03]MH_I2C_Read... [01:08:03]Read from MH i2c: E2 0E 00 [01:08:03]MH_I2C_Read... [01:08:03]Read from MH i2c: E2 0E 00 D3 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4D [01:08:03]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:08:03]wFMCommunicate OK [01:08:03]SAM_PROTO_GetShiftState done [01:08:03]FM_GetShiftState done [01:08:03]opened in 1740098043 [01:08:03]opened+sec_in_day 1740184443 [01:08:03]quantity*price = 250068 [01:08:03]sum+1 = 250069 [01:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 4 21.02.2025 01:08 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187510 ФПД: 153730213299518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T010805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187510&fm=153730213299518&tin=02508201610067®Number=0000000000091857&sum=250000 [01:08:04]StoreToDocumentArchive [01:08:04]shift 649 fd 187510 [01:08:04]save to /storage/0649/doc_00187510 [01:08:04]save last doc name /storage/0649/doc_00187510 to /storage/kkm_last_doc_name [01:08:04]save OK [01:08:04]Clear old archive folders... [01:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:08:04]tlvbuf is 0202F260 [01:08:04]SAM_PROTO_ClearQueue [01:08:04]wFMCommunicate request_size=4 [01:08:04]MH_SAM_APDU [01:08:04]CAPDU: 80 09 00 00 [01:08:04]Write to MH i2c: E2 08 00 E0 0F 80 09 00 00 00 00 00 00 61 [01:08:04]Write i2c OK [01:08:04]MH_I2C_Read... [01:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:04]Read from MH i2c: E2 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 03 00 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [01:08:04]RAPDU: 90 00 [01:08:04]wFMCommunicate OK [01:08:04]SAM_PROTO_ClearQueue done [01:08:04]KKMCreateOFDPacket [01:08:04]OFDProtocolAddRootSTLVToBuf [01:08:04]FM_MakeSignedData [01:08:04]FM_MakeSignedData [01:08:04]SAM_PROTO_SignData [01:08:04]wFMCommunicate request_size=4 [01:08:04]MH_SAM_APDU [01:08:04]CAPDU: 80 0D 01 02 [01:08:04]Write to MH i2c: E2 08 00 E1 0F 80 0D 01 02 00 00 00 00 69 [01:08:04]Write i2c OK [01:08:04]MH_I2C_Read... [01:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:04]Read from MH i2c: E2 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 03 00 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [01:08:04]RAPDU: 90 00 [01:08:04]wFMCommunicate OK [01:08:04]wFMCommunicate request_size=255 [01:08:04]MH_SAM_APDU [01:08:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 F5 D1 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 DC 02 00 35 04 06 00 8B [01:08:04]Write to MH i2c: E2 02 01 E2 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 F5 D1 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 DC 02 00 35 04 06 00 8B 00 00 A0 [01:08:04]Write i2c OK [01:08:04]MH_I2C_Read... [01:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:04]Read from MH i2c: E2 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 03 00 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [01:08:04]RAPDU: 90 00 [01:08:04]wFMCommunicate OK [01:08:04]wFMCommunicate request_size=10 [01:08:04]MH_SAM_APDU [01:08:04]CAPDU: 80 0D 02 02 05 D1 1A C1 45 3E [01:08:04]Write to MH i2c: E2 0D 00 E3 0F 80 0D 02 02 05 00 D1 1A C1 45 3E 00 00 A5 [01:08:04]Write i2c OK [01:08:04]MH_I2C_Read... [01:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:04]Read from MH i2c: E2 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 03 00 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [01:08:04]RAPDU: 90 00 [01:08:04]wFMCommunicate OK [01:08:04]wFMCommunicate request_size=4 [01:08:04]MH_SAM_APDU [01:08:04]CAPDU: 80 0D 03 02 [01:08:04]Write to MH i2c: E2 08 00 E4 0F 80 0D 03 02 00 00 00 00 6E [01:08:04]Write i2c OK [01:08:04]MH_I2C_Read... [01:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:04]Read from MH i2c: E2 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 0B 00 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 0B 00 E4 0F 00 FC 03 98 FD 28 8A 00 B1 90 00 66 [01:08:04]RAPDU: FC 03 98 FD 28 8A 00 B1 90 00 [01:08:04]wFMCommunicate OK [01:08:04]SAM_PROTO_SignData done [01:08:04]FM_MakeSignedData done [01:08:04]CreateOFDProtocolMessage [01:08:04]wFMCommunicate request_size=4 [01:08:04]MH_SAM_APDU [01:08:04]CAPDU: 80 11 00 00 [01:08:04]Write to MH i2c: E2 08 00 E5 0F 80 11 00 00 00 00 00 00 6E [01:08:04]Write i2c OK [01:08:04]MH_I2C_Read... [01:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:04]Read from MH i2c: E2 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 17 00 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: E2 17 00 E5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C1 [01:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:08:04]wFMCommunicate OK [01:08:04]CreateOFDProtocolMessage done [01:08:04]OFDSenderStorePacket 187510 [01:08:04]StoreOFDPacket docnum=187510 [01:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 F8 07 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 04 00 00 00 F4 03 04 00 F5 D1 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 DC 02 00 35 04 06 00 8B D1 1A C1 45 3E FC 03 98 FD 28 8A 00 B1 [01:08:04]CheckFolder [01:08:04]dirname=/storage/ofd_packets [01:08:04]CheckFolder done [01:08:04]ProducePacketName [01:08:04]name=ofd_packets/00187510 [01:08:04]NVStorageSaveData ofd_packets/00187510 [01:08:04]File name is /storage/ofd_packets/00187510 [01:08:04]Write 301 bytes [01:08:04]NVStorageSaveData done [01:08:04]OFDSenderStorePacket done [01:08:04]KKMCreateOFDPacket done [01:08:04]NVStorageSaveData kkm_last_timestamp [01:08:04]File name is /storage/kkm_last_timestamp [01:08:04]Write 4 bytes [01:08:04]NVStorageSaveData done [01:08:04]ExternCall_PrintAddStr [01:08:04]wPrintStart [01:08:04]Write to MH i2c: 01 00 00 E6 0F F5 [01:08:04]Write i2c OK [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: 01 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: 01 07 00 [01:08:04]MH_I2C_Read... [01:08:04]Read from MH i2c: 01 07 00 E6 0F 00 00 00 00 00 FF 0F 0A [01:08:04]RasterBufferAndPrint [01:08:04]line Счет N : (1)412667 [01:08:04]line ИНН: 02508201610067 [01:08:04]line Контрольно-Кассовый Чек [01:08:04]line ПРОДАЖА [01:08:04]line ТРК (МРК, ГНК) : 23 [01:08:04]line Товар: 2710124500 [01:08:04]line Аи-95-К-5 [01:08:04]line 34.780 * 71.90 [01:08:04]line = 2500.68 [01:08:04]line НДС 12% НСП 1% [01:08:04]line > о реализуемом товаре [01:08:04]line ОКРУГЛЕНИЕ: -0.68 [01:08:04]line ИТОГО: 2500.00 [01:08:04]line Внесено: 2500.00 [01:08:04]line СДАЧА: 0.00 [01:08:04]line НСП 1% : 22.13 [01:08:04]line НДС 12% : 265.56 [01:08:04]line Наличными: 2500.00 [01:08:04]line Безнал.: 0.00 [01:08:04]line Место: АЗС № 92 "Партнер Нефть" [01:08:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:08:04]line СНО: Общий режим [01:08:04]line Чек 4 21.02.2025 01:08 [01:08:04]line Смена: 649 ФФД: 1.0 [01:08:04]line ЗНМ: 0300000118 [01:08:04]line РНМ: 0000000000091857 [01:08:04]line Версия ККМ: 001 [01:08:04]line ФМ: 0000000000871826 [01:08:04]line ФД: 187510 [01:08:04]line ФПД: 153730213299518 [01:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T010805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187510&fm=153730213299518&tin=02508201610067®Number=0000000000091857&sum=250000 [01:08:04]written 0, free lines is 4095 [01:08:04]OFD Sender: Processing packet 187510 [packets to send 49, broken 48] [01:08:04]ProducePacketName [01:08:04]name=ofd_packets/00187510 [01:08:04]OFD Sender: To server: pG, [01:08:04]CommunicateWithHost lk.salyk.kg:30040 [01:08:04]ConnectInit lk.salyk.kg [01:08:05]Connected sock=10 [01:08:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 F8 07 01 74 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 04 00 00 00 F4 03 04 00 F5 D1 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 DC 02 00 35 04 06 00 8B D1 1A C1 45 3E FC 03 98 FD 28 8A 00 B1 [01:08:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1D 89 47 00 B4 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 31 38 32 36 10 04 04 00 76 DC 02 00 F4 03 04 00 44 78 B7 67 B6 04 01 00 00 7C 5A D1 6A A1 48 F5 40 [01:08:05]CommunicateWithHost err = 0 [01:08:05]CheckOFDResponse [01:08:05]1017 (14) - 77093643461234 [01:08:05]1041 (16) - 0000000000871826 [01:08:05]1040 (4) - 187510 [01:08:05]1012 (4) - 20.02.2025 18:45 [01:08:05]1206 (1) - 0 [01:08:05]OFD Sender: Remove packet 187510 [01:08:05]ProducePacketName [01:08:05]name=ofd_packets/00187510 [01:08:05]NVStorageDeleteData [01:08:05]Write to MH i2c: 01 00 00 11 10 21 [01:08:05]Write i2c OK [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: 01 [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: 01 07 00 [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: 01 07 00 11 10 00 00 00 00 00 F5 0C 29 [01:08:05]RasterBufferAndPrint [01:08:05]line [01:08:05]line [01:08:05]line [01:08:05]line [01:08:05]line [01:08:05]written 0, free lines is 3324 [01:08:05]MH_Cut [01:08:05]Write to MH i2c: D1 01 00 18 10 01 FA [01:08:05]Write i2c OK [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: D1 [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: D1 01 00 [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: D1 01 00 18 10 00 F9 [01:08:05]Write to MH i2c: 01 00 00 19 10 29 [01:08:05]Write i2c OK [01:08:05]MH_I2C_Read... [01:08:05]OFD Sender: No OFD packet to send [01:08:06]*** Cut start [01:08:06]*** Partial cut [01:08:06]*** CUTSNS_PIN = 1 [01:08:06]*** CUTSNS_PIN = 0 [01:08:06]*** Brake cut motor [01:08:06]Read from MH i2c: 01 [01:08:06]MH_I2C_Read... [01:08:06]*** Stop cut motor [01:08:06]*** Cut end [01:08:06]Read from MH i2c: 01 07 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: 01 07 00 19 10 00 00 00 00 00 FF 0F 3E [01:08:06]process_action close_receipt done [01:08:06]requested_data is exist [01:08:06]produce_requested_data [01:08:06]requested_item fm.sn is exist - process it [01:08:06]wFMCommunicate request_size=4 [01:08:06]MH_SAM_APDU [01:08:06]CAPDU: 80 11 00 00 [01:08:06]Write to MH i2c: E2 08 00 1A 10 80 11 00 00 00 00 00 00 A4 [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:06]Read from MH i2c: E2 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 17 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 17 00 1A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [01:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:08:06]wFMCommunicate OK [01:08:06]requested_item fd.num is exist - process it [01:08:06]SAM_PROTO_GetFieldsCounters [01:08:06]wFMCommunicate request_size=4 [01:08:06]MH_SAM_APDU [01:08:06]CAPDU: 80 13 00 00 [01:08:06]Write to MH i2c: E2 08 00 1B 10 80 13 00 00 00 00 00 00 A7 [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:07]Read from MH i2c: E2 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: E2 62 00 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: E2 62 00 1B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 76 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [01:08:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 76 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:07]wFMCommunicate OK [01:08:07]SAM_PROTO_GetFieldsCounters done [01:08:07]requested_item shift.num is exist - process it [01:08:07]requested_item shift.opened is exist - process it [01:08:07]req_shift_opened [01:08:07]FM_GetShiftState [01:08:07]SAM_PROTO_GetShiftState [01:08:07]wFMCommunicate request_size=4 [01:08:07]MH_SAM_APDU [01:08:07]CAPDU: 80 13 01 00 [01:08:07]Write to MH i2c: E2 08 00 1C 10 80 13 01 00 00 00 00 00 A9 [01:08:07]Write i2c OK [01:08:07]MH_I2C_Read... [01:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:07]Read from MH i2c: E2 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: E2 0E 00 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: E2 0E 00 1C 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 97 [01:08:07]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:08:07]wFMCommunicate OK [01:08:07]SAM_PROTO_GetShiftState done [01:08:07]FM_GetShiftState done [01:08:07]req_shift_opened done [01:08:07]requested_item shift.open_date is exist - process it [01:08:07]req_shift_open_date [01:08:07]req_shift_open_date done [01:08:07]produce_requested_data done [01:08:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187510,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [01:08:07]process_action_free close_receipt [01:08:07]json_value_free [01:08:07]json_value_free done [01:08:07]process_json_proto returns [01:08:07]Send response to host [01:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187510,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [01:08:07]free response buf [01:08:07]execute_script done [01:08:07]execute_script returns [01:08:07]free content buf [01:08:07]Sock 7.Close socket [01:08:07]Sock 7.Thread stoped [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:41]accept exits with 9 [01:24:41]New connection [01:24:41]New thread 3067223396 created [01:24:41]Thread 3067080036 joined [01:24:41]Waiting for new connection... [01:24:41] Sock 9.Parse request [01:24:41]Sock 9.Check first char [01:24:41]Sock 9.First char is OK [01:24:41]request: POST /json_proto HTTP/1.0 [01:24:41]Method: POST [01:24:41]URL: /json_proto [01:24:41]Method is POST - this is cgi request [01:24:41]url: /json_proto [01:24:41]query_string will be loaded in cgi processing [01:24:41]execute_cgi json_proto POST (null) [01:24:41]execute_cgi path=json_proto method=POST [01:24:41]POST find Content-Length [01:24:41]Host: 172.17.46.131:8080 [01:24:41]Content-Length: 678 [01:24:41]Content-Type: application/json [01:24:41] [01:24:41]POST finish read [01:24:41]Found Content-Length = 678 [01:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "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" ] } } [01:24:41]execute_script... [01:24: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)412668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "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" ] } } [01:24:41]POST & json_proto [01:24:41]process_json_proto [01:24:41]json parsed OK: [01:24:41]protocol is kg_v1.0 [01:24:41]action value=close_receipt [01:24:41]process_action close_receipt [01:24:41]cmd_close_receipt [01:24:41]MH_GetDate [01:24:41]Write to MH i2c: F0 00 00 1D 10 1C [01:24:41]Write i2c OK [01:24:41]MH_I2C_Read... [01:24:41]Read from MH i2c: F0 [01:24:41]MH_I2C_Read... [01:24:41]Read from MH i2c: F0 09 00 [01:24:41]MH_I2C_Read... [01:24:41]Read from MH i2c: F0 09 00 1D 10 00 DB D5 B7 67 7E 41 4F 65 66 [01:24:41]GetLastDocTimeStamp 1740100085 [01:24:41]current date 1740101083 [01:24:41]FM_GetShiftState [01:24:41]SAM_PROTO_GetShiftState [01:24:41]wFMCommunicate request_size=4 [01:24:41]MH_SAM_APDU [01:24:41]CAPDU: 80 13 01 00 [01:24:41]Write to MH i2c: E2 08 00 1E 10 80 13 01 00 00 00 00 00 AB [01:24:41]Write i2c OK [01:24:41]MH_I2C_Read... [01:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:41]Read from MH i2c: E2 [01:24:41]MH_I2C_Read... [01:24:41]Read from MH i2c: E2 0E 00 [01:24:41]MH_I2C_Read... [01:24:41]Read from MH i2c: E2 0E 00 1E 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 99 [01:24:41]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:24:41]wFMCommunicate OK [01:24:41]SAM_PROTO_GetShiftState done [01:24:41]FM_GetShiftState done [01:24:41]opened in 1740098043 [01:24:41]opened+sec_in_day 1740184443 [01:24:41]quantity*price = 65034 [01:24:41]sum+1 = 65036 [01:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 5 21.02.2025 01:24 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187511 ФПД: 65824770742594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T012443&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187511&fm=65824770742594&tin=02508201610067®Number=0000000000091857&sum=65000 [01:24:43]StoreToDocumentArchive [01:24:43]shift 649 fd 187511 [01:24:43]save to /storage/0649/doc_00187511 [01:24:43]save last doc name /storage/0649/doc_00187511 to /storage/kkm_last_doc_name [01:24:43]save OK [01:24:43]Clear old archive folders... [01:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:24:43]tlvbuf is 02034E30 [01:24:43]SAM_PROTO_ClearQueue [01:24:43]wFMCommunicate request_size=4 [01:24:43]MH_SAM_APDU [01:24:43]CAPDU: 80 09 00 00 [01:24:43]Write to MH i2c: E2 08 00 2B 10 80 09 00 00 00 00 00 00 AD [01:24:43]Write i2c OK [01:24:43]MH_I2C_Read... [01:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:43]Read from MH i2c: E2 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 03 00 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [01:24:43]RAPDU: 90 00 [01:24:43]wFMCommunicate OK [01:24:43]SAM_PROTO_ClearQueue done [01:24:43]KKMCreateOFDPacket [01:24:43]OFDProtocolAddRootSTLVToBuf [01:24:43]FM_MakeSignedData [01:24:43]FM_MakeSignedData [01:24:43]SAM_PROTO_SignData [01:24:43]wFMCommunicate request_size=4 [01:24:43]MH_SAM_APDU [01:24:43]CAPDU: 80 0D 01 02 [01:24:43]Write to MH i2c: E2 08 00 2C 10 80 0D 01 02 00 00 00 00 B5 [01:24:43]Write i2c OK [01:24:43]MH_I2C_Read... [01:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:43]Read from MH i2c: E2 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 03 00 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [01:24:43]RAPDU: 90 00 [01:24:43]wFMCommunicate OK [01:24:43]wFMCommunicate request_size=255 [01:24:43]MH_SAM_APDU [01:24:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 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 05 00 00 00 F4 03 04 00 DB D5 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DC 02 00 35 04 06 00 3B [01:24:43]Write to MH i2c: E2 02 01 2D 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 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 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 05 00 00 00 F4 03 04 00 DB D5 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DC 02 00 35 04 06 00 3B 00 00 BD [01:24:43]Write i2c OK [01:24:43]MH_I2C_Read... [01:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:43]Read from MH i2c: E2 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 03 00 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [01:24:43]RAPDU: 90 00 [01:24:43]wFMCommunicate OK [01:24:43]wFMCommunicate request_size=10 [01:24:43]MH_SAM_APDU [01:24:43]CAPDU: 80 0D 02 02 05 DE 06 13 D9 42 [01:24:43]Write to MH i2c: E2 0D 00 2E 10 80 0D 02 02 05 00 DE 06 13 D9 42 00 00 D4 [01:24:43]Write i2c OK [01:24:43]MH_I2C_Read... [01:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:43]Read from MH i2c: E2 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 03 00 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [01:24:43]RAPDU: 90 00 [01:24:43]wFMCommunicate OK [01:24:43]wFMCommunicate request_size=4 [01:24:43]MH_SAM_APDU [01:24:43]CAPDU: 80 0D 03 02 [01:24:43]Write to MH i2c: E2 08 00 2F 10 80 0D 03 02 00 00 00 00 BA [01:24:43]Write i2c OK [01:24:43]MH_I2C_Read... [01:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:43]Read from MH i2c: E2 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 0B 00 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 0B 00 2F 10 00 C8 81 1E 07 07 18 A9 14 90 00 05 [01:24:43]RAPDU: C8 81 1E 07 07 18 A9 14 90 00 [01:24:43]wFMCommunicate OK [01:24:43]SAM_PROTO_SignData done [01:24:43]FM_MakeSignedData done [01:24:43]CreateOFDProtocolMessage [01:24:43]wFMCommunicate request_size=4 [01:24:43]MH_SAM_APDU [01:24:43]CAPDU: 80 11 00 00 [01:24:43]Write to MH i2c: E2 08 00 30 10 80 11 00 00 00 00 00 00 BA [01:24:43]Write i2c OK [01:24:43]MH_I2C_Read... [01:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:43]Read from MH i2c: E2 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 17 00 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: E2 17 00 30 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0D [01:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:24:43]wFMCommunicate OK [01:24:43]CreateOFDProtocolMessage done [01:24:43]OFDSenderStorePacket 187511 [01:24:43]StoreOFDPacket docnum=187511 [01:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B2 38 07 01 7D 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 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 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 05 00 00 00 F4 03 04 00 DB D5 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DC 02 00 35 04 06 00 3B DE 06 13 D9 42 C8 81 1E 07 07 18 A9 14 [01:24:43]CheckFolder [01:24:43]dirname=/storage/ofd_packets [01:24:43]CheckFolder done [01:24:43]ProducePacketName [01:24:43]name=ofd_packets/00187511 [01:24:43]NVStorageSaveData ofd_packets/00187511 [01:24:43]File name is /storage/ofd_packets/00187511 [01:24:43]Write 301 bytes [01:24:43]NVStorageSaveData done [01:24:43]OFDSenderStorePacket done [01:24:43]KKMCreateOFDPacket done [01:24:43]NVStorageSaveData kkm_last_timestamp [01:24:43]File name is /storage/kkm_last_timestamp [01:24:43]Write 4 bytes [01:24:43]NVStorageSaveData done [01:24:43]ExternCall_PrintAddStr [01:24:43]wPrintStart [01:24:43]Write to MH i2c: 01 00 00 31 10 41 [01:24:43]Write i2c OK [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: 01 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: 01 07 00 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 FF 0F 56 [01:24:43]RasterBufferAndPrint [01:24:43]line Счет N : (1)412668 [01:24:43]line ИНН: 02508201610067 [01:24:43]line Контрольно-Кассовый Чек [01:24:43]line ПРОДАЖА [01:24:43]line ТРК (МРК, ГНК) : 32 [01:24:43]line Товар: 2710124130 [01:24:43]line Аи-92-К-2 [01:24:43]line 10.130 * 64.20 [01:24:43]line = 650.35 [01:24:43]line НДС 12% НСП 1% [01:24:43]line > о реализуемом товаре [01:24:43]line ОКРУГЛЕНИЕ: -0.35 [01:24:43]line ИТОГО: 650.00 [01:24:43]line Внесено: 650.00 [01:24:43]line СДАЧА: 0.00 [01:24:43]line НСП 1% : 5.75 [01:24:43]line НДС 12% : 69.06 [01:24:43]line Наличными: 650.00 [01:24:43]line Безнал.: 0.00 [01:24:43]line Место: АЗС № 92 "Партнер Нефть" [01:24:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:24:43]line СНО: Общий режим [01:24:43]line Чек 5 21.02.2025 01:24 [01:24:43]line Смена: 649 ФФД: 1.0 [01:24:43]line ЗНМ: 0300000118 [01:24:43]line РНМ: 0000000000091857 [01:24:43]line Версия ККМ: 001 [01:24:43]line ФМ: 0000000000871826 [01:24:43]line ФД: 187511 [01:24:43]line ФПД: 65824770742594 [01:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T012443&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187511&fm=65824770742594&tin=02508201610067®Number=0000000000091857&sum=65000 [01:24:43]written 0, free lines is 4095 [01:24:43]OFD Sender: Processing packet 187511 [packets to send 49, broken 48] [01:24:43]ProducePacketName [01:24:43]name=ofd_packets/00187511 [01:24:43]OFD Sender: To server: pG, [01:24:43]CommunicateWithHost lk.salyk.kg:30040 [01:24:43]ConnectInit lk.salyk.kg [01:24:44]Connected sock=10 [01:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B2 38 07 01 7D 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 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 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 05 00 00 00 F4 03 04 00 DB D5 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 DC 02 00 35 04 06 00 3B DE 06 13 D9 42 C8 81 1E 07 07 18 A9 14 [01:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 9B 47 00 32 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 31 38 32 36 10 04 04 00 77 DC 02 00 F4 03 04 00 2B 7C B7 67 B6 04 01 00 00 21 8C 49 C9 53 FB 3C EF [01:24:44]CommunicateWithHost err = 0 [01:24:44]CheckOFDResponse [01:24:44]1017 (14) - 77093643461234 [01:24:44]1041 (16) - 0000000000871826 [01:24:44]1040 (4) - 187511 [01:24:44]1012 (4) - 20.02.2025 19:02 [01:24:44]1206 (1) - 0 [01:24:44]OFD Sender: Remove packet 187511 [01:24:44]ProducePacketName [01:24:44]name=ofd_packets/00187511 [01:24:44]NVStorageDeleteData [01:24:44]Write to MH i2c: 01 00 00 5C 10 6C [01:24:44]Write i2c OK [01:24:44]MH_I2C_Read... [01:24:44]Read from MH i2c: 01 [01:24:44]MH_I2C_Read... [01:24:44]Read from MH i2c: 01 07 00 [01:24:44]MH_I2C_Read... [01:24:44]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 E0 0C 5F [01:24:44]RasterBufferAndPrint [01:24:44]line [01:24:44]line [01:24:44]line [01:24:44]line [01:24:44]line [01:24:44]written 0, free lines is 3302 [01:24:44]MH_Cut [01:24:44]Write to MH i2c: D1 01 00 63 10 01 45 [01:24:44]Write i2c OK [01:24:44]MH_I2C_Read... [01:24:44]Read from MH i2c: D1 [01:24:44]MH_I2C_Read... [01:24:44]Read from MH i2c: D1 01 00 [01:24:44]MH_I2C_Read... [01:24:44]Read from MH i2c: D1 01 00 63 10 00 44 [01:24:44]Write to MH i2c: 01 00 00 64 10 74 [01:24:44]Write i2c OK [01:24:44]MH_I2C_Read... [01:24:44]OFD Sender: No OFD packet to send [01:24:45]*** Cut start [01:24:45]*** Partial cut [01:24:45]*** CUTSNS_PIN = 1 [01:24:45]*** CUTSNS_PIN = 0 [01:24:45]*** Brake cut motor [01:24:45]Read from MH i2c: 01 [01:24:45]MH_I2C_Read... [01:24:45]*** Stop cut motor [01:24:45]*** Cut end [01:24:45]Read from MH i2c: 01 07 00 [01:24:45]MH_I2C_Read... [01:24:45]Read from MH i2c: 01 07 00 64 10 00 00 00 00 00 FF 0F 89 [01:24:45]process_action close_receipt done [01:24:45]requested_data is exist [01:24:45]produce_requested_data [01:24:45]requested_item fm.sn is exist - process it [01:24:45]wFMCommunicate request_size=4 [01:24:45]MH_SAM_APDU [01:24:45]CAPDU: 80 11 00 00 [01:24:45]Write to MH i2c: E2 08 00 65 10 80 11 00 00 00 00 00 00 EF [01:24:45]Write i2c OK [01:24:45]MH_I2C_Read... [01:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:45]Read from MH i2c: E2 [01:24:45]MH_I2C_Read... [01:24:45]Read from MH i2c: E2 17 00 [01:24:45]MH_I2C_Read... [01:24:45]Read from MH i2c: E2 17 00 65 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [01:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:24:45]wFMCommunicate OK [01:24:45]requested_item fd.num is exist - process it [01:24:45]SAM_PROTO_GetFieldsCounters [01:24:45]wFMCommunicate request_size=4 [01:24:45]MH_SAM_APDU [01:24:45]CAPDU: 80 13 00 00 [01:24:45]Write to MH i2c: E2 08 00 66 10 80 13 00 00 00 00 00 00 F2 [01:24:45]Write i2c OK [01:24:45]MH_I2C_Read... [01:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:46]Read from MH i2c: E2 [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: E2 62 00 [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: E2 62 00 66 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 77 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [01:24:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 77 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:24:46]wFMCommunicate OK [01:24:46]SAM_PROTO_GetFieldsCounters done [01:24:46]requested_item shift.num is exist - process it [01:24:46]requested_item shift.opened is exist - process it [01:24:46]req_shift_opened [01:24:46]FM_GetShiftState [01:24:46]SAM_PROTO_GetShiftState [01:24:46]wFMCommunicate request_size=4 [01:24:46]MH_SAM_APDU [01:24:46]CAPDU: 80 13 01 00 [01:24:46]Write to MH i2c: E2 08 00 67 10 80 13 01 00 00 00 00 00 F4 [01:24:46]Write i2c OK [01:24:46]MH_I2C_Read... [01:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:46]Read from MH i2c: E2 [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: E2 0E 00 [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: E2 0E 00 67 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E2 [01:24:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:24:46]wFMCommunicate OK [01:24:46]SAM_PROTO_GetShiftState done [01:24:46]FM_GetShiftState done [01:24:46]req_shift_opened done [01:24:46]requested_item shift.open_date is exist - process it [01:24:46]req_shift_open_date [01:24:46]req_shift_open_date done [01:24:46]produce_requested_data done [01:24:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187511,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [01:24:46]process_action_free close_receipt [01:24:46]json_value_free [01:24:46]json_value_free done [01:24:46]process_json_proto returns [01:24:46]Send response to host [01:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187511,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [01:24:46]free response buf [01:24:46]execute_script done [01:24:46]execute_script returns [01:24:46]free content buf [01:24:46]Sock 9.Close socket [01:24:46]Sock 9.Thread stoped [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:45]accept exits with 7 [01:50:45]New connection [01:50:45]New thread 3067080036 created [01:50:45]Thread 3067223396 joined [01:50:45]Waiting for new connection... [01:50:45] Sock 7.Parse request [01:50:45]Sock 7.Check first char [01:50:45]Sock 7.First char is OK [01:50:45]request: POST /json_proto HTTP/1.0 [01:50:45]Method: POST [01:50:45]URL: /json_proto [01:50:45]Method is POST - this is cgi request [01:50:45]url: /json_proto [01:50:45]query_string will be loaded in cgi processing [01:50:45]execute_cgi json_proto POST (null) [01:50:45]execute_cgi path=json_proto method=POST [01:50:45]POST find Content-Length [01:50:45]Host: 172.17.46.131:8080 [01:50:45]Content-Length: 799 [01:50:45]Content-Type: application/json [01:50:45] [01:50:45]POST finish read [01:50:45]Found Content-Length = 799 [01:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:45]execute_script... [01:50: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)412669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:45]POST & json_proto [01:50:45]process_json_proto [01:50:45]json parsed OK: [01:50:45]protocol is kg_v1.0 [01:50:45]action value=close_receipt [01:50:45]process_action close_receipt [01:50:45]cmd_close_receipt [01:50:45]MH_GetDate [01:50:45]Write to MH i2c: F0 00 00 68 10 67 [01:50:45]Write i2c OK [01:50:45]MH_I2C_Read... [01:50:45]Read from MH i2c: F0 [01:50:45]MH_I2C_Read... [01:50:45]Read from MH i2c: F0 09 00 [01:50:45]MH_I2C_Read... [01:50:45]Read from MH i2c: F0 09 00 68 10 00 F7 DB B7 67 7E 41 4F 65 D3 [01:50:45]GetLastDocTimeStamp 1740101083 [01:50:45]current date 1740102647 [01:50:45]FM_GetShiftState [01:50:45]SAM_PROTO_GetShiftState [01:50:45]wFMCommunicate request_size=4 [01:50:45]MH_SAM_APDU [01:50:45]CAPDU: 80 13 01 00 [01:50:45]Write to MH i2c: E2 08 00 69 10 80 13 01 00 00 00 00 00 F6 [01:50:45]Write i2c OK [01:50:45]MH_I2C_Read... [01:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:45]Read from MH i2c: E2 [01:50:45]MH_I2C_Read... [01:50:45]Read from MH i2c: E2 0E 00 [01:50:45]MH_I2C_Read... [01:50:45]Read from MH i2c: E2 0E 00 69 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E4 [01:50:45]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:50:45]wFMCommunicate OK [01:50:45]SAM_PROTO_GetShiftState done [01:50:45]FM_GetShiftState done [01:50:45]opened in 1740098043 [01:50:45]opened+sec_in_day 1740184443 [01:50:45]quantity*price = 150064 [01:50:45]sum+1 = 150065 [01:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 6 21.02.2025 01:50 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187512 ФПД: 113496247256863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T015047&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187512&fm=113496247256863&tin=02508201610067®Number=0000000000091857&sum=150064 [01:50:46]StoreToDocumentArchive [01:50:46]shift 649 fd 187512 [01:50:46]save to /storage/0649/doc_00187512 [01:50:46]save last doc name /storage/0649/doc_00187512 to /storage/kkm_last_doc_name [01:50:46]save OK [01:50:46]Clear old archive folders... [01:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:50:46]tlvbuf is 0208DC60 [01:50:46]SAM_PROTO_ClearQueue [01:50:46]wFMCommunicate request_size=4 [01:50:46]MH_SAM_APDU [01:50:46]CAPDU: 80 09 00 00 [01:50:46]Write to MH i2c: E2 08 00 76 10 80 09 00 00 00 00 00 00 F8 [01:50:46]Write i2c OK [01:50:46]MH_I2C_Read... [01:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:50:46]Read from MH i2c: E2 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 03 00 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 03 00 76 10 00 90 00 FA [01:50:46]RAPDU: 90 00 [01:50:46]wFMCommunicate OK [01:50:46]SAM_PROTO_ClearQueue done [01:50:46]KKMCreateOFDPacket [01:50:46]OFDProtocolAddRootSTLVToBuf [01:50:46]FM_MakeSignedData [01:50:46]FM_MakeSignedData [01:50:46]SAM_PROTO_SignData [01:50:46]wFMCommunicate request_size=4 [01:50:46]MH_SAM_APDU [01:50:46]CAPDU: 80 0D 01 02 [01:50:46]Write to MH i2c: E2 08 00 77 10 80 0D 01 02 00 00 00 00 00 [01:50:46]Write i2c OK [01:50:46]MH_I2C_Read... [01:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:50:46]Read from MH i2c: E2 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 03 00 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [01:50:46]RAPDU: 90 00 [01:50:46]wFMCommunicate OK [01:50:46]wFMCommunicate request_size=255 [01:50:46]MH_SAM_APDU [01:50: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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 DB B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DC 02 00 35 04 06 00 67 39 67 80 [01:50:46]Write to MH i2c: E2 02 01 78 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 DB B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DC 02 00 35 04 06 00 67 39 67 80 00 00 6D [01:50:46]Write i2c OK [01:50:46]MH_I2C_Read... [01:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:46]Read from MH i2c: E2 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 03 00 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [01:50:46]RAPDU: 90 00 [01:50:46]wFMCommunicate OK [01:50:46]wFMCommunicate request_size=7 [01:50:46]MH_SAM_APDU [01:50:46]CAPDU: 80 0D 02 02 02 47 1F [01:50:46]Write to MH i2c: E2 0A 00 79 10 80 0D 02 02 02 00 47 1F 00 00 6D [01:50:46]Write i2c OK [01:50:46]MH_I2C_Read... [01:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:46]Read from MH i2c: E2 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 03 00 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [01:50:46]RAPDU: 90 00 [01:50:46]wFMCommunicate OK [01:50:46]wFMCommunicate request_size=4 [01:50:46]MH_SAM_APDU [01:50:46]CAPDU: 80 0D 03 02 [01:50:46]Write to MH i2c: E2 08 00 7A 10 80 0D 03 02 00 00 00 00 05 [01:50:46]Write i2c OK [01:50:46]MH_I2C_Read... [01:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:50:46]Read from MH i2c: E2 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 0B 00 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 0B 00 7A 10 00 58 0D 56 0F 3B 77 86 EF 90 00 F7 [01:50:46]RAPDU: 58 0D 56 0F 3B 77 86 EF 90 00 [01:50:46]wFMCommunicate OK [01:50:46]SAM_PROTO_SignData done [01:50:46]FM_MakeSignedData done [01:50:46]CreateOFDProtocolMessage [01:50:46]wFMCommunicate request_size=4 [01:50:46]MH_SAM_APDU [01:50:46]CAPDU: 80 11 00 00 [01:50:46]Write to MH i2c: E2 08 00 7B 10 80 11 00 00 00 00 00 00 05 [01:50:46]Write i2c OK [01:50:46]MH_I2C_Read... [01:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:46]Read from MH i2c: E2 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 17 00 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: E2 17 00 7B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [01:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:50:46]wFMCommunicate OK [01:50:46]CreateOFDProtocolMessage done [01:50:46]OFDSenderStorePacket 187512 [01:50:46]StoreOFDPacket docnum=187512 [01:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 66 EC 04 01 AB 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 DB B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DC 02 00 35 04 06 00 67 39 67 80 47 1F 58 0D 56 0F 3B 77 86 EF [01:50:46]CheckFolder [01:50:46]dirname=/storage/ofd_packets [01:50:46]CheckFolder done [01:50:46]ProducePacketName [01:50:46]name=ofd_packets/00187512 [01:50:46]NVStorageSaveData ofd_packets/00187512 [01:50:46]File name is /storage/ofd_packets/00187512 [01:50:46]Write 298 bytes [01:50:46]NVStorageSaveData done [01:50:46]OFDSenderStorePacket done [01:50:46]KKMCreateOFDPacket done [01:50:46]NVStorageSaveData kkm_last_timestamp [01:50:46]File name is /storage/kkm_last_timestamp [01:50:46]Write 4 bytes [01:50:46]NVStorageSaveData done [01:50:46]ExternCall_PrintAddStr [01:50:46]wPrintStart [01:50:46]Write to MH i2c: 01 00 00 7C 10 8C [01:50:46]Write i2c OK [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: 01 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: 01 07 00 [01:50:46]MH_I2C_Read... [01:50:46]Read from MH i2c: 01 07 00 7C 10 00 00 00 00 00 FF 0F A1 [01:50:46]RasterBufferAndPrint [01:50:46]line Счет N : (1)412669 [01:50:46]line ИНН: 02508201610067 [01:50:46]line Контрольно-Кассовый Чек [01:50:46]line ПРОДАЖА [01:50:46]line ТРК (МРК, ГНК) : 5 [01:50:46]line Товар: 2710194210 [01:50:46]line ДТ-К-5 [01:50:46]line 20.670 * 72.60 [01:50:46]line = 1500.64 [01:50:46]line НДС 12% НСП 1% [01:50:46]line > о реализуемом товаре [01:50:46]line ИТОГО: 1500.64 [01:50:46]line НСП 1% : 13.28 [01:50:46]line НДС 12% : 159.36 [01:50:46]line Наличными: 0.00 [01:50:46]line Безнал.: 1500.64 [01:50:46]line Место: АЗС № 92 "Партнер Нефть" [01:50:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:50:46]line СНО: Общий режим [01:50:46]line Чек 6 21.02.2025 01:50 [01:50:46]line Смена: 649 ФФД: 1.0 [01:50:46]line ЗНМ: 0300000118 [01:50:46]line РНМ: 0000000000091857 [01:50:46]line Версия ККМ: 001 [01:50:46]line Платежная система: O! деньги [01:50:46]line ФМ: 0000000000871826 [01:50:46]line ФД: 187512 [01:50:46]line ФПД: 113496247256863 [01:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T015047&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187512&fm=113496247256863&tin=02508201610067®Number=0000000000091857&sum=150064 [01:50:47]written 0, free lines is 4095 [01:50:47]OFD Sender: Processing packet 187512 [packets to send 49, broken 48] [01:50:47]ProducePacketName [01:50:47]name=ofd_packets/00187512 [01:50:47]OFD Sender: To server: pG, [01:50:47]CommunicateWithHost lk.salyk.kg:30040 [01:50:47]ConnectInit lk.salyk.kg [01:50:47]Connected sock=10 [01:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 66 EC 04 01 AB 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 DB B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DC 02 00 35 04 06 00 67 39 67 80 47 1F 58 0D 56 0F 3B 77 86 EF [01:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B4 8F 47 00 A1 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DC 02 00 F4 03 04 00 46 82 B7 67 B6 04 01 00 00 98 F6 CC B0 43 5E A6 B8 [01:50:47]CommunicateWithHost err = 0 [01:50:47]CheckOFDResponse [01:50:47]1017 (14) - 77093643461234 [01:50:47]1041 (16) - 0000000000871826 [01:50:47]1040 (4) - 187512 [01:50:47]1012 (4) - 20.02.2025 19:28 [01:50:47]1206 (1) - 0 [01:50:47]OFD Sender: Remove packet 187512 [01:50:47]ProducePacketName [01:50:47]name=ofd_packets/00187512 [01:50:47]NVStorageDeleteData [01:50:47]Write to MH i2c: 01 00 00 A6 10 B6 [01:50:47]Write i2c OK [01:50:47]MH_I2C_Read... [01:50:47]Read from MH i2c: 01 [01:50:47]MH_I2C_Read... [01:50:47]Read from MH i2c: 01 07 00 [01:50:47]MH_I2C_Read... [01:50:47]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 FD 0C C6 [01:50:47]RasterBufferAndPrint [01:50:47]line [01:50:47]line [01:50:47]line [01:50:47]line [01:50:47]line [01:50:47]written 0, free lines is 3331 [01:50:47]MH_Cut [01:50:47]Write to MH i2c: D1 01 00 AD 10 01 8F [01:50:47]Write i2c OK [01:50:47]MH_I2C_Read... [01:50:47]Read from MH i2c: D1 [01:50:47]MH_I2C_Read... [01:50:47]Read from MH i2c: D1 01 00 [01:50:47]MH_I2C_Read... [01:50:47]Read from MH i2c: D1 01 00 AD 10 00 8E [01:50:47]Write to MH i2c: 01 00 00 AE 10 BE [01:50:47]Write i2c OK [01:50:47]MH_I2C_Read... [01:50:48]OFD Sender: No OFD packet to send [01:50:48]*** Cut start [01:50:48]*** Partial cut [01:50:48]*** CUTSNS_PIN = 1 [01:50:48]*** CUTSNS_PIN = 0 [01:50:48]*** Brake cut motor [01:50:49]Read from MH i2c: 01 [01:50:49]MH_I2C_Read... [01:50:49]*** Stop cut motor [01:50:49]*** Cut end [01:50:49]Read from MH i2c: 01 07 00 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 FF 0F D3 [01:50:49]process_action close_receipt done [01:50:49]requested_data is exist [01:50:49]produce_requested_data [01:50:49]requested_item fm.sn is exist - process it [01:50:49]wFMCommunicate request_size=4 [01:50:49]MH_SAM_APDU [01:50:49]CAPDU: 80 11 00 00 [01:50:49]Write to MH i2c: E2 08 00 AF 10 80 11 00 00 00 00 00 00 39 [01:50:49]Write i2c OK [01:50:49]MH_I2C_Read... [01:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:49]Read from MH i2c: E2 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: E2 17 00 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: E2 17 00 AF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [01:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:50:49]wFMCommunicate OK [01:50:49]requested_item fd.num is exist - process it [01:50:49]SAM_PROTO_GetFieldsCounters [01:50:49]wFMCommunicate request_size=4 [01:50:49]MH_SAM_APDU [01:50:49]CAPDU: 80 13 00 00 [01:50:49]Write to MH i2c: E2 08 00 B0 10 80 13 00 00 00 00 00 00 3C [01:50:49]Write i2c OK [01:50:49]MH_I2C_Read... [01:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:50:49]Read from MH i2c: E2 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: E2 62 00 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: E2 62 00 B0 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 78 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [01:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 78 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:50:49]wFMCommunicate OK [01:50:49]SAM_PROTO_GetFieldsCounters done [01:50:49]requested_item shift.num is exist - process it [01:50:49]requested_item shift.opened is exist - process it [01:50:49]req_shift_opened [01:50:49]FM_GetShiftState [01:50:49]SAM_PROTO_GetShiftState [01:50:49]wFMCommunicate request_size=4 [01:50:49]MH_SAM_APDU [01:50:49]CAPDU: 80 13 01 00 [01:50:49]Write to MH i2c: E2 08 00 B1 10 80 13 01 00 00 00 00 00 3E [01:50:49]Write i2c OK [01:50:49]MH_I2C_Read... [01:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:49]Read from MH i2c: E2 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: E2 0E 00 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: E2 0E 00 B1 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2C [01:50:49]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:50:49]wFMCommunicate OK [01:50:49]SAM_PROTO_GetShiftState done [01:50:49]FM_GetShiftState done [01:50:49]req_shift_opened done [01:50:49]requested_item shift.open_date is exist - process it [01:50:49]req_shift_open_date [01:50:49]req_shift_open_date done [01:50:49]produce_requested_data done [01:50:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187512,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [01:50:49]process_action_free close_receipt [01:50:49]json_value_free [01:50:49]json_value_free done [01:50:49]process_json_proto returns [01:50:49]Send response to host [01:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187512,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [01:50:49]free response buf [01:50:49]execute_script done [01:50:49]execute_script returns [01:50:49]free content buf [01:50:49]Sock 7.Close socket [01:50:49]Sock 7.Thread stoped [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:30]accept exits with 9 [01:51:30]New connection [01:51:30]New thread 3067223396 created [01:51:30]Thread 3067080036 joined [01:51:30]Waiting for new connection... [01:51:30] Sock 9.Parse request [01:51:30]Sock 9.Check first char [01:51:30]Sock 9.First char is OK [01:51:30]request: POST /json_proto HTTP/1.0 [01:51:30]Method: POST [01:51:30]URL: /json_proto [01:51:30]Method is POST - this is cgi request [01:51:30]url: /json_proto [01:51:30]query_string will be loaded in cgi processing [01:51:30]execute_cgi json_proto POST (null) [01:51:30]execute_cgi path=json_proto method=POST [01:51:30]POST find Content-Length [01:51:30]Host: 172.17.46.131:8080 [01:51:30]Content-Length: 800 [01:51:30]Content-Type: application/json [01:51:30] [01:51:30]POST finish read [01:51:30]Found Content-Length = 800 [01:51:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:30]execute_script... [01:51: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)412670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:30]POST & json_proto [01:51:30]process_json_proto [01:51:30]json parsed OK: [01:51:30]protocol is kg_v1.0 [01:51:30]action value=close_receipt [01:51:30]process_action close_receipt [01:51:30]cmd_close_receipt [01:51:30]MH_GetDate [01:51:30]Write to MH i2c: F0 00 00 B2 10 B1 [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: F0 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: F0 09 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: F0 09 00 B2 10 00 24 DC B7 67 7E 41 4F 65 4B [01:51:30]GetLastDocTimeStamp 1740102647 [01:51:30]current date 1740102692 [01:51:30]FM_GetShiftState [01:51:30]SAM_PROTO_GetShiftState [01:51:30]wFMCommunicate request_size=4 [01:51:30]MH_SAM_APDU [01:51:30]CAPDU: 80 13 01 00 [01:51:30]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:30]Read from MH i2c: E2 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 0E 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2E [01:51:30]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:51:30]wFMCommunicate OK [01:51:30]SAM_PROTO_GetShiftState done [01:51:30]FM_GetShiftState done [01:51:30]opened in 1740098043 [01:51:30]opened+sec_in_day 1740184443 [01:51:30]quantity*price = 50011 [01:51:30]sum+1 = 50013 [01:51:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 7 21.02.2025 01:51 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187513 ФПД: 260219834754124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T015132&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187513&fm=260219834754124&tin=02508201610067®Number=0000000000091857&sum=50012 [01:51:31]StoreToDocumentArchive [01:51:31]shift 649 fd 187513 [01:51:31]save to /storage/0649/doc_00187513 [01:51:31]save last doc name /storage/0649/doc_00187513 to /storage/kkm_last_doc_name [01:51:31]save OK [01:51:31]Clear old archive folders... [01:51:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:51:31]tlvbuf is 0208DD30 [01:51:31]SAM_PROTO_ClearQueue [01:51:31]wFMCommunicate request_size=4 [01:51:31]MH_SAM_APDU [01:51:31]CAPDU: 80 09 00 00 [01:51:31]Write to MH i2c: E2 08 00 C0 10 80 09 00 00 00 00 00 00 42 [01:51:31]Write i2c OK [01:51:31]MH_I2C_Read... [01:51:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:31]Read from MH i2c: E2 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 03 00 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 03 00 C0 10 00 90 00 44 [01:51:31]RAPDU: 90 00 [01:51:31]wFMCommunicate OK [01:51:31]SAM_PROTO_ClearQueue done [01:51:31]KKMCreateOFDPacket [01:51:31]OFDProtocolAddRootSTLVToBuf [01:51:31]FM_MakeSignedData [01:51:31]FM_MakeSignedData [01:51:31]SAM_PROTO_SignData [01:51:31]wFMCommunicate request_size=4 [01:51:31]MH_SAM_APDU [01:51:31]CAPDU: 80 0D 01 02 [01:51:31]Write to MH i2c: E2 08 00 C1 10 80 0D 01 02 00 00 00 00 4A [01:51:31]Write i2c OK [01:51:31]MH_I2C_Read... [01:51:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:31]Read from MH i2c: E2 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 03 00 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [01:51:31]RAPDU: 90 00 [01:51:31]wFMCommunicate OK [01:51:31]wFMCommunicate request_size=255 [01:51:31]MH_SAM_APDU [01:51: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 24 DC B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 DC 02 00 35 04 06 00 EC [01:51:31]Write to MH i2c: E2 02 01 C2 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 24 DC B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 DC 02 00 35 04 06 00 EC 00 00 EE [01:51:31]Write i2c OK [01:51:31]MH_I2C_Read... [01:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:31]Read from MH i2c: E2 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 03 00 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [01:51:31]RAPDU: 90 00 [01:51:31]wFMCommunicate OK [01:51:31]wFMCommunicate request_size=10 [01:51:31]MH_SAM_APDU [01:51:31]CAPDU: 80 0D 02 02 05 AB 26 D0 64 4C [01:51:31]Write to MH i2c: E2 0D 00 C3 10 80 0D 02 02 05 00 AB 26 D0 64 4C 00 00 A8 [01:51:31]Write i2c OK [01:51:31]MH_I2C_Read... [01:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:31]Read from MH i2c: E2 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 03 00 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [01:51:31]RAPDU: 90 00 [01:51:31]wFMCommunicate OK [01:51:31]wFMCommunicate request_size=4 [01:51:31]MH_SAM_APDU [01:51:31]CAPDU: 80 0D 03 02 [01:51:31]Write to MH i2c: E2 08 00 C4 10 80 0D 03 02 00 00 00 00 4F [01:51:31]Write i2c OK [01:51:31]MH_I2C_Read... [01:51:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:31]Read from MH i2c: E2 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 0B 00 [01:51:31]MH_I2C_Read... [01:51:31]Read from MH i2c: E2 0B 00 C4 10 00 EB 3B 92 DF 88 28 9E F5 90 00 2A [01:51:31]RAPDU: EB 3B 92 DF 88 28 9E F5 90 00 [01:51:31]wFMCommunicate OK [01:51:31]SAM_PROTO_SignData done [01:51:31]FM_MakeSignedData done [01:51:31]CreateOFDProtocolMessage [01:51:31]wFMCommunicate request_size=4 [01:51:31]MH_SAM_APDU [01:51:31]CAPDU: 80 11 00 00 [01:51:31]Write to MH i2c: E2 08 00 C5 10 80 11 00 00 00 00 00 00 4F [01:51:31]Write i2c OK [01:51:31]MH_I2C_Read... [01:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:32]Read from MH i2c: E2 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: E2 17 00 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: E2 17 00 C5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [01:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:51:32]wFMCommunicate OK [01:51:32]CreateOFDProtocolMessage done [01:51:32]OFDSenderStorePacket 187513 [01:51:32]StoreOFDPacket docnum=187513 [01:51:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D9 8D 07 01 EE 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 24 DC B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 DC 02 00 35 04 06 00 EC AB 26 D0 64 4C EB 3B 92 DF 88 28 9E F5 [01:51:32]CheckFolder [01:51:32]dirname=/storage/ofd_packets [01:51:32]CheckFolder done [01:51:32]ProducePacketName [01:51:32]name=ofd_packets/00187513 [01:51:32]NVStorageSaveData ofd_packets/00187513 [01:51:32]File name is /storage/ofd_packets/00187513 [01:51:32]Write 301 bytes [01:51:32]NVStorageSaveData done [01:51:32]OFDSenderStorePacket done [01:51:32]KKMCreateOFDPacket done [01:51:32]NVStorageSaveData kkm_last_timestamp [01:51:32]File name is /storage/kkm_last_timestamp [01:51:32]Write 4 bytes [01:51:32]NVStorageSaveData done [01:51:32]ExternCall_PrintAddStr [01:51:32]wPrintStart [01:51:32]Write to MH i2c: 01 00 00 C6 10 D6 [01:51:32]Write i2c OK [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: 01 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: 01 07 00 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [01:51:32]RasterBufferAndPrint [01:51:32]line Счет N : (1)412670 [01:51:32]line ИНН: 02508201610067 [01:51:32]line Контрольно-Кассовый Чек [01:51:32]line ПРОДАЖА [01:51:32]line ТРК (МРК, ГНК) : 42 [01:51:32]line Товар: 2710124130 [01:51:32]line Аи-92-К-2 [01:51:32]line 7.790 * 64.20 [01:51:32]line = 500.12 [01:51:32]line НДС 12% НСП 1% [01:51:32]line > о реализуемом товаре [01:51:32]line ИТОГО: 500.12 [01:51:32]line НСП 1% : 4.43 [01:51:32]line НДС 12% : 53.11 [01:51:32]line Наличными: 0.00 [01:51:32]line Безнал.: 500.12 [01:51:32]line Место: АЗС № 92 "Партнер Нефть" [01:51:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:51:32]line СНО: Общий режим [01:51:32]line Чек 7 21.02.2025 01:51 [01:51:32]line Смена: 649 ФФД: 1.0 [01:51:32]line ЗНМ: 0300000118 [01:51:32]line РНМ: 0000000000091857 [01:51:32]line Версия ККМ: 001 [01:51:32]line Платежная система: O! деньги [01:51:32]line ФМ: 0000000000871826 [01:51:32]line ФД: 187513 [01:51:32]line ФПД: 260219834754124 [01:51:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T015132&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187513&fm=260219834754124&tin=02508201610067®Number=0000000000091857&sum=50012 [01:51:32]OFD Sender: Processing packet 187513 [packets to send 49, broken 48] [01:51:32]ProducePacketName [01:51:32]name=ofd_packets/00187513 [01:51:32]OFD Sender: To server: pG, [01:51:32]CommunicateWithHost lk.salyk.kg:30040 [01:51:32]ConnectInit lk.salyk.kg [01:51:32]written 0, free lines is 4095 [01:51:32]Connected sock=11 [01:51:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D9 8D 07 01 EE 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 24 DC B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 DC 02 00 35 04 06 00 EC AB 26 D0 64 4C EB 3B 92 DF 88 28 9E F5 [01:51:32]Write to MH i2c: 01 00 00 F0 10 00 [01:51:32]Write i2c OK [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: 01 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: 01 07 00 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: 01 07 00 F0 10 00 00 00 00 00 FF 0C 12 [01:51:32]RasterBufferAndPrint [01:51:32]line [01:51:32]line [01:51:32]line [01:51:32]line [01:51:32]line [01:51:32]written 0, free lines is 3333 [01:51:32]MH_Cut [01:51:32]Write to MH i2c: D1 01 00 F7 10 01 D9 [01:51:32]Write i2c OK [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: D1 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: D1 01 00 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: D1 01 00 F7 10 00 D8 [01:51:32]Write to MH i2c: 01 00 00 F8 10 08 [01:51:32]Write i2c OK [01:51:32]MH_I2C_Read... [01:51:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E5 8D 47 00 C0 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 31 38 32 36 10 04 04 00 79 DC 02 00 F4 03 04 00 73 82 B7 67 B6 04 01 00 00 CC AE A5 65 22 C9 77 82 [01:51:32]CommunicateWithHost err = 0 [01:51:32]CheckOFDResponse [01:51:32]1017 (14) - 77093643461234 [01:51:32]1041 (16) - 0000000000871826 [01:51:32]1040 (4) - 187513 [01:51:32]1012 (4) - 20.02.2025 19:28 [01:51:32]1206 (1) - 0 [01:51:32]OFD Sender: Remove packet 187513 [01:51:32]ProducePacketName [01:51:32]name=ofd_packets/00187513 [01:51:32]NVStorageDeleteData [01:51:33]OFD Sender: No OFD packet to send [01:51:33]*** Cut start [01:51:33]*** Partial cut [01:51:33]*** CUTSNS_PIN = 1 [01:51:33]*** CUTSNS_PIN = 0 [01:51:33]*** Brake cut motor [01:51:34]Read from MH i2c: 01 [01:51:34]MH_I2C_Read... [01:51:34]*** Stop cut motor [01:51:34]*** Cut end [01:51:34]Read from MH i2c: 01 07 00 [01:51:34]MH_I2C_Read... [01:51:34]Read from MH i2c: 01 07 00 F8 10 00 00 00 00 00 FF 0F 1D [01:51:34]process_action close_receipt done [01:51:34]requested_data is exist [01:51:34]produce_requested_data [01:51:34]requested_item fm.sn is exist - process it [01:51:34]wFMCommunicate request_size=4 [01:51:34]MH_SAM_APDU [01:51:34]CAPDU: 80 11 00 00 [01:51:34]Write to MH i2c: E2 08 00 F9 10 80 11 00 00 00 00 00 00 83 [01:51:34]Write i2c OK [01:51:34]MH_I2C_Read... [01:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:34]Read from MH i2c: E2 [01:51:34]MH_I2C_Read... [01:51:34]Read from MH i2c: E2 17 00 [01:51:34]MH_I2C_Read... [01:51:34]Read from MH i2c: E2 17 00 F9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [01:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:51:34]wFMCommunicate OK [01:51:34]requested_item fd.num is exist - process it [01:51:34]SAM_PROTO_GetFieldsCounters [01:51:34]wFMCommunicate request_size=4 [01:51:34]MH_SAM_APDU [01:51:34]CAPDU: 80 13 00 00 [01:51:34]Write to MH i2c: E2 08 00 FA 10 80 13 00 00 00 00 00 00 86 [01:51:34]Write i2c OK [01:51:34]MH_I2C_Read... [01:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:34]Read from MH i2c: E2 [01:51:34]MH_I2C_Read... [01:51:34]Read from MH i2c: E2 62 00 [01:51:34]MH_I2C_Read... [01:51:34]Read from MH i2c: E2 62 00 FA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 79 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [01:51:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 79 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:51:34]wFMCommunicate OK [01:51:34]SAM_PROTO_GetFieldsCounters done [01:51:34]requested_item shift.num is exist - process it [01:51:34]requested_item shift.opened is exist - process it [01:51:34]req_shift_opened [01:51:34]FM_GetShiftState [01:51:34]SAM_PROTO_GetShiftState [01:51:34]wFMCommunicate request_size=4 [01:51:34]MH_SAM_APDU [01:51:34]CAPDU: 80 13 01 00 [01:51:34]Write to MH i2c: E2 08 00 FB 10 80 13 01 00 00 00 00 00 88 [01:51:34]Write i2c OK [01:51:34]MH_I2C_Read... [01:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:34]Read from MH i2c: E2 [01:51:34]MH_I2C_Read... [01:51:34]Read from MH i2c: E2 0E 00 [01:51:34]MH_I2C_Read... [01:51:34]Read from MH i2c: E2 0E 00 FB 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 76 [01:51:34]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [01:51:34]wFMCommunicate OK [01:51:34]SAM_PROTO_GetShiftState done [01:51:34]FM_GetShiftState done [01:51:34]req_shift_opened done [01:51:34]requested_item shift.open_date is exist - process it [01:51:34]req_shift_open_date [01:51:34]req_shift_open_date done [01:51:34]produce_requested_data done [01:51:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187513,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [01:51:34]process_action_free close_receipt [01:51:34]json_value_free [01:51:34]json_value_free done [01:51:34]process_json_proto returns [01:51:34]Send response to host [01:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187513,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [01:51:34]free response buf [01:51:34]execute_script done [01:51:34]execute_script returns [01:51:34]free content buf [01:51:34]Sock 9.Close socket [01:51:34]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01: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:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:11]accept exits with 7 [03:10:11]New connection [03:10:11]New thread 3067080036 created [03:10:11]Thread 3067223396 joined [03:10:11]Waiting for new connection... [03:10:11] Sock 7.Parse request [03:10:11]Sock 7.Check first char [03:10:11]Sock 7.First char is OK [03:10:11]request: POST /json_proto HTTP/1.0 [03:10:11]Method: POST [03:10:11]URL: /json_proto [03:10:11]Method is POST - this is cgi request [03:10:11]url: /json_proto [03:10:11]query_string will be loaded in cgi processing [03:10:11]execute_cgi json_proto POST (null) [03:10:11]execute_cgi path=json_proto method=POST [03:10:11]POST find Content-Length [03:10:11]Host: 172.17.46.131:8080 [03:10:11]Content-Length: 800 [03:10:11]Content-Type: application/json [03:10:11] [03:10:11]POST finish read [03:10:11]Found Content-Length = 800 [03:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:10:11]execute_script... [03:10: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)412671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:10:11]POST & json_proto [03:10:11]process_json_proto [03:10:11]json parsed OK: [03:10:11]protocol is kg_v1.0 [03:10:11]action value=close_receipt [03:10:11]process_action close_receipt [03:10:11]cmd_close_receipt [03:10:11]MH_GetDate [03:10:11]Write to MH i2c: F0 00 00 FC 10 FB [03:10:11]Write i2c OK [03:10:11]MH_I2C_Read... [03:10:11]Read from MH i2c: F0 [03:10:11]MH_I2C_Read... [03:10:11]Read from MH i2c: F0 09 00 [03:10:11]MH_I2C_Read... [03:10:11]Read from MH i2c: F0 09 00 FC 10 00 95 EE B7 67 7E 41 4F 65 18 [03:10:11]GetLastDocTimeStamp 1740102692 [03:10:11]current date 1740107413 [03:10:11]FM_GetShiftState [03:10:11]SAM_PROTO_GetShiftState [03:10:11]wFMCommunicate request_size=4 [03:10:11]MH_SAM_APDU [03:10:11]CAPDU: 80 13 01 00 [03:10:11]Write to MH i2c: E2 08 00 FD 10 80 13 01 00 00 00 00 00 8A [03:10:11]Write i2c OK [03:10:11]MH_I2C_Read... [03:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:11]Read from MH i2c: E2 [03:10:11]MH_I2C_Read... [03:10:11]Read from MH i2c: E2 0E 00 [03:10:11]MH_I2C_Read... [03:10:11]Read from MH i2c: E2 0E 00 FD 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 78 [03:10:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [03:10:11]wFMCommunicate OK [03:10:11]SAM_PROTO_GetShiftState done [03:10:11]FM_GetShiftState done [03:10:11]opened in 1740098043 [03:10:11]opened+sec_in_day 1740184443 [03:10:11]quantity*price = 50011 [03:10:11]sum+1 = 50013 [03:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 8 21.02.2025 03:10 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187514 ФПД: 118762873327935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T031014&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187514&fm=118762873327935&tin=02508201610067®Number=0000000000091857&sum=50012 [03:10:12]StoreToDocumentArchive [03:10:12]shift 649 fd 187514 [03:10:12]save to /storage/0649/doc_00187514 [03:10:12]save last doc name /storage/0649/doc_00187514 to /storage/kkm_last_doc_name [03:10:12]save OK [03:10:12]Clear old archive folders... [03:10:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:10:12]tlvbuf is 0202EB30 [03:10:12]SAM_PROTO_ClearQueue [03:10:12]wFMCommunicate request_size=4 [03:10:12]MH_SAM_APDU [03:10:12]CAPDU: 80 09 00 00 [03:10:12]Write to MH i2c: E2 08 00 0A 11 80 09 00 00 00 00 00 00 8D [03:10:12]Write i2c OK [03:10:12]MH_I2C_Read... [03:10:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:10:12]Read from MH i2c: E2 [03:10:12]MH_I2C_Read... [03:10:12]Read from MH i2c: E2 03 00 [03:10:12]MH_I2C_Read... [03:10:12]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [03:10:12]RAPDU: 90 00 [03:10:12]wFMCommunicate OK [03:10:12]SAM_PROTO_ClearQueue done [03:10:12]KKMCreateOFDPacket [03:10:12]OFDProtocolAddRootSTLVToBuf [03:10:12]FM_MakeSignedData [03:10:12]FM_MakeSignedData [03:10:12]SAM_PROTO_SignData [03:10:12]wFMCommunicate request_size=4 [03:10:12]MH_SAM_APDU [03:10:12]CAPDU: 80 0D 01 02 [03:10:12]Write to MH i2c: E2 08 00 0B 11 80 0D 01 02 00 00 00 00 95 [03:10:12]Write i2c OK [03:10:12]MH_I2C_Read... [03:10:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:10:12]Read from MH i2c: E2 [03:10:12]MH_I2C_Read... [03:10:12]Read from MH i2c: E2 03 00 [03:10:12]MH_I2C_Read... [03:10:12]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [03:10:12]RAPDU: 90 00 [03:10:12]wFMCommunicate OK [03:10:12]wFMCommunicate request_size=255 [03:10:12]MH_SAM_APDU [03:10: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 96 EE B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DC 02 00 35 04 06 00 6C [03:10:12]Write to MH i2c: E2 02 01 0C 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 96 EE B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DC 02 00 35 04 06 00 6C 00 00 3F [03:10:12]Write i2c OK [03:10:12]MH_I2C_Read... [03:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:13]Read from MH i2c: E2 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: E2 03 00 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [03:10:13]RAPDU: 90 00 [03:10:13]wFMCommunicate OK [03:10:13]wFMCommunicate request_size=10 [03:10:13]MH_SAM_APDU [03:10:13]CAPDU: 80 0D 02 02 05 03 A2 E0 91 3F [03:10:13]Write to MH i2c: E2 0D 00 0D 11 80 0D 02 02 05 00 03 A2 E0 91 3F 00 00 F7 [03:10:13]Write i2c OK [03:10:13]MH_I2C_Read... [03:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:13]Read from MH i2c: E2 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: E2 03 00 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [03:10:13]RAPDU: 90 00 [03:10:13]wFMCommunicate OK [03:10:13]wFMCommunicate request_size=4 [03:10:13]MH_SAM_APDU [03:10:13]CAPDU: 80 0D 03 02 [03:10:13]Write to MH i2c: E2 08 00 0E 11 80 0D 03 02 00 00 00 00 9A [03:10:13]Write i2c OK [03:10:13]MH_I2C_Read... [03:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:10:13]Read from MH i2c: E2 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: E2 0B 00 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: E2 0B 00 0E 11 00 EB 8F B8 18 C1 4C 70 EB 90 00 4D [03:10:13]RAPDU: EB 8F B8 18 C1 4C 70 EB 90 00 [03:10:13]wFMCommunicate OK [03:10:13]SAM_PROTO_SignData done [03:10:13]FM_MakeSignedData done [03:10:13]CreateOFDProtocolMessage [03:10:13]wFMCommunicate request_size=4 [03:10:13]MH_SAM_APDU [03:10:13]CAPDU: 80 11 00 00 [03:10:13]Write to MH i2c: E2 08 00 0F 11 80 11 00 00 00 00 00 00 9A [03:10:13]Write i2c OK [03:10:13]MH_I2C_Read... [03:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:13]Read from MH i2c: E2 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: E2 17 00 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: E2 17 00 0F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [03:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:10:13]wFMCommunicate OK [03:10:13]CreateOFDProtocolMessage done [03:10:13]OFDSenderStorePacket 187514 [03:10:13]StoreOFDPacket docnum=187514 [03:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 53 07 01 5E E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 96 EE B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DC 02 00 35 04 06 00 6C 03 A2 E0 91 3F EB 8F B8 18 C1 4C 70 EB [03:10:13]CheckFolder [03:10:13]dirname=/storage/ofd_packets [03:10:13]CheckFolder done [03:10:13]ProducePacketName [03:10:13]name=ofd_packets/00187514 [03:10:13]NVStorageSaveData ofd_packets/00187514 [03:10:13]File name is /storage/ofd_packets/00187514 [03:10:13]Write 301 bytes [03:10:13]NVStorageSaveData done [03:10:13]OFDSenderStorePacket done [03:10:13]KKMCreateOFDPacket done [03:10:13]NVStorageSaveData kkm_last_timestamp [03:10:13]File name is /storage/kkm_last_timestamp [03:10:13]Write 4 bytes [03:10:13]NVStorageSaveData done [03:10:13]ExternCall_PrintAddStr [03:10:13]wPrintStart [03:10:13]Write to MH i2c: 01 00 00 10 11 21 [03:10:13]Write i2c OK [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: 01 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: 01 07 00 [03:10:13]MH_I2C_Read... [03:10:13]Read from MH i2c: 01 07 00 10 11 00 00 00 00 00 FF 0F 36 [03:10:13]RasterBufferAndPrint [03:10:13]line Счет N : (1)412671 [03:10:13]line ИНН: 02508201610067 [03:10:13]line Контрольно-Кассовый Чек [03:10:13]line ПРОДАЖА [03:10:13]line ТРК (МРК, ГНК) : 32 [03:10:13]line Товар: 2710124130 [03:10:13]line Аи-92-К-2 [03:10:13]line 7.790 * 64.20 [03:10:13]line = 500.12 [03:10:13]line НДС 12% НСП 1% [03:10:13]line > о реализуемом товаре [03:10:13]line ИТОГО: 500.12 [03:10:13]line НСП 1% : 4.43 [03:10:13]line НДС 12% : 53.11 [03:10:13]line Наличными: 0.00 [03:10:13]line Безнал.: 500.12 [03:10:13]line Место: АЗС № 92 "Партнер Нефть" [03:10:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [03:10:13]line СНО: Общий режим [03:10:13]line Чек 8 21.02.2025 03:10 [03:10:13]line Смена: 649 ФФД: 1.0 [03:10:13]line ЗНМ: 0300000118 [03:10:13]line РНМ: 0000000000091857 [03:10:13]line Версия ККМ: 001 [03:10:13]line Платежная система: O! деньги [03:10:13]line ФМ: 0000000000871826 [03:10:13]line ФД: 187514 [03:10:13]line ФПД: 118762873327935 [03:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T031014&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187514&fm=118762873327935&tin=02508201610067®Number=0000000000091857&sum=50012 [03:10:13]OFD Sender: Processing packet 187514 [packets to send 49, broken 48] [03:10:13]ProducePacketName [03:10:13]name=ofd_packets/00187514 [03:10:13]OFD Sender: To server: pG, [03:10:13]CommunicateWithHost lk.salyk.kg:30040 [03:10:13]ConnectInit lk.salyk.kg [03:10:13]written 0, free lines is 4095 [03:10:13]Connected sock=10 [03:10:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 53 07 01 5E E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 96 EE B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DC 02 00 35 04 06 00 6C 03 A2 E0 91 3F EB 8F B8 18 C1 4C 70 EB [03:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8D AE 47 00 BA 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DC 02 00 F4 03 04 00 E5 94 B7 67 B6 04 01 00 00 9A 2C 3F E4 19 AB C4 81 [03:10:14]CommunicateWithHost err = 0 [03:10:14]CheckOFDResponse [03:10:14]1017 (14) - 77093643461234 [03:10:14]1041 (16) - 0000000000871826 [03:10:14]1040 (4) - 187514 [03:10:14]1012 (4) - 20.02.2025 20:47 [03:10:14]1206 (1) - 0 [03:10:14]OFD Sender: Remove packet 187514 [03:10:14]ProducePacketName [03:10:14]name=ofd_packets/00187514 [03:10:14]NVStorageDeleteData [03:10:14]Write to MH i2c: 01 00 00 3A 11 4B [03:10:14]Write i2c OK [03:10:14]MH_I2C_Read... [03:10:14]Read from MH i2c: 01 [03:10:14]MH_I2C_Read... [03:10:14]Read from MH i2c: 01 07 00 [03:10:14]MH_I2C_Read... [03:10:14]Read from MH i2c: 01 07 00 3A 11 00 00 00 00 00 0B 0D 6A [03:10:14]RasterBufferAndPrint [03:10:14]line [03:10:14]line [03:10:14]line [03:10:14]line [03:10:14]line [03:10:14]written 0, free lines is 3345 [03:10:14]MH_Cut [03:10:14]Write to MH i2c: D1 01 00 41 11 01 24 [03:10:14]Write i2c OK [03:10:14]MH_I2C_Read... [03:10:14]Read from MH i2c: D1 [03:10:14]MH_I2C_Read... [03:10:14]Read from MH i2c: D1 01 00 [03:10:14]MH_I2C_Read... [03:10:14]Read from MH i2c: D1 01 00 41 11 00 23 [03:10:14]Write to MH i2c: 01 00 00 42 11 53 [03:10:14]Write i2c OK [03:10:14]MH_I2C_Read... [03:10:14]OFD Sender: No OFD packet to send [03:10:14]*** Cut start [03:10:14]*** Partial cut [03:10:14]*** CUTSNS_PIN = 1 [03:10:14]*** CUTSNS_PIN = 0 [03:10:15]*** Brake cut motor [03:10:15]Read from MH i2c: 01 [03:10:15]MH_I2C_Read... [03:10:15]Read from MH i2c: 01 07 00 [03:10:15]MH_I2C_Read... [03:10:15]*** Stop cut motor [03:10:15]*** Cut end [03:10:15]Read from MH i2c: 01 07 00 42 11 00 00 00 00 00 FF 0F 68 [03:10:15]process_action close_receipt done [03:10:15]requested_data is exist [03:10:15]produce_requested_data [03:10:15]requested_item fm.sn is exist - process it [03:10:15]wFMCommunicate request_size=4 [03:10:15]MH_SAM_APDU [03:10:15]CAPDU: 80 11 00 00 [03:10:15]Write to MH i2c: E2 08 00 43 11 80 11 00 00 00 00 00 00 CE [03:10:15]Write i2c OK [03:10:15]MH_I2C_Read... [03:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:15]Read from MH i2c: E2 [03:10:15]MH_I2C_Read... [03:10:15]Read from MH i2c: E2 17 00 [03:10:15]MH_I2C_Read... [03:10:15]Read from MH i2c: E2 17 00 43 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [03:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:10:15]wFMCommunicate OK [03:10:15]requested_item fd.num is exist - process it [03:10:15]SAM_PROTO_GetFieldsCounters [03:10:15]wFMCommunicate request_size=4 [03:10:15]MH_SAM_APDU [03:10:15]CAPDU: 80 13 00 00 [03:10:15]Write to MH i2c: E2 08 00 44 11 80 13 00 00 00 00 00 00 D1 [03:10:15]Write i2c OK [03:10:15]MH_I2C_Read... [03:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:10:15]Read from MH i2c: E2 [03:10:15]MH_I2C_Read... [03:10:15]Read from MH i2c: E2 62 00 [03:10:15]MH_I2C_Read... [03:10:15]Read from MH i2c: E2 62 00 44 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7A DC 02 00 0E 04 04 00 89 02 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 F2 [03:10:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7A DC 02 00 0E 04 04 00 89 02 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:10:15]wFMCommunicate OK [03:10:15]SAM_PROTO_GetFieldsCounters done [03:10:15]requested_item shift.num is exist - process it [03:10:15]requested_item shift.opened is exist - process it [03:10:15]req_shift_opened [03:10:15]FM_GetShiftState [03:10:15]SAM_PROTO_GetShiftState [03:10:15]wFMCommunicate request_size=4 [03:10:15]MH_SAM_APDU [03:10:15]CAPDU: 80 13 01 00 [03:10:15]Write to MH i2c: E2 08 00 45 11 80 13 01 00 00 00 00 00 D3 [03:10:15]Write i2c OK [03:10:15]MH_I2C_Read... [03:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:15]Read from MH i2c: E2 [03:10:15]MH_I2C_Read... [03:10:15]Read from MH i2c: E2 0E 00 [03:10:15]MH_I2C_Read... [03:10:15]Read from MH i2c: E2 0E 00 45 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C1 [03:10:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [03:10:15]wFMCommunicate OK [03:10:15]SAM_PROTO_GetShiftState done [03:10:15]FM_GetShiftState done [03:10:15]req_shift_opened done [03:10:15]requested_item shift.open_date is exist - process it [03:10:15]req_shift_open_date [03:10:15]req_shift_open_date done [03:10:15]produce_requested_data done [03:10:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187514,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [03:10:15]process_action_free close_receipt [03:10:15]json_value_free [03:10:15]json_value_free done [03:10:15]process_json_proto returns [03:10:15]Send response to host [03:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187514,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [03:10:15]free response buf [03:10:15]execute_script done [03:10:15]execute_script returns [03:10:15]free content buf [03:10:15]Sock 7.Close socket [03:10:15]Sock 7.Thread stoped [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [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